summaryrefslogtreecommitdiff
path: root/src/main/CommandLine.c
Commit message (Collapse)AuthorAge
* Added new command line option '--logdir <dir>' which sets the output directorytradke2006-06-29
| | | | | | | | | | for logfiles created by the \texttt{-r} option. If the directory doesn't exist yet, it will be created by Cactus. This applies patch http://www.cactuscode.org/old/pipermail/developers/2006-June/004901.html. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4337 17b73243-c579-4c4c-a9d2-2d5706c11dac
* When printing the Cactus help, indicate that the '-b,--buffering' optiontradke2006-06-23
| | | | | | | has a mandatory argument. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4332 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Use two dashes instead of a single dash when describing command lineschnetter2006-06-23
| | | | | | | | | | | | | option. This is now the preferred format, as per the recent discussion on the developers' mailing list. Comment out a leftover non-commented part of the non-exising "x" option. Reformat the command line descriptions slightly. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4330 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Add a new command line option to select the buffering mode of stdout.schnetter2006-06-23
| | | | | | | | | | | | | The option is "-b <mode>", or "-buffering=<mode>", where mode can be "no", "line", or "full". This option uses the ANSI C function call setvbuf() to select the corresponding buffering mode. The buffering mode can be selected only once in a portable programme, and it has to be selected before the first output occurs. This means that it has to be implemented in the flesh. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4329 17b73243-c579-4c4c-a9d2-2d5706c11dac
* apply patchjthorn2006-06-01
| | | | | | | | | | | | http://www.cactuscode.org/old/pipermail/patches/2006-May/000180.html This documents the 5 (!) separate places in the code which must be changed to add a new command-line option. See also the discussion in http://www.cactuscode.org/mailman/private/cactusmaint/2006-May/021429.html http://www.cactuscode.org/mailman/private/cactusmaint/2006-May/021430.html git-svn-id: http://svn.cactuscode.org/flesh/trunk@4310 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Applying Erik's patch from 6.10.05swhite2006-05-11
| | | | | | | New command line option to stop after printing the schedule git-svn-id: http://svn.cactuscode.org/flesh/trunk@4293 17b73243-c579-4c4c-a9d2-2d5706c11dac
* When creating the output file names for the "-r" options, use %uschnetter2005-06-05
| | | | | | | | (unsigned int) instead of %d (signed int) to prevent a (theoretical) buffer overflow on 32 bit machines. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4073 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Introduce a parameter -L to select the logging level.schnetter2005-01-29
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3974 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Correct wrong function description.schnetter2004-08-03
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3819 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Cleanup output of -h command line option.rideout2004-01-07
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3491 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Use different numerical values for the #defined enum-like constants.schnetter2003-10-27
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3438 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Add support for redirection of standard error.rideout2003-05-15
| | | | | | | | | Use -r[o|e|oe|eo] or -redirect=[o|e|oe|eo]. Document verbose option on -describe-all-parameters. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3218 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Produce an error message when a user asks for parameter info forgoodale2003-05-12
| | | | | | | | | | | | | | a non-existing parameter. Additionally ff the parameter exists the code returns 0 as its exit status, and if it doesn't the code returns 1, so this can also be checked in scripts. We need to audit the current set of exit status codes, make sure they are distinct, and document them. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@3213 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Putting semicolons at the end of CCTK_FILEVERSIONs.goodale2002-11-12
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@3029 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Commented out the -x <nprocs> option until it is added.allen2002-08-21
| | | | | | | Closes Cactus/900 git-svn-id: http://svn.cactuscode.org/flesh/trunk@2982 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Corrected allowed values for -paramater-level command line option.rideout2002-05-21
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2842 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Redirect stdout to file right after the '-r' command line option was parsed.tradke2002-04-13
| | | | | | | This closes PR Cactus/969. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2710 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Typo in grdocallen2002-01-06
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2573 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Stop Cactus if warning/error level command line option isn't followed bytradke2001-11-16
| | | | | | | | | a numeric value. Closes Cactus-834. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2465 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
* Adding command line argument for level of parameter checkingallen2001-02-24
| | | | | | | -parameter-level=strict|normal|relaxed git-svn-id: http://svn.cactuscode.org/flesh/trunk@2045 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Various things to reduce the number of compile time warnings.goodale2000-12-16
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1956 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Tidied up the versioning stuff a bit.goodale2000-12-15
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1954 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added new command line argument -i to help messages.goodale2000-12-13
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1948 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Only put help, version, etc, output out on proc 0 .goodale2000-12-13
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1947 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
* Changing around include filesallen2000-07-19
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1769 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Changing arguments around for CCTK_Exitallen2000-07-14
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1740 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Getting rid of a few compiler warnings.goodale2000-04-19
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1601 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Stuff for cactus -x[n].goodale2000-04-18
| | | | | | | | | Cosmetic changes. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1576 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Now uses the NULL_DEVICE to redirect to if that is defined.goodale2000-04-18
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1574 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Removing warnings from rcsid variables.allen2000-04-17
| | | | | | | Tidied include files a bit, removing a few cctk.h's, so I've introduced a few more warnings to fix git-svn-id: http://svn.cactuscode.org/flesh/trunk@1550 17b73243-c579-4c4c-a9d2-2d5706c11dac
* bug fix, Info->printflanfer2000-03-20
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1481 17b73243-c579-4c4c-a9d2-2d5706c11dac
* CommandLine routines now exit with CCTK_Exit and do not output on every proclanfer2000-03-20
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1479 17b73243-c579-4c4c-a9d2-2d5706c11dac
* first take at CCTK_Exit in Commandlinelanfer2000-03-17
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1478 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Changed interface for CCTK_ParameterWalk() to return both a canonical nametradke2000-03-14
| | | | | | | | | | | | | | | | | | | | | | | and a pointer the parameter properties. Replaced calls to CCTK_ParameterList() by CCTK_ParameterWalk() in CommandLine.c. CCTK_ParameterList() is gone now. Inserted a line "Parameters of thorn 'BLA' providing implementation 'LABER':" in the -O output. Should be easily filtered out for automatic postprocessing. Option -o now prints out both "thorn::param" and "impl::param" as full names for global/restricted parameters. #ifdef'd out ParameterPTreeNodeAdd() in Parameters.c to fix a compiler warning (unused static function). Thomas git-svn-id: http://svn.cactuscode.org/flesh/trunk@1470 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Some #defines needed with my next commit to cctk_Parameter.h.goodale2000-03-07
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1434 17b73243-c579-4c4c-a9d2-2d5706c11dac
* New function and structure namesallen2000-02-03
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1352 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Replaced CCTKi_ThornList() by CCTK_NumCompiledThorns() and CCTK_CompiledThorn().tradke2000-02-02
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1336 17b73243-c579-4c4c-a9d2-2d5706c11dac
* CCTK function name changesallen2000-01-25
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1297 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added missing prototype.goodale1999-12-03
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1188 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
* Changing various things pointed to by compiling with -Wall.goodale1999-11-03
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1129 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Some bugfixes and renaming of parameter stuff.goodale1999-10-18
| | | | | | | | | | | | Some more stuff for ActiveThorns. Now the -O and -o commandline options do something sensible. You can also pass an optional parameter 'v' to -O which makes it very verbose. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1054 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Checks the return of SplitString and doesn't pass a null string to the parametergoodale1999-10-13
| | | | | | | | | | | stuff. Fixes PR/96. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1017 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Choose "NUL" instead of "/dev/null" for redirection of stdout under Windoofs.tradke1999-10-02
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1007 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Typoallen1999-09-18
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@948 17b73243-c579-4c4c-a9d2-2d5706c11dac
* New parameter stuff.goodale1999-08-26
| | | | | | | | | | | Now a non-active thorn's extensions to parameters shouldn't be valid, range checking is now done, even for strings, which must conform to a regular expression. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@859 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Corrected command line help: option -r redirects stdout, not stderrtradke1999-08-20
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@853 17b73243-c579-4c4c-a9d2-2d5706c11dac
* A lot of parameter name changes, especially for IOallen1999-07-30
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@846 17b73243-c579-4c4c-a9d2-2d5706c11dac