[Users] Adding gridfunction output mid-subroutine?

Frank Loeffler knarf at cct.lsu.edu
Tue May 1 10:25:18 CDT 2012


On Tue, May 01, 2012 at 08:16:03AM -0700, Scott Hawley wrote:
> Is there a way to, e.g. call CarpetIOHDF5, from the middle of a subroutine
> -- apart from "scheduling" the output?

That should be possible using CCTK_OutputVarAsByMethod, see below.

Frank

int istat = CCTK_OutputVarAs (const cGH *cctkGH,
                              const char *variable,
                              const char *alias);

Parameters

istat    return status
cctkGH   pointer to CCTK grid hierarchy
variable full name of variable to output, with an optional options stri
alias    alias name to base the output filename on

Discussion
           The output should take place if at all possible. If 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.


Errors
positive the number of IO methods which did output of variable
0        for success
negative if no IO methods were registered

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
Url : http://lists.einsteintoolkit.org/pipermail/users/attachments/20120501/07619017/attachment.bin 


More information about the Users mailing list