summaryrefslogtreecommitdiff
path: root/src/util/ParseFile.c
Commit message (Collapse)AuthorAge
* Revert accidental changes from the last commit.schnetter2004-12-28
| | | | | | | Sorry. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3945 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Rename "round" to "myround". Otherwise, the function "round" has theschnetter2004-12-28
| | | | | | | | same name as the one from <math.h> (which is #included) but has a different return type, which is an error for gcc 4.0. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3944 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Patch from Yaakoub to support parameter files with <CR><LF> at ends of lines.goodale2004-05-10
| | | | | | | Fixes PR 1596. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3713 17b73243-c579-4c4c-a9d2-2d5706c11dac
* When stripping the directory part off the parameter file name, do notschnetter2004-02-06
| | | | | | | | forget to also strip the "/" that separates the directory name and the file name. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3571 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Putting semicolons at the end of the CCTK_FILEVERSIONs.goodale2002-11-12
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@3028 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed parsing of undocumented $PARFILE variable.tradke2002-05-13
| | | | | | | This closes PR Cactus/1041. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2809 17b73243-c579-4c4c-a9d2-2d5706c11dac
* The callback routine, CCTKi_SetParameter(), passed to the ParseFile() routinetradke2002-01-02
| | | | | | | | | | now takes the current line number in the parameter file as a third argument. CCTKi_SetParameter() is now able to tell you what line in the parameter file was erroneous. This closes PR Cactus-838. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2555 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixes for Cactus/833,828,825allen2001-12-04
| | | | | | | | | | | | | | | Parsing errors from Parameter file are fatal errors Report all parameter errors before terminating simulation (actually this isn't quite true, it will report all parsing errors and then stop if necessary and then report all parameter setting errors and stop if necessary) In parsing the parameter file omitting the "=" and ommiting the "= value" are fatal errors. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2478 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Increased parse buffer size to 8 kB. Also allocate buffers dynamicallytradke2001-09-07
| | | | | | | | | instead of reserving them on the function stack (might cause stack overflow). This closes PR Cactus-784. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2345 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Making rcsid strings constant - PR 669.goodale2001-05-10
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@2159 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Changing the name of a shadowed local variableallen2001-02-24
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2053 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fix to CCTK_ParameterFilename, and freeing some memory I'd missed whenallen2001-02-11
| | | | | | | the $PARAMETER_FILE directive is used. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2015 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Replacing hard-coded (and wrong) filename with __FILE__ macro in errorgoodale2001-01-14
| | | | | | | | | message. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1993 17b73243-c579-4c4c-a9d2-2d5706c11dac
* grdoc, style-guidelines, ...goodale2000-10-05
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1854 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed $PARAMETER_FILE to strip off directory in par fileallen2000-10-03
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1847 17b73243-c579-4c4c-a9d2-2d5706c11dac
* (Nasty) little hack to add the old Cactus 3 nameofparfile functionality ...allen2000-06-29
| | | | | | | | | | | | | | | | | | anywhere that $PARAMETER_FILE appears it will be replaced by the name of the parameter file that was used, without the last 4 characters. This is so you can say IO::outdir = $PARAMETER_FILE so that ./cactus_exe mypar.par will put output in a directory mypar (using the standard IO thorns). This feature won't be documented until it is added properly, and the notation may change slightly. git-svn-id: http://svn.cactuscode.org/flesh/trunk@1707 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Removing rcsid warningsallen2000-04-17
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1559 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixing debug statements so that the file parser reports the line in the ↵allen2000-03-09
| | | | | | original parameter file with the error git-svn-id: http://svn.cactuscode.org/flesh/trunk@1450 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Removed tabs from files.goodale1999-11-24
| | | | | | | | | Added @version lines to various header files. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1170 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Now a "!" starts a directive in the parameter files, for now this isallen1999-09-25
| | | | | | | | | | | | | just for adding a description of the par file !DESC "Black hole evolution with ADM" which is parsed by runtest Needs to be changed so that it only picks up a ! at the start of the line, git-svn-id: http://svn.cactuscode.org/flesh/trunk@993 17b73243-c579-4c4c-a9d2-2d5706c11dac
* If there is no = before the end of the line discards the tokensgoodale1999-07-07
| | | | | | | | | | | | collected so far. This stops it continuing collecting the name of a parameter across newlines. Note that this bug will also be there in Cactus 3.0. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@686 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Routine to parse a parameter file and pass the resulting tokens togoodale1999-01-12
an arbitrary function. Nicked from Paul's Cactus parser. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@46 17b73243-c579-4c4c-a9d2-2d5706c11dac