aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authortradke <tradke@b32723a9-ab3a-4a60-88e2-2e5d99d7c17a>2002-07-01 13:07:37 +0000
committertradke <tradke@b32723a9-ab3a-4a60-88e2-2e5d99d7c17a>2002-07-01 13:07:37 +0000
commit04520bcea06b995a3c7f3be120cbc08f5034374c (patch)
tree2ea3d694960c2c2dd310a04398adf8d6813ae70a /doc
parent0a632ecfa445591cca6514266cdb8db4d4e97a4c (diff)
Extended the generic filereader routines to select variables with a specific
iteration number (see IOUtil's thorn documentation for an example). git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@173 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
Diffstat (limited to 'doc')
-rw-r--r--doc/documentation.tex13
1 files changed, 9 insertions, 4 deletions
diff --git a/doc/documentation.tex b/doc/documentation.tex
index 9095042..93f7b30 100644
--- a/doc/documentation.tex
+++ b/doc/documentation.tex
@@ -488,14 +488,19 @@ read from file(s) as initial data:
be separated by spaces)\\
This is useful if a datafile contains multiple variables but only some of
them should be read. Thus it is possible to recover distinguished variables
- from a full checkpoint file. Note that if the file contains several
- timesteps of the same variable only the last one is taken.
+ from a full checkpoint file.\\
+ Note that if the file contains several timesteps of the same variable only
+ the last one is taken by default. This can be changed by adding an option
+ string with the key {\tt cctk\_iteration} and an associated integer scalar
+ value to the variable name denoting the iteration number to choose, like in
+ {\tt IO::filereader\_ID\_vars = "wavetoy::phi[ cctk\_iteration = 10 ]"}.
\end{itemize}
Thorn {\bf IOUtil} also provides a filereader API which can be called
by any application thorn at any time. It gets passed the equivalent information
to the filereader parameters, plus a pointer to the underlying CCTK grid
-hierarchy:
+hierarchy. The return code denotes the total number of variables recovered by
+the filereader.
C API:
\begin{verbatim}
@@ -506,7 +511,7 @@ C API:
Fortran API:
\begin{verbatim}
- call IOUtil_RecoverVarsFromDatafiles (GH, in_files, in_vars)
+ call IOUtil_RecoverVarsFromDatafiles (result, GH, in_files, in_vars)
integer result
CCTK_POINTER GH