summaryrefslogtreecommitdiff
path: root/src/comm/CactusDefaultComm.c
Commit message (Collapse)AuthorAge
* Implement CCTK_Error and friendseschnett2013-02-26
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4963 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Move MPI support from flesh to a thorneschnett2012-07-21
| | | | | | | | | | | | | | | | Move MPI support from flesh to thorn ExternalLibraries/MPI. This also requires thorns that call MPI directly to declare this in their configuration.ccl. Existing configurations using MPI need to include ExternalLibraries/MPI into their thorn list. * Declare that the flesh optionally uses MPI (because it needs to call MPI_Init) * Update test case mechanism to find out whether MPI is used * Handle configuration bindings for flesh * Don't special-case Crays any more when configuring Linux git-svn-id: http://svn.cactuscode.org/flesh/trunk@4847 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Introduce cctk_ash, retire cctk_lssheschnett2012-07-04
| | | | | | | | | | | | Introduce cctk_ash, describing the process-local array shape that has been allocated. This may be larger than cctk_lsh, the process-local shape that should be used. Retire cctk_lssh and related infrastructure to handle staggered grid functions. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4841 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Add a new function CCTK_MaxGFDim to the flesh which returns theschnetter2008-04-07
| | | | | | | | | | | | | | | | | (maximum) dimension of all grid functions. Cactus can currently not handle the case where one uses grid arrays of dimension D while grid functions have a dimension less than D. During initialisation, Cactus sets cctk_dim to the largest dimension of all grid variables in all active thorns. This is arguably wrong; cctk_dim should be set to the (maximum) dimension of the grid functions. This patch adds a new function CCTK_MaxGFDim to the flesh which returns the (maximum) dimension of all grid functions. This function is used to set cctk_dim. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4476 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fix a bug in CactusDefaultSyncGroupsByDirI() where the flesh ran into antradke2006-07-24
| | | | | | | | | infinite recursion if a driver didn't overload CCTK_SyncGroupsByDirI(). Thanks to Daniel Herbst and David Fiske for reporting this problem. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4352 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Declare and make use of new overloadable CCTK_SyncGroupsByDirI() whichtradke2006-07-06
| | | | | | | | | | | synchronises multiple groups in a single call. This function deprecates the old overloadable function CCTK_SyncGroup(). This patch concludes the discussion thread starting on http://www.cactuscode.org/old/pipermail/developers/2006-June/004933.html. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4348 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Correct typos in comments.schnetter2005-11-19
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4197 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Remove self field from cGH structureschnetter2005-01-29
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3971 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Protect call to sleep, as it is not available everywhere.goodale2004-11-05
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3899 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Reformat commentschnetter2004-04-04
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3641 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fix the return values of CactusDefaultGroupStorage{In,De}crease. Theyschnetter2004-01-16
| | | | | | | | | cannot rely on CCTK_{En,Dis}ableGroupStorage, becuase those just return a flag. Explicltly call CCTK_QueryGroupStorageI and CCTK_NumTimeLevelsI. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3516 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fix memory leak in CactusDefaultGroupStorageDecreaseschnetter2004-01-16
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3511 17b73243-c579-4c4c-a9d2-2d5706c11dac
* CCTK_{En,Dis}ableGroupStorage return not the number of time levels,schnetter2004-01-16
| | | | | | | | | | | | but only a flag. The default GroupStorage{In,De}crease routines have to explicitly convert the flag. Also only enable group storage if more than 0 time levels were requested. This makes the pattern "enable 0 time levels in order to find the number of active time levels" work. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3510 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fix typoschnetter2004-01-16
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3508 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Change the way in which pointers are passed to and from Fortran.schnetter2003-10-28
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3446 17b73243-c579-4c4c-a9d2-2d5706c11dac
* /* flush stdout/stderr and then wait a few seconds before callingtradke2003-10-09
| | | | | | | | | | | MPI_Abort() This cures a problem where processor 0 is slightly behind, eg. with activating thorns, and would print an error message (to stdout!!) about a thorn missing only a few milliseconds later. If other processors call CCTK_Abort() before that those messages wouldn't be seen. */ git-svn-id: http://svn.cactuscode.org/flesh/trunk@3428 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
* Added a const qualifier to the 'cGH *' argument of the following functionstradke2003-07-14
| | | | | | | | | | | | | (and their default overloadables): - CCTK_SyncGroup - CCTK_EnableGroupCommI / CCTK_DisableGroupCommI - CCTK_EnableGroupStorageI / CCTK_DisableGroupStorageI - CCTK_GroupStorageIncrease / CCTK_GroupStorageDecrease - CCTK_CoordRegisterRange / CCTK_CoordRegisterRangePhysIndex You should also update all driver thorns (eg. PUGH) now. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3274 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Free the string returned by CCTK_GroupName();tradke2003-07-08
| | | | | | | This closes PR Cactus/1560. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3267 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Changed CactusDefaultAbort() to return with the given return code to abort withtradke2003-06-19
| | | | | | | | (and not with 0 as it was before). This fixes PR CactusPUGH/1546. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3242 17b73243-c579-4c4c-a9d2-2d5706c11dac
* cGH.h: Add three new fields cctk_timefac, cctk_levoff, andschnetter2003-06-17
| | | | | | | | | | | | | cctk_levoffdenom to the cGH structure that simplify handling coordinates in mesh refinement settings. cctk.h: Pass the new fields to Fortran routines. Add a new macro CCTK_ORIGIN_SPACE to simplify using these fields. CactusDefaultComm.c: Initialise the new fields. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3240 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added CactusDefaultInterpGridArrays() as a default for the overloadabletradke2003-01-24
| | | | | | | | | routine CCTK_InterpGridArrays(). If no driver thorn was activated to overloaded the latter then the default routine will be called and print a level-0 warning saying so. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3099 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed gcc warning.tradke2002-12-16
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3045 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
* 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