|
Peano
|
Output artefact which writes one DaStGen2 data model into the project. More...


Public Member Functions | |
| __init__ (self, data_model, file_name_without_extension) | |
| generate (self, overwrite, directory) | |
Protected Attributes | |
| _data_model | |
| _file_name_without_extension | |
Output artefact which writes one DaStGen2 data model into the project.
The generators below do not write their data models straightaway, as they do not know the directory of the project when they construct the output. Instead, they register one artefact per data model with the output, which writes the header and the implementation once the output is generated into the project directory, as the output calls generate() on each of its artefacts.
Definition at line 19 of file DaStGen2.py.
| peano4.api.datamodel.DaStGen2.DaStGen2Artefact.__init__ | ( | self, | |
| data_model, | |||
| file_name_without_extension | |||
| ) |
| data_model | dastgen2.DataModel Data model to write. Its full qualified name has to be set already. |
| file_name_without_extension | str File name relative to the project directory. |
Definition at line 32 of file DaStGen2.py.
| peano4.api.datamodel.DaStGen2.DaStGen2Artefact.generate | ( | self, | |
| overwrite, | |||
| directory | |||
| ) |
Definition at line 46 of file DaStGen2.py.
References solvers.elliptic.AMRMarker.AMRMarker._data_model, dastgen2.aspects.Aspect.Aspect._data_model, dastgen2.aspects.MPIForSmartPointers.MPIForSmartPointers._data_model, exaparty.api.particle.Particle.Particle.SpeciesAspect._data_model, peano4.api.datamodel.DaStGen2.DaStGen2Artefact._data_model, and peano4.api.datamodel.DaStGen2.DaStGen2Artefact._file_name_without_extension.
Referenced by peano4.api.Project.Project.build().

|
protected |
Definition at line 42 of file DaStGen2.py.
Referenced by solvers.elliptic.AMRMarker.AMRMarker.add_to_Peano4_datamodel(), solvers.elliptic.AMRMarker.AMRMarker.add_use_data_statements_to_Peano4_solver_step(), peano4.api.datamodel.DaStGen2.DaStGen2Artefact.generate(), dastgen2.aspects.MPI.MPI.get_implementation(), dastgen2.aspects.MPIForSmartPointers.MPIForSmartPointers.get_implementation(), dastgen2.aspects.MPIForSmartPointers.MPIForSmartPointers.get_include(), and dastgen2.aspects.Aspect.Aspect.set_model().
|
protected |
Definition at line 43 of file DaStGen2.py.
Referenced by peano4.api.datamodel.DaStGen2.DaStGen2Artefact.generate().