simulator.hh File Reference
#include <opm/models/io/restart.hh>
#include <opm/models/utils/parametersystem.hh>
#include <opm/models/utils/basicproperties.hh>
#include <opm/models/utils/propertysystem.hh>
#include <opm/models/utils/timer.hh>
#include <opm/models/utils/timerguard.hh>
#include <opm/models/parallel/mpiutil.hh>
#include <opm/models/discretization/common/fvbaseproperties.hh>
#include <dune/common/parallel/mpihelper.hh>
#include <iostream>
#include <fstream>
#include <iomanip>
#include <vector>
#include <string>
#include <memory>
Include dependency graph for simulator.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Opm::Simulator< TypeTag >
 Manages the initializing and running of time dependent problems. More...
 
struct  Opm::Properties::Simulator< TypeTag, TTag::NumericModel >
 

Namespaces

namespace  Opm
 
namespace  Opm::detail
 
namespace  Opm::Properties
 

Macros

#define EWOMS_CATCH_PARALLEL_EXCEPTIONS_FATAL(code)
 

Functions

auto Opm::detail::getMPIHelperCommunication ()
 

Detailed Description

Manages the initializing and running of time dependent problems.

This class instantiates the grid, the model and the problem to be simlated and runs the simulation loop. The time axis is treated as a sequence of "episodes" which are defined as time intervals for which the problem exhibits boundary conditions and source terms that do not depend on time.

Macro Definition Documentation

◆ EWOMS_CATCH_PARALLEL_EXCEPTIONS_FATAL

#define EWOMS_CATCH_PARALLEL_EXCEPTIONS_FATAL (   code)
Value:
{ \
bool exceptionThrown = false; \
try { code; } \
catch (const Dune::Exception& e) { \
exceptionThrown = true; \
std::cerr << "Process " << comm.rank() << " threw a fatal exception: " \
<< e.what() << ". Abort!" << std::endl; \
} \
catch (const std::exception& e) { \
exceptionThrown = true; \
std::cerr << "Process " << comm.rank() << " threw a fatal exception: " \
<< e.what() << ". Abort!" << std::endl; \
} \
catch (...) { \
exceptionThrown = true; \
std::cerr << "Process " << comm.rank() << " threw a fatal exception. " \
<<" Abort!" << std::endl; \
} \
\
if (comm.max(exceptionThrown)) \
std::abort(); \
}
auto getMPIHelperCommunication()
Definition: simulator.hh:54