next up previous contents
Next: Checkpointing/Recovery Methods Up: I/O Methods Previous: Triggered Output of Grid   Contents

Unconditional Output of Grid Variables

An I/O method's OutputVarAs() routine is supposed to do output for a specific grid variable if ever possible. It will be invoked by the flesh I/O API routines CCTK_OutputVar*() for unconditional, non-triggered output of grid variables (see also Section B8.2).

A function registered as an OutputVarAs() routine has the following prototype:

  int SimpleIO_OutputVarAs (const cGH *GH, const char *varname, const char *alias);
The variable to output, varname, is given by its full name. The full name may have appended an optional I/O options string enclosed in curly braces (with no space between the full name and the opening curly brace). In addition to that, an alias string can be passed which then serves the purpose of constructing a unique name for the output file.

The OutputVarAs() routine should return zero if output for varname was done successfully, or a negative error code otherwise.


next up previous contents
Next: Checkpointing/Recovery Methods Up: I/O Methods Previous: Triggered Output of Grid   Contents