diff options
author | lanfer <lanfer@b61c5cb5-eaca-4651-9a7a-d64986f99364> | 2002-03-08 09:33:25 +0000 |
---|---|---|
committer | lanfer <lanfer@b61c5cb5-eaca-4651-9a7a-d64986f99364> | 2002-03-08 09:33:25 +0000 |
commit | 75cc8f682ed1965c8bd1f235a5242beba39daa14 (patch) | |
tree | dd2a1683675a0671618cedbebf0569874471122d | |
parent | 09fcf63031884f11dd30f2c4559868137d21e9a6 (diff) |
PUGH_ReturnTotalStorage(void) and PUGH_ReturnMaxStorage(void) return the total/maximal storage allocted by PUGH
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@371 b61c5cb5-eaca-4651-9a7a-d64986f99364
-rw-r--r-- | src/Storage.c | 38 | ||||
-rw-r--r-- | src/pugh_Comm.h | 3 |
2 files changed, 41 insertions, 0 deletions
diff --git a/src/Storage.c b/src/Storage.c index 0c97715..e3d4aa9 100644 --- a/src/Storage.c +++ b/src/Storage.c @@ -534,6 +534,44 @@ int PUGH_DisableGroupStorage (cGH *GH, const char *groupname) return (retval); } +/*@@ + @routine PUGH_ReturnTotalStorage + @author Gerd Lanfermann + @date 19 Feb 2002 + @desc + Return static float totalstorage + @enddesc + + @returntype float + @returndesc + total storage + @endreturndesc +@@*/ + +float PUGH_ReturnTotalStorage(void) +{ + return(totalstorage); +} + +/*@@ + @routine PUGH_ReturnMaxStorage + @author Gerd Lanfermann + @date 19 Feb 2002 + @desc + Return static float maxstorage + @enddesc + + @returntype float + @returndesc + maximum storage + @endreturndesc +@@*/ + +float PUGH_ReturnMaxStorage(void) +{ + return(maxstorage); +} + /******************************************************************** ******************** Internal Routines ************************ diff --git a/src/pugh_Comm.h b/src/pugh_Comm.h index 540e4bb..971851d 100644 --- a/src/pugh_Comm.h +++ b/src/pugh_Comm.h @@ -25,6 +25,9 @@ int PUGH_DisableGroupStorage (cGH *GH, const char *group); int PUGH_EnableGroupComm (cGH *GH, const char *group); int PUGH_DisableGroupComm (cGH *GH, const char *group); +float PUGH_ReturnTotalStorage(void); +float PUGH_ReturnMaxStorage(void); + const int *PUGH_ArrayGroupSize (const cGH *GH, int dir, int vindex, const char *groupname); int PUGH_QueryGroupStorage (const cGH *GH, int group, const char *groupname); |