aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlanfer <lanfer@10716dce-81a3-4424-a2c8-48026a0d3035>2000-05-02 16:30:19 +0000
committerlanfer <lanfer@10716dce-81a3-4424-a2c8-48026a0d3035>2000-05-02 16:30:19 +0000
commit096d45fa50a04ba721e1b3a11a11616892721ec6 (patch)
treeb3d2df9c4378ee652147fd926ad3de5ef7520e29
parent88a85cbb91686cc7495dd0d026e8e061df740e04 (diff)
testing Collect Data
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGHSlab/trunk@6 10716dce-81a3-4424-a2c8-48026a0d3035
-rw-r--r--src/TestSlab.c17
1 files changed, 3 insertions, 14 deletions
diff --git a/src/TestSlab.c b/src/TestSlab.c
index 8dbdeaa..00a8102 100644
--- a/src/TestSlab.c
+++ b/src/TestSlab.c
@@ -83,21 +83,10 @@ void TestGetLocalLine(CCTK_ARGUMENTS) {
di[2]= 2;
ds[0]=1;
-
- GetLocalLine(cctkGH, 3, gs, di, ds, 4, ls, le, &nlocpoints);
- printf("TEST: local %d %d %d -> %d %d %d TOTAL: %d\n",
- ls[0], ls[1], ls[2], le[0], le[1], le[2], nlocpoints );
-
- nprocs = CCTK_nProcs(cctkGH);
- c_nlocpoints = (int*) malloc (nprocs*sizeof(int));
-
-#ifdef CCTK_MPI
- CACTUS_MPI_ERROR(MPI_Gather(&nlocpoints, 1, PUGH_MPI_INT, c_nlocpoints, 1,
- PUGH_MPI_INT, 0, pughGH->PUGH_COMM_WORLD));
-#endif
+ printf("Calling CollectData \n");
+ CollectLocalData1D(cctkGH, vindex, vtype, vtypesize, vtimelvl,
+ vdim, gs, di, ds, -1, &loc_dptr, &nlocpoints);
- for (iproc=0;iproc<nprocs;iproc++)
- printf(" Proc %d : %d \n",iproc,c_nlocpoints[iproc]);
}