summaryrefslogtreecommitdiff
path: root/lib/sbin/parameter_parser.pl
Commit message (Collapse)AuthorAge
* Removed debug statementsallen2000-02-03
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1339 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added specification for steerable parameters in param.cclallen2000-02-01
| | | | | | | | | | | | | | | | | | | | | | | Notation REAL paramname "Description" [STEERABLE = never|always|recover] { .... } ",,," Default value is never The constants CCTK_STEERABLE_NEVER CCTK_STEERABLE_ALWAYS CCTK_STEERABLE_RECOVER are now there to use to check the type of steering available for a parameter. git-svn-id: http://svn.cactuscode.org/flesh/trunk@1329 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Changed to use Perl5 stuff...goodale1999-10-24
| | | | | | | | | | | | | local -> my used perl 5 references for passing databases around in the CST. CST is now about a factor of 16 faster ! Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1101 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed so that LOGICAL parameters still work, as well as the new BOOLEANallen1999-09-23
| | | | | | | type. git-svn-id: http://svn.cactuscode.org/flesh/trunk@983 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Cool addition to checkout script that tells you which thorns areallen1999-09-21
| | | | | | | developmental git-svn-id: http://svn.cactuscode.org/flesh/trunk@978 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Runtest now:allen1999-09-21
| | | | | | | | | | Tells you which parameter files failed Gives you a command line before the test is run that you can copy and paste to run the test interactively, without editing as before. git-svn-id: http://svn.cactuscode.org/flesh/trunk@976 17b73243-c579-4c4c-a9d2-2d5706c11dac
* New schedule stuff.goodale1999-09-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | IMPORTANT: if you don't have a src/schedule directory, please do an "update -d" or your code won't compile! You can now create schedule groups and schedule items (other groups or functions) IN a group. You may then schedule a group AT a particular CCTK entry point, or inside another group. There is a new keyword WHILE in the schedule specification. The argument(s) to this are the full names of integer scalars, and the item which is scheduled WHILE will be executed while this integer, or these integers, are non-zero. Note that currently there is little checking of the type of these scalars, 'though this will be coming soon. BEFORE, AFTER, or WHILE can take a list of arguments of the form (a,b,c) to stop you having to do something like BEFORE a BEFORE b BEFORE c So the full format of a schedule statement is SCHEDULE [GROUP] <name> <AT entrypoint | IN group> [BEFORE|AFTER <item | (item...)>] [WHILE <integer gridscalar>] { [LANG: <language>] [COMM: <group(s)>] [STORAGE: <groups(s)] [TRIGGERS: <groups(s)] } "<description>" Note that even for a group you need to provide { } "<description>" 'though that may be relaxed soon. Also TRIGGERS are now on a group basis, not on a variable basis. So, for example, to test this I had -------------------------------------- SCHEDULE TEST1_InitialData AT INITIAL { LANG: Fortran } "Initialise" SCHEDULE TEST1_InitialData AT EVOL { LANG: Fortran } "Initialise" SCHEDULE TEST1_Evolve IN testit { LANG: Fortran } "Evolution routine" SCHEDULE GROUP testit WHILE test1::foo_int_scalar AT EVOL AFTER TEST1_InitialData { } "Test a group within a group. " --------------------------------------- where the initialisation routine set test1::foo_int_scalar to 4 and the evolution routine decremented it. The group "testit" is redundant here as only one thing is scheduled in it, the WHILE and AFTER could have gone directly onto the scheduling of TEST1_Evolve. Apart from the checking of the while stuff, the perl does a fair amount of checking that groups exist. It doesn't yet check that a group you are scheduling at or in exists, and neither does the C, so please check the screen output of the final schedule tree. Checks for this an for unreachable groups will go in, but perhaps not in the next week. There's also some tidying up which needs to go in, but this stuff passes all the tests that the unmodified code does. I have also tried to make the output of the CST a bit more useful, 'though now it's a wee bit long-winded. Please send me comments if you want more output of various things, or would like the current output, or how the WHILE stuff works, changed. Tom IMPORTANT: if you don't have a src/schedule directory, please do an "update -d" or your code won't compile! git-svn-id: http://svn.cactuscode.org/flesh/trunk@966 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Commented out some old unused parameter stuff.goodale1999-09-13
| | | | | | | | | | | Hopefully fixed the space at end of line after the closing " problem - the parameter database now stores the default value after stripping the quotes from it. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@901 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Changed to allow line-continuation in ccl files.goodale1999-09-10
| | | | | | | | | Now a \ fellowed by a newline should allow the line to be continued. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@893 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
* Some checking that if you have a string parameter the default valueallen1999-07-21
| | | | | | | | is a string, and that if you have a logical parameter with a default with one quotation mark there is a second quotation mark to match. git-svn-id: http://svn.cactuscode.org/flesh/trunk@751 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed syntax error which meant that a case likegoodale1999-07-12
| | | | | | | | | | | | | EXTENDS KEYWORD initial_data "" "distortedbh" :: "Non-Aix BH + Brill Wave IVP" } was not flagged as an error. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@700 17b73243-c579-4c4c-a9d2-2d5706c11dac
* New names for parameter groups:allen1999-07-04
| | | | | | | | | | | | | | | | | | | public -> global protected -> restricted private -> private friend -> shares (although we would like a better word for this) Can now use USES as well as EXTENDS (although both of them are optional ... perhaps they shouldn't be?). I would like to be able to get rid of the { } after USES but I couldn't manage it so far. git-svn-id: http://svn.cactuscode.org/flesh/trunk@632 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added all datatypes to parsers (but they don't work with pugh yet).allen1999-07-01
| | | | | | | | | | | | | | | NOTE THAT INTEGER -> INT in param.ccl and interface.ccl In the param.ccl and interface.ccl you can have one optional cctk_ in front of each datatype. I'll be checking in changes for all thorns now ... you will have to go the realclean thing I would guess after updating git-svn-id: http://svn.cactuscode.org/flesh/trunk@610 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Put in & necessary for perl 4goodale1999-05-03
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@514 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Implement our own version of chomp since it is perl5allen1999-04-26
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@508 17b73243-c579-4c4c-a9d2-2d5706c11dac
* After rewritting read_file to only cut off the last character if itallen1999-04-26
| | | | | | | is a new line, I discovered chomp git-svn-id: http://svn.cactuscode.org/flesh/trunk@506 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added some more parsing checks and increment CST_errors in someallen1999-04-05
| | | | | | | places git-svn-id: http://svn.cactuscode.org/flesh/trunk@434 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Small change which allows there to be no description for a parameter,goodale1999-02-21
| | | | | | | | | | | 'though it will print a warning. Strip most of the spaces out of ranges for numeric parameters. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@322 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Just changed a print statement slightlyallen1999-01-29
| | | | | | | | | < print STDERR "...Skipping block with missing keyword....\n"; --- > print STDERR "...Skipping parameter block with missing keyword....\n"; git-svn-id: http://svn.cactuscode.org/flesh/trunk@134 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added LOGICAL to one of the matches, and made the changeallen1999-01-20
| | | | | | | | | < elsif($1 && $1 =~ m:EXTENDS:i && $block ne "FRIEND") --- > elsif($1 && $1 =~ m:EXTENDS:i && $block !~ m:FRIEND\s*\S:) git-svn-id: http://svn.cactuscode.org/flesh/trunk@92 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Renamed local variables from implementation to thorn for consistancy.goodale1998-12-01
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@35 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added extra initialisations to remove warnings from perl -w.goodale1998-12-01
| | | | | | | Re-indented parameter_parser.pl . git-svn-id: http://svn.cactuscode.org/flesh/trunk@34 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Lots of interface consistancy checks.goodale1998-11-26
| | | | | | | Made sure everything runs with perl 4. git-svn-id: http://svn.cactuscode.org/flesh/trunk@29 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Creates all c and fortran structures.goodale1998-11-22
| | | | | | | | | | | c subroutines to initialise the structure. fortran subroutines to initialise the structure Split config_parser into three parts - the fortran bit, the c bit, and the non-language-specific stuff. git-svn-id: http://svn.cactuscode.org/flesh/trunk@27 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Stores a list of public parameters.goodale1998-11-20
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@26 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Now creates all fortran module stuff.goodale1998-11-20
| | | | | | | Still need to iclude public parameters. git-svn-id: http://svn.cactuscode.org/flesh/trunk@25 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Now can create individual c parameter declarations.goodale1998-11-19
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@23 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Initial importcactus_cvs1998-09-25
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2 17b73243-c579-4c4c-a9d2-2d5706c11dac