aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/src
diff options
context:
space:
mode:
authorschnetter <>2004-02-09 13:55:00 +0000
committerschnetter <>2004-02-09 13:55:00 +0000
commit2f8527117d8bbdbb24ca4d22ca3ce91cc3212066 (patch)
tree0cf8a0d7888b479dcd12d835ee270fa2fa46d5ab /Carpet/CarpetLib/src
parenteecd0bc7c4957139c1d250e089820ff2dbefbcaf (diff)
Print an error message when trying to synchronise an unsupported data
Print an error message when trying to synchronise an unsupported data type. darcs-hash:20040209135507-07bb3-eedaedfeab593e73a8c96e2d08745c5f2dc3d08f.gz
Diffstat (limited to 'Carpet/CarpetLib/src')
-rw-r--r--Carpet/CarpetLib/src/data.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/Carpet/CarpetLib/src/data.cc b/Carpet/CarpetLib/src/data.cc
index 05beb74b9..1257bf1b9 100644
--- a/Carpet/CarpetLib/src/data.cc
+++ b/Carpet/CarpetLib/src/data.cc
@@ -1,4 +1,4 @@
-// $Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetLib/src/data.cc,v 1.40 2004/02/03 14:33:02 schnetter Exp $
+// $Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetLib/src/data.cc,v 1.41 2004/02/09 14:55:07 schnetter Exp $
#include <assert.h>
#include <limits.h>
@@ -299,7 +299,10 @@ void data<T,D>
assert (group_tags_table >= 0);
// Disallow this.
- assert (0);
+ T Tdummy;
+ CCTK_VWarn (0, __LINE__, __FILE__, CCTK_THORNSTRING,
+ "There is no copy operator available for the variable type %s, dimension %d.",
+ typestring(Tdummy), D);
int rank;
MPI_Comm_rank (dist::comm, &rank);