diff options
author | Erik Schnetter <schnetter@gmail.com> | 2013-03-18 15:16:56 -0400 |
---|---|---|
committer | Erik Schnetter <schnetter@gmail.com> | 2013-03-18 15:16:56 -0400 |
commit | afc9bb25ad65041be3705053da280be415f5ca9d (patch) | |
tree | f2eab5731cf192a495c40a6c523d2ef199419690 /Carpet/CarpetReduce | |
parent | 94d5fe01dc06a12b974095056d74bfc0053b4d51 (diff) |
CarpetReduce: Don't require a valid cctkGH unless really needed
Diffstat (limited to 'Carpet/CarpetReduce')
-rw-r--r-- | Carpet/CarpetReduce/src/reduce.cc | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/Carpet/CarpetReduce/src/reduce.cc b/Carpet/CarpetReduce/src/reduce.cc index df5ebd296..c3668857b 100644 --- a/Carpet/CarpetReduce/src/reduce.cc +++ b/Carpet/CarpetReduce/src/reduce.cc @@ -701,8 +701,6 @@ namespace CarpetReduce { void* const mycounts, const reduction* const red) { - assert (cgh); - assert (proc == -1 or (proc>=0 and proc<CCTK_nProcs(cgh))); assert (num_outvals>=0); @@ -765,8 +763,6 @@ namespace CarpetReduce { void* const myoutvals, const int outtype, void* const mycounts) { - assert (cgh); - assert (proc == -1 or (proc>=0 and proc<CCTK_nProcs(cgh))); assert (lsize >= 0); @@ -824,8 +820,6 @@ namespace CarpetReduce { const reduction* const red, CCTK_REAL const * const weight, CCTK_REAL const levfac) { - assert (cgh); - assert (proc == -1 or (proc>=0 and proc<CCTK_nProcs(cgh))); assert (num_outvals>=0); @@ -914,8 +908,6 @@ namespace CarpetReduce { const void* const mycounts, const reduction* const red) { - assert (cgh); - assert (proc == -1 or (proc>=0 and proc<CCTK_nProcs(cgh))); assert (num_outvals>=0); @@ -1026,8 +1018,6 @@ namespace CarpetReduce { void* const outvals, const int outtype, const reduction* const red, const int igrid) { - assert (cgh); - assert (proc == -1 or (proc>=0 and proc<CCTK_nProcs(cgh))); assert (num_outvals>=0); @@ -1184,9 +1174,9 @@ namespace CarpetReduce { const int num_invars, const int* const invars, const reduction* const red, const int igrid) { - int ierr; - assert (cgh); + + int ierr; assert (proc == -1 or (proc>=0 and proc<CCTK_nProcs(cgh))); |