16#include <EcrFicPartageMPIIO.h>
17#include <EcrFicPartageBin.h>
18#include <Fichier_Lata.h>
73 snprintf(s, 20,
"_%05d", (
int)moi);
77 Cerr <<
"Fichier_Lata::Fichier_Lata: parallel option not supported " << (int)parallel << finl;
93 Cerr <<
"Fichier_Lata::Fichier_Lata: format not supported " << (int)format << finl;
98 IOS_OPEN_MODE mode = ios::out;
105 mode = ios::out | ios::app;
108 Cerr <<
"Fichier_Lata::Fichier_Lata: open mode not supported " << (int)mode_append << finl;
116 Cerr <<
"Error in Fichier_Lata::Fichier_Lata\n"
117 <<
" Error while opening file : " <<
filename_
181 const char * extension,
Class to use MPI-IO to write in a single file.
Fichier_Lata_maitre(const char *basename, const char *extension, Mode mode_append, Format_Post_Lata::Options_Para parallel)
virtual int is_master() const
If the file is of shared type, returns 1 if me() equals the group master, 0 otherwise.
virtual SFichier & get_SFichier()
Fichier_Lata(const char *basename, const char *extension, Mode mode_append, Format_Post_Lata::Format format, Format_Post_Lata::Options_Para parallel)
Builds a file of type EcrFicPartage(Bin) or EcrFicPrive(Bin), binary or not depending on the "format"...
virtual const Nom & get_filename() const
Returns the file name with its path.
virtual void syncfile()
If the file is of shared type, calls the syncfile() method; otherwise does nothing.
: Post-processing class for Eulerian fields in LATA format.
class Nom: a character string for naming TRUST objects.
static bool is_parallel()
static int me()
Returns the rank of the local processor in the current communication group. See Comm_Group::rank() an...
static void exit(int exit_code=-1)
Exit routine for TRUST within a Kokkos region.
static int je_suis_maitre()
Returns 1 if on the master processor of the current group (i.e. me() == 0), 0 otherwise.
static bool is_sequential()
SFichier is to the C++ ofstream class what Sortie is to the C++ ostream class.