SpeedTestWallInteractions.cpp File Reference
#include <iostream>
#include "Species/LinearViscoelasticSpecies.h"
#include "Mercury3D.h"
#include "Walls/InfiniteWall.h"
#include "MercuryTime.h"
#include "Logger.h"

Classes

class  Wall
 

Functions

int main ()
 

Function Documentation

◆ main()

int main ( )
65 {
66  logger(INFO, "An elastic particle between two walls.");
67 
68  Time time;
69  Wall wall;
70  wall.solve();
71  logger(INFO, "Total run time: %s (Expected: 3s)", time.toc());
72  return 0;
73 }
Logger< MERCURYDPM_LOGLEVEL > logger("MercuryKernel")
Definition of different loggers with certain modules. A user can define its own custom logger here.
void solve()
The work horse of the code.
Definition: DPMBase.cc:4334
Allows for timing the algorithms; accurate up to 0.01 sec.
Definition: MercuryTime.h:25
Mdouble toc()
This is like a stop button of a stopwatch. Assigns the variable finish to the current value of ticks ...
Definition: MercuryTime.h:49
Definition: SpeedTestWallInteractions.cpp:16
#define INFO(i)
Definition: mumps_solver.h:54

References INFO, logger, DPMBase::solve(), and Time::toc().