aboutsummaryrefslogtreecommitdiff
path: root/src/Startup.c
Commit message (Collapse)AuthorAge
* Add TODO item relating to checking the return value of CCTK_ParameterFilenamehinder2013-01-07
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@294 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
* Increase string buffer sizes for parameter file nameeschnett2012-12-26
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@293 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
* Report error when parameter file cannot be writteneschnett2012-11-20
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@292 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
* IOUtil: abort IOUtil_TruncateOutputFiles if called too earlyrhaas2012-06-11
| | | | | | | | | | | | | | | | | | | | | | | 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
* Correct signatures of scheduled functionsschnetter2008-02-29
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@257 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
* Correct signatures of scheduled functionsschnetter2008-02-29
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@256 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
* Create the default output directory on all processors if IO::out_mode isn't settradke2006-07-03
| | | | | | | to "onefile". git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@243 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
* Fix evaluation of IO::truncate_files_after_recovering and IO::truncate_filestradke2006-06-08
| | | | | | | paramters in IO_TruncateOutputFiles(). git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@242 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
* Introduce new boolean parameter IO::truncate_files.tradke2006-05-11
| | | | | | | | | | | | | | | | | 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
* Introduce new boolean parameter IO::require_empty_output_directorytradke2006-05-11
| | | | | | | | | | | | | | | | 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
* Remove old unused test code.tradke2006-05-08
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@238 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
* Decreased warning level for "existing parameter file will not be overwritten"tradke2004-12-08
| | | | | | | messages from 1 to 2. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@220 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
* Provide an aliased function IO_TruncateOutputFiles() for other I/O thornstradke2004-11-17
| | | | | | | | | to check whether or not to truncate existing output files. The default is to not truncate after recovering. This can be overwritten by the new boolean parameter IO::truncate_files_after_recovering. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@219 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
* Parse the 'IO::filereader_ID_vars' parameter for invalid variable/group names.tradke2004-06-23
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@210 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
* Old I/O parameters are gone now. So we can get rid of internal routinestradke2003-01-20
| | | | | | | | which checked whether an old I/O parameter was set, and then automatically set the value of its (new) counterpart. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@183 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
* Copy pointers to string parameters to a local variable before modifying it.tradke2003-01-06
| | | | | | | | | This prevents potential future problems in pointer assignments when we declare a pointer to a string parameters constant. This closes Cactus/1350. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@180 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
* Also set O_TRUNC in the flags argument for open(2) so that existing parametertradke2002-10-31
| | | | | | | | files are truncated on overwrite. This closes PR CactusBase-1285. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@179 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
* Overwrite an existing parfile unlesstradke2002-07-17
| | | | | | | | | - it is identical with the original parfile - this is a recovery run This closes PR CactusBase/884. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@177 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
* Changed the warnings about deprecated I/O parameters.tradke2002-06-07
| | | | | | | They are depreciated in BETA12 (not BETA13). git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@170 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
* Parameter names changes as announced in today's mail to users@cactuscode.org.tradke2002-05-06
| | | | | | | You must update all other I/O thorns now. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@163 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
* Removed routine IOUtil_RestartFromRecovery(). Now the recovery info is heldtradke2002-04-15
| | | | | | | | | in IOUtil's GH extension. You also need to update thorns IOBasic, IOASCII, and IOFlexIO now if you didn't do so yet. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@157 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
* Create the output directory if it doesn't exist yet, before trying to copytradke2002-03-28
| | | | | | | | the parameter file into it. This closes PR CactusBase/948. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@155 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
* Added code to copy the original parameter file to 'IO::outdir' or generatetradke2001-12-18
| | | | | | | | | | a new one with a sorted list of all parameters set in the original parfile. See description of parameters 'IO::parfile_write' and 'IO::parfile_name' for details. Closes Cactus-237 and Cactus-315. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@141 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
* Advertise the parameter file so it can be viewed/downloaded fromallen2001-06-26
| | | | | | | the Files page with HTTPDExtra. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@124 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
* Compiler warningsallen2001-05-10
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@122 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
* Making rcsid strings constant - PR 669.goodale2001-05-10
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@121 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
* Cosmetic changes - missing rcsids, etc.goodale2000-09-17
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@87 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
* Removing extraneous ; .goodale2000-04-19
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@62 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
* Using CCTK_FILEVERSION to get rid of rcsid warning.tradke2000-04-17
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@56 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
* Tidying up several thingstradke1999-10-26
| | | | | | | | | | | | | - removed spxyd from ioGH structure This went into IOASCII's GH extension where it is really needed. - renamed InitIONum() into ParseVarsForOutput() which does the parsing of varstring parameters Fixes IO/130 - removed rfrTraverseGH() which is not needed in IOUtil - create checkpoint dir via CCTK_mkdir() git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@36 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
* Removing an unused variableallen1999-10-18
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@34 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
* Changes to header filesallen1999-10-17
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@33 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
* Include file name changesallen1999-07-30
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@20 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
* Implementing new naming convention for variables on the cGH. See cGH.h forallen1999-06-25
| | | | | | | details. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@5 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
* This is thorn IO, just a skeleton for real IO, just providingtradke1999-06-16
parameters and register an IO extension. Actual IO is done now by ASCIIIO, FlexIO, and HDF5IO. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@2 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a