Next: Interpolation Operators
Up: Cactus Application Interfaces
Previous: Using Coordinates
Contents
I/O
To allow flexible I/O, the flesh itself does not provide any output
routines, however it provides a mechanism for thorns to register
different routines as I/O methods (see Chapter D8).
Application thorns can interact with the different I/O methods through
the following function calls:
- CCTK_OutputGH (const cGH *GH)
This call loops over all registered I/O 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 I/O 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)
Outputs a variable varname looping over all registered I/O methods.
varname may have an optional I/O option 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)
Outputs a variable varname looping over all registered I/O methods.
varname may have an optional I/O option 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)
Outputs a variable varname using the I/O method methodname if it is
registered. varname may have an optional I/O option 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)
Outputs a variable varname using the I/O method methodname if it is
registered. varname may have an optional I/O option 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
|