aboutsummaryrefslogtreecommitdiff
path: root/src/Storage.c
Commit message (Collapse)AuthorAge
* 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
* 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
* 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
* Change to CCTK_MaxTimeLevelsallen2003-07-16
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@416 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
* Warn about allocation of zero-sized variable only if its global size is zero.tradke2003-03-26
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@408 b61c5cb5-eaca-4651-9a7a-d64986f99364
* The GH->data pointer wasn't set by PUGHi_EnableScalarGroupStorage().tradke2003-02-17
| | | | | | | This closes PR CactusPUGH/1381. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@406 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Fixed error messageallen2002-12-30
| | | | | | | Closes Cactus/1313 git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@400 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Check whether storage allocation succeeded (and issue a warning if not)tradke2002-10-24
| | | | | | | | only for non-vector group variables. This closes PR CactusPUGH-1255. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@397 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Really set deallocated data pointers for grid arrays to NULL.tradke2002-07-05
| | | | | | | Before they got allocated to a single array element. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@394 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Fixed bug in NULL pointer assignment when switching off storage for scalar ↵tradke2002-07-01
| | | | | | | | | variables. This closes PR CactusPUGH/1114. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@393 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Fixed a bug where GH->data[] pointers for grid scalars were set to NULLtradke2002-06-27
| | | | | | | even if they had storage assigned globally. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@391 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Fixed a bug where GH->data[] pointers for certain timelevels were assignedtradke2002-06-26
| | | | | | | | to NULL even if storage was not deallocated for them. This closes PR CactusWave/1105. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@390 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Set the data pointer in the GH->data[] array to NULL when switching off storagetradke2002-06-21
| | | | | | | | for a variable. This lets the code crash immediatly once you try to access such a variable without storage. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@389 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Don't use internal CCTK variable "_cctk_one" anymore because it is about to ↵tradke2002-06-17
| | | | | | be removed. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@388 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Added semicolon after CCTK_FILEVERSION().rideout2002-05-18
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@384 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Bugfix for switching off storage for scalar variables.tradke2002-05-10
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@382 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Removing another extraneous erroneous error detection bit.goodale2002-04-21
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@380 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Removing an erroneous error check.goodale2002-04-19
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@379 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Bugfix in PUGHi_DisableScalarGroupStorage() where a loop over timelevelstradke2002-04-18
| | | | | | | | was counted up instead of down. Thanks to Ian Hawke to find out. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@378 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_ReturnTotalStorage(void) and PUGH_ReturnMaxStorage(void) return the ↵lanfer2002-03-08
| | | | | | total/maximal storage allocted by PUGH git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@371 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Don't assign storage to a scalar group if storage was already switched on.tradke2001-11-06
| | | | | | | Closes PR CactusPUGH-PUGH 823. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@364 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Added const qualifier to the 'cGH *' argument of some more overloadable ↵tradke2001-11-05
| | | | | | functions. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@363 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Fixed a copy/paste bug from my latest config.tradke2001-10-31
| | | | | | | Closes PR CactusPUGH-PUGH 819. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@359 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Fixed fatal typo in storage allocationallen2001-10-31
| | | | | | | | | Cactus/819 Thanks Erik !! git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@358 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
* Typo in grdocallen2001-10-22
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@354 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
* Fixing up the storage report so it actually does report.allen2001-09-25
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@347 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Extended storage_verbose parameter to give a report on the maximum amount of ↵allen2001-09-16
| | | | | | | | | | | | | | | | | | storage assigned during a run. The options are now storage_verbose = "yes" -> show everything (enabling, disabling and report) storage_verbose = "report" -> just show report storage_verbose = "no" (the default) -> show nothing The report will be given at termination, and also at every storage_report_every iterations (default is only at termination). I could extend the report to give a list of the GAs with storage at the max if anyone wants that. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@346 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Fixed bug for scalar group storage allocation within schedule groups.tradke2001-09-01
| | | | | | | This closes PR CactusPUGH-PUGH 782 and Cactus 781. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@343 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Enable/disable storage for CCTK_SCALAR variables. Although memory for thosetradke2001-08-30
| | | | | | | | | | | types is allocated only once (in the first call to CCTK_EnableGroupStorage()) the current state of allocation is kept in a flag for every group. This is returned by CCTK_QueryGroupStorage() then. Main purpose of this is to make the NaNChecker working for CCTK_SCALARs also. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@342 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Tolerate storage allocation for zero-sized arrays (just issue a warning).tradke2001-08-27
| | | | | | | Closes PR CactusPUGH-PUGH 774. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@341 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
* Initialize memory for allocated CCTK variables according to the setting oftradke2001-05-07
| | | | | | | "PUGH::initialize_memory". git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@322 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Fixed a bug in PUGH_ArrayGroupSize().tradke2001-04-19
| | | | | | | Fixed compiler warnings, completed grdoc. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@316 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Adding back PUGH::enable_all_storage which got accidently removed some time ago.allen2001-04-13
| | | | | | | Also a bit more error checking. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@314 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Changes to logic for QueryGroupStorage and ArrayGroupSizeallen2000-12-17
| | | | | | | More error checking git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@295 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Added name to warning messageallen2000-12-01
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@289 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Calculate the total allocated storage in MBytes.tradke2000-10-11
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@283 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Fixed buglet in printf statementallen2000-10-09
| | | | | | | CactusPUGH-PUGH/462 git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@282 b61c5cb5-eaca-4651-9a7a-d64986f99364
* Make the option to report on storage steerableallen2000-09-21
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@278 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
* 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