aboutsummaryrefslogtreecommitdiff
path: root/Carpet/Carpet/src/Recompose.cc
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2010-12-03 16:22:00 -0500
committerErik Schnetter <schnetter@cct.lsu.edu>2010-12-03 16:22:00 -0500
commit78815dcb6342791035c4081726a6ee896c5e51d8 (patch)
tree496a891e7188dc33df6f2cd8639b20648cdb214f /Carpet/Carpet/src/Recompose.cc
parent694b6f91fc9765bcad595d0d1b8132e917f8e3c3 (diff)
Carpet: Remove dependency on LoopControl; use NoMPI
Diffstat (limited to 'Carpet/Carpet/src/Recompose.cc')
-rw-r--r--Carpet/Carpet/src/Recompose.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/Carpet/Carpet/src/Recompose.cc b/Carpet/Carpet/src/Recompose.cc
index 257a92e8d..102e2445c 100644
--- a/Carpet/Carpet/src/Recompose.cc
+++ b/Carpet/Carpet/src/Recompose.cc
@@ -1,3 +1,6 @@
+#include <cctk.h>
+#include <cctk_Parameters.h>
+
#include <algorithm>
#include <cassert>
#include <cmath>
@@ -16,10 +19,11 @@
#include <sys/stat.h>
#include <sys/types.h>
-#include <mpi.h>
-
-#include <cctk.h>
-#include <cctk_Parameters.h>
+#ifdef CCTK_MPI
+# include <mpi.h>
+#else
+# include "nompi.h"
+#endif
#include <loopcontrol.h>
@@ -1954,14 +1958,10 @@ namespace Carpet {
BEGIN_LOCAL_COMPONENT_LOOP(cctkGH, CCTK_GF) {
DECLARE_CCTK_ARGUMENTS;
#pragma omp parallel
- LC_LOOP3 (CarpetClassifyPoints,
- i,j,k,
- 0,0,0, cctk_lsh[0],cctk_lsh[1],cctk_lsh[2],
- cctk_lsh[0],cctk_lsh[1],cctk_lsh[2])
- {
+ CCTK_LOOP3_ALL(CarpetClassifyPoints, cctkGH, i,j,k) {
int const ind = CCTK_GFINDEX3D (cctkGH, i, j, k);
point_class[ind] = 1;
- } LC_ENDLOOP3(CarpetClassifyPoints);
+ } CCTK_ENDLOOP3_ALL(CarpetClassifyPoints);
} END_LOCAL_COMPONENT_LOOP;
} END_LOCAL_MAP_LOOP;
} LEAVE_LEVEL_MODE;