43 #define MODE_READ CG_MODE_READ
44 #define MODE_WRITE CG_MODE_WRITE
45 #define MODE_MODIFY CG_MODE_MODIFY
64 void write_attr_CGNS(
const std::string& fname,
const std::string& mfile,
65 const COM::Attribute* attr,
const char* material,
66 const char* timelevel,
int pane_id,
67 const std::string& ghosthandle,
68 const std::string& errorhandle,
int mode);
98 const COM::Attribute* attr,
100 const char* timelevel,
101 const char* mfile_pre=NULL,
102 const MPI_Comm* comm=NULL,
103 const int* pane_id=NULL);
117 const COM::Attribute* attr,
118 const char* material,
119 const char* timelevel,
120 const char* mfile_pre=NULL,
121 const MPI_Comm* comm=NULL,
122 const int* pane_id=NULL);
136 const COM::Attribute* attr,
137 const char* material,
138 const char* timelevel,
139 const char* mfile_pre=NULL,
140 const MPI_Comm* comm=NULL,
141 const int* pane_id=NULL);
154 const char* file_prefixes,
155 const char* control_file_name);
164 const char* option_val);
178 const char* window_name,
179 const MPI_Comm *comm = NULL);
198 void init(
const std::string &mname);
204 void finalize(
const std::string &mname);
232 const int paneId = 0,
bool check =
false);
237 std::vector<pthread_t> _writers;
239 # endif // USE_PTHREADS
std::string get_fname(const std::string &pre, int rank=-1, const int paneId=0, bool check=false)
Builds a filename from the given prefix and rank.
static void finalize(const std::string &mname)
Finalize the module by deregistering it from Roccom.
void write_parameter_file(const char *file_name, const char *window_name, const MPI_Comm *comm=NULL)
Write out the parameters defined in the fiven window into a parameter file.
void set_option(const char *option_name, const char *option_val)
Set an option for Rocout, such as controlling the output format.
void put_attribute(const char *filename_pre, const COM::Attribute *attr, const char *material, const char *timelevel, const char *mfile_pre=NULL, const MPI_Comm *comm=NULL, const int *pane_id=NULL)
Write a (possibly aggregate) attribute to a new file.
Declaration of Rocout CGNS routines.
This file contains the prototypes for Roccom API.
static void * write_attr_internal(void *attrInfo)
Does the actual writing to file.
void add_attribute(const char *filename_pre, const COM::Attribute *attr, const char *material, const char *timelevel, const char *mfile_pre=NULL, const MPI_Comm *comm=NULL, const int *pane_id=NULL)
Append a (possibly aggregate) attribute to a file.
void write_attr_CGNS(const std::string &fname, const std::string &mfile, const COM::Attribute *attr, const char *material, const char *timelevel, int pane_id, const std::string &ghosthandle, const std::string &errorhandle, int mode)
Write the data for the given attribute to file.
void write_attribute(const char *filename_pre, const COM::Attribute *attr, const char *material, const char *timelevel, const char *mfile_pre=NULL, const MPI_Comm *comm=NULL, const int *pane_id=NULL)
Write a (possibly aggregate) attribute to a file.
void sync()
Wait for the completion of an asychronous write operation.
std::map< std::string, std::string > _options
static void init(const std::string &mname)
Initialize the module by registering it to Roccom with the given module name.
void write_rocin_control_file(const char *window_name, const char *file_prefixes, const char *control_file_name)
Generate a control file for Rocin.
void Rocout_load_module(const char *name)
Load the module Rocout into Roccom using the given module name.
friend void Rocout_load_module(const char *name)
Load the module Rocout into Roccom using the given module name.
friend void Rocout_unload_module(const char *name)
Unload the module Rocout from Roccom.
void read_control_file(const char *filename)
Set options for Rocout via a control file.
void Rocout_unload_module(const char *name)
Unload the module Rocout from Roccom.