summaryrefslogtreecommitdiff
path: root/src/comm/CactusDefaultComm.c
Commit message (Collapse)AuthorAge
* Two new overloadable routinesgoodale2002-04-04
| | | | | | | | | | | | | | | | | | | | | | | | | | CCTK_GroupStorageIncrease(cGH *GH, int n_groups,const int *groups,const int *timelevels, int *status) CCTK_GroupStorageDecrease(cGH *GH, int n_groups,const int *groups,const int *timelevels, int *status) These should increase or decrease the number of timelevels with storage enabled to the number specified in the timelevels array for each group in the groups array. The status array is optional, and if not NULL should contain the previous number of timelevels enabled for that group. A timelevel value of -1 implies enable/disable all timelevels for that group. The Increase function should never decrease the amount of storage, and the Decrease one never increase it, so it is possible to use Enable to ensure a certain minimum number of timelevels are available without problem, and to pass the status return from Enable in as the timelevel array of Decrease to restore the previous state of the system. The defaults for these functions currently call the old Enable and Disable GroupStorage routines if they have been overloaded, similarly the defaults for the old routines have been changed to call the new routines if they are overloaded, passing -1 as the timelevel value. The old routines will disappear eventually once all drivers are converted to the new routines. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@2693 17b73243-c579-4c4c-a9d2-2d5706c11dac
* CCTK_MyProc(), CCTK_nProcs(), CCTK_Barrier() and their Cactus defaulttradke2001-10-31
| | | | | | | overloadables take a 'const cGH *' argument now. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2443 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Explicitly flush stdout and stderr before calling CactusDefaultAbort()tradke2001-06-11
| | | | | | | | | | | since some MPI implementations might just kill the other processes. This should fix PR Cactus-701. Also added grdoc. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2221 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
* Replaced assert(0) with abort() in CactusDefaultAbortallen2000-07-20
| | | | | | | | However, it is now commented out, otherwise you get a core file if you give a wrong parameter, and we want to add less drastic behaviour git-svn-id: http://svn.cactuscode.org/flesh/trunk@1772 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
* Included assert.h which is need for non-MPI configs.tradke2000-07-17
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1754 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added CactusDefaultAbortallen2000-07-15
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1748 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Change arguments for default CCTK_Exitallen2000-07-14
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1744 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Compiler warningsallen2000-04-19
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1603 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Stuff for cactus -x[n].goodale2000-04-18
| | | | | | | | | Cosmetic changes. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1576 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Cosmetic changes.goodale2000-04-18
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1572 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Removing rcsid warningsallen2000-04-17
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1560 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
* default barrierlanfer2000-03-24
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1493 17b73243-c579-4c4c-a9d2-2d5706c11dac
* int CactusDefaultExit(int retval, cGH *GH)lanfer2000-03-17
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1474 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Use a fake dim to allocate arrays if cctk_dim is 0.tradke2000-03-03
| | | | | | | | | | Fix for BR 221. Thomas git-svn-id: http://svn.cactuscode.org/flesh/trunk@1410 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Memory allocation error pointed out by Erik.goodale2000-02-17
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1388 17b73243-c579-4c4c-a9d2-2d5706c11dac
* convlevel starts at 0allen2000-02-04
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1364 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
* using stagger definitionslanfer2000-01-14
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1258 17b73243-c579-4c4c-a9d2-2d5706c11dac
* stagger supportlanfer2000-01-14
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1256 17b73243-c579-4c4c-a9d2-2d5706c11dac
* bug fix for lsshlanfer2000-01-13
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1249 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
* Changing various things pointed to by compiling with -Wall.goodale1999-11-03
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1129 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Include file name changesallen1999-07-30
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@832 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
* New names for many of the Group functions which are used by infrastructureallen1999-07-08
| | | | | | | | | thorns and the flesh. The names should be more consistent now. You might want to hold of from this update for a little while until all the thorn changes are in. git-svn-id: http://svn.cactuscode.org/flesh/trunk@688 17b73243-c579-4c4c-a9d2-2d5706c11dac
* New CCTK function nameallen1999-07-04
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@637 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
* Double -> CCTK_REALallen1999-06-15
| | | | | | | | | | | | | REAL -> CCTK_REAL POINTER -> CCTK_POINTER VARIABLE_REAL -> CCTK_VARIABLE_REAL (etc) GH->iteration is now an int (not an unsigned long int) git-svn-id: http://svn.cactuscode.org/flesh/trunk@551 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Adding origin of coordinate system temporarily to GHallen1999-04-06
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@441 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Adding to GHallen1999-03-01
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@365 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Put some code into GetnProcs and MyProc for when MPI is compiled in andgoodale1999-02-27
| | | | | | | | | | active. Driver subroutines should still overload these if they aren't using MPI_COMM_WORLD as they're communicator. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@356 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added GetMyProc and GetnProcsallen1999-02-23
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@331 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Changes to get timelevels working.goodale1999-02-17
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@302 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Need to use the trinary operator rather than || in the mallocs.goodale1999-02-13
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@261 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added new variables to fortran argument listsallen1999-02-13
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@255 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Allocate memory for group and variable data pointers even if thereallen1999-02-10
| | | | | | | | are no groups or variables or the dimension is zero so that the memory allocation test does not fail git-svn-id: http://svn.cactuscode.org/flesh/trunk@235 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Reorganised group stuff.goodale1999-02-08
| | | | | | | | | Now all in Groups.c Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@225 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Removed include for prototypesallen1999-02-08
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@221 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
* More changes for the GH extension registration.goodale1999-02-03
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@193 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Some tidying up.goodale1999-01-20
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@89 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Set of changes/tidying up which will actually allow the code to run.goodale1999-01-15
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@59 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Routines to hold GH extension data.goodale1999-01-15
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@56 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Put #define 0 around various bits which weren't compiling.goodale1999-01-08
| | | | | | | | | The code will now compile, but core dumps. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@39 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Started filling in default functions.goodale1998-10-14
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@21 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Registration and default files.goodale1998-09-29
git-svn-id: http://svn.cactuscode.org/flesh/trunk@14 17b73243-c579-4c4c-a9d2-2d5706c11dac