diff options
author | schnetter <schnetter@c3c03602-0f4f-0410-b3fa-d2c81c8a7dc5> | 2005-08-24 15:04:12 +0000 |
---|---|---|
committer | schnetter <schnetter@c3c03602-0f4f-0410-b3fa-d2c81c8a7dc5> | 2005-08-24 15:04:12 +0000 |
commit | c6fc15e9bc51bd34bad1c319831e6e7da20edce6 (patch) | |
tree | 392f749fda7b8ee915aac55ff5817e240c3f9022 | |
parent | d4a2544d1127c85b7c28f5a9b66e43ad5f478af2 (diff) |
Disable an assert. This allows people to interpolate the same tensor
component multiple times into different output arrays. This is never
necessary, and is a performance bug of the caller, but CarpetInterp
does this currently when interpolating in time.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/RotatingSymmetry90/trunk@26 c3c03602-0f4f-0410-b3fa-d2c81c8a7dc5
-rw-r--r-- | src/interpolate.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/interpolate.c b/src/interpolate.c index b1d618f..9c6a392 100644 --- a/src/interpolate.c +++ b/src/interpolate.c @@ -701,7 +701,11 @@ Rot90_SymmetryInterpolate (CCTK_POINTER_TO_CONST const cctkGH_, } assert (thetensor[num_derivs][time_level][basevar] == tensortype); assert (thevars[num_derivs][time_level][basevar]); - assert (thevars[num_derivs][time_level][basevar][var] == -1); + /* This does not hold if the caller requests the same + interpolation to be done into different output arrays. This + may happen e.g. when CarpetInterp needs to differentiate in + time. This is arguably a performance bug in CarpetInterp. */ + /* assert (thevars[num_derivs][time_level][basevar][var] == -1); */ thevars[num_derivs][time_level][basevar][var] = m; } /* for m */ |