diff options
author | swhite <swhite@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2006-05-11 13:55:51 +0000 |
---|---|---|
committer | swhite <swhite@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2006-05-11 13:55:51 +0000 |
commit | 28bf70daab10b8a1926aad64c9cc08e4f17ee028 (patch) | |
tree | fb526c9f3c9c4063dfa34511b42dd49f170ad668 /src/main/CommandLine.c | |
parent | cbdbf5e58ea01a80e3d355099aad1f2117d47863 (diff) |
Applying Erik's patch from 6.10.05
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
Diffstat (limited to 'src/main/CommandLine.c')
-rw-r--r-- | src/main/CommandLine.c | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/src/main/CommandLine.c b/src/main/CommandLine.c index 5897800a..93984ab6 100644 --- a/src/main/CommandLine.c +++ b/src/main/CommandLine.c @@ -56,13 +56,15 @@ static int paramchecking = 0; int cctki_paramchecking; int cctki_paramcheck_nprocs; +int cctki_onlyprintschedule = 0; /******************************************************************** ********************* Defines ********************** ********************************************************************/ -#define CACTUS_COMMANDLINE_OPTIONS \ - "[-h] [-O] [-o paramname] [-L n] [-W n] [-E n] [-r[o|e|oe|eo]] [-T] " \ - "[-t name] [-parameter-level <level>] [-v] <parameter_file_name>" +#define CACTUS_COMMANDLINE_OPTIONS \ + "[-h] [-O] [-o paramname] [-L n] [-W n] [-E n] [-r[o|e|oe|eo]] " \ + "[-S] [-T] [-t name] [-parameter-level <level>] [-v] " \ + "<parameter_file_name>" /******************************************************************** @@ -456,6 +458,21 @@ void CCTKi_CommandLineRedirect (const char *argument) /*@@ + @routine CCTKi_CommandLinePrintSchedule + @date 2005-06-10 + @author Erik Schnetter + @desc + Set a flag that makes the run abort after printing the + schedule tree. + @enddesc +@@*/ +void CCTKi_CommandLinePrintSchedule (void) +{ + cctki_onlyprintschedule = 1; +} + + + /*@@ @routine CCTKi_CommandLineListThorns @date Tue Apr 18 15:05:00 2000 @author Tom Goodale @@ -535,6 +552,7 @@ void CCTKi_CommandLineHelp (void) "-E, -error-level <n> : Sets the error level to n.\n" "-r, -redirect [o|e|oe|eo] : Redirects standard output and/or standard\n" " error to files.\n" + "-S, -print-schedule : Print the schedule tree, then exit.\n" "-T, -list-thorns : Lists the compiled-in thorns.\n" "-t, -test-thorn-compiled <name> : Tests for the presence of thorn <name>.\n" " -parameter-level <level> : Sets the amount of parameter checking, \n" |