Ecrire_YAML#

#include <Ecrire_YAML.h>
Brief description

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)

How to reference this class#

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`Ecrire\_YAML <class-ecrire-yaml>`
[Ecrire\_YAML](#class-ecrire-yaml)

Detailed description#

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:

List of Public Methods#

List of Private Methods#

Complete Member Function Documentation#

add_field#

Definition
void Ecrire_YAML::add_field(Nom pb, Nom nom, int nb_dim)
Brief description

Adds a field (name + dimension) to the block of the problem pb_name in the YAML file.

Detailed description
References
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`void Ecrire_YAML::add_field(Nom pb, Nom nom, int nb_dim) <ecrire-yaml-public-void-ecrire-yaml-add-field-nom-pb-nom-nom-int-nb-dim>`
[void Ecrire_YAML::add_field(Nom pb, Nom nom, int nb_dim)](#ecrire-yaml-public-void-ecrire-yaml-add-field-nom-pb-nom-nom-int-nb-dim)

add_pb_base#

Definition
void Ecrire_YAML::add_pb_base(const Probleme_base &pb_base, const Nom &file_name)
Brief description
Detailed description
References
Referenced By
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`void Ecrire_YAML::add_pb_base(const Probleme_base &pb_base, const Nom &file_name) <ecrire-yaml-public-void-ecrire-yaml-add-pb-base-const-probleme-base-ref-pb-base-const-nom-ref-file-name>`
[void Ecrire_YAML::add_pb_base(const Probleme_base &pb_base, const Nom &file_name)](#ecrire-yaml-public-void-ecrire-yaml-add-pb-base-const-probleme-base-ref-pb-base-const-nom-ref-file-name)

add_scalar#

Definition
void Ecrire_YAML::add_scalar(Nom pb, Nom nom, Nom type, bool is_local)
Brief description

Adds a scalar (name + type) to the block of the problem pb_name in the YAML file.

Detailed description
References
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`void Ecrire_YAML::add_scalar(Nom pb, Nom nom, Nom type, bool is_local) <ecrire-yaml-public-void-ecrire-yaml-add-scalar-nom-pb-nom-nom-nom-type-bool-is-local>`
[void Ecrire_YAML::add_scalar(Nom pb, Nom nom, Nom type, bool is_local)](#ecrire-yaml-public-void-ecrire-yaml-add-scalar-nom-pb-nom-nom-nom-type-bool-is-local)

Ecrire_YAML#

Definition
Ecrire_YAML::Ecrire_YAML()
Brief description
Detailed description
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`Ecrire_YAML::Ecrire_YAML() <ecrire-yaml-public-ecrire-yaml-ecrire-yaml>`
[Ecrire_YAML::Ecrire_YAML()](#ecrire-yaml-public-ecrire-yaml-ecrire-yaml)

write_champ_fonc_restart_file#

Definition
void Ecrire_YAML::write_champ_fonc_restart_file(const std::string &filename)
Brief description

Generate the YAML file that will be read with champ_fonc_reprise.

Detailed description
References
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`void Ecrire_YAML::write_champ_fonc_restart_file(const std::string &filename) <ecrire-yaml-public-void-ecrire-yaml-write-champ-fonc-restart-file-const-std-string-ref-filename>`
[void Ecrire_YAML::write_champ_fonc_restart_file(const std::string &filename)](#ecrire-yaml-public-void-ecrire-yaml-write-champ-fonc-restart-file-const-std-string-ref-filename)

write_checkpoint_file#

Definition
void Ecrire_YAML::write_checkpoint_file(const std::string &yaml_fname)
Brief description

Generate the YAML file that will be read for checkpoint.

Detailed description
References
Referenced By
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`void Ecrire_YAML::write_checkpoint_file(const std::string &yaml_fname) <ecrire-yaml-public-void-ecrire-yaml-write-checkpoint-file-const-std-string-ref-yaml-fname>`
[void Ecrire_YAML::write_checkpoint_file(const std::string &yaml_fname)](#ecrire-yaml-public-void-ecrire-yaml-write-checkpoint-file-const-std-string-ref-yaml-fname)

write_restart_file#

Definition
void Ecrire_YAML::write_restart_file(const std::string &yaml_fname)
Brief description

Generate the YAML file that will be read for restart.

Detailed description
References
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`void Ecrire_YAML::write_restart_file(const std::string &yaml_fname) <ecrire-yaml-public-void-ecrire-yaml-write-restart-file-const-std-string-ref-yaml-fname>`
[void Ecrire_YAML::write_restart_file(const std::string &yaml_fname)](#ecrire-yaml-public-void-ecrire-yaml-write-restart-file-const-std-string-ref-yaml-fname)

add_line#

Definition
void Ecrire_YAML::add_line(const std::string &line, std::string &text)
Brief description
Detailed description
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`void Ecrire_YAML::add_line(const std::string &line, std::string &text) <ecrire-yaml-private-void-ecrire-yaml-add-line-const-std-string-ref-line-std-string-ref-text>`
[void Ecrire_YAML::add_line(const std::string &line, std::string &text)](#ecrire-yaml-private-void-ecrire-yaml-add-line-const-std-string-ref-line-std-string-ref-text)

begin_bloc#

Definition
void Ecrire_YAML::begin_bloc(const std::string &line, std::string &text)
Brief description
Detailed description
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`void Ecrire_YAML::begin_bloc(const std::string &line, std::string &text) <ecrire-yaml-private-void-ecrire-yaml-begin-bloc-const-std-string-ref-line-std-string-ref-text>`
[void Ecrire_YAML::begin_bloc(const std::string &line, std::string &text)](#ecrire-yaml-private-void-ecrire-yaml-begin-bloc-const-std-string-ref-line-std-string-ref-text)

declare_array#

Definition
void Ecrire_YAML::declare_array(const std::string &name, const std::string &type, const std::string &size, std::string &text)
Brief description

Declaring a one-dimensional array in the YAML file.

Detailed description
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`void Ecrire_YAML::declare_array(const std::string &name, const std::string &type, const std::string &size, std::string &text) <ecrire-yaml-private-void-ecrire-yaml-declare-array-const-std-string-ref-name-const-std-string-ref-type-const-std-string-ref-size-std-string-ref-text>`
[void Ecrire_YAML::declare_array(const std::string &name, const std::string &type, const std::string &size, std::string &text)](#ecrire-yaml-private-void-ecrire-yaml-declare-array-const-std-string-ref-name-const-std-string-ref-type-const-std-string-ref-size-std-string-ref-text)

declare_data#

Definition
void Ecrire_YAML::declare_data(int save, std::string &text)
Brief description

Declaring all data in the YAML file.

Detailed description
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`void Ecrire_YAML::declare_data(int save, std::string &text) <ecrire-yaml-private-void-ecrire-yaml-declare-data-int-save-std-string-ref-text>`
[void Ecrire_YAML::declare_data(int save, std::string &text)](#ecrire-yaml-private-void-ecrire-yaml-declare-data-int-save-std-string-ref-text)

declare_dtab#

Definition
void Ecrire_YAML::declare_dtab(const std::string &dname, const std::string &name, const std::string &type, int nb_dim, std::string &text)
Brief description

Declaring a multi - dimensional array (ie TRUSTTab ) in the YAML file.

Detailed description
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`void Ecrire_YAML::declare_dtab(const std::string &dname, const std::string &name, const std::string &type, int nb_dim, std::string &text) <ecrire-yaml-private-void-ecrire-yaml-declare-dtab-const-std-string-ref-dname-const-std-string-ref-name-const-std-string-ref-type-int-nb-dim-std-string-ref-text>`
[void Ecrire_YAML::declare_dtab(const std::string &dname, const std::string &name, const std::string &type, int nb_dim, std::string &text)](#ecrire-yaml-private-void-ecrire-yaml-declare-dtab-const-std-string-ref-dname-const-std-string-ref-name-const-std-string-ref-type-int-nb-dim-std-string-ref-text)

declare_metadata#

Definition
void Ecrire_YAML::declare_metadata(int save, std::string &text)
Brief description

Declaring all metadata (ie data that will be kept in PDI memory) in the YAML file.

Detailed description
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`void Ecrire_YAML::declare_metadata(int save, std::string &text) <ecrire-yaml-private-void-ecrire-yaml-declare-metadata-int-save-std-string-ref-text>`
[void Ecrire_YAML::declare_metadata(int save, std::string &text)](#ecrire-yaml-private-void-ecrire-yaml-declare-metadata-int-save-std-string-ref-text)

declare_scalar#

Definition
void Ecrire_YAML::declare_scalar(const std::string &name, const std::string &type, std::string &text)
Brief description

Declaring a scalar in the YAML file.

Detailed description
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`void Ecrire_YAML::declare_scalar(const std::string &name, const std::string &type, std::string &text) <ecrire-yaml-private-void-ecrire-yaml-declare-scalar-const-std-string-ref-name-const-std-string-ref-type-std-string-ref-text>`
[void Ecrire_YAML::declare_scalar(const std::string &name, const std::string &type, std::string &text)](#ecrire-yaml-private-void-ecrire-yaml-declare-scalar-const-std-string-ref-name-const-std-string-ref-type-std-string-ref-text)

declare_TRUST_dataset#

Definition
void Ecrire_YAML::declare_TRUST_dataset(const std::string &dname, const std::string &name, const std::string &type, int nb_dim, bool is_parallel, std::string &text)
Brief description

Declaring a dataset that will contain a data (unknown field or scalar) coming from TRUST in the YAML file: 1st dimension is that of the process rank in the node for parallel computation, 2nd dimension is that of the various iterations to be saved, 3rd dimension of the dataset actually corresponds to the first dimension of the field (we take the largest first dimension of the node so that it can fit the data of every process) remaining dimensions of the dataset are those of the field.

Detailed description
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`void Ecrire_YAML::declare_TRUST_dataset(const std::string &dname, const std::string &name, const std::string &type, int nb_dim, bool is_parallel, std::string &text) <ecrire-yaml-private-void-ecrire-yaml-declare-trust-dataset-const-std-string-ref-dname-const-std-string-ref-name-const-std-string-ref-type-int-nb-dim-bool-is-parallel-std-string-ref-text>`
[void Ecrire_YAML::declare_TRUST_dataset(const std::string &dname, const std::string &name, const std::string &type, int nb_dim, bool is_parallel, std::string &text)](#ecrire-yaml-private-void-ecrire-yaml-declare-trust-dataset-const-std-string-ref-dname-const-std-string-ref-name-const-std-string-ref-type-int-nb-dim-bool-is-parallel-std-string-ref-text)

end_bloc#

Definition
void Ecrire_YAML::end_bloc()
Brief description
Detailed description
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`void Ecrire_YAML::end_bloc() <ecrire-yaml-private-void-ecrire-yaml-end-bloc>`
[void Ecrire_YAML::end_bloc()](#ecrire-yaml-private-void-ecrire-yaml-end-bloc)

set_data#

Definition
void Ecrire_YAML::set_data()
Brief description

Parse every added problems to collect the data that we need to save/restore.

Detailed description
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`void Ecrire_YAML::set_data() <ecrire-yaml-private-void-ecrire-yaml-set-data>`
[void Ecrire_YAML::set_data()](#ecrire-yaml-private-void-ecrire-yaml-set-data)

write_attributes#

Definition
void Ecrire_YAML::write_attributes(const std::vector< std::string > &attributes, std::string &text)
Brief description

Writes the block in the YAML file that contains all attributes to current dataset WARNING: with PDI, HDF5 - attributes are necessarily attached to a dataset (for now)

Detailed description
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`void Ecrire_YAML::write_attributes(const std::vector< std::string > &attributes, std::string &text) <ecrire-yaml-private-void-ecrire-yaml-write-attributes-const-std-vector-std-string-ref-attributes-std-string-ref-text>`
[void Ecrire_YAML::write_attributes(const std::vector< std::string > &attributes, std::string &text)](#ecrire-yaml-private-void-ecrire-yaml-write-attributes-const-std-vector-std-string-ref-attributes-std-string-ref-text)

write_checkpoint_restart_file#

Definition
void Ecrire_YAML::write_checkpoint_restart_file(int save, const std::string &yaml_fname)
Brief description

Private method to generate the whole YAML file for checkpoint/restart Here is how the checkpoint file is organized:

Detailed description
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`void Ecrire_YAML::write_checkpoint_restart_file(int save, const std::string &yaml_fname) <ecrire-yaml-private-void-ecrire-yaml-write-checkpoint-restart-file-int-save-const-std-string-ref-yaml-fname>`
[void Ecrire_YAML::write_checkpoint_restart_file(int save, const std::string &yaml_fname)](#ecrire-yaml-private-void-ecrire-yaml-write-checkpoint-restart-file-int-save-const-std-string-ref-yaml-fname)

write_data_for_checkpoint#

Definition
void Ecrire_YAML::write_data_for_checkpoint(int pb_i, bool is_parallel, std::string &text)
Brief description

Writes the block in the YAML file that describes how the parallel data of the problem pb_i to be saved will be dumped in a dataset.

Detailed description
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`void Ecrire_YAML::write_data_for_checkpoint(int pb_i, bool is_parallel, std::string &text) <ecrire-yaml-private-void-ecrire-yaml-write-data-for-checkpoint-int-pb-i-bool-is-parallel-std-string-ref-text>`
[void Ecrire_YAML::write_data_for_checkpoint(int pb_i, bool is_parallel, std::string &text)](#ecrire-yaml-private-void-ecrire-yaml-write-data-for-checkpoint-int-pb-i-bool-is-parallel-std-string-ref-text)

write_data_for_restart#

Definition
void Ecrire_YAML::write_data_for_restart(int pb_i, std::string &text)
Brief description

Writes the block in the YAML file that describes how the data of the problem pb_i to be restored will be read from the checkpoint file.

Detailed description
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`void Ecrire_YAML::write_data_for_restart(int pb_i, std::string &text) <ecrire-yaml-private-void-ecrire-yaml-write-data-for-restart-int-pb-i-std-string-ref-text>`
[void Ecrire_YAML::write_data_for_restart(int pb_i, std::string &text)](#ecrire-yaml-private-void-ecrire-yaml-write-data-for-restart-int-pb-i-std-string-ref-text)

write_fields_types_for_checkpoint#

Definition
void Ecrire_YAML::write_fields_types_for_checkpoint(int pb_i, std::string &text)
Brief description

Writes the block in the YAML file that describes how to write the types of the fields of pb_i we want to save.

Detailed description
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`void Ecrire_YAML::write_fields_types_for_checkpoint(int pb_i, std::string &text) <ecrire-yaml-private-void-ecrire-yaml-write-fields-types-for-checkpoint-int-pb-i-std-string-ref-text>`
[void Ecrire_YAML::write_fields_types_for_checkpoint(int pb_i, std::string &text)](#ecrire-yaml-private-void-ecrire-yaml-write-fields-types-for-checkpoint-int-pb-i-std-string-ref-text)

write_fields_types_for_restart#

Definition
void Ecrire_YAML::write_fields_types_for_restart(int pb_i, std::string &text)
Brief description

Writes the block in the YAML file that describes how to read the types of the fields of pb_i we want to save.

Detailed description
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`void Ecrire_YAML::write_fields_types_for_restart(int pb_i, std::string &text) <ecrire-yaml-private-void-ecrire-yaml-write-fields-types-for-restart-int-pb-i-std-string-ref-text>`
[void Ecrire_YAML::write_fields_types_for_restart(int pb_i, std::string &text)](#ecrire-yaml-private-void-ecrire-yaml-write-fields-types-for-restart-int-pb-i-std-string-ref-text)

write_file_initialization#

Definition
void Ecrire_YAML::write_file_initialization(int pb_i, std::string &text)
Brief description

Writes the block in the YAML file that will trigger the creation of the checkpoint file for the problem pb_i.

Detailed description
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`void Ecrire_YAML::write_file_initialization(int pb_i, std::string &text) <ecrire-yaml-private-void-ecrire-yaml-write-file-initialization-int-pb-i-std-string-ref-text>`
[void Ecrire_YAML::write_file_initialization(int pb_i, std::string &text)](#ecrire-yaml-private-void-ecrire-yaml-write-file-initialization-int-pb-i-std-string-ref-text)

write_format#

Definition
void Ecrire_YAML::write_format(int save, const std::string &fname, std::string &text)
Brief description

Writes the block in the YAML file that will specify the format of the checkpoint file named fname.

Detailed description
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`void Ecrire_YAML::write_format(int save, const std::string &fname, std::string &text) <ecrire-yaml-private-void-ecrire-yaml-write-format-int-save-const-std-string-ref-fname-std-string-ref-text>`
[void Ecrire_YAML::write_format(int save, const std::string &fname, std::string &text)](#ecrire-yaml-private-void-ecrire-yaml-write-format-int-save-const-std-string-ref-fname-std-string-ref-text)

write_impl_dataset#

Definition
void Ecrire_YAML::write_impl_dataset(const std::string &dname, const std::string &fname, const std::vector< std::string > &attribute, std::string &text)
Brief description

Writes the block in the YAML file to dump the data in an implicit dataset ie a dataset that does not need to be declared as its dimension corresponds to those of the data.

Detailed description
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`void Ecrire_YAML::write_impl_dataset(const std::string &dname, const std::string &fname, const std::vector< std::string > &attribute, std::string &text) <ecrire-yaml-private-void-ecrire-yaml-write-impl-dataset-const-std-string-ref-dname-const-std-string-ref-fname-const-std-vector-std-string-ref-attribute-std-string-ref-text>`
[void Ecrire_YAML::write_impl_dataset(const std::string &dname, const std::string &fname, const std::vector< std::string > &attribute, std::string &text)](#ecrire-yaml-private-void-ecrire-yaml-write-impl-dataset-const-std-string-ref-dname-const-std-string-ref-fname-const-std-vector-std-string-ref-attribute-std-string-ref-text)

write_impl_dataset#

Definition
void Ecrire_YAML::write_impl_dataset(const std::string &dname, const std::string &fname, std::string &text)
Brief description

Writes the block in the YAML file to dump the data in an implicit dataset ie a dataset that does not need to be declared as its dimension corresponds to those of the data.

Detailed description
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`void Ecrire_YAML::write_impl_dataset(const std::string &dname, const std::string &fname, std::string &text) <ecrire-yaml-private-void-ecrire-yaml-write-impl-dataset-const-std-string-ref-dname-const-std-string-ref-fname-std-string-ref-text>`
[void Ecrire_YAML::write_impl_dataset(const std::string &dname, const std::string &fname, std::string &text)](#ecrire-yaml-private-void-ecrire-yaml-write-impl-dataset-const-std-string-ref-dname-const-std-string-ref-fname-std-string-ref-text)

write_time_scheme#

Definition
void Ecrire_YAML::write_time_scheme(int save, const std::string &fname, std::string &text)
Brief description

Writes the block in the YAML file regarding the time scheme for the checkpoint file fname.

Detailed description
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`void Ecrire_YAML::write_time_scheme(int save, const std::string &fname, std::string &text) <ecrire-yaml-private-void-ecrire-yaml-write-time-scheme-int-save-const-std-string-ref-fname-std-string-ref-text>`
[void Ecrire_YAML::write_time_scheme(int save, const std::string &fname, std::string &text)](#ecrire-yaml-private-void-ecrire-yaml-write-time-scheme-int-save-const-std-string-ref-fname-std-string-ref-text)

write_TRUST_dataset#

Definition
void Ecrire_YAML::write_TRUST_dataset(const std::string &dname, const std::string &name, int nb_dim, const std::string &cond, bool is_parallel, const std::vector< std::string > &attribute, std::string &text)
Brief description

Writes the block in the YAML file to dump a TRUST data in a dataset.

Detailed description
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`void Ecrire_YAML::write_TRUST_dataset(const std::string &dname, const std::string &name, int nb_dim, const std::string &cond, bool is_parallel, const std::vector< std::string > &attribute, std::string &text) <ecrire-yaml-private-void-ecrire-yaml-write-trust-dataset-const-std-string-ref-dname-const-std-string-ref-name-int-nb-dim-const-std-string-ref-cond-bool-is-parallel-const-std-vector-std-string-ref-attribute-std-string-ref-text>`
[void Ecrire_YAML::write_TRUST_dataset(const std::string &dname, const std::string &name, int nb_dim, const std::string &cond, bool is_parallel, const std::vector< std::string > &attribute, std::string &text)](#ecrire-yaml-private-void-ecrire-yaml-write-trust-dataset-const-std-string-ref-dname-const-std-string-ref-name-int-nb-dim-const-std-string-ref-cond-bool-is-parallel-const-std-vector-std-string-ref-attribute-std-string-ref-text)

write_TRUST_dataset_selection#

Definition
void Ecrire_YAML::write_TRUST_dataset_selection(const std::string &name, int nb_dim, bool is_parallel, std::string &text)
Brief description

Writes the block in the YAML file to select the section in the dataset where the data will be written.

Detailed description
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`void Ecrire_YAML::write_TRUST_dataset_selection(const std::string &name, int nb_dim, bool is_parallel, std::string &text) <ecrire-yaml-private-void-ecrire-yaml-write-trust-dataset-selection-const-std-string-ref-name-int-nb-dim-bool-is-parallel-std-string-ref-text>`
[void Ecrire_YAML::write_TRUST_dataset_selection(const std::string &name, int nb_dim, bool is_parallel, std::string &text)](#ecrire-yaml-private-void-ecrire-yaml-write-trust-dataset-selection-const-std-string-ref-name-int-nb-dim-bool-is-parallel-std-string-ref-text)

Attributes Documentation#

indent_ (private)
int Ecrire_YAML::indent_
pbs_ (private)
std::vector<Pb2Save> Ecrire_YAML::pbs_