MercuryDPM
Beta
|
Go to the source code of this file.
Functions | |
static void | printMessage (std::string module, std::string msg) |
static void | printError (std::string module, std::string msg) |
Variables | |
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_LOGLEVEL > | logger ("MercuryKernel") |
LoggerOutput | loggerOutputDefaultImpl |
LoggerOutput * | loggerOutput = &loggerOutputDefaultImpl |
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()) More... | |
|
static |
|
static |
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: Collission found between Particle #38201 and Wall #5
Default behaviour: ignore.
Definition at line 31 of file Logger.cc.
Referenced by BaseHandler< T >::BaseHandler(), and BaseHandler< T >::~BaseHandler().
LL<Log::DEFAULT> DEFAULT |
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.
Example: Negative timestep, Infinite end time and no override of the continuation function.
Default behaviour: log to std::cerr, followed by std::exit().
Definition at line 26 of file Logger.cc.
Referenced by BaseHandler< T >::getDPMBase(), BaseHandler< T >::getObject(), BaseHandler< T >::getObjectById(), helpers::getSaveCountFromNumberOfSavesAndTimeMaxAndTimestep(), main(), Species< NormalForceSpecies, FrictionForceSpecies, AdhesiveForceSpecies >::mixAll(), and BaseHandler< T >::removeObject().
LL<Log::FATAL> FATAL |
Fatal log level.
These are the loglevels which should be used to control the logger. They are declared here but defined in Logger.cpp
Fatal, as in, the program has suffered from the worst possible failure and there is no way it can gracefully recover.
Example: No memory allocations possible
Default behaviour: log to std::cerr, followed by std::exit().
Definition at line 25 of file Logger.cc.
Referenced by main(), and transformMercuryToVTK().
LL<Log::INFO> INFO |
Info log level.
Useful information, small oddities found which should be of no real effect to the user. Also information about the current state and progress of the program.
Example: Finished inserting particles.
Default behaviour: log to std::cout, returns afterwards.
Definition at line 28 of file Logger.cc.
Referenced by transformMercuryToVTK().
Logger<MERCURY_LOGLEVEL> logger("MercuryKernel") |
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 PossibleContactList::add_PossibleContact(), IntersectionOfWalls::addObject(), MaserBoundary::addParticleToMaser(), AxisymmetricIntersectionOfWalls::AxisymmetricIntersectionOfWalls(), BaseHandler< T >::BaseHandler(), BaseParticle::BaseParticle(), BaseWall::BaseWall(), BoundaryHandler::BoundaryHandler(), MercuryBase::checkParticleForInteraction(), Chute::Chute(), Chute::cleanChute(), BaseWall::clear(), Coil::Coil(), ParticleHandler::computeLargestParticle(), ParticleSpecies::computeMass(), ParticleHandler::computeSmallestParticle(), Chute::createBottom(), Vec3D::getComponent(), AxisymmetricIntersectionOfWalls::getDistanceAndNormal(), BaseHandler< T >::getDPMBase(), ParticleHandler::getFastestParticle(), ParticleHandler::getHighestPositionComponentParticle(), ParticleHandler::getHighestVelocityComponentParticle(), ParticleHandler::getLargestParticle(), ParticleHandler::getLightestParticle(), ParticleHandler::getLowestPositionComponentParticle(), ParticleHandler::getLowestVelocityComponentParticle(), ParticleSpecies::getMassFromRadius(), SpeciesHandler::getMixedObject(), PossibleContact::getNext(), BaseHandler< T >::getObject(), BaseHandler< T >::getObjectById(), PossibleContact::getPrevious(), helpers::getSaveCountFromNumberOfSavesAndTimeMaxAndTimestep(), ParticleHandler::getSmallestParticle(), ChuteWithHopper::getTimeStepRatio(), BaseParticle::getVolume(), HGrid::HGrid(), Mercury2D::hGridHasParticleContacts(), MercuryBase::hGridNeedsRebuilding(), MercuryBase::hGridRebuild(), InfiniteWall::InfiniteWall(), HGrid::insertParticleToHgrid(), InteractionHandler::InteractionHandler(), IntersectionOfWalls::IntersectionOfWalls(), main(), ChuteBottom::makeRoughBottom(), Mercury2D::Mercury2D(), Mercury3D::Mercury3D(), MercuryBase::MercuryBase(), Species< NormalForceSpecies, FrictionForceSpecies, AdhesiveForceSpecies >::mixAll(), InfiniteWall::move(), SpeciesHandler::operator=(), InteractionHandler::operator=(), BoundaryHandler::operator=(), ParticleHandler::operator=(), WallHandler::operator=(), IntersectionOfWalls::operator=(), ParticleHandler::ParticleHandler(), PossibleContactList::PossibleContactList(), HGridOptimiser::radius2Cell(), BaseHandler< T >::read(), DPMBase::read(), SpeciesHandler::readObject(), BoundaryHandler::readObject(), WallHandler::readObject(), ParticleHandler::readObject(), SpeciesHandler::readOldObject(), WallHandler::readOldObject(), ParticleHandler::readOldObject(), PossibleContactList::remove_ParticlePosibleContacts(), BaseHandler< T >::removeLastObject(), BaseHandler< T >::removeObject(), Screw::Screw(), InfiniteWall::set(), Chute::setChuteAngle(), Chute::setChuteAngleAndMagnitudeOfGravity(), ChuteWithHopper::setChuteLength(), Vec3D::setComponent(), ParticleSpecies::setDensity(), Chute::setFixedParticleRadius(), ChuteWithHopper::setHopper(), ChuteWithHopper::setHopperShift(), BaseParticle::setIndSpecies(), BaseParticle::setInertia(), Chute::setInflowParticleRadius(), Chute::setInflowVelocity(), Chute::setInflowVelocityVariance(), BaseParticle::setMass(), Chute::setMaxInflowParticleRadius(), Chute::setMinInflowParticleRadius(), PossibleContact::setNextPosition(), PossibleContact::setPreviousPosition(), Chute::setRoughBottomType(), ChuteBottom::setThickness(), ChuteBottom::setupInitialConditions(), Chute::setupInitialConditions(), SpeciesHandler::SpeciesHandler(), transformMercuryToVTK(), MercuryBase::userHGridCellSize(), WallHandler::WallHandler(), AxisymmetricIntersectionOfWalls::~AxisymmetricIntersectionOfWalls(), BaseHandler< T >::~BaseHandler(), BaseParticle::~BaseParticle(), BaseWall::~BaseWall(), BoundaryHandler::~BoundaryHandler(), Coil::~Coil(), HGrid::~HGrid(), InfiniteWall::~InfiniteWall(), InteractionHandler::~InteractionHandler(), IntersectionOfWalls::~IntersectionOfWalls(), MercuryBase::~MercuryBase(), ParticleHandler::~ParticleHandler(), Screw::~Screw(), SpeciesHandler::~SpeciesHandler(), and WallHandler::~WallHandler().
LoggerOutput* loggerOutput = &loggerOutputDefaultImpl |
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 110 of file Logger.cc.
Referenced by DPMBase::constructor().
LoggerOutput loggerOutputDefaultImpl |
LL<Log::VERBOSE> VERBOSE |
Verbose information.
Information which is not useful to anybody except those looking for weird behaviour and statistics. These should however still be clear in meaning.
Example: Inserted 381 particles in Insertion Boundary #1.
Default behaviour: ignore.
Definition at line 30 of file Logger.cc.
Referenced by 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 27 of file Logger.cc.
Referenced by BaseHandler< T >::removeLastObject(), and transformMercuryToVTK().