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 ( )
86 {
87  logger(INFO, "An elastic particle between two walls.");
88 
89  Time time;
90  Wall wall;
91  wall.solve();
92  logger(INFO, "Total run time: %s (Expected: 3s)", time.toc());
93  return 0;
94 }
LL< Log::INFO > INFO
Info log level.
Definition: Logger.cc:55
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:4270
Allows for timing the algorithms; accurate up to 0.01 sec.
Definition: MercuryTime.h:46
Mdouble toc()
This is like a stop button of a stopwatch. Assigns the variable finish to the current value of ticks ...
Definition: MercuryTime.h:70
Definition: SpeedTestWallInteractions.cpp:37

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