aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* 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
* Applied patch from Erik Schnetter: rename PUGHi_GenerateTopology totradke2006-06-23
| | | | | | | | PUGH_GenerateTopology an export it to other thorns. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@481 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Erik's patch to "Make PUGH's memory statistics work again".tradke2006-06-15
| | | | | | | | | See http://www.cactuscode.org/old/pipermail/patches/2005-November/000118.html for the start of the thread. The final patch is not available on the patches mailing list but can eventually be refered to via http://www.aei.mpg.de/~jthorn/spool/pugh-memstats-2.diff. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@480 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Registering the TraditionalTopology routine as "manual" so you can set ↵dstark2006-03-07
| | | | | | processor_topology="manual" and set processor_topology_* parameters. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@479 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Added missing include of <stdlib.h> (for calloc).tradke2006-01-12
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@478 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Minor change for Pelican (AIX): included stdlib.h for qsort.dstark2005-12-15
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@476 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Changes from Dylan Stark to allow registration of topologygoodale2005-12-14
| | | | | | | | | | | | | | | | | | | | routines and introducing a physical to logical processor mapping. Now it is possible to register custom topology routines if you don't like the two ones we have at the moment (the traditional one and the new one from Frank Loeffler). You can also provide routines to optimise the placement of neighbouring processes on the processors by giving a custom mapping from the numbers PUGH uses for the processors to the actual MPI processor. Please treat this registration as semi-volatile for the moment and coordinate with Dylan if you fancy using it. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@475 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Apply Frank Loeffler's patch to improve the processor distribution ofschnetter2005-09-26
| | | | | | | | | | | | | | | | | | | | | | | | PUGH: Up to now, PUGH does not take the actual grid size into account while setting the number of processors/domains in each direction. This gives problems, e.g. using boxes like 200x7x7 (with 3 ghostzones). It also does not really do a good job in situations with non near-cubic domains (like in bitant mode it devides first in the z-direction, which is usually the smallest). I inserted another decomposition algorithm which is looking for the longest direction and devides this if possible. Because it was done to be easy to understand, it can fail in certain situations, in which it is gracefully falling back to the old decomposition (e.g. a cubic box and 9 processors). To include this algorithm I added a keyword "automatic_old" to PUGH::processor_topology. The new behaviour is the default; this keyword re-enables the old behaviour. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@471 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
* Using neighbours to correctly setup bbox and ownership arrays.dstark2005-06-20
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@466 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Set cctk_bbox to zero for periodic boundaries.schnetter2005-04-18
| | | | | | | This closes PR 483. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@465 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Take group vector length into account when deciding how to allocateschnetter2005-03-24
| | | | | | | storage git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@464 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Allow realloc to return NULL for a zero-sized requestschnetter2005-03-24
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@463 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Report an error for GroupDynamicData for variables with zeroschnetter2005-03-24
| | | | | | | variables, because PUGH cannot handle this case git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@462 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Correct termination criterion when dt<0schnetter2005-03-24
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@461 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Implement the option "PUGH::local_size_includes_ghosts", which allowsschnetter2005-03-20
| | | | | | | | specifying the processor-local unghosted grid size -- this is the grid size that should stay constant for a parallel performance test. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@460 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Take the vector length into account when allocating storage.schnetter2005-02-19
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@459 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Use CCTK_BYTE instead of CCTK_CHARschnetter2005-01-29
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@457 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Provide MPI datatypes for both CCTK_BYTE and CCTK_CHARschnetter2005-01-29
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@456 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Fill activetimelevels field of cGroupDynamicData structure.schnetter2005-01-29
| | | | | | | Make PUGHi_NumTimeLevelsArray globally visible. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@455 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Add semicolon after CCTK_FILEVERSION macroschnetter2005-01-02
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@454 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Calculate load skew correctlyschnetter2005-01-02
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@453 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Add missing #include <stddef.h> and #include <stdio.h> statements.schnetter2004-12-30
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@452 b61c5cb5-eaca-4651-9a7a-d64986f99364
* assert fixyye002004-08-12
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@450 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Fix for my last commit: destroy groups in ascending order.tradke2004-06-29
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@449 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Return size 1 in PUGH_ArrayGroupSize() for zero-sized vector groups (same astradke2004-06-29
| | | | | | | | for non-allocated variables). This closes PR CactusPUGH/1792: "Zero sized vector groups kill PUGH". git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@448 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Don't try to free zero-sized vector groups.tradke2004-06-29
| | | | | | | This closes PR CactusPUGH/1792: "Zero sized vector groups kill PUGH". git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@447 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
* Check on each processor that there are enough interior points.tradke2004-06-21
| | | | | | | This is related to PR CactusPUGH/1726 "Periodic boundaries without MPI are broken". git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@445 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Initialize new current timelevel after timelevel rotation according totradke2004-06-10
| | | | | | | | | | PUGH::intitialize_memory. This closes PR CactusPUGH/1312: "PUGH should initialise memory also after time level cycling". git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@444 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Added a sanity check 'nsize >= 3*nghosts' and abort if this is not true.tradke2004-06-08
| | | | | | | | This puts PR CactusPUGH/1726 "Periodic boundaries without MPI are broken" into a suspended state. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@443 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Since scalars are zero-dim GAs now, need an extra check for the extras andgoodale2004-05-18
| | | | | | | connectivity freeing. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@442 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Untabified.goodale2004-05-17
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@441 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Untabified. Please try to adhere to the Cactus coding guidelines whengoodale2004-05-17
| | | | | | | modifying or adding files. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@440 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
* Apply manual topology settings also to the distribution of grid arrays.tradke2004-04-29
| | | | | | | | This fixes PR CactusPUGH/1661: "the manual processor topology settings are not respected for a 3D array." git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@437 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Removed trailing semicolon after DECLARE_CCTK_PARAMETERS macro.tradke2004-04-22
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@436 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
* Initialise the convergence factor.schnetter2004-02-06
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@431 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
* Semicolon after fileversion and grdoc fix.goodale2004-02-05
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@429 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Fokke Dijkstra's patch: Added new routine PUGH_SetTopology() which can be calledtradke2004-01-08
| | | | | | | by other thorns to overwrite PUGH's manual topology parameter settings. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@428 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Ian's fix for malloc(0) which returns NULL on DEC machines and thus weretradke2003-12-11
| | | | | | | treated as an error. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@427 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Fix for my latest commit which broke MPI configurations.tradke2003-12-05
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@426 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Made a few more functions static.tradke2003-12-05
| | | | | | | Fixed gcc compiler warnings about unused parameters. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@425 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Bug was discovered by Fokke Dijkstra: manual partitioning settings wastradke2003-12-01
| | | | | | | | applied to both grid function and grid array variables. Should be done only for grid functions, of course. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@424 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
* Allow for a small fudge factor when testing for cctk_final_time.schnetter2003-11-05
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@422 b61c5cb5-eaca-4651-9a7a-d64986f99364