summaryrefslogtreecommitdiff
path: root/src/main/InitialiseCactus.c
Commit message (Collapse)AuthorAge
* CCTKBindings_RegisterThornFunctions() returns any non-negative value in casetradke2004-04-24
| | | | | | | of an error. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3675 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Check return code of CCTKBindings_RegisterThornFunctions() and stop withtradke2004-04-23
| | | | | | | a level-0 warning in case of an error. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3671 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
* Setup cache after parameters are read, so thatrideout2002-09-16
| | | | | | | e.g. cactus::manual_cache_setup is recognized. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3002 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Store the information whether we recover from a checkpoint or nottradke2002-03-19
| | | | | | | | (as returned by CCTKi_BindingsParameterRecoveryInitialise()) in the tFleshConfig structure. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2652 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Adding a const qualifier to the 'cGH *' argument of some flesh routinestradke2001-11-05
| | | | | | | | and for I/O method registration. You will also need to update the I/O thorns which I will commit changes to now. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2452 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
* Initial implementation of Function Aliasing for thorns.allen2001-02-24
| | | | | | | | | | | | | | | | | | This is described on a Spec on the web pages at the moment, and will move to the documentation once it is tested and extended a bit more. If you want to have a look at it in action, checkout the thorns TestFunctions1A, TestFunctions1B and TestFunctions2 which will be in AlphaThorns in a few minutes time. At the moment it is only possible to use Function Aliasing for C functions which use and return Cactus data types. You will need to rebuild your configurations once you update, but apart from that these changes shouldn't affect anyone ... if you see any problems please let us know. Gabrielle git-svn-id: http://svn.cactuscode.org/flesh/trunk@2060 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Making the parameter cctk_show_schedule do what it says it doesallen2001-02-21
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2035 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
* GRdoc + coding guideline stuff.goodale2000-10-04
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1851 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added a new function CCTK_RunTime which returns the number of seconds sinceallen2000-10-03
| | | | | | | the simulation started. git-svn-id: http://svn.cactuscode.org/flesh/trunk@1846 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Adding prototypesallen2000-07-19
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1770 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Tidying up prototypes, still a few to sort out that need to be createdallen2000-06-24
| | | | | | | by the CST git-svn-id: http://svn.cactuscode.org/flesh/trunk@1699 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Shifting registration of variables to after reading of parameter file.goodale2000-04-23
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1617 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Stop Cactus if CCTKi_BindingsParameterRecoveryInitialise() returned atradke2000-04-19
| | | | | | | negative value for unsuccessful parameter recovery. git-svn-id: http://svn.cactuscode.org/flesh/trunk@1593 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Set warning level to 1 for failing to recover from parameters. Suspect thatallen2000-04-19
| | | | | | | if noone even tries to recover parameters an error code is returned. Need to fix this properly. git-svn-id: http://svn.cactuscode.org/flesh/trunk@1589 17b73243-c579-4c4c-a9d2-2d5706c11dac
* In CCTKi_InitialiseScheduler(),tradke2000-04-19
| | | | | | | | | | - advance the parameter set mask to PARAMETER_RECOVERY_IN - call CCTKi_BindingsParameterRecoveryInitialise() to recover the parameters from a checkpoint file - advance the parameter set mask to PARAMETER_RECOVERY_POST git-svn-id: http://svn.cactuscode.org/flesh/trunk@1588 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
* CCTK function name changesallen2000-01-25
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1297 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Capitalising include file namesallen2000-01-16
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1265 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Various changes to make sure there are function prototypes for things.goodale1999-11-30
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1179 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Trying a new place for printing the Cactus bannerallen1999-11-01
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1122 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Moving position of CactusBannerallen1999-10-18
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1056 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Moving where banners are printedallen1999-10-14
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1030 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
* Include file name changesallen1999-07-30
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@830 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Mainly changes to get redirection of stdout to work.goodale1999-07-23
| | | | | | | | | | | | | | | Now the defaults for overloaded functions are setup before anything else, and the the Overloading functions count the number of times they are called and don't allow the thing to be overloaded more than twice - once for the default, and once for people actually wanting to overload it. Redirection now works - output is put into files like CCTK_Proc<x> where x is the process number. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@773 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Missing prototypesallen1999-06-25
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@586 17b73243-c579-4c4c-a9d2-2d5706c11dac
* New ProcessEnvironment stuff needed if we want to switch of MPI evengoodale1999-02-27
| | | | | | | | | if it is compiled in. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@357 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Various bits of tidying up etc.goodale1999-01-15
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@57 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added functions to register thorns.goodale1999-01-13
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@50 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