RandomClusterInsertionBoundaryUnitTest.cpp File Reference

Classes

class  RandomClusterInsertionBoundarySelfTest
 

Functions

int main ()
 

Function Documentation

◆ main()

int main ( )
110 {
111  logger(INFO,"Simple box for creating particles");
112 
113  RandomClusterInsertionBoundarySelfTest insertionBoundary_problem;
114  insertionBoundary_problem.solve();
115 
116 
117  helpers::check(insertionBoundary_problem.particleHandler.getSize(), 24, 0.1, "Number of particles check");
118  helpers::check(insertionBoundary_problem.interactionHandler.getSize(), 26, 0.1, "Number of interactions check");
119 }
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.
unsigned int getSize() const
Gets the size of the particleHandler (including mpi and periodic particles)
Definition: BaseHandler.h:655
InteractionHandler interactionHandler
An object of the class InteractionHandler.
Definition: DPMBase.h:1467
ParticleHandler particleHandler
An object of the class ParticleHandler, contains the pointers to all the particles created.
Definition: DPMBase.h:1437
void solve()
The work horse of the code.
Definition: DPMBase.cc:4270
Definition: RandomClusterInsertionBoundaryDemo.cpp:44
void check(double real, double ideal, double error, std::string errorMessage)
Definition: TestHelpers.cc:37

References helpers::check(), BaseHandler< T >::getSize(), INFO, DPMBase::interactionHandler, logger, DPMBase::particleHandler, and DPMBase::solve().