diff options
author | tradke <tradke@ebee0441-1374-4afa-a3b5-247f3ba15b9a> | 2000-02-18 15:05:43 +0000 |
---|---|---|
committer | tradke <tradke@ebee0441-1374-4afa-a3b5-247f3ba15b9a> | 2000-02-18 15:05:43 +0000 |
commit | cbccd2d2565f6e751ce633886f4adad87147ce8c (patch) | |
tree | df7fd0231fa622aeacff5eef1d79e0cad7c9e275 /src/DumpVar.c | |
parent | b4f3fffcd5262fa53d81f7ca5136427e7d969468 (diff) |
Made CactusPUGHIO thorns aware of future multi-patch or multi-block changes
to PUGH.
The current pGH extensions are now queried via Tom's pugh_pGH() routine.
The 'identity_string' provided by PUGH for each GH goes into output filenames.
Thomas
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IOFlexIO/trunk@92 ebee0441-1374-4afa-a3b5-247f3ba15b9a
Diffstat (limited to 'src/DumpVar.c')
-rw-r--r-- | src/DumpVar.c | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/src/DumpVar.c b/src/DumpVar.c index 7956f35..d9eb530 100644 --- a/src/DumpVar.c +++ b/src/DumpVar.c @@ -374,9 +374,9 @@ static void IOFlexIO_DumpGF (cGH *GH, int index, int timelevel, IOFile iof, #endif - /* Get the handles for pugh and IO extensions */ + /* Get the handles for PUGH and IO extensions */ + pughGH = pugh_pGH (GH); ioUtilGH = (ioGH *) GH->extensions [CCTK_GHExtensionHandle ("IO")]; - pughGH = (pGH *) GH->extensions [CCTK_GHExtensionHandle ("PUGH")]; myproc = CCTK_MyProc (GH); nprocs = CCTK_nProcs (GH); @@ -660,13 +660,19 @@ static void IOFlexIO_AddChunkAttributes (cGH *GH, int index, CCTK_INT4 bnd [9], @endhistory @var GH @vdesc Identifies grid hierachy - @vtype pGH * + @vtype cGH * @vio in @vcomment @endvar - @var GF - @vdesc Identifies grid function - @vtype pGF * + @var index + @vdesc index of the variable to dump + @vtype int + @vio in + @vcomment + @endvar + @var timelevel + @vdesc timelevel of the variable to dump + @vtype int @vio in @vcomment @endvar @@ -716,8 +722,10 @@ static void IOFlexIO_getDumpData (cGH *GH, int index, int timelevel, char_ptr = NULL; int_ptr = NULL; + + /* get GH extensions for PUGH and IO */ + pughGH = pugh_pGH (GH); ioUtilGH = (ioGH *) GH->extensions [CCTK_GHExtensionHandle ("IO")]; - pughGH = (pGH *) GH->extensions [CCTK_GHExtensionHandle ("PUGH")]; if (ioUtilGH->downsample_x == 1 && ioUtilGH->downsample_y == 1 && |