MercuryDPM  Trunk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Logger.h File Reference
#include <string>
#include <sstream>
#include <functional>
#include <type_traits>
#include <iomanip>
#include "GeneralDefine.h"
#include <iostream>

Go to the source code of this file.

Classes

class  LoggerOutput
 Default functions for output generation. More...
 
class  Logger< L, ASSERTS >
 the Logger class is the main class of the logger implementation. It holds all the functions which invoke certain methods to create messages based on input parameter deductions. More...
 
class  LL< Level >
 Tag for template metaprogramming. More...
 
class  Logger< L, ASSERTS >
 the Logger class is the main class of the logger implementation. It holds all the functions which invoke certain methods to create messages based on input parameter deductions. More...
 

Macros

#define MERCURY_LOGLEVEL   Log::DEFAULT
 
#define CG_LOGLEVEL   Log::DEFAULT
 
#define MERCURY_ASSERTS   true
 
#define assert(e,...)   assert(true,"")
 

Enumerations

enum  Flusher { Flusher::FLUSH, Flusher::NO_FLUSH }
 The Logger class provides ability to write log messages in your own customized format. More...
 
enum  Log : signed char {
  Log::FATAL = -20, Log::ERROR = -15, Log::WARN = -10, Log::INFO = -5,
  Log::DEFAULT = 0, Log::VERBOSE = 5, Log::DEBUG = 10
}
 The different loglevels. More...
 

Functions

constexpr bool operator<= (const Log rhs, const Log lhs)
 Internally used to filter on loglevel. Do not edit, as this is required for an optimised logger. More...
 

Variables

LoggerOutputloggerOutput
 Declaration of the output functions. More...
 
LL< Log::FATAL > FATAL
 Fatal log level. More...
 
LL< Log::ERROR > ERROR
 Error log level. More...
 
LL< Log::WARN > WARN
 Warning log level. More...
 
LL< Log::INFO > INFO
 Info log level. More...
 
LL< Log::DEFAULT > DEFAULT
 Default log level. More...
 
LL< Log::VERBOSE > VERBOSE
 Verbose information. More...
 
LL< Log::DEBUG > DEBUG
 Debug information. More...
 
Logger< MERCURY_LOGLEVELlogger
 Definition of different loggers with certain modules. A user can define its own custom logger here. More...
 
Logger< CG_LOGLEVELcgLogger
 

Macro Definition Documentation

#define assert (   e,
  ... 
)    assert(true,"")

Definition at line 769 of file Logger.h.

#define CG_LOGLEVEL   Log::DEFAULT

Definition at line 46 of file Logger.h.

#define MERCURY_ASSERTS   true

Definition at line 63 of file Logger.h.

#define MERCURY_LOGLEVEL   Log::DEFAULT

Definition at line 42 of file Logger.h.

Referenced by Logger< L, ASSERTS >::createMessage().

Enumeration Type Documentation

enum Flusher
strong

The Logger class provides ability to write log messages in your own customized format.

logger objects can be globally called on different loglevels whose usage is briefly explained where they have been declared down below.

The previous version of the Logger used the syntax Logger<Log::LEVEL> logger; which is now predefined in logger.cc.

The operator() function is utilized in this logger to keep log messages in a single statement of format:

 logger(Log::LEVEL, "Message", args...);

Where args... is a user defined pack of parameters. Each parameter is denoted by a percentage character %, see example below.

logger(INFO, "The current timestep is %.", getTimeStep()); OUTPUT: The current timestep is 0.0104124.

The output of arguments an also be customized by a certain precision or width. A number following the percentage character is defined as the precision of the parameter (e.g. %12), whereas a full stop followed by a number is defined as the output width of a parameter (e.g. %.10). Here std::left was chosen as default positioning. See examples below.

logger(INFO, "The current timestep is %12.", getTimestep()); OUTPUT: The current timestep is 0.01020304917.

logger(INFO, "The current timestep is %.12.", getTimestep()); OUTPUT: The current timestep is 0.0102051 .

logger(INFO, "The current timestep is %12.14.", getTimestep()); OUTPUT: The current timestep is 0.01020304917 .

After each invocation of the logger the output is flushed. To speed-up the code it is key to avoid flushing of the output wherever possible. Therefore, escape characters such as "\n" are preferred over std::endl. Furthermore if a parameter pack of the logger contains the argument Flusher::NO_FLUSH it will skip the use of std::endl after logger invocation.

Default loglevel is Log::DEFAULT = 0.

Enum class which enables/disables flushing of output.

the Flusher class is only used if the loglevel is below VERBOSE and DEBUG and if the CMAKE_BUILD_TYPE is not "Debug". If Flusher::NO_FLUSH is added as an argument to a logger invocation it will prevent the logger to call std::endl and flush the ouput at the end of the call. This is mainly utilized to speed up the code when logging messages.

Enumerator
FLUSH 
NO_FLUSH 

Definition at line 118 of file Logger.h.

119 {
120  FLUSH,
121  NO_FLUSH
122 };
enum Log : signed char
strong

The different loglevels.

The different loglevels, represented as signed characters, in descending order of severeness. Worst is FATAL, best is DEBUG.

Please, use the tags FATAL/ERROR/etc without class/enum/namespace.

Enumerator
FATAL 
ERROR 
WARN 
INFO 
DEFAULT 
VERBOSE 
DEBUG 

Definition at line 132 of file Logger.h.

133  : signed char
134 {
135  FATAL = -20, ERROR = -15, WARN = -10, INFO = -5, DEFAULT = 0, VERBOSE = 5, DEBUG = 10
136 };
LL< Log::INFO > INFO
Info log level.
Definition: Logger.cc:55
LL< Log::DEBUG > DEBUG
Debug information.
Definition: Logger.cc:58
LL< Log::ERROR > ERROR
Error log level.
Definition: Logger.cc:53
LL< Log::DEFAULT > DEFAULT
Default log level.
Definition: Logger.cc:56
LL< Log::VERBOSE > VERBOSE
Verbose information.
Definition: Logger.cc:57
LL< Log::FATAL > FATAL
Fatal log level.
Definition: Logger.cc:52
LL< Log::WARN > WARN
Warning log level.
Definition: Logger.cc:54

Function Documentation

constexpr bool operator<= ( const Log  rhs,
const Log  lhs 
)

Internally used to filter on loglevel. Do not edit, as this is required for an optimised logger.

used for the implementation of different loglevels; the operator compares current loglevel to a fixed one and thus checks if a message should be logged.

Definition at line 144 of file Logger.h.

145 {
146  return ((static_cast<signed char>(rhs)) <= (static_cast<signed char>(lhs)));
147 }

Variable Documentation

LL<Log::DEBUG> DEBUG

Debug information.

Only used for internal development. Can be very cryptic, as it is only meant for finding bugs / oddities by the internal development team.

Example: Collision found between Particle #38201 and Wall #5

Default behaviour: ignore.

Definition at line 58 of file Logger.cc.

Referenced by BaseHandler< T >::BaseHandler(), SmallMatrix< numberOfRows, numberOfColumns >::operator*(), operator*(), CGFields::OrientationField::OrientationField(), CGFields::OrientationField::setFields(), BaseHandler< T >::~BaseHandler(), MixedSpecies< NormalForceSpecies, FrictionForceSpecies, AdhesiveForceSpecies >::~MixedSpecies(), and Species< NormalForceSpecies, FrictionForceSpecies, AdhesiveForceSpecies >::~Species().

LL<Log::DEFAULT> DEFAULT

Default log level.

Only useful for defining the loglevel of the logger itself. Should not actually be used.

Definition at line 56 of file Logger.cc.

LL<Log::ERROR> ERROR

Error log level.

Error, as in, the program has found a severe problem which it cannot resolve any further. It does not know how to recover in a sane way. The difference to FATAL is mainly that this type of failure is most often caused by human error.

Example: Negative time step, Infinite end time and no override of the continuation function.

Default behaviour: log to std::cerr, followed by std::exit().

Definition at line 53 of file Logger.cc.

Referenced by SmallMatrix< numberOfRows, numberOfColumns >::computeWedgeStuffVector(), SmallMatrix< numberOfRows, numberOfColumns >::determinant(), BaseHandler< T >::getObjectById(), BaseHandler< T >::getObjectsById(), helpers::getSaveCountFromNumberOfSavesAndTimeMaxAndTimeStep(), main(), Species< NormalForceSpecies, FrictionForceSpecies, AdhesiveForceSpecies >::mixAll(), helpers::more(), operator<<(), operator>>(), helpers::readArrayFromFile(), NurbsSurface::set(), and Statistics().

LL<Log::FATAL> FATAL

Fatal log level.

The following are the loglevels which should be used to control the logger. They are declared here but defined in Logger.cc.

Fatal, as in, the program has suffered from the worst possible failure and there is no way it can gracefully recover. The difference to ERROR is mainly that this type of failure is most often caused by non-human error

Example: No memory allocations possible

Default behaviour: log to std::cerr, followed by std::exit().

Fatal log level.

Definition at line 52 of file Logger.cc.

Referenced by main(), and transformMercuryToVTK().

LL<Log::INFO> INFO

Info log level.

Useful information, small oddities and statistics which should be of no real effect to the user, but still give useful information about the current state and progress of the program.

Example: Finished inserting 381 particles.

Default behaviour: log to std::cout, returns afterwards.

Definition at line 55 of file Logger.cc.

Referenced by helpers::addToFile(), checkTemplate(), helpers::compare(), mathsFunc::goldenSectionSearch(), helpers::readFromCommandLine< std::string >(), helpers::loadingTest(), main(), helpers::more(), helpers::normalAndTangentialLoadingTest(), NurbsSurface::NurbsSurface(), helpers::objectivenessTest(), helpers::readArrayFromCommandLine(), helpers::readFromCommandLine(), helpers::readFromFile(), helpers::readVectorFromCommandLine(), NurbsSurface::set(), SinterNormalSpecies::setParhamiMcKeeping(), Statistics(), and transformMercuryToVTK().

Definition of different loggers with certain modules. A user can define its own custom logger here.

Default logger. Use this for general logging.

For very specific modules, define your own logger. If you want to make extensive use of Debug messages, please use a custom logger as well, to prevent polluting the output.

Referenced by BaseCluster::actionsAfterSolve(), BaseCluster::actionsAfterTimeStep(), BaseBoundary::actionsBeforeTimeLoop(), BaseCluster::actionsOnRestart(), SubcriticalMaserBoundaryTEST::activateMaser(), SubcriticalMaserBoundary::activateMaser(), ConstantMassFlowMaserBoundary::activateMaser(), IntersectionOfWalls::add3PointObject(), PossibleContactList::add_PossibleContact(), ParticleHandler::addExistingObject(), Chute::addFlowParticlesCompactly(), PolydisperseInsertionBoundary::addGenerandum(), ParticleHandler::addGhostObject(), LocalExpansion::addLocalExpansionCoefficients(), Multipole::addMultipoleCoefficients(), WallHandler::addObject(), ParticleHandler::addObject(), IntersectionOfWalls::addObject(), BaseWall::addParticlesAtWall(), Domain::addParticlesToLists(), SubcriticalMaserBoundary::addParticleToMaser(), ConstantMassFlowMaserBoundary::addParticleToMaser(), IntersectionOfWalls::addPlate(), IntersectionOfWalls::addTetra(), IntersectionOfWalls::addTetraSTL(), helpers::addToFile(), Membrane::applyPressure(), HGridOptimiser::applyStep(), Membrane::Edge::applyStretchForce(), AxisymmetricIntersectionOfWalls::AxisymmetricIntersectionOfWalls(), BaseBoundary::BaseBoundary(), BaseCG::BaseCG(), BaseCluster::BaseCluster(), BaseClusterInsertionBoundary::BaseClusterInsertionBoundary(), BaseHandler< T >::BaseHandler(), BaseInteractable::BaseInteractable(), BaseParticle::BaseParticle(), BaseSpecies::BaseSpecies(), BaseWall::BaseWall(), BasicIntersectionOfWalls::BasicIntersectionOfWalls(), BasicUnionOfWalls::BasicUnionOfWalls(), BondedInteraction::BondedInteraction(), BoundaryHandler::BoundaryHandler(), HGridOptimiser::calcDfDx(), HGridOptimiser::calculateDiffWork(), BaseCluster::calculateTimeStep(), HGridOptimiser::calculateWork(), ChargedBondedInteraction::ChargedBondedInteraction(), mathsFunc::chebyshev(), SubcriticalMaserBoundaryTEST::checkBoundaryAfterParticleMoved(), DeletionBoundary::checkBoundaryAfterParticleMoved(), DropletBoundary::checkBoundaryAfterParticlesMove(), StressStrainControlBoundary::checkBoundaryAfterParticlesMove(), SubcriticalMaserBoundaryTEST::checkBoundaryAfterParticlesMove(), FixedClusterInsertionBoundary::checkBoundaryBeforeTimeStep(), RandomClusterInsertionBoundary::checkBoundaryBeforeTimeStep(), InsertionBoundary::checkBoundaryBeforeTimeStep(), MeshTriangle::checkInteractions(), HGridOptimiser::checkLimit(), MercuryBase::checkParticleForInteractionLocal(), DPMBase::checkSettings(), checkTemplate(), Chute::Chute(), CircularPeriodicBoundary::CircularPeriodicBoundary(), Chute::cleanChute(), BaseCG::clear(), ConstantMassFlowMaserBoundary::closeMaser(), ClusterGenerator::ClusterGenerator(), Coil::Coil(), helpers::compare(), ChargedBondedInteraction::computeAdhesionForce(), DPMBase::computeAllForces(), LinearPlasticViscoelasticNormalSpecies::computeBondNumberMax(), SuperQuadricParticle::computeContactPoint(), ScrewsymmetricIntersectionOfWalls::computeDeltaZ(), Box::computeFlow(), FrictionInteraction::computeFrictionForce(), BaseCluster::computeInternalStructure(), ParticleHandler::computeLargestParticle(), SuperQuadricParticle::computeMass(), SinterInteraction::computeNormalForce(), DPMBase::computeOneTimeStep(), HertzianSinterInteraction::computeSinterForce(), SlidingFrictionInteraction::computeSlidingSpringSuperQuadric(), ParticleHandler::computeSmallestParticle(), StressStrainControlBoundary::computeStrainRate(), HertzianSinterNormalSpecies::computeTimeStep(), SinterNormalSpecies::computeTimeStep(), Mercury3D::computeWallForces(), SmallMatrix< numberOfRows, numberOfColumns >::computeWedgeStuffVector(), ConstantMassFlowMaserBoundary::ConstantMassFlowMaserBoundary(), DPMBase::constructor(), PSD::convertProbabilityDensityToProbabilityDensityNumberDistribution(), AngledPeriodicBoundary::copy(), PolydisperseInsertionBoundary::copy(), SubcriticalMaserBoundaryTEST::copyExtraParticles(), MPIInteraction< NormalForceInteraction, FrictionForceInteraction, AdhesiveForceInteraction >::copyFromInteraction(), MixedSpecies< NormalForceSpecies, FrictionForceSpecies, AdhesiveForceSpecies >::copyInto(), Species< NormalForceSpecies, FrictionForceSpecies, AdhesiveForceSpecies >::copyInto(), CurvyChute::createBottom(), Chute::createBottom(), DomainHandler::createMesh(), BaseInteraction::createMPIInteractionDataArray(), BoundaryHandler::createObject(), WallHandler::createObject(), ParticleHandler::createObject(), CubeDeletionBoundary::CubeDeletionBoundary(), PSD::cutHighSizeRatio(), PSD::cutoffCumulativeNumber(), DataFiles::DataFiles(), SubcriticalMaserBoundaryTEST::deactivateMaser(), SubcriticalMaserBoundary::deactivateMaser(), Domain::debugInformation(), DPMBase::decompose(), BaseInteraction::deleteMPIInteractionDataArray(), DeletionBoundary::DeletionBoundary(), SmallMatrix< numberOfRows, numberOfColumns >::determinant(), MPIContainer::directReceive(), MPIContainer::directSend(), DomainHandler::DomainHandler(), Box::downwardPass(), CGHandler::evaluateDataFiles(), CGHandler::evaluateRestartFiles(), SubcriticalMaserBoundaryTEST::extendBottom(), FileReader::FileReader(), DPMBase::fillDomainWithParticles(), PeriodicBoundaryHandler::findNewParticle(), DPMBase::findNextExistingDataFile(), FixedClusterInsertionBoundary::FixedClusterInsertionBoundary(), Domain::flushParticlesFromList(), LiquidMigrationWilletInteraction::form(), PolydisperseInsertionBoundary::generateParticle(), InsertionBoundary::generateParticle(), DPMBase::get1DParametersFromRunNumber(), DPMBase::get2DParametersFromRunNumber(), DPMBase::get3DParametersFromRunNumber(), LinearPlasticViscoelasticNormalSpecies::getCollisionTime(), SinterNormalSpecies::getCollisionTime(), LinearViscoelasticNormalSpecies::getCollisionTime(), SmallMatrix< numberOfRows, numberOfColumns >::getColumn(), Quaternion::getComponent(), Vec3D::getComponent(), SuperQuadricParticle::getContactPointPlanB(), NurbsSurface::getDistance(), VChute::getDistanceAndNormal(), HorizontalBaseScrew::getDistanceAndNormal(), SimpleDrumSuperquadrics::getDistanceAndNormal(), BasicIntersectionOfWalls::getDistanceAndNormal(), AxisymmetricIntersectionOfWalls::getDistanceAndNormal(), ScrewsymmetricIntersectionOfWalls::getDistanceAndNormal(), IntersectionOfWalls::getDistanceAndNormal(), Screw::getDistanceAndNormalLabCoordinates(), SimpleDrumSuperquadrics::getDistanceNormalOverlapSuperquadric(), BaseWall::getDistanceNormalOverlapSuperquadric(), BaseInteraction::getEffectiveMass(), BaseInteraction::getEffectiveRadius(), ChargedBondedInteraction::getElasticEnergy(), ParticleHandler::getFastestParticle(), ParticleHandler::getFastestParticleLocal(), BaseWall::getFurthestPointSuperQuadric(), ParticleHandler::getHighestPositionComponentParticle(), ParticleHandler::getHighestPositionComponentParticleLocal(), ParticleHandler::getHighestVelocityComponentParticle(), ParticleHandler::getHighestVelocityComponentParticleLocal(), BaseInteraction::getI(), BaseInteraction::getInteractionDetails(), MeshTriangle::getInteractionWith(), BaseWall::getInteractionWith(), BaseWall::getInteractionWithSuperQuad(), ParticleSpecies::getLargestInverseParticleMassLocal(), ParticleHandler::getLargestParticle(), ParticleHandler::getLowestPositionComponentParticle(), ParticleHandler::getLowestPositionComponentParticleLocal(), ParticleHandler::getLowestVelocityComponentParticle(), ParticleHandler::getLowestVelocityComponentParticleLocal(), SpeciesHandler::getMixedObject(), getName(), PossibleContact::getNext(), RNG::getNormalVariate(), ParticleHandler::getNumberOfRealObjectsLocal(), BasicIntersectionOfWalls::getObject(), BasicUnionOfWalls::getObject(), BaseHandler< T >::getObject(), BaseHandler< T >::getObjectById(), BaseHandler< T >::getObjectsById(), HGridOptimiser::getOptimalDistribution(), PossibleContact::getOtherParticle(), BaseInteraction::getP(), ParticleHandler::getParticleAttribute(), ParticleHandler::getParticleAttributeLocal(), InsertionBoundary::getParticleToCopy(), helpers::getPath(), TimeDependentPeriodicBoundary::getPlanewiseShift(), RNG::getPoissonVariate(), PossibleContact::getPrevious(), PSD::getRadiusByQuantile(), RNG::getRandomNumber(), SmallMatrix< numberOfRows, numberOfColumns >::getRow(), helpers::getSaveCountFromNumberOfSavesAndTimeMaxAndTimeStep(), ParticleHandler::getSmallestParticle(), Time2Finish::getTime2Finish(), ChuteWithHopper::getTimeStepRatio(), BaseParticle::getVolume(), SuperQuadricParticle::getVolume(), ParticleSpecies::getVolumeFromRadius(), Mercury3DRestart::getWallTime(), helpers::gnuplot(), mathsFunc::goldenSectionSearch(), HGridOptimiser::goldenSectionSearch(), helpers::readFromCommandLine< std::string >(), HGrid::HGrid(), Mercury2D::hGridFindContactsWithTargetCell(), Mercury3D::hGridFindContactsWithTargetCell(), Mercury2D::hGridFindParticleContacts(), Mercury3D::hGridFindParticleContacts(), Mercury3D::hGridGetInteractingParticleList(), Mercury2D::hGridHasParticleContacts(), MercuryBase::hGridNeedsRebuilding(), MercuryBase::hGridRebuild(), HGridOptimiser::histNumberParticlesPerCell(), HorizontalBaseScrew::HorizontalBaseScrew(), HorizontalScrew::HorizontalScrew(), InfiniteWall::InfiniteWall(), HGrid::info(), HGridOptimiser::initialise(), HGridOptimiser::initialisePolyFunc(), InsertionBoundary::insertParticle(), InsertionBoundary::insertParticles(), BaseCluster::insertParticles(), HGrid::insertParticleToHgrid(), InteractionHandler::InteractionHandler(), IntersectionOfWalls::IntersectionOfWalls(), BaseWall::intersectVTK(), MatrixSymmetric3D::inverse(), SmallMatrix< numberOfRows, numberOfColumns >::inverse(), ConstantMassFlowMaserBoundary::isCopying(), LeesEdwardsBoundary::LeesEdwardsBoundary(), SmallVector< numberOfRows >::length(), LevelSetWall::LevelSetWall(), Membrane::loadFromSTL(), helpers::loadingTest(), Membrane::loadVertexPositions(), main(), ChuteBottom::makeRoughBottom(), BaseVTKWriter< H >::makeVTKFileWithHeader(), Membrane::Membrane(), Mercury2D::Mercury2D(), Mercury3D::Mercury3D(), MercuryBase::MercuryBase(), LinearPlasticViscoelasticNormalSpecies::mix(), MixedSpecies< NormalForceSpecies, FrictionForceSpecies, AdhesiveForceSpecies >::mixAll(), Species< NormalForceSpecies, FrictionForceSpecies, AdhesiveForceSpecies >::mixAll(), MixedSpecies< NormalForceSpecies, FrictionForceSpecies, AdhesiveForceSpecies >::MixedSpecies(), SubcriticalMaserBoundaryTEST::modifyPeriodicComplexity(), helpers::more(), MPIContainer::MPIContainer(), helpers::normalAndTangentialLoadingTest(), Quaternion::normalise(), Vec3D::normalise(), NurbsSurface::NurbsSurface(), NurbsWall::NurbsWall(), helpers::objectivenessTest(), BaseParticle::oldRead(), BinaryReader::openFile(), SmallMatrix< numberOfRows, numberOfColumns >::operator()(), NumericalVector< std::complex< Mdouble > >::operator()(), SmallVector< numberOfRows >::operator()(), NumericalVector< std::complex< Mdouble > >::operator*(), SmallMatrix< numberOfRows, numberOfColumns >::operator*(), operator*(), NumericalVector< std::complex< Mdouble > >::operator+(), NumericalVector< std::complex< Mdouble > >::operator+=(), NumericalVector< std::complex< Mdouble > >::operator-(), NumericalVector< std::complex< Mdouble > >::operator-=(), operator<<(), SpeciesHandler::operator=(), BoundaryHandler::operator=(), InteractionHandler::operator=(), PeriodicBoundaryHandler::operator=(), DomainHandler::operator=(), ParticleHandler::operator=(), IntersectionOfWalls::operator=(), TriangulatedWall::operator=(), operator>>(), SmallMatrix< numberOfRows, numberOfColumns >::operator[](), NumericalVector< std::complex< Mdouble > >::operator[](), SmallVector< numberOfRows >::operator[](), CGFields::OrientationField::OrientationField(), DPMBase::outputInteractionDetails(), DPMBase::outputXBallsData(), SuperQuadricParticle::overlapFromContactPoint(), ParabolaChute::ParabolaChute(), ParhamiMcMeekingSinterInteraction::ParhamiMcMeekingSinterInteraction(), ParticleHandler::ParticleHandler(), SubcriticalMaserBoundaryTEST::performActionsBeforeAddingParticles(), PeriodicBoundary::PeriodicBoundary(), PeriodicBoundaryHandler::PeriodicBoundaryHandler(), PolydisperseInsertionBoundary::PolydisperseInsertionBoundary(), PossibleContactList::PossibleContactList(), PSD::printPSD(), Chute::printTime(), BaseCluster::printTime(), DPMBase::printTime(), PeriodicBoundaryHandler::processLocalGhostParticles(), PeriodicBoundaryHandler::processLocalInteractionData(), Domain::processReceivedBoundaryParticleData(), PeriodicBoundaryHandler::processReceivedGhostParticleData(), Domain::processReceivedInteractionData(), HGridOptimiser::radius2Cell(), RandomClusterInsertionBoundary::RandomClusterInsertionBoundary(), SubcriticalMaserBoundaryTEST::read(), csvReader::read(), FileReader::read(), InteractionHandler::read(), SuperQuadricParticle::read(), Domain::read(), SubcriticalMaserBoundary::read(), Chute::read(), ConstantMassFlowMaserBoundary::read(), BaseHandler< T >::read(), Membrane::read(), DPMBase::read(), SpeciesHandler::readAndAddObject(), BoundaryHandler::readAndAddObject(), InteractionHandler::readAndAddObject(), WallHandler::readAndCreateObject(), ParticleHandler::readAndCreateObject(), WallHandler::readAndCreateOldObject(), DPMBase::readArguments(), helpers::readArrayFromCommandLine(), helpers::readArrayFromFile(), DPMBase::readDataFile(), helpers::readFromCommandLine(), helpers::readFromFile(), Mercury3DRestart::readNextArgument(), DPMBase::readNextArgument(), DPMBase::readNextDataFile(), DPMBase::readNextFStatFile(), SpeciesHandler::readOldObject(), DPMBase::readParAndIniFiles(), DPMBase::readRestartFile(), WallHandler::readTriangleWall(), helpers::readVectorFromCommandLine(), TriangulatedWall::readVTK(), MPIContainer::receive(), RegimeSinterInteraction::RegimeSinterInteraction(), PossibleContactList::remove_ParticlePosibleContacts(), ParticleHandler::removeGhostObject(), BaseInteractable::removeInteraction(), BaseHandler< T >::removeLastObject(), ParticleHandler::removeObject(), BaseHandler< T >::removeObject(), DPMBase::removeOldFiles(), CGHandler::restart(), RestrictedWall::RestrictedWall(), LiquidMigrationWilletInteraction::rupture(), Membrane::saveAsSTL(), Screw::Screw(), ScrewsymmetricIntersectionOfWalls::ScrewsymmetricIntersectionOfWalls(), MPIContainer::send(), Domain::sendAndReceiveCount(), PeriodicBoundary::set(), ParhamiMcMeekingSinterSpecies::set(), NurbsSurface::set(), StressStrainControlBoundary::set(), InfiniteWall::set(), ChargedBondedSpecies::setAdhesionForceMax(), ReversibleAdhesiveSpecies::setAdhesionForceMax(), ChargedBondedSpecies::setAdhesionStiffness(), ReversibleAdhesiveSpecies::setAdhesionStiffness(), HeatFluidCoupledSpecies< NormalForceSpecies >::setAmbientEquilibriumMoistureContent(), HeatFluidCoupledSpecies< NormalForceSpecies >::setAmbientHumidity(), HeatFluidCoupledSpecies< NormalForceSpecies >::setAmbientTemperature(), HeatFluidCoupledSpecies< NormalForceSpecies >::setAmbientVapourConcentration(), SuperQuadricParticle::setAxesAndExponents(), CurvyChute::setBasalDensity(), CurvyChute::setBasalDisorder(), CurvyChute::setBasalSizeDispersity(), BondedSpecies::setBondDissipation(), ChargedBondedSpecies::setBondDissipation(), BondedSpecies::setBondForceMax(), ChargedBondedSpecies::setBondForceMax(), ChargedBondedSpecies::setCharge(), Chute::setChuteAngle(), Chute::setChuteAngleAndMagnitudeOfGravity(), ChuteWithHopper::setChuteLength(), BaseCluster::setClusterId(), SlidingFrictionSpecies::setCollisionTimeAndNormalAndTangentialRestitutionCoefficient(), SlidingFrictionSpecies::setCollisionTimeAndNormalAndTangentialRestitutionCoefficientNoDispt(), LinearViscoelasticNormalSpecies::setCollisionTimeAndRestitutionCoefficient(), BaseCluster::setCollisionTimeOverTimeStep(), SinterLinNormalSpecies::setComplianceZero(), SinterNormalSpecies::setComplianceZero(), Quaternion::setComponent(), Vec3D::setComponent(), SinterNormalSpecies::setConstantC1(), BaseNormalForce::setConstantRestitution(), LiquidBridgeWilletSpecies::setContactAngle(), LiquidMigrationWilletSpecies::setContactAngle(), ParticleSpecies::setDensity(), LinearViscoelasticNormalSpecies::setDissipation(), HertzianViscoelasticNormalSpecies::setDissipation(), HertzianSinterNormalSpecies::setDissipation(), LinearPlasticViscoelasticNormalSpecies::setDissipation(), SinterNormalSpecies::setDissipation(), SinterLinNormalSpecies::setDissipation(), LiquidMigrationWilletSpecies::setDistributionCoefficient(), PSD::setDistributionNormal(), DPMBase::setDomain(), BaseCluster::setDomainLimits(), HertzianViscoelasticNormalSpecies::setEffectiveElasticModulus(), HertzianViscoelasticNormalSpecies::setEffectiveElasticModulusAndEffectiveShearModulus(), HertzianViscoelasticNormalSpecies::setEffectiveElasticModulusAndPoissonRatio(), HertzianViscoelasticNormalSpecies::setEffectiveElasticModulusAndRestitutionCoefficient(), MindlinSpecies::setEffectiveShearModulus(), BaseCluster::setEnergyRatioTolerance(), HeatFluidCoupledSpecies< NormalForceSpecies >::setEvaporationCoefficientA(), HeatFluidCoupledSpecies< NormalForceSpecies >::setEvaporationCoefficientB(), SuperQuadricParticle::setExponents(), CGFields::OrientationField::setFields(), CGFields::LiquidMigrationFields::setFields(), Chute::setFixedParticleRadius(), SinterLinNormalSpecies::setFluidity(), PolydisperseInsertionBoundary::setGenerandum(), BaseCG::setH(), HeatFluidCoupledSpecies< NormalForceSpecies >::setHeatCapacity(), ThermalSpecies< NormalForceSpecies >::setHeatCapacity(), ChuteWithHopper::setHopper(), ChuteWithHopper::setHopperShift(), BaseCG::setHX(), BaseCG::setHY(), BaseCG::setHZ(), BaseWall::setIndSpecies(), BaseParticle::setIndSpecies(), Chute::setInflowParticleRadius(), Chute::setInflowVelocity(), Chute::setInflowVelocityVariance(), ChargedBondedSpecies::setInteractionDistance(), ReversibleAdhesiveSpecies::setInteractionDistance(), DomainHandler::setInteractionDistance(), SinterNormalSpecies::setInverseSinterViscosity(), HeatFluidCoupledSpecies< NormalForceSpecies >::setLatentHeatVaporization(), LiquidBridgeWilletSpecies::setLiquidBridgeVolume(), LiquidMigrationWilletSpecies::setLiquidBridgeVolumeMax(), LiquidMigrationWilletSpecies::setLiquidBridgeVolumeMin(), HeatFluidCoupledSpecies< NormalForceSpecies >::setLiquidDensity(), File::setlogarithmicSaveCount(), MeshTriangle::setMass(), BaseParticle::setMass(), BaseParticle::setMassForP3Statistics(), HeatFluidCoupledSpecies< NormalForceSpecies >::setMassTransferCoefficient(), DPMBase::setMax(), Chute::setMaxInflowParticleRadius(), DPMBase::setMeanVelocityAndKineticEnergy(), DPMBase::setMin(), Chute::setMinInflowParticleRadius(), File::setName(), PossibleContact::setNextPosition(), DPMBase::setNumberOfDomains(), BaseCluster::setNumberOfInternalStructurePoints(), DPMBase::setNumberOfOMPThreads(), BaseCluster::setNumberOfParticles(), RandomClusterInsertionBoundary::setNumberOfParticlesPerCluster(), StatisticsVector< T >::setNZ(), SinterNormalSpecies::setParhamiMcKeeping(), DPMBase::setParticleDimensions(), Membrane::setParticleRadius(), InsertionBoundary::setParticleToCopy(), HertzianSinterNormalSpecies::setPlasticParameters(), SinterNormalSpecies::setPlasticParameters(), LinearPlasticViscoelasticNormalSpecies::setPlasticParameters(), IntersectionOfWalls::setPointsAndLines(), MindlinSpecies::setPoissonRatio(), FixedClusterInsertionBoundary::setPositionsAndRadii(), PossibleContact::setPreviousPosition(), PSD::setPSDFromCSV(), SphericalWall::setRadius(), SimpleDrumSuperquadrics::setRadius(), SuperQuadricParticle::setRadius(), BaseCluster::setRadiusCluster(), BaseClusterInsertionBoundary::setRadiusMicroParticle(), BaseCluster::setRadiusParticle(), Domain::setRange(), FrictionSpecies::setRollingDissipation(), MindlinRollingTorsionSpecies::setRollingDissipation(), MindlinRollingTorsionSpecies::setRollingFrictionCoefficient(), FrictionSpecies::setRollingFrictionCoefficient(), MindlinRollingTorsionSpecies::setRollingFrictionCoefficientStatic(), FrictionSpecies::setRollingFrictionCoefficientStatic(), FrictionSpecies::setRollingStiffness(), Chute::setRoughBottomType(), SinterNormalSpecies::setSeparationDis(), SinterLinNormalSpecies::setSeparationDis(), LevelSetWall::setShapeCube(), LevelSetWall::setShapeCylinder(), LevelSetWall::setShapeDiamond(), LevelSetWall::setShapeFourSided(), LevelSetWall::setShapeSphere(), SinterNormalSpecies::setSinterAdhesion(), SinterLinNormalSpecies::setSinterAdhesion(), SinterNormalSpecies::setSinterForceAndTime(), HertzianSinterNormalSpecies::setSinterRate(), SinterLinNormalSpecies::setSinterRate(), SinterNormalSpecies::setSinterRate(), SinterNormalSpecies::setSinterType(), SinterLinNormalSpecies::setSinterType(), BaseCluster::setSizeDispersityParticle(), MindlinSpecies::setSlidingDissipation(), SlidingFrictionSpecies::setSlidingDissipation(), MindlinSpecies::setSlidingFrictionCoefficient(), SlidingFrictionSpecies::setSlidingFrictionCoefficient(), MindlinSpecies::setSlidingFrictionCoefficientStatic(), SlidingFrictionSpecies::setSlidingFrictionCoefficientStatic(), SlidingFrictionSpecies::setSlidingStiffness(), DPMBase::setSoftStop(), BaseInteractable::setSpecies(), BaseCluster::setSpecies(), Membrane::setSpringConstant(), LinearViscoelasticNormalSpecies::setStiffness(), CurvyChute::setSurface(), LiquidBridgeWilletSpecies::setSurfaceTension(), LiquidMigrationWilletSpecies::setSurfaceTension(), SinterLinNormalSpecies::setSurfTension(), SinterNormalSpecies::setSurfTension(), DPMBase::setSystemDimensions(), HeatFluidCoupledSpecies< NormalForceSpecies >::setThermalConductivity(), ThermalSpecies< NormalForceSpecies >::setThermalConductivity(), ChuteBottom::setThickness(), Membrane::setThickness(), ThermalParticle::setTimeDependentTemperature(), DPMBase::setTimeMax(), DPMBase::setTimeStep(), FrictionSpecies::setTorsionDissipation(), MindlinRollingTorsionSpecies::setTorsionDissipation(), FrictionSpecies::setTorsionFrictionCoefficient(), MindlinRollingTorsionSpecies::setTorsionFrictionCoefficient(), MindlinRollingTorsionSpecies::setTorsionFrictionCoefficientStatic(), FrictionSpecies::setTorsionFrictionCoefficientStatic(), FrictionSpecies::setTorsionStiffness(), ChuteBottom::setupInitialConditions(), Chute::setupInitialConditions(), BaseCluster::setupInitialConditions(), ChargedBondedSpecies::setVanDerWaalsForceMax(), InsertionBoundary::setVariableVolumeFlowRate(), BaseCluster::setVelocityDampingModulus(), DPMBase::setXMax(), DPMBase::setXMin(), DPMBase::setYMax(), DPMBase::setYMin(), DPMBase::setZMax(), DPMBase::setZMin(), DPMBase::signalHandler(), SimpleDrumSuperquadrics::SimpleDrumSuperquadrics(), SineWall::SineWall(), SmallMatrix< numberOfRows, numberOfColumns >::SmallMatrix(), SmallVector< numberOfRows >::SmallVector(), DPMBase::solve(), SmallMatrix< numberOfRows, numberOfColumns >::solve(), CGCoordinates::spaceEvenly(), Species< NormalForceSpecies, FrictionForceSpecies, AdhesiveForceSpecies >::Species(), SpeciesHandler::SpeciesHandler(), SphericalWall::SphericalWall(), Statistics(), StressStrainControlBoundary::StressStrainControlBoundary(), SubcriticalMaserBoundary::SubcriticalMaserBoundary(), SuperQuadricParticle::SuperQuadricParticle(), RNG::test(), TimeDependentPeriodicBoundary::TimeDependentPeriodicBoundary(), transformMercuryToVTK(), Multipole::TranslateMultipoleExpansionTo(), TriangulatedWall::TriangulatedWall(), DPMBase::updateGhostGrid(), PeriodicBoundaryHandler::updateMaserParticle(), Domain::updateParticlePosition(), PeriodicBoundaryHandler::updateParticles(), Domain::updateParticles(), PeriodicBoundaryHandler::updateParticleStatus(), MeshTriangle::updateVertexAndNormal(), Box::upwardPass(), MercuryBase::userHGridCellSize(), PSD::validateCumulativeDistribution(), PSD::validateProbabilityDensityDistribution(), DataFiles::write(), Domain::write(), PolydisperseInsertionBoundary::write(), InsertionBoundary::write(), SuperQuadricParticle::writeDebugMessageMiddleOfLoop(), SuperQuadricParticle::writeDebugMessageStep1(), SuperQuadricParticle::writeDebugMessageStep2(), SuperQuadricParticle::writeDebugMessageStep3(), Mercury3DRestart::writeOutputFiles(), DPMBase::writePythonFileForVTKVisualisation(), DataFiles::writeTimeStep(), LevelSetWall::writeToFile(), helpers::writeToFile(), BaseWall::writeVTK(), WallHandler::writeVTKBoundingBox(), AxisymmetricIntersectionOfWalls::~AxisymmetricIntersectionOfWalls(), BaseBoundary::~BaseBoundary(), BaseCluster::~BaseCluster(), BaseHandler< T >::~BaseHandler(), BaseInteractable::~BaseInteractable(), BaseInteraction::~BaseInteraction(), BaseParticle::~BaseParticle(), BaseSpecies::~BaseSpecies(), BaseWall::~BaseWall(), BasicIntersectionOfWalls::~BasicIntersectionOfWalls(), BasicUnionOfWalls::~BasicUnionOfWalls(), BoundaryHandler::~BoundaryHandler(), ClusterGenerator::~ClusterGenerator(), Coil::~Coil(), CubeDeletionBoundary::~CubeDeletionBoundary(), DeletionBoundary::~DeletionBoundary(), DomainHandler::~DomainHandler(), DropletBoundary::~DropletBoundary(), FileReader::~FileReader(), HeaterBoundary::~HeaterBoundary(), HGrid::~HGrid(), HorizontalBaseScrew::~HorizontalBaseScrew(), HorizontalScrew::~HorizontalScrew(), InfiniteWall::~InfiniteWall(), InteractionHandler::~InteractionHandler(), IntersectionOfWalls::~IntersectionOfWalls(), LevelSetWall::~LevelSetWall(), Membrane::~Membrane(), MercuryBase::~MercuryBase(), MixedSpecies< NormalForceSpecies, FrictionForceSpecies, AdhesiveForceSpecies >::~MixedSpecies(), NurbsWall::~NurbsWall(), ParabolaChute::~ParabolaChute(), ParticleHandler::~ParticleHandler(), PeriodicBoundary::~PeriodicBoundary(), PeriodicBoundaryHandler::~PeriodicBoundaryHandler(), RestrictedWall::~RestrictedWall(), Screw::~Screw(), ScrewsymmetricIntersectionOfWalls::~ScrewsymmetricIntersectionOfWalls(), SimpleDrumSuperquadrics::~SimpleDrumSuperquadrics(), SineWall::~SineWall(), Species< NormalForceSpecies, FrictionForceSpecies, AdhesiveForceSpecies >::~Species(), SpeciesHandler::~SpeciesHandler(), SphericalWall::~SphericalWall(), SubcriticalMaserBoundaryTEST::~SubcriticalMaserBoundaryTEST(), SuperQuadricParticle::~SuperQuadricParticle(), TimeDependentPeriodicBoundary::~TimeDependentPeriodicBoundary(), and TriangulatedWall::~TriangulatedWall().

LoggerOutput* loggerOutput

Declaration of the output functions.

If the output needs to be redirected, please swap the loggerOutput pointer to your preferred LoggerOutput instance, and make sure this exists until AFTER an std::exit() invocation. (e.g. clean up with std::atexit())

Definition at line 283 of file Logger.cc.

LL<Log::VERBOSE> VERBOSE

Verbose information.

Information which is not useful to anybody except those looking for weird behaviour. These should however still be clear in meaning.

Example: Finished creating a particle.

Default behaviour: ignore.

Definition at line 57 of file Logger.cc.

Referenced by NurbsSurface::getDistance(), main(), and BaseHandler< T >::read().

LL<Log::WARN> WARN

Warning log level.

Warning, as in, the program has detected a problem but does know a solution. The simulation can continue with this fix, but the user should look at fixing his / her simulation so this won't occur in the future.

Example: Setting a smaller Xmax than Xmin.

Default behaviour: log to std::cerr, returns afterwards.

Definition at line 54 of file Logger.cc.

Referenced by MPIInteraction< NormalForceInteraction, FrictionForceInteraction, AdhesiveForceInteraction >::copyFromInteraction(), MixedSpecies< NormalForceSpecies, FrictionForceSpecies, AdhesiveForceSpecies >::copyInto(), Species< NormalForceSpecies, FrictionForceSpecies, AdhesiveForceSpecies >::copyInto(), NurbsSurface::getDistance(), helpers::getPath(), helpers::gnuplot(), BaseVTKWriter< H >::makeVTKFileWithHeader(), SmallMatrix< numberOfRows, numberOfColumns >::operator*(), operator*(), helpers::readFromFile(), BaseHandler< T >::removeLastObject(), CGCoordinates::spaceEvenly(), transformMercuryToVTK(), and helpers::writeToFile().