From afc9bb25ad65041be3705053da280be415f5ca9d Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Mon, 18 Mar 2013 15:16:56 -0400 Subject: CarpetReduce: Don't require a valid cctkGH unless really needed --- Carpet/CarpetReduce/src/reduce.cc | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'Carpet/CarpetReduce') 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=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= 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=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=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=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