aboutsummaryrefslogtreecommitdiff
path: root/src/include
Commit message (Collapse)AuthorAge
* add code to align allocated memory for vectorizationrhaas2013-08-02
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@524 b61c5cb5-eaca-4651-9a7a-d64986f99364
* 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/arrangements/CactusPUGH/PUGH/trunk@515 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Correct function signatureseschnett2011-01-21
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@505 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
* 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
* 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
* 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
* 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
* Untabified.goodale2004-05-17
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@441 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
* 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
* Introduce the new Cactus variable type CCTK_INT1.schnetter2003-10-13
| | | | | | | Extend routines to handle the new type. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@419 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Removed constant PUGH_UNDEFINEDSTORAGE which was never used anywhere.tradke2002-07-01
| | | | | | | This closes PR CactusPUGH/1114. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@392 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Changing so that the number of timelevels enabled isn't necessarilygoodale2002-04-16
| | | | | | | | | | the maximum. Now overloads the CCTK_GroupStorageIncrease/Decrease functions and only rotates the levels with storage. Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@375 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
* Added new internal pugh function for providing the processor topology for GFs ofallen2001-10-28
| | | | | | | a given dimension. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@356 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Preliminary support for 'vector' Grid Variables (see commits to ↵goodale2001-10-07
| | | | | | | | | | | | | | interface_parser.ccl for syntax). Works for GFs and GAs, but not implemented yet for GSs. Please treat this as volatile until it is documented, and let me know if you are using it. Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@351 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Bugfix for setting up ghostsizes for variables of dimensions greater than 3.tradke2001-10-03
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@349 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Added coordinate information again to the pGH structure since it's neededtradke2001-06-14
| | | | | | | by BAM. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@335 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Now PUGH also supports all the fixed-precision CCTK datatypes.tradke2001-06-12
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@334 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Removed prototype for pGH_SetupnProcs() which is now a static routine.tradke2001-06-11
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@332 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Compiler warningsallen2001-05-10
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@325 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Prototype changed for PUGH_EnableGArrayDataStorage().tradke2001-05-07
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@323 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Removed prototype for PUGH_EnableGArrayGroupStorage() which is nowtradke2001-04-19
| | | | | | | a static routine in Storage.c. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@317 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Added prototype for new routine PUGH_MPIDataType().tradke2001-02-14
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@304 b61c5cb5-eaca-4651-9a7a-d64986f99364
* PUGH support for CCTK_COMPLEX8 datatype.tradke2000-11-29
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@287 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Fixed type of the timer variable from double to int.tradke2000-09-18
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@274 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Removed the first_array_in_group flag from the pGA. It's not needed anymore.tradke2000-09-18
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@273 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Added an array of stati to comm structure for outstanding send requests.tradke2000-09-15
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@266 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Added an index for arrays to the pGA and pGH which is needed to make thatallen2000-09-01
| | | | | | | | | Cache lines are associated uniquely with each timelevel of GA This unique index is used now when storage is assigned for the GA git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@264 b61c5cb5-eaca-4651-9a7a-d64986f99364
* #ifdef _cplusplus should read #ifdef __cplusplus.tradke2000-08-01
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@255 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
* Quick and dirty fix to prevent access to freed memory when destroying Array ↵goodale2000-07-19
| | | | | | | | | | | | groups. This is far from perfect, and seems to now not free all the memory, but is far better than a segfault. Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@244 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Registered reduction routines return an error code, and split reduction.callen2000-07-19
| | | | | | | into several files git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@243 b61c5cb5-eaca-4651-9a7a-d64986f99364
* #ifdef _cplusplus should better be #ifdef __cplusplustradke2000-07-17
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@241 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Added new driver overloadable function for querying array data such as lsh.allen2000-06-22
| | | | | | | Put bbox onto the pGV structure to speed up calling this new overloadable function git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@228 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
* Use CCTK_MPI rather than MPIallen2000-04-04
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@194 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Removing old files with pGFsallen2000-04-03
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@192 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Uncommenting XDM etc for now, for EllPETScallen2000-03-28
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@187 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
* 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