Next: Interpolation Operators
Up: Cactus Application Interfaces
Previous: Using Coordinates
Contents
IO
To allow flexible IO, the Flesh itself does not provide any output
routines, however it provides a mechanism for thorns to register
different routines as IO methods (see chapter D8).
Application thorns can interact with the different IO methods through
the following function calls:
- CCTK_OutputGH (const cGH *GH)
This call loops over all registered IO methods, calling the routine
that each method has registered for OutputGH. The expected
behaviour of any OutputGH routine is to loop over all GH
variables outputting them if the IO method contains appropriate
routines (that is, not all methods will supply routines to output all
different types of variables) and if the method decides it is an
appropriate time to output.
- CCTK_OutputVar (const cGH *GH, const char *varname)
Output a variable varname looping over all registered IO methods.
varname may have an optional I/O options string appended.
The output should take place if at all possible. If output goes into
a file and the appropriate file exists the data is appended, otherwise
a new file is created.
- CCTK_OutputVarAs (const cGH *GH, const char *varname, const char *alias)
Output a variable varname looping over all registered IO methods.
varname may have an optional I/O options string appended.
The output should take place if at all possible. If output goes into
a file and the appropriate file exists the data is appended, otherwise
a new file is created. Uses alias as the name of the variable
for the purpose of constructing a filename.
- CCTK_OutputVarByMethod (const cGH *GH, const char *varname, const char *methodname)
Output a variable varname using the IO method methodname if it is
registered. varname may have an optional I/O options string appended.
The output should take place if at all possible. If
output goes into a file and the appropriate file exists the data is
appended, otherwise a new file is created.
- CCTK_OutputVarAsByMethod (const cGH *GH,
const char *varname,
const char *methodname,
const char *alias)
Output a variable varname using the IO method methodname if it is
registered. varname may have an optional I/O options string appended.
The output should take place if at all possible.
If output goes into a file and the appropriate file exists the data is
appended, otherwise a new file is created. Uses alias as the
name of the variable for the purpose of constructing a filename.
Next: Interpolation Operators
Up: Cactus Application Interfaces
Previous: Using Coordinates
Contents
|