2 #include "alsutils/config.hpp" 6 #include <boost/python.hpp> 45 const std::string pythonCode;
46 const std::string pythonClass;
50 boost::python::object mainModule;
51 boost::python::object mainNamespace;
53 boost::python::object classInstance;
55 boost::python::dict datasetsConserved;
57 std::vector<real*> rawPointersConserved;
63 boost::python::object makeGrid(
const grid::Grid& grid);
65 bool datasetsInitialized =
false;
virtual void write(const volume::Volume &conservedVariables, const grid::Grid &grid, const simulator::TimestepInformation ×tepInformation)
write writes the data to disk
Definition: PythonScript.cpp:73
Definition: PythonInterpreter.hpp:31
simulator::SimulatorParameters & parameters
Definition: CellComputerFactory.cpp:60
virtual void finalize(const grid::Grid &grid, const simulator::TimestepInformation ×tepInformation) override
This method should be called at the end of the simulation.
Definition: PythonScript.cpp:100
Holds general parameters based on a boost::property tree.
Definition: Parameters.hpp:24
The Volume class represents a volume (a collection of cells with values for each cell (eg...
Definition: Volume.hpp:30
alsfvm::shared_ptr< Configuration > ConfigurationPtr
Definition: Configuration.hpp:53
const grid::Grid & grid
Definition: NumericalFluxFactory.cpp:104
PythonScript(const std::string &basename, const Parameters ¶meters, alsutils::mpi::ConfigurationPtr mpiConfigration=nullptr)
Definition: PythonScript.cpp:42
The Writer class is an abstract interface to represent output writers.
Definition: Writer.hpp:28
Various utility functions to implement the tecno flux.
Definition: types.hpp:30
Definition: PythonScript.hpp:19