|
TRUST 1.9.8
HPC thermohydraulic platform
|
classe Ecrire_YAML Use this to generate a yaml file that will then be read by the PDI library (for checkpoint/restart or for domain partitioning) More...
#include <Ecrire_YAML.h>
Public Member Functions | |
| Ecrire_YAML () | |
| void | write_checkpoint_file (const std::string &yaml_fname) |
| Generate the YAML file that will be read for checkpoint. | |
| void | write_restart_file (const std::string &yaml_fname) |
| Generate the YAML file that will be read for restart. | |
| void | write_champ_fonc_restart_file (const std::string &filename) |
| Generate the YAML file that will be read with champ_fonc_reprise. | |
| void | add_pb_base (const Probleme_base &pb_base, const Nom &full_file_name) |
| void | add_field (Nom pb, Nom nom, int nb_dim) |
| Adds a field (name+dimension) to the block of the problem pb_name in the YAML file. | |
| void | add_scalar (Nom pb, Nom nom, Nom type, bool is_local) |
| Adds a scalar (name+type) to the block of the problem pb_name in the YAML file. | |
classe Ecrire_YAML Use this to generate a yaml file that will then be read by the PDI library (for checkpoint/restart or for domain partitioning)
The data that will be written are the ones that have been set in Equation_base::data_a_sauvegarder() (+overloads) and Postraitement_base::data_a_sauvegarder() (+ overloads)
These data must then be shared with PDI (during the simulation) in order to trigger the wanted IO operations, see also the class TRUST_2_PDI
The structure of the file is as follows (indentation matters!):
Metadata: mdata1 : type # for scalar mdata2 : { type: array, subtype: ..., size: ... } # for arrays ... Data: data1 : type ... Plugins: plugin1: plugin2: ...
We're using the HDF5 plugin. Here is an example of how to declare a HDF5 dataset (structure gathering data of the same type) and write our TRUST data into it:
Definition at line 63 of file Ecrire_YAML.h.
|
inline |
Definition at line 66 of file Ecrire_YAML.h.
Adds a field (name+dimension) to the block of the problem pb_name in the YAML file.
Definition at line 560 of file Ecrire_YAML.cpp.
|
inline |
Definition at line 76 of file Ecrire_YAML.h.
Adds a scalar (name+type) to the block of the problem pb_name in the YAML file.
Definition at line 583 of file Ecrire_YAML.cpp.
| void Ecrire_YAML::write_champ_fonc_restart_file | ( | const std::string & | filename | ) |
Generate the YAML file that will be read with champ_fonc_reprise.
Definition at line 47 of file Ecrire_YAML.cpp.
| void Ecrire_YAML::write_checkpoint_file | ( | const std::string & | yaml_fname | ) |
Generate the YAML file that will be read for checkpoint.
Definition at line 23 of file Ecrire_YAML.cpp.
| void Ecrire_YAML::write_restart_file | ( | const std::string & | yaml_fname | ) |
Generate the YAML file that will be read for restart.
Definition at line 35 of file Ecrire_YAML.cpp.