Output module for post-processing. More...
Public Member Functions | |
| ArcanePostProcessingModule (const ModuleBuildInfo &mbi) | |
| VersionInfo | versionInfo () const override |
| Module version. | |
| void | exportData () override |
| Checks and writes the values for post-processing. | |
| void | exportDataStart () override |
| Entry point at the beginning of an iteration. | |
| void | postProcessingStartInit () override |
| void | postProcessingInit () override |
| void | postProcessingExit () override |
| Post-processing information at the end of the calculation loop. | |
| Public Member Functions inherited from ArcaneArcanePostProcessingObject | |
| ArcaneArcanePostProcessingObject (const Arcane::ModuleBuildInfo &mb) | |
| CaseOptionsArcanePostProcessing * | options () const |
| Options du jeu de données du module. | |
| Public Member Functions inherited from Arcane::BasicModule | |
| ~BasicModule () override | |
| Destructor. | |
| Public Member Functions inherited from Arcane::AbstractModule | |
| AbstractModule (const ModuleBuildInfo &) | |
| Constructor from a ModuleBuildInfo. | |
| virtual | ~AbstractModule () |
| Destructor. | |
| String | name () const override |
| Module name. | |
| ISession * | session () const override |
| Session associated with the module. | |
| ISubDomain * | subDomain () const override |
| Sub-domain associated with the module. | |
| IMesh * | defaultMesh () const override |
| Default mesh for this module. | |
| MeshHandle | defaultMeshHandle () const override |
| Default mesh for this module. | |
| IParallelMng * | parallelMng () const override |
| Message passing parallelism manager. | |
| IAcceleratorMng * | acceleratorMng () const override |
| Accelerator manager. | |
| ITraceMng * | traceMng () const override |
| Trace manager. | |
| void | setUsed (bool v) override |
| Sets the module usage flag. | |
| bool | used () const override |
| Returns the module usage status. | |
| void | setDisabled (bool v) override |
| Sets the module activation flag. | |
| bool | disabled () const override |
| Returns the module activation status. | |
| bool | isGarbageCollected () const override |
| Indicates if the module uses a Garbage collection system. | |
| Public Member Functions inherited from Arcane::TraceAccessor | |
| TraceAccessor (ITraceMng *m) | |
| Constructs an accessor via the trace manager m. | |
| TraceAccessor (const TraceAccessor &rhs) | |
| Copy constructor. | |
| TraceAccessor & | operator= (const TraceAccessor &rhs) |
| Copy assignment operator. | |
| virtual | ~TraceAccessor () |
| Frees resources. | |
| ITraceMng * | traceMng () const |
| Trace manager. | |
| TraceMessage | info () const |
| Flow for an information message. | |
| TraceMessage | pinfo () const |
| Flow for a parallel information message. | |
| TraceMessage | info (char category) const |
| Flow for an information message of a given category. | |
| TraceMessage | pinfo (char category) const |
| Flow for a parallel information message of a given category. | |
| TraceMessage | info (bool v) const |
| Flow for an information message. | |
| TraceMessage | warning () const |
| Flow for a warning message. | |
| TraceMessage | pwarning () const |
| TraceMessage | error () const |
| Flow for an error message. | |
| TraceMessage | perror () const |
| TraceMessage | log () const |
| Flow for a log message. | |
| TraceMessage | plog () const |
| Flow for a log message. | |
| TraceMessage | logdate () const |
| Flow for a log message preceded by the date. | |
| TraceMessage | fatal () const |
| Flow for a fatal error message. | |
| TraceMessage | pfatal () const |
| Flow for a parallel fatal error message. | |
| TraceMessageDbg | debug (Trace::eDebugLevel=Trace::Medium) const |
| Flow for a debug message. | |
| Trace::eDebugLevel | configDbgLevel () const |
| Debug level of the configuration file. | |
| TraceMessage | info (Int32 verbose_level) const |
| Flow for an information message of a given level. | |
| TraceMessage | linfo () const |
| Flow for an information message with the local information level of this instance. | |
| TraceMessage | linfo (Int32 relative_level) const |
| Flow for an information message with the local information level of this instance. | |
| void | fatalMessage (const StandaloneTraceMessage &o) const |
| Public Member Functions inherited from Arcane::IModule | |
| virtual | ~IModule () |
| Destructor. | |
| Public Member Functions inherited from Arcane::MeshAccessor | |
| MeshAccessor (ISubDomain *sd) | |
| MeshAccessor (IMesh *mesh) | |
| MeshAccessor (const MeshHandle &mesh_handle) | |
| Integer | nbCell () const |
| Returns the number of cells in the mesh. | |
| Integer | nbFace () const |
| Returns the number of faces in the mesh. | |
| Integer | nbEdge () const |
| Returns the number of edges in the mesh. | |
| Integer | nbNode () const |
| Returns the number of nodes in the mesh. | |
| VariableNodeReal3 & | nodesCoordinates () const |
| Returns the coordinates of the mesh nodes. | |
| NodeGroup | allNodes () const |
| Returns the group containing all nodes. | |
| EdgeGroup | allEdges () const |
| Returns the group containing all edges. | |
| FaceGroup | allFaces () const |
| Returns the group containing all faces. | |
| CellGroup | allCells () const |
| Returns the group containing all cells. | |
| FaceGroup | outerFaces () const |
| Returns the group containing all boundary faces. | |
| NodeGroup | ownNodes () const |
| Returns the group containing all nodes specific to this domain. | |
| CellGroup | ownCells () const |
| Returns the group containing all cells specific to this domain. | |
| FaceGroup | ownFaces () const |
| Group containing all faces specific to this domain. | |
| EdgeGroup | ownEdges () const |
| Group containing all edges specific to this domain. | |
| IMesh * | mesh () const |
| const MeshHandle & | meshHandle () const |
| Public Member Functions inherited from Arcane::CommonVariables | |
| CommonVariables (IModule *c) | |
| Constructs the references of the common variables for the module c. | |
| CommonVariables (IVariableMng *variable_mng) | |
| Constructs the references of the common variables for the manager variable_mng. | |
| CommonVariables (ISubDomain *sd) | |
| Constructs the references of the common variables for the subdomain sd. | |
| virtual | ~CommonVariables () |
| Releases resources. | |
| Int32 | globalIteration () const |
| Current iteration number. | |
| Real | globalTime () const |
| Current time. | |
| Real | globalOldTime () const |
| Previous current time. | |
| Real | globalFinalTime () const |
| Final time of the simulation. | |
| Real | globalDeltaT () const |
| Current Delta T. | |
| Real | globalCPUTime () const |
| CPU time used (in seconds). | |
| Real | globalOldCPUTime () const |
| Previous CPU time used (in seconds). | |
| Real | globalElapsedTime () const |
| Clock time (elapsed) used (in seconds). | |
| Real | globalOldElapsedTime () const |
| Previous clock time (elapsed) used (in seconds). | |
Private Member Functions | |
| void | _readConfig () |
| void | _saveAtTime (Real) |
| void | _checkCreateOutputDir () |
| void | _markCurrentIterationPostProcessing () |
| Marks variables as post-processed during this iteration. | |
| void | _resetCurrentIterationPostProcessing () |
| Removes tags from variables post-processed during this iteration. | |
| void | _checkExternalPlugin () |
Private Attributes | |
| OutputChecker | m_output_checker |
| OutputChecker | m_history_output_checker |
| VariableArrayReal | m_times |
| Time points of saves. | |
| bool | m_is_output_active = true |
| bool | m_is_output_at_current_iteration = false |
| Indicates if outputs are performed during this iteration. | |
| Directory | m_output_directory |
| Output directory. | |
| bool | m_output_dir_created = false |
| true if directory created. | |
| VariableList | m_variables |
| List of variables to export. | |
| ItemGroupList | m_groups |
| List of groups to export. | |
| Timer * | m_post_processor_timer = nullptr |
| Timer for time spent writing. | |
| bool | m_is_plugin_initialized = false |
Output module for post-processing.
When this module is connected, it manages the outputs for post-processing.
If no variable is specified, no output is performed. The #m_do_output field is then false.
Definition at line 61 of file ArcanePostProcessingModule.cc.
|
explicit |
Definition at line 116 of file ArcanePostProcessingModule.cc.
|
override |
Definition at line 133 of file ArcanePostProcessingModule.cc.
|
private |
Definition at line 216 of file ArcanePostProcessingModule.cc.
|
private |
Definition at line 433 of file ArcanePostProcessingModule.cc.
|
private |
Marks variables as post-processed during this iteration.
Definition at line 420 of file ArcanePostProcessingModule.cc.
References Arcane::IVariable::addTag(), m_is_output_at_current_iteration, m_variables, and Arcane::IVariable::TAG_POST_PROCESSING_AT_THIS_ITERATION.
Referenced by exportDataStart().
|
private |
AMR
Definition at line 142 of file ArcanePostProcessingModule.cc.
References Arcane::IVariable::addTag(), ARCANE_FATAL, Arcane::AbstractModule::defaultMesh(), Arcane::ISubDomain::defaultMesh(), Arcane::IVariableMng::findMeshVariable(), Arcane::IK_Cell, Arcane::IK_Edge, Arcane::IK_Face, Arcane::IK_Node, Arcane::TraceAccessor::info(), Arcane::IVariable::itemKind(), m_groups, m_is_output_active, m_variables, Arcane::ItemGroup::name(), Arcane::ItemGroup::null(), ArcaneArcanePostProcessingObject::options(), Arccore::ArrayView< T >::size(), Arcane::AbstractModule::subDomain(), Arcane::IVariable::TAG_POST_PROCESSING, Arcane::ISubDomain::variableMng(), and Arcane::TraceAccessor::warning().
|
private |
Removes tags from variables post-processed during this iteration.
Definition at line 404 of file ArcanePostProcessingModule.cc.
References m_is_output_at_current_iteration, m_variables, Arcane::IVariable::removeTag(), and Arcane::IVariable::TAG_POST_PROCESSING_AT_THIS_ITERATION.
|
private |
Definition at line 362 of file ArcanePostProcessingModule.cc.
|
overridevirtual |
Checks and writes the values for post-processing.
Implements ArcaneArcanePostProcessingObject.
Definition at line 317 of file ArcanePostProcessingModule.cc.
References Arcane::ISubDomain::commonVariables(), Arcane::CommonVariables::globalTime(), m_is_output_at_current_iteration, and Arcane::AbstractModule::subDomain().
|
overridevirtual |
Entry point at the beginning of an iteration.
Implements ArcaneArcanePostProcessingObject.
Definition at line 332 of file ArcanePostProcessingModule.cc.
References _markCurrentIterationPostProcessing(), Arcane::ISubDomain::commonVariables(), Arcane::CommonVariables::globalIteration(), Arcane::CommonVariables::globalOldTime(), Arcane::CommonVariables::globalTime(), m_is_output_active, m_is_output_at_current_iteration, Arcane::ITimeHistoryMng::setActive(), Arcane::AbstractModule::subDomain(), and Arcane::ISubDomain::timeHistoryMng().
|
overridevirtual |
Post-processing information at the end of the calculation loop.
Performs an output for post-processing if we are at the final time. This output is only done at the final time and guarantees that the file will be the same regardless of the number of protections performed.
Implements ArcaneArcanePostProcessingObject.
Definition at line 286 of file ArcanePostProcessingModule.cc.
References Arcane::IPostProcessorWriter::close(), Arcane::ISubDomain::commonVariables(), Arcane::CommonVariables::globalTime(), Arcane::TraceAccessor::info(), m_post_processor_timer, ArcaneArcanePostProcessingObject::options(), and Arcane::AbstractModule::subDomain().
|
overridevirtual |
Implements ArcaneArcanePostProcessingObject.
Definition at line 229 of file ArcanePostProcessingModule.cc.
|
overridevirtual |
Implements ArcaneArcanePostProcessingObject.
Definition at line 265 of file ArcanePostProcessingModule.cc.
|
inlineoverridevirtual |
Module version.
Reimplemented from Arcane::AbstractModule.
Definition at line 71 of file ArcanePostProcessingModule.cc.
|
private |
List of groups to export.
Definition at line 93 of file ArcanePostProcessingModule.cc.
Referenced by _readConfig().
|
private |
Definition at line 85 of file ArcanePostProcessingModule.cc.
|
private |
true if outputs are active
Definition at line 87 of file ArcanePostProcessingModule.cc.
Referenced by _readConfig(), and exportDataStart().
|
private |
Indicates if outputs are performed during this iteration.
Definition at line 89 of file ArcanePostProcessingModule.cc.
Referenced by _markCurrentIterationPostProcessing(), _resetCurrentIterationPostProcessing(), exportData(), and exportDataStart().
|
private |
Definition at line 95 of file ArcanePostProcessingModule.cc.
|
private |
Definition at line 84 of file ArcanePostProcessingModule.cc.
|
private |
true if directory created.
Definition at line 91 of file ArcanePostProcessingModule.cc.
|
private |
Output directory.
Definition at line 90 of file ArcanePostProcessingModule.cc.
|
private |
Timer for time spent writing.
Definition at line 94 of file ArcanePostProcessingModule.cc.
Referenced by postProcessingExit().
|
private |
Time points of saves.
Definition at line 86 of file ArcanePostProcessingModule.cc.
|
private |
List of variables to export.
Definition at line 92 of file ArcanePostProcessingModule.cc.
Referenced by _markCurrentIterationPostProcessing(), _readConfig(), and _resetCurrentIterationPostProcessing().