![]() ![]() ![]() ![]() Next: Utility programs provided by Up: IOFlexIO Previous: Checkpointing & Recovery Contents Importing External Data into Cactus with IOFlexIO
In order to import external data into Cactus (eg. to initialize some variable)
you first need to convert this data into an IEEEIO datafile which then can be
processed by the registered recovery routine of thorn IOFlexIO.
The following description explains the IEEEIO file layout of an unchunked
datafile which thorn IOFlexIO expects in order to restore Cactus variables
from it properly. There is also a well-documented example C program provided
(IOFlexIO/doc/CreateIOFlexIOdatafile.c) which illustrates how to create
a datafile with IEEEIO file layout. This working example can be used as a
template for building your own data converter program.
The example C program goes through all of these steps and creates a datafile
x.ieee in IEEEIO file layout which contains a single dataset named
"grid::x", with groupname "grid::coordinates", grouptype CCTK_GF (thus identifying the variable as a grid function), the timelevel
to restore set to 0, and the total number of timelevels set to 1.
Once you've built and ran the program you can easily verify if it worked properly with ioinfo -showattrdata x.ieeewhich lists all objects in the datafile along with their values. Since the single dataset in it only contains zeros it would probably not make much sense to feed this datafile into Cactus for initializing your x coordinate grid function :-) ![]() ![]() ![]() ![]() Next: Utility programs provided by Up: IOFlexIO Previous: Checkpointing & Recovery Contents |