diff options
Diffstat (limited to 'src/TestSlab2D.c')
-rw-r--r-- | src/TestSlab2D.c | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/src/TestSlab2D.c b/src/TestSlab2D.c index 48d6b86..f8cf6fa 100644 --- a/src/TestSlab2D.c +++ b/src/TestSlab2D.c @@ -1,4 +1,5 @@ + #include <stdio.h> #include <stdlib.h> #include <math.h> @@ -22,10 +23,11 @@ void TestSlab2D(CCTK_ARGUMENTS) { DECLARE_CCTK_ARGUMENTS - int gs[3], di[2]; /* global start/direction (2times) */ + int gs[3], di[2]; /* global start/direction (2times) */ int ds[2], len[2]; /* downsampling/length */ int ls[3], le[3]; /* local start/end */ - int dsize[1]; /* number of points */ + int dirsize[2], totsize; /* number of points (dir./tot)*/ + int locstart[3], locend[3]; int nprocs,iproc; /* number of procs */ int l; @@ -41,20 +43,25 @@ void TestSlab2D(CCTK_ARGUMENTS) { gs[0]=6; gs[1]=6; - gs[2]=5; + gs[2]=3; di[0]= 2; di[1]= 1; - ds[0]=2; - ds[1]=2; + ds[0]=1; + ds[1]=1; len[0] = -1; len[1] = -1; - printf("Calling CollectData2D \n"); - CollectLocalData2D(cctkGH, vindex, vtimelvl, vdim, - gs, di, ds, len, - &dptr, index1, index2, dsize); + + + printf("Calling CollectLocalDataND \n"); + CollectLocalDataND(cctkGH, vindex, vtimelvl, vdim, 2, + gs, di, ds, len, + &dptr, dirsize, &totsize); } + /*$GetLocalSlab(cctkGH, vdim, 2, + gs, di, ds, len, + locstart, locend, dirsize, &totsize);$*/ |