| Commit message (Collapse) | Author | Age |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Extents the file readers capabilities to not only take a cctk_iteration string
but also a string alias. A value of
IO::filereader_vars = "hydrobase::vel[0]{alias=admbase::shiftx}"
will read the datasets admbase::shiftx into the variable hydrobase::vel[0]. The
idea is to be able to read variables of evolution thorns into postprocessing
thorns.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@304 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@303 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
|
|
|
|
|
|
| |
doesn't work
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@298 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@297 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@294 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@293 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@292 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
currently when called before the grid extension for IOUtil has been registered
(which is when IOUtils learns if the is a checkpoint recovery run or not), the
routine returns -1. However the documentation in the thorn guide states that
Thorn IOUtil provides an aliased function for other I/O thorns to call:
CCTK_INT FUNCTION IO_TruncateOutputFiles (CCTK_POINTER_TO_CONST IN cctkGH)
This function simply returns 1 or 0 if output files should or should not be
truncated.
Since there are thorns out there that take this to heart and test for
IO_TruncateOutputFiles() being true (ie non-zero) these thorns always overwrite
data during a recovery when calling IOUtils too early. This happened to Carpet
in ticket #908.
The attached patch makes IOUtil abort instead which seems better than silently
returning the wrong (since undocumented) answer. No actual user thorn should be
affected.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@289 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@287 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
|
|
|
|
|
|
| |
created not only at startup, and the only point in which this can be helped with in this thorn is in IOUtil_AssembleFilename() which is called by using thorns to get the file name of the checkpoint - this is repeated there now
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@286 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@282 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@276 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
|
|
|
|
|
|
|
|
|
|
| |
Advertise that this is the new version of this API, which has 'out_dt'
arguments in certain IOUtil_* functions:
#define IOUTIL_PARSER_HAS_OUT_DT 1
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@275 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
|
|
|
|
|
|
|
|
|
| |
Update the parsing API to allow output by simulation time (out_dt) in
addition to output by iteration (out_every). This adds an additional
parameter to IOUtil_ParseVarsForOutput.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@274 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
|
|
|
|
|
|
| |
given filename, but that what was given is only the basefilename
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@273 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
|
|
|
|
|
|
| |
given filename, but that what was given is only the basefilename
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@272 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
|
|
|
|
|
|
| |
they are added in the filereader itself. Otherwise the filereader looks for "filename.h5.h5" when you specify "filename.h5" as "filereader_ID_files"
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@271 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
|
|
|
|
|
|
|
|
| |
so that no false warning is issued anymore about an option with unrecognized
key 'reductions'
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@270 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
|
|
|
|
|
|
|
|
| |
reductions (to be used in scalar output methods)
This applies patch http://www.cactuscode.org/old/pipermail/patches/2009-April/000259.html.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@269 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@265 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@264 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@263 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@262 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
|
|
|
|
|
|
|
| |
reallocs which may cause unnecessary memory fragmentation
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@261 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
|
|
|
|
|
|
|
| |
can process this file
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@260 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@259 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
|
|
|
|
|
|
|
| |
when "autoprobe" is used
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@258 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@257 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@256 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@255 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@254 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@253 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@252 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
|
|
|
|
|
|
|
|
| |
if a run should be aborted after some I/O error has occured. The default is to
only warn about I/O errors and continue the simulation.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@251 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
so that users can specify eg.
IOHDF5::compression_level = 1
IOHDF5::out_vars = "admbase::metric
admconstraints::hamiltonian
admbase::lapse{ compression_level = 0 }"
to request HDF5 dataset compression for every output variable except for the
lapse.
This is currently supported only by PUGH's and Carpet's HDF5 I/O thorns.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@250 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@249 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@248 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
|
|
|
|
|
|
|
|
| |
in a parameter string to be checkpointed/recovered.
Thanks to Erik Schnetter for this patch.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@247 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
|
|
|
|
|
|
|
|
|
|
| |
integer. This ensures that there are no negative numbers.
Check for errors, and clean up and emit a warning and return NULL in
such a case.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@246 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
|
|
|
|
|
|
|
|
| |
zero-padded escape sequence ("\010") instead of a blank-padded one
("\ 10").
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@245 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
|
|
|
|
|
|
|
|
|
|
|
| |
"<parameter> = <value>" pairs by a newline delimiter, and its complement
IOUtil_SetAllParameters() do the reverse.
This fixes problems with checkpointing/recovery when parameter values themself
contained newlines.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@244 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
|
|
|
|
|
|
|
| |
to "onefile".
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@243 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
|
|
|
|
|
|
|
| |
paramters in IO_TruncateOutputFiles().
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@242 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@241 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Currently Cactus always truncates existing output files unless the
simulation has been recovered from a checkpoint (in which case existing
output files will get appended unless the parameter
IO::truncate_files_after_recovering is set to true).
Christian Ott requested that it should also be possible to always append
new datasets to existing output files. The new boolean I/O parameter
IO::truncate_files implements that. Its default value is true,
preserving the existing Cactus behaviour.
This applies patch http://www.cactuscode.org/old/pipermail/patches/2006-May/000169.html.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@240 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
which can be used to test if IO::out_dir points to either a non-existing
or empty directory at simulation startup. If this parameter is set to "yes"
and an already existing IO::out_dir is found to have any contents
(eg. output files from a previous simulation which was using the same output
directory) Cactus will print an appropriate error message and abort,
as opposed to continuing and (potentially by accident) overwriting existing
files.
The default for IO::require_empty_output_directory is "no".
This applies patch http://www.cactuscode.org/old/pipermail/patches/2006-May/000168.html.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@239 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@238 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@237 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
|
|
|
|
|
|
|
|
|
|
|
|
| |
IO::recover = "{auto|autoprobe}": check for a '.file_<processor>' suffix
for chunked output files (and not only for '.file_0' as processor 0's output).
This allows for recovery from a chunked checkpoint in auto mode even if not
all the chunked checkpoint files are visible to all processors (eg. if the
checkpoint directory is local on a compute node on a cluster).
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@236 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
|