From 0a2b7c8b2dfda4df045fd3e88d3e14b719495364 Mon Sep 17 00:00:00 2001 From: tradke Date: Mon, 17 Nov 2003 16:57:49 +0000 Subject: If requested by the checkpointing code pass the 'with_ghostzones' flag in the parameter table to HyperslabDefineLocalMapping(). Note: you will need to update IOUtil also. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IOFlexIO/trunk@297 ebee0441-1374-4afa-a3b5-247f3ba15b9a --- src/DumpVar.c | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/src/DumpVar.c b/src/DumpVar.c index 7c9ea2e..2ce2995 100644 --- a/src/DumpVar.c +++ b/src/DumpVar.c @@ -13,6 +13,7 @@ #include #include "cctk.h" +#include "util_Table.h" #include "cctk_Parameters.h" #include "CactusPUGH/PUGH/src/include/pugh.h" #include "CactusBase/IOUtil/src/ioGH.h" @@ -322,7 +323,7 @@ static int WriteGS (const cGH *GH, const ioRequest *request, IOFile file) @@*/ static int WriteGA (const cGH *GH, const ioRequest *request, IOFile file) { - int i, mapping, hdatasize, retval; + int i, mapping, hdatasize, table, retval; void *hdata; char *fullname; const ioGH *ioUtilGH; @@ -338,16 +339,30 @@ static int WriteGA (const cGH *GH, const ioRequest *request, IOFile file) /* define the hyperslab mapping */ + table = -1; + if (request->with_ghostzones) + { + table = Util_TableCreateFromString ("with_ghostzones = 1"); + if (table < 0) + { + CCTK_WARN (1, "Failed to hyperslab parameter create table from string"); + } + } mapping = Hyperslab_DefineLocalMappingByIndex (GH, request->vindex, request->hdim, request->direction, request->origin, request->extent, request->downsample, - -1, NULL, + table, NULL, request->hsize_chunk, request->hsize, request->hoffset); + if (table >= 0) + { + Util_TableDestroy (table); + } + if (mapping < 0) { fullname = CCTK_FullName (request->vindex); -- cgit v1.2.3