aboutsummaryrefslogtreecommitdiff
path: root/src/Comm.c
Commit message (Collapse)AuthorAge
* Use MPI_COMM_WORLD as communicator if a NULL pointer was passed for the cGHtradke2007-12-06
| | | | | | | | | argument into PUGH's overloadable for CCTK_Barrier(). This allows CCTK_Barrier() to be called even before a grid hierarchy exists (eg. during PARAM_CHECK). git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@488 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Provide new overload function for CCTK_SyncGroupsByDirI().tradke2006-07-06
| | | | | | | | | | | Do not overload CCTK_SyncGroup() anymore by default. This patch requires the most recent changes in the flesh API to provide the new overloadable function CCTK_SyncGroupsByDirI(), as discussed in thread http://www.cactuscode.org/old/pipermail/developers/2006-June/004933.html. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@482 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Improve periodic boundaries on small domains: allow the number ofschnetter2005-09-26
| | | | | | | | | | | | ghost zones to be larger than the number of interior points if there is only one processor in the corresponding direction. This is necessary to allow two ghost zones when there is only one interior grid point, which is often used to set up lower-dimensional domains. Second part of this patch. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@470 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Improve periodic boundaries on small domains: allow the number ofschnetter2005-09-26
| | | | | | | | | | ghost zones to be larger than the number of interior points if there is only one processor in the corresponding direction. This is necessary to allow two ghost zones when there is only one interior grid point, which is often used to set up lower-dimensional domains. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@469 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Insert several checks whether variable indices passed into routinesschnetter2005-09-26
| | | | | | | are legal, and whether malloc returned a null pointer. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@468 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Store the directional stagger indices in the pGV structure rather than just thetradke2004-06-26
| | | | | | | | staggering code. And use this former later on - this closes PR CactusPUGH 1549: "Staggered grids crash PUGH". git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@446 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Fixed gcc compiler warnings about potentially undefined return values.tradke2004-05-14
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@439 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Check for invalid arguments in PUGH_SyncGArrayGroup and abort onschnetter2004-03-09
| | | | | | | | | | error. Do not synchronise groups without storage when running on a single processor. (This happens only for periodic boundaries.) git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@432 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Adding semicolon after fileversion macro so TAGS work properly.goodale2004-02-05
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@430 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Allow vector groups of scalars.schnetter2003-11-21
| | | | | | | | | | Allow vector groups with more than one declared variable. Much of this patch consists of removing special case code for scalars. Scalars are now almost everywhere treated as rank 0 arrays. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@423 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Added a const qualifier to the 'cGH *' argument of PUGH functions which overloadtradke2003-07-14
| | | | | | | | | | | | | the following flesh routines: - CCTK_SyncGroup - CCTK_EnableGroupCommI / CCTK_DisableGroupCommI - CCTK_EnableGroupStorageI / CCTK_DisableGroupStorageI - CCTK_GroupStorageIncrease / CCTK_GroupStorageDecrease You will also need to update the flesh now. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@414 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Declare PUGH_SyncGArrayGroup() to be a static function like its declarationtradke2002-05-13
| | | | | | | | | before did. This fixes a compiler warning. VS: ---------------------------------------------------------------------- git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@383 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Making sync switch on comm for GA group.goodale2002-04-17
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@376 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Fixed a bug when freeing the comm structure of individual grid arrays withtradke2002-04-08
| | | | | | | | multiple timelevels. Completed grdoc. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@374 b61c5cb5-eaca-4651-9a7a-d64986f99364
* PUGH overloadables for CCTK_MyProc(), CCTK_nProcs(), CCTK_Barrier() taketradke2001-10-31
| | | | | | | | a 'const cGH *' argument now. Also fixed a couple of other warnings. Untabified sources. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@357 b61c5cb5-eaca-4651-9a7a-d64986f99364
* The pGExtras->hyper_volume[] array is counted by number of elements now,tradke2001-06-12
| | | | | | | | not by number of bytes anymore. This fixes PR CactusPUGH-PUGH/689. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@333 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Making rcsid string a constant - PR 669.goodale2001-05-10
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@324 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Tidying warn messagesallen2001-05-06
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@320 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Enabled communication timers.tradke2001-04-02
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@313 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Removed unused variable.tradke2001-01-19
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@301 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Added non-MPI code to sync (periodic) boundary conditions for thetradke2001-01-15
| | | | | | | | single-processor case. This fixes CactusPUGH-PUGH 481 as well as John's problems with QFT. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@299 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Give a warning in PUGH_SyncGroup() if an invalid groupname was passed.tradke2001-01-10
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@297 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Erik's changes to PUGH's communication scheme.tradke2000-09-15
| | | | | | | | | | | Now send requests aren't simply freed anymore but rather explicitely finished by calling MPI_Waitall() on all of them for a given communication. This solves the problem of MPICH and LAM on some Linux SMP machines where it needed a long time to complete a communication. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@268 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Allow ghostzone sizes of 0. This was buggy before.tradke2000-08-04
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@260 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Fixing memory problem which can cause core dumps with timelevels. Thisgoodale2000-07-21
| | | | | | | | | is a temporary fix as some of this code needs to be redone properly. Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@251 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Immediately free MPI send requests after MPI_Isend() so that we don't havetradke2000-06-27
| | | | | | | to MPI_Wait() on them. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@234 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Really free comm buffers when destroying a grid array variable.tradke2000-06-22
| | | | | | | | | | | | This fixes a memory leak in PUGH. Also introduced a termination routine for PUGH which destroys the top-most pGH. Now all memory ever allocated by PUGH should be finally freed at CCTK_TERMINATE. Other thorns' termination routines which still need some information from the pGH should register themselfs as "BEFORE Driver_Terminate". git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@226 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Enabled PUGH to synchronize groups of arrays in one communication calltradke2000-06-14
| | | | | | | | | | | | | | rather than doing it sequentially on individual arrays. Nothing changes for the CCTK routines overloaded by PUGH. For BAM and other thorns which don't care about groups there is now a separate interface to synchronize individual arrays. Also eliminated the restriction to synchronize 1D and 3D arrays only - now it should do arbitrary dims (not yet tested). git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@222 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Changed names of PUGH functions to be uniform. Now all PUGH functionsgoodale2000-04-19
| | | | | | | | | should begin with PUGH. Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@211 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Check HAVE_UNISTD_H before including it.goodale2000-04-19
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@207 b61c5cb5-eaca-4651-9a7a-d64986f99364
* adding a return value for Exit/Abortlanfer2000-04-18
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@204 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Fixing rscid warnings, untabified files, combined identical case statementstradke2000-04-18
| | | | | | | for GROUP_GF and GROUP_ARRAY. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@203 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Changing in line with the new flesh definition of an overloadable function.goodale2000-04-13
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@199 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Use CCTK_MPI instead of MPIallen2000-04-04
| | | | | | | Reconfigure after you update git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@193 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Finxing PUGH to sync nect timelevel, not current one. The current timelevelgoodale2000-03-31
| | | | | | | | | should never be touched. Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@191 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Trial of memory reporting in PUGH, settingallen2000-03-23
| | | | | | | | | | pugh::storage_verbose = "yes" will give an screen report of the number of grid arrays and the storage they use in bytes each time a variable group has storage enabled/disabled. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@185 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Major changes to PUGH as the dearly loved pGF is removed, and a grid functionallen2000-03-23
| | | | | | | | | | | | | | | | | | | | | | | is lowered to being simply a special case of a grid array, pGA. Grid arrays can all have different sizes, which means that now the size of a GA is moved from the GH to a structure on the GA, along with a lot of other connectivity and additional information which was formerly on the GH. If you need to care about these changes, take a look at the files in src/include/pGH.h and src/include/pGA.h, to see the new structures (I'll leave the old files pGF.h and SetupPGF.c around for a while to compare with). Also, look at a PUGH dependent file which has already been converted, such as CactusPUGHIO/IOASCII/src/Write1D.c. Warning: This commit breaks the development versions of IOHDF5 and IsoSurfacer, these will be fixed real quick. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@182 b61c5cb5-eaca-4651-9a7a-d64986f99364
* removing if (MPI_Active)lanfer2000-03-20
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@179 b61c5cb5-eaca-4651-9a7a-d64986f99364
* overloading CCTK_Exit with: int pugh_Exit(int retval, cGH *GH)lanfer2000-03-17
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@178 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Fixing compiler warnings about unused variables, missing prototypes,tradke2000-03-08
| | | | | | | | | | | and return values. Fixing CactusPUGH-PUGH 264. Thomas git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@176 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Adding prototypes and removing warning messagesallen2000-03-05
| | | | | | | Fixed CactusPUGH-PUGH/256 (missing prototype) git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@172 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Adding missing line, but since DERIVEDTYPE are not currently used, it isallen2000-03-05
| | | | | | | | | not tested. CactusPUGH-PUGH/259 git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@171 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Untabified.goodale2000-02-17
| | | | | | | | | | Got rid of redundant file. Did some formatting changes in line with the coding guidelines. Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@164 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Fixed small bugs in overlap and neighbours for arraysallen2000-02-03
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@158 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Arrays (no communication yet)allen2000-01-25
| | | | | | | General tidying git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@153 b61c5cb5-eaca-4651-9a7a-d64986f99364
* New specification for CCTK_GroupDataallen2000-01-13
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@147 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Changing to new function CCTK_GroupDataallen2000-01-12
| | | | | | | | | Adding USE_CCTK_PARAMETERS Removing compiler warnings git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@142 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Bernds changes so that BAM can sync as it did in 3.2.allen1999-12-01
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@137 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Added lots of missing function prototypes.goodale1999-11-30
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@136 b61c5cb5-eaca-4651-9a7a-d64986f99364
* pugh_Barrier() now really does a global synchronization.tradke1999-10-26
| | | | | | | Was an empty function before. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@119 b61c5cb5-eaca-4651-9a7a-d64986f99364