Peano 4
Loading...
Searching...
No Matches
Reports.cpph
Go to the documentation of this file.
1#include "repositories/GlobalState.h"
2#include "tarch/mpi/Rank.h"
3
4template <typename Particle>
5void swift2::statistics::reportSearchRadiusVTDt(const std::string& particleName) {
6 if (tarch::mpi::Rank::getInstance().isGlobalMaster()) {
7 static tarch::logging::Log _log("swift2::statistics");
8
9 logInfo("reportSearchRadiusVTDt()", "===============");
10 logInfo("reportSearchRadiusVTDt()", particleName);
11 logInfo("reportSearchRadiusVTDt()", "===============");
12 logInfo("reportSearchRadiusVTDt()", "search-radius_{min}=" << Particle::getSpecies().getMinSearchRadius());
13 logInfo("reportSearchRadiusVTDt()", "search-radius_{max}=" << Particle::getSpecies().getMaxSearchRadius());
14 logInfo("reportSearchRadiusVTDt()", "v_{min}=" << Particle::getSpecies().getMinVelocity());
15 logInfo("reportSearchRadiusVTDt()", "v_{max}=" << Particle::getSpecies().getMaxVelocity());
16 logInfo("reportSearchRadiusVTDt()", "t=" << Particle::getSpecies().getMinTimeStamp());
17 logInfo("reportSearchRadiusVTDt()", "dt=" << Particle::getSpecies().getMinTimeStepSize());
18 }
19}
#define logInfo(methodName, logMacroMessageStream)
Wrapper macro around tarch::tarch::logging::Log to improve logging.
Definition Log.h:411
Log Device.
Definition Log.h:516
static Rank & getInstance()
This operation returns the singleton instance.
Definition Rank.cpp:538
void reportSearchRadiusVTDt(const std::string &particleName)
Report the search radius.
Definition Reports.cpph:5
tarch::logging::Log _log("examples::unittests")