From 45fa4d731548bc787ede6e3bc08892da665cfbfc Mon Sep 17 00:00:00 2001 From: allen Date: Wed, 7 Apr 1999 00:41:13 +0000 Subject: Tidied a little git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@35 b61c5cb5-eaca-4651-9a7a-d64986f99364 --- src/SetupPGF.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') 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; } -- cgit v1.2.3