summaryrefslogtreecommitdiff
path: root/src/main/CactusDefaultEvolve.c
Commit message (Collapse)AuthorAge
* Changes for ticket #768sbrandt2012-06-18
| | | | | | | | Change per thorn -DTHORN_IS_xxx to a per thorn -I bindings/include/xxx git-svn-id: http://svn.cactuscode.org/flesh/trunk@4839 17b73243-c579-4c4c-a9d2-2d5706c11dac
* See Cactus Patches <patches@cactuscode.org>swhite2006-02-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Subject: CactusDefaultEvolve.c cleanup Date: Fri, 23 Dec 2005 15:43:50 +0100 The code in CactusDefaultEvolve.c, was complicated by 1) a global variable, cactus_terminate, which is checked but never set except in commented-out code, and 2) a lot of other commented-out code. This patch only removes code that is never used, and is intended to make the remaining code easier to follow and potentially safer. I checked all arrangements available to me, including Carpet, for cactus_terminate. It appears only in CactusPUGH/PUGH/src/Evolve.c (where it is commented out) AlphaThorns/Spawner/src/Evolve.c This change removes * live but useless code that references cactus_terminate * commented-out TerminationStepper function * commented-out code for cactus_terminate_global * now-unused TERMINATION_RAISED_BRDCAST * numerous commented out CCTK*Timer code I checked to see that it compiles, and is a patch against the most recent checkout. I then ran the standard testsuites with the modified code and verified that their results were identical to those with the unmodified code. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4253 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Replace CCTK_NumTimeLevels with CCTK_MaxTimeLevelsallen2003-07-16
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3282 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Parameter Cactus::max_runtime is now evaluated as REAL.tradke2003-01-12
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3090 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added another termination condition integer parameter cactus::max_runtimetradke2002-11-08
| | | | | | | and extended the keyword parameter cactus::terminate to select this condition. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3027 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added semicolon after CCTK_FILEVERSION().rideout2002-05-18
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2828 17b73243-c579-4c4c-a9d2-2d5706c11dac
* CCTK_ParameterGet() returns a const pointer now.tradke2001-09-20
| | | | | | | Also fixed some gcc warnings and added some grdoc. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2373 17b73243-c579-4c4c-a9d2-2d5706c11dac
* The condition for terminating the Cactus main evolution has changedallen2001-07-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | slightly, and will affect people using PUGH (or the default Cactus evolution routine) *and* terminating by setting the parameters cctk_initial_time and cctk_final_time There is now a keyword parameter, Cactus::terminate which can be set either to: iteration (the default): terminate when cctk_itlast is reached time: if cctk_initial_time < cctk_final_time terminate when time >= cctk_final_time if cctk_initial_time > cctk_final_time terminate when time <= cctk_final_time either: terminate when either of the above conditions are true both: terminate when both of the above conditions are true never: ignore iteration and time for termination The reason for making this change is to support a negative timestep. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2273 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Updated evolution skeleton. Note that the flesh can't do any timelevelallen2001-05-10
| | | | | | | | | rotation, you need a driver for that. Now give a warning if you are using the default evolution routine for variables with more than one timelevel. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2166 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
* Adding extra conditions for terminating the evolution loop.allen2001-03-16
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2080 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixing warningsallen2001-02-24
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2049 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Updated to use new syntax for MainLoopIndex.goodale2000-10-12
| | | | | | | | | | Fixed header files so prototype for above is included. Should now work on Hitachi machine. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1867 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
* Use the CCTK_MainLoopIndex ... these will soon be moved to driver ↵allen2000-09-19
| | | | | | overloadable functions git-svn-id: http://svn.cactuscode.org/flesh/trunk@1829 17b73243-c579-4c4c-a9d2-2d5706c11dac
* #ifdef MPI changed into #ifdef CCTK_MPItradke2000-07-18
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1756 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Changes to CCTK_MainLoopIndex and CCTK_SetMainLoopIndex (which now returns ↵allen2000-06-26
| | | | | | what the index is set to) git-svn-id: http://svn.cactuscode.org/flesh/trunk@1705 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Using ParameterGetallen2000-06-20
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1684 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Moved the termination condition check for the main iteration looptradke2000-05-15
| | | | | | | | into a separate routine DoneMainLoop(). Now parameter Cactus::cctk_itlast is really steerable. git-svn-id: http://svn.cactuscode.org/flesh/trunk@1667 17b73243-c579-4c4c-a9d2-2d5706c11dac
* New macros for Fortran callsallen2000-05-10
| | | | | | | CCTK_Warn -> CCTK_VWarn where appropriate git-svn-id: http://svn.cactuscode.org/flesh/trunk@1639 17b73243-c579-4c4c-a9d2-2d5706c11dac
* removing unsed variablelanfer2000-04-19
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1599 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
* Cosmetic changeallen2000-04-04
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1523 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Tidying up.goodale2000-03-29
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1502 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
* Removing the schedule point BOUND which isn't needed now.allen1999-12-16
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1196 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Removed tabs from files.goodale1999-11-24
| | | | | | | | | Added @version lines to various header files. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1170 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixing logic for cctk_final_time and cctk_itlast, hopefully got itallen1999-11-06
| | | | | | | right now, I guess I'm the first person to use cctk_final_time ! git-svn-id: http://svn.cactuscode.org/flesh/trunk@1142 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Various things pointed out by running Insure on the code.goodale1999-10-26
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1109 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
* Header file changesallen1999-10-17
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1044 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added CCTK_MainLoopIndex() and CCTK_SetMainLoopIndex() to controltradke1999-09-22
| | | | | | | | the iteration counter in the evolution loop. This is used for checkpointing & recovery. git-svn-id: http://svn.cactuscode.org/flesh/trunk@982 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
* Include file name changesallen1999-07-30
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@830 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
* Include file name changesallen1999-06-29
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@605 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
* More changes from Joan and his NT nightmares.jmasso1999-06-03
| | | | | | | Please try this on a reasonable OS. git-svn-id: http://svn.cactuscode.org/flesh/trunk@543 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
* Changed CACTUS to CCTKallen1999-03-24
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@419 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added new logic for deciding when to terminate iterations, also changesallen1999-03-21
| | | | | | | | | | | | where physical time is updates, and put a section at the top to output the initial data, but I feel like it should be somewhere else. Going through the default Initialise and Evolution routines is something we should put on the list for next Friday. Gab git-svn-id: http://svn.cactuscode.org/flesh/trunk@408 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Getting the right logic for stopping the iterationsallen1999-03-20
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@406 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Update GH->time in evolution loopallen1999-03-01
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@366 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Put #ifdef 0 around one MPI call.goodale1999-02-27
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@355 17b73243-c579-4c4c-a9d2-2d5706c11dac