diff options
author | allen <allen@b61c5cb5-eaca-4651-9a7a-d64986f99364> | 1999-04-07 00:41:13 +0000 |
---|---|---|
committer | allen <allen@b61c5cb5-eaca-4651-9a7a-d64986f99364> | 1999-04-07 00:41:13 +0000 |
commit | 45fa4d731548bc787ede6e3bc08892da665cfbfc (patch) | |
tree | 99e90cdae36a8b977671572e95e5ca22533c7bff /src | |
parent | 03207fe2d6f743caaea325e8ba895403ad618ce0 (diff) |
Tidied a little
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@35 b61c5cb5-eaca-4651-9a7a-d64986f99364
Diffstat (limited to 'src')
-rw-r--r-- | src/SetupPGF.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/SetupPGF.c b/src/SetupPGF.c index 7da3c55..7d8c35c 100644 --- a/src/SetupPGF.c +++ b/src/SetupPGF.c @@ -214,7 +214,7 @@ int EnableGFDataStorage(pGH *GH, pGF *GF) { ive_blathered = 1; - if (GF->storage) { + if (GF->storage == PUGH_STORAGE) { printf ("WARNING: Tried to enable %s when already enabled\n", GF->name); return; @@ -329,7 +329,7 @@ int EnableGFDataStorage(pGH *GH, pGF *GF) { GF->name, GF->gfno); STOP; } - GF->storage = 1; + GF->storage = PUGH_STORAGE; return 1; @@ -343,7 +343,7 @@ int EnableGFDataStorage(pGH *GH, pGF *GF) { This routine disables the grid function storage. That is, it un-allocates the 3D array and in its place allocates a single Double with the value - 0.0. This allows us to still ahve something to + 0.0. This allows us to still have something to pass around (an array of size (1,1,1) in fortran speak) but also to not need all our 3D arrays "on" all the time. @@ -354,7 +354,7 @@ int EnableGFDataStorage(pGH *GH, pGF *GF) { int DisableGFDataStorage(pGH *GH, pGF *GF) { int i; - if (!GF->storage) { + if (GF->storage == PUGH_NOSTORAGE) { printf ("Warning: Tried to disable %s when already disabled\n", GF->name); return; @@ -397,7 +397,7 @@ int DisableGFDataStorage(pGH *GH, pGF *GF) { #ifdef 0 GF->data[0] = 0.0; /* Very important! */ #endif - GF->storage = 0; + GF->storage = PUGH_NOSTORAGE; } |