FixedClusterInsertionBoundaryUnitTest.cpp File Reference

Classes

class  RandomClusterInsertionBoundarySelfTest
 

Functions

int main (int argc UNUSED, char *argv[] UNUSED)
 

Function Documentation

◆ main()

int main ( int argc  UNUSED,
char *argv[]  UNUSED 
)
121 {
122  logger(INFO,"Fixed cluster insertion boundary.");
123 
124  RandomClusterInsertionBoundarySelfTest insertionBoundary_problem;
125  insertionBoundary_problem.solve();
126 
127  helpers::check(insertionBoundary_problem.particleHandler.getSize(), 9, 0.1, "Number of particles check");
128  helpers::check(insertionBoundary_problem.interactionHandler.getSize(), 9, 0.1, "Number of interactions check");
129 }
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().