Peano 4
Loading...
Searching...
No Matches
ccz4-main.cpp File Reference
#include <iomanip>
#include "config.h"
#include "Constants.h"
#include "ccz4-main.h"
#include "exahype2/UnitTests.h"
#include "exahype2/UserInterface.h"
#include "observers/CreateGrid.h"
#include "observers/CreateGridAndConvergeLoadBalancing.h"
#include "observers/CreateGridButPostponeRefinement.h"
#include "observers/InitGrid.h"
#include "observers/PlotSolution.h"
#include "observers/TimeStep.h"
#include "peano4/peano.h"
#include "peano4/UnitTests.h"
#include "repositories/DataRepository.h"
#include "repositories/SolverRepository.h"
#include "repositories/StepRepository.h"
#include "tarch/UnitTests.h"
#include "peano4/grid/Spacetree.h"
#include "peano4/parallel/SpacetreeSet.h"
#include "tarch/logging/Log.h"
#include "tarch/logging/LogFilter.h"
#include "tarch/logging/Statistics.h"
#include "tarch/multicore/Core.h"
#include "tarch/multicore/multicore.h"
#include "tarch/multicore/otter.h"
#include "tarch/NonCriticalAssertions.h"
#include "tarch/tests/TreeTestCaseCollection.h"
#include "tarch/timing/Measurement.h"
#include "tarch/timing/Watch.h"
#include "toolbox/blockstructured/UnitTests.h"
#include "toolbox/loadbalancing/loadbalancing.h"
Include dependency graph for ccz4-main.cpp:

Go to the source code of this file.

Functions

bool selectNextAlgorithmicStep ()
 Decide which step to run next.
 
void step ()
 
int main (int argc, char **argv)
 Main routine of the SPH code.
 

Variables

tarch::logging::Log _log ("::")
 
tarch::timing::Measurement timePerMeshSwepMeasurement
 
tarch::timing::Measurement gridConstructionMeasurement
 
tarch::timing::Measurement timeStepMeasurement
 
tarch::timing::Measurement plotMeasurement
 

Function Documentation

◆ main()

int main ( int argc,
char ** argv )

Main routine of the SPH code.

Definition at line 470 of file ccz4-main.cpp.

References tarch::mpi::Rank::abort(), tarch::tests::TreeTestCaseCollection::addTestCase(), tarch::logging::Statistics::clear(), peano4::fillLookupTables(), tarch::timing::Measurement::getAccumulatedValue(), tarch::timing::Watch::getCalendarTime(), peano4::parallel::Node::getInstance(), tarch::logging::Statistics::getInstance(), tarch::mpi::Rank::getInstance(), tarch::multicore::Core::getInstance(), tarch::tests::TestCase::getNumberOfErrors(), exahype2::getUnitTests(), peano4::getUnitTests(), tarch::getUnitTests(), toolbox::blockstructured::getUnitTests(), tarch::timing::Measurement::getValue(), gridConstructionMeasurement, tarch::initNonCriticalAssertionEnvironment(), peano4::initParallelEnvironment(), peano4::initSingletons(), tarch::multicore::initSmartMPI(), tarch::mpi::Rank::isGlobalMaster(), logError, logInfo, OTTER_FINALISE, OTTER_INITIALISE, plotMeasurement, tarch::tests::TreeTestCaseCollection::run(), peano4::runTestsAndBenchmarks(), selectNextAlgorithmicStep(), tarch::timing::Measurement::setValue(), tarch::shutdownNonCriticalAssertionEnvironment(), peano4::shutdownParallelEnvironment(), peano4::shutdownSingletons(), tarch::multicore::shutdownSmartMPI(), tarch::timing::Watch::start(), step(), tarch::timing::Watch::stop(), timePerMeshSwepMeasurement, timeStepMeasurement, tarch::timing::Measurement::toString(), and tarch::logging::Statistics::writeToCSV().

Here is the call graph for this function:

◆ selectNextAlgorithmicStep()

bool selectNextAlgorithmicStep ( )

Decide which step to run next.

Control of the parallel grid construction

Returns
continues to run

[Additional mesh sweep case distinction]

[Additional mesh sweep case distinction]

Definition at line 67 of file ccz4-main.cpp.

References peano4::parallel::SpacetreeSet::getGridStatistics(), peano4::parallel::Node::getInstance(), peano4::parallel::SpacetreeSet::getInstance(), peano4::grid::GridStatistics::getMinH(), tarch::hasNonCriticalAssertionBeenViolated(), logDebug, logError, logInfo, logWarning, tarch::la::max(), peano4::parallel::Node::setNextProgramStep(), and toString().

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ step()

Variable Documentation

◆ _log

tarch::logging::Log _log("::") ( "::" )

Referenced by step().

◆ gridConstructionMeasurement

tarch::timing::Measurement gridConstructionMeasurement

Definition at line 54 of file ccz4-main.cpp.

Referenced by main(), and step().

◆ plotMeasurement

tarch::timing::Measurement plotMeasurement

Definition at line 56 of file ccz4-main.cpp.

Referenced by main(), and step().

◆ timePerMeshSwepMeasurement

tarch::timing::Measurement timePerMeshSwepMeasurement

Definition at line 53 of file ccz4-main.cpp.

Referenced by main().

◆ timeStepMeasurement

tarch::timing::Measurement timeStepMeasurement

Definition at line 55 of file ccz4-main.cpp.

Referenced by main(), and step().