aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetInterp
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@aei.mpg.de>2005-10-12 15:46:00 +0000
committerErik Schnetter <schnetter@aei.mpg.de>2005-10-12 15:46:00 +0000
commitd6639a8a2fa6dbc5e53f92d4d406680fb60cc710 (patch)
treea427147408307f1139b7af9fb49ef39207e48521 /Carpet/CarpetInterp
parent1ff646741405662f304041f71863337a8fd7690b (diff)
CarpetInterp: Assert that all output arrays are distinct
darcs-hash:20051012154607-891bb-b57ce420a1e16fd201bb9503812b4dfac3af1ea0.gz
Diffstat (limited to 'Carpet/CarpetInterp')
-rw-r--r--Carpet/CarpetInterp/src/interp.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/Carpet/CarpetInterp/src/interp.cc b/Carpet/CarpetInterp/src/interp.cc
index 8b8d75118..56855b9a0 100644
--- a/Carpet/CarpetInterp/src/interp.cc
+++ b/Carpet/CarpetInterp/src/interp.cc
@@ -226,6 +226,9 @@ namespace CarpetInterp {
assert (output_arrays);
for (int j=0; j<N_output_arrays; ++j) {
assert (output_arrays[j]);
+ for (int jj=0; jj<j; ++jj) {
+ assert (output_arrays[j] != output_arrays[jj]);
+ }
}
}