summaryrefslogtreecommitdiff
path: root/src/main/CactusDefaultInitialise.c
Commit message (Collapse)AuthorAge
* Call new schedule bin "postpostinitial" during initialisationschnetter2008-05-26
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4488 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Execute routines scheduled at CCTK_RECOVER_VARIABLES ortradke2004-01-07
| | | | | | | CCTK_POST_RECOVER_VARIABLES only if this is a recovery run. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3487 17b73243-c579-4c4c-a9d2-2d5706c11dac
* new CCTK_WRAGH timebinrideout2003-08-22
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3384 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed compiler warnings about type casts with missing const qualifiers.tradke2003-03-12
| | | | | | | This closes PR Cactus/1439. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3172 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
* Added new KEYWORD parameter 'Cactus::recovery_mode' (steerable at RECOVER).tradke2002-03-19
| | | | | | | | | | | | | | | | | | This is evaluated during recovery and can be set to - 'strict' meaning all CCTK variables must be recovered successfully, and no INITIAL timebins will be scheduled This is the default. - 'relaxed' saying: recover variables if possible, and schedule INITIAL timebins afterwards Also added a new scheduling bin CCTK_POST_RECOVER_VARIABLES at which routines can be scheduling which want to modify (recovered) initial data. This closes PR Cactus/629, Cactus/893, Cactus/921. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2653 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Moved the very first CCTK_POSTSTEP schedule bin before CCTK_RECOVER_VARIABLES.tradke2001-12-17
| | | | | | | | | Now POSTSTEP routines aren't run anymore twice on the same timestep after recovery. Closes PR Cactus-824 and Cactus-826. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2512 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added missing includes and fixed a couple of 'cast from const pointer' warnings.tradke2001-10-30
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2442 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 around include filesallen2000-07-19
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1769 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Using ParameterGetallen2000-06-20
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1684 17b73243-c579-4c4c-a9d2-2d5706c11dac
* removing USE_blalanfer2000-04-19
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1605 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Removed last vestiges of rfr.goodale2000-04-17
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1554 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
* Removing compiler warningsallen2000-03-30
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1505 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Got rid of a quick hack I put in last year.goodale2000-02-02
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1334 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added the mechanism for allowing drivers to specify a function to begoodale2000-01-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | called at the bottm of a schedule traverse, and changed the flesh to use the new calls. rfrTraverse is now obsolete and will be removed soon. Drivers may now call int CCTK_RegisterGHExtensionScheduleTraverseGH(int handle, int (*func)(cGH *, const char *)) to register a ScheduleTraverse function. This is precisely equivalent to the deprecated CCTK_RegisterGHExtensionrfrTraverseGH except the registered function now takes a string and not a constant. The registered function should then fill out the cGH as per normal, and call int CCTK_ScheduleTraverse(const char *where, void *GH, int (*CallFunction)(void *, cFunctionData *, void *)) with the string and GH passed in, and either NULL or a function which takes a function pointer, a cFunctionData data structure, and a cGH. This function, in turn, may call int CCTK_CallFunction(void *function, cFunctionData *fdata, void *data) with these arguments, or may call the function in some other way if it desires. This allows a driver to loop over all sub-grids at a particular level filling out the cGH at this level of the schedule tree rather than at the top, which was the only option available before. Unigrid drivers should probably still fill out at the top and pass NULL down as it's more efficient to fill out the cGH only once, but AMR or multi-block/patch drivers can now use this mechanism. The old CCTK_rfrTraverse routine has similarly been replaced by int CCTK_Traverse(cGH *GH, const char *where) which loops over all GH extensions calling their registered ScheduleTraverseGH routines. Tom NB these names may change at the next naming meeting, but the functionality should remain. git-svn-id: http://svn.cactuscode.org/flesh/trunk@1317 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
* Adding USE_CCTK_PARAMETERSallen2000-01-12
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1235 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Changes for new timer stuff.goodale1999-10-21
| | | | | | | | | | Currently have #if 0ed out all references to old timers in thorns and flesh to act as placeholders for new timer stuff. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1079 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Changing position of Bannersallen1999-10-14
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1035 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Enable scheduling of recovery and ID checkpoint routines.tradke1999-09-22
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@981 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
* Changed CCTKi_rfrTraverse to CCTK_rfrTraverse, as it needs to be callable ↵goodale1999-09-14
| | | | | | | | | from drivers. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@907 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
* Include file name changesallen1999-07-30
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@830 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Remove RFR point for INITIAL0allen1999-07-29
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@818 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Adding a secret rfr point until we get scheduling with before andallen1999-07-25
| | | | | | | after to work properly, so the testsuite works on linux. git-svn-id: http://svn.cactuscode.org/flesh/trunk@783 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Routine name changesallen1999-07-25
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@781 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Changing some routine names.allen1999-07-24
| | | | | | | | | Internal functions are CCTKi_ Utility functions are Util_ git-svn-id: http://svn.cactuscode.org/flesh/trunk@777 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Changing RFR call stuff for new and removed pointsallen1999-07-18
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@726 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Removing debugging statementsallen1999-07-05
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@663 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Include file name changesallen1999-06-29
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@605 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added call to CCTKi_ParamFinaliseallen1999-06-28
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@595 17b73243-c579-4c4c-a9d2-2d5706c11dac
* New names for cGH variablesallen1999-06-25
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@587 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Various chnages suggested by compilation warnings etc.goodale1999-06-24
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@571 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Quick extremely dirty change to stop stuff being called twice in AMR.goodale1999-06-23
| | | | | | | | | | | | This will be removed really soon. In the meantime if you are compiling with the grace thorn, please comment out the line saying #define PUGH. Soon the initialisation stuff should be tidied up. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@565 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Mainly changes to include missing header files so that there are lessgoodale1999-06-01
| | | | | | | | | warnings when all warnings switched on (also better style 8-). Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@542 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added changes to where iteration, GH->iteration is updated.allen1999-05-15
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@530 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Changes to use the new function to create a timer structure.goodale1999-05-06
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@518 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Changed CACTUS to CCTKallen1999-03-24
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@419 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Setting GH->iteration to 1 (but this needs to be sorted out)allen1999-03-20
| | | | | | | Adding rfr entry point to paramcheck before INITIAL git-svn-id: http://svn.cactuscode.org/flesh/trunk@405 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added the RFR tree print outallen1999-03-14
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@395 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Initialise timeallen1999-03-01
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@367 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Moved the default shutdown routine to its own file.goodale1999-02-27
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@354 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Wrote the enable and disable rfr functions and register them rather thangoodale1999-02-12
| | | | | | | | | the dummy ones. All these functions are now in rfrInterface.c Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@240 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Rationalised the overloading of functions. Goodbye RegisterKeyedFunction,goodale1999-02-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | hello Overloadable ! Now each subdirectory has one header file (in the include dir) which defines the overloadable functions. Macros are then applied to the header file to produce functions of the form CCTK_OverloadFoo(... (*func)(...)) to overload the function, and to create prototypes, dummy functions, and if statements which can be used to assign dummy (or other default) functions to any overloadable function which hasn't been assigned. The resulting functions have names of the form CCTK_Foo() As a byproduct of this the communication layer should work, 'though it's all dummy functions there at the moment, but at least you can call the functions. I've put OutputGH and OutputGroup in the IO layer, but can't remember precisely what we had decided as the canonical set of overloadable functions for IO. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@206 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Changed to use CCTK_rfrTraverse which deals with extensions too.goodale1999-02-03
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@196 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Changed to use the new rfrTraverse with three arguments.goodale1999-02-02
| | | | | | | | | Uses rfrInitTree to setup a new rfr tree. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@184 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Put in lots of calls to the rfr.goodale1999-02-01
| | | | | | | | | | Added Groups.c which should contain the master functions for dealing with Groups. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@162 17b73243-c579-4c4c-a9d2-2d5706c11dac