summaryrefslogtreecommitdiff
path: root/lib/sbin
Commit message (Collapse)AuthorAge
* 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
* Put an extern "C" around the parameter structure in header files.goodale1999-10-24
| | | | | | | | | Some tidying up. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1100 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Removed unused file.goodale1999-10-24
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1099 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed to make it run on NT - not a perl bug, but the normal sortgoodale1999-10-24
| | | | | | | | | | | of NT filesystem problems 8-( Changed things pointed to by perl -cw Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1098 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Modified Runtest so that it looks first to see if all the thornsallen1999-10-24
| | | | | | | are compiled for a test ... this needs to be improved git-svn-id: http://svn.cactuscode.org/flesh/trunk@1092 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Shouldn't need this file anymoreallen1999-10-24
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1091 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Creating all files with WriteFile, and changing filenames ofallen1999-10-24
| | | | | | | required packages git-svn-id: http://svn.cactuscode.org/flesh/trunk@1090 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Print a comment at the top of the ThornListallen1999-10-24
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1088 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Don't print the files which are being created anymoreallen1999-10-24
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1087 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Changing the format of the ThornList commentsallen1999-10-24
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1086 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Ignore comment lines in ThornListallen1999-10-24
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1085 17b73243-c579-4c4c-a9d2-2d5706c11dac
* make <name>-thornparfiles was broken due to info comments in the ThornList.tradke1999-10-21
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1082 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Now all files created by the CST are compared with those alreadyallen1999-10-21
| | | | | | | | on disk, and only written if different. This means that recompilation times should now be a lot quicker. git-svn-id: http://svn.cactuscode.org/flesh/trunk@1076 17b73243-c579-4c4c-a9d2-2d5706c11dac
* CST only writes files which have changed (still a couple more writesallen1999-10-20
| | | | | | | | | | to replace). Also a bug fix for Build Headers for when the file to be included is in the include directory of the thorn. git-svn-id: http://svn.cactuscode.org/flesh/trunk@1068 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Got rid of unnecessary warningallen1999-10-19
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1064 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed thorn list parsing: GNATS/139allen1999-10-18
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1063 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Changed the buildthorns routine to return some info about a thorn.goodale1999-10-18
| | | | | | | | | BuildActiveThorns now adds comments to the ThornList. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1053 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Don't add extended ranges to master parameter.goodale1999-10-18
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1052 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added checks for the existence of implementations inherited fromgoodale1999-10-14
| | | | | | | | | | | or befriended. Parser now understands a stagger keyword. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1019 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Small change which I think makes it work with perl 4.goodale1999-10-07
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1009 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fix for correct thorn report when test failsallen1999-09-27
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1003 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added thorn Time to applications.goodale1999-09-27
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1002 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added z9 for checkoutallen1999-09-27
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1000 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Removed a print statementallen1999-09-25
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@997 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Second attempt at this. Now only the first 4 letters are significantallen1999-09-25
| | | | | | | in COMMUNICATION STORAGE TRIGGERS and LANGUAGE git-svn-id: http://svn.cactuscode.org/flesh/trunk@992 17b73243-c579-4c4c-a9d2-2d5706c11dac
* More messages at the end of runtest ... tells you which thorns wereallen1999-09-25
| | | | | | | tested and if a run failed which thorn it was in git-svn-id: http://svn.cactuscode.org/flesh/trunk@991 17b73243-c579-4c4c-a9d2-2d5706c11dac
* I committed a big bug earlier today, this should fix it, I hopeallen1999-09-24
| | | | | | | noone noticed ... git-svn-id: http://svn.cactuscode.org/flesh/trunk@990 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Accept first 4 letters of any keyworkallen1999-09-24
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@986 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
* Convert CCTK entry points to uppercase.goodale1999-09-20
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@974 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Tidying upallen1999-09-20
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@972 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Changed so that it will work under NT.goodale1999-09-19
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@971 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
* Fixed bug in stuff for registering triggers.goodale1999-09-18
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@958 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Ignores everyting after a # in a ThornList.goodale1999-09-18
| | | | | | | | | Now can just type q to exit. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@952 17b73243-c579-4c4c-a9d2-2d5706c11dac
* A couple of bug-fixes to stop infinite loops.goodale1999-09-18
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@951 17b73243-c579-4c4c-a9d2-2d5706c11dac
* More validation stuff for checking a varuable group exists.goodale1999-09-18
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@950 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed return type of CCTKi_BindingsScheduleInitialise.goodale1999-09-17
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@944 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Seems to create all files now, and they all compile.goodale1999-09-17
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@942 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Now creates files.goodale1999-09-17
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@941 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Latest perly stuff for the parameters.goodale1999-09-17
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@940 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Seems to be generating reasonable C code now. About to dogoodale1999-09-17
| | | | | | | | | some tidying up then integration. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@939 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Some new perl stuff for the scheduling.goodale1999-09-16
| | | | | | | | | | | | | | | | | ScheduleParser.pl reads the schedule stuff into a database - still not perfect, as all it does is replace scheduling stuff with distinctive blocks and parse all the info about the block, whereas it should also parse all the if statements and associate them with the blocks too. NewCreateScheduleBindings.pl is only just started, but will be renamed CreateScheduleBindings when it is complete and actually does what it's supposed to. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@938 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed white space errorsallen1999-09-16
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@932 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Start of a perl replacement cpp to stop all these annoying differences ↵goodale1999-09-15
| | | | | | | | | | | | | | | between cpp on all the architectures. Almost works correctly for dependencies - still a bug or two to track down. Macros of the form #define a(b) not yet supported. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@927 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Now TRIGGERS can be group names as well as variable names.allen1999-09-15
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@922 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Took out some commentsallen1999-09-15
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@921 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Routine to copy example parameter files to one directoryallen1999-09-14
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@915 17b73243-c579-4c4c-a9d2-2d5706c11dac