aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorallen <allen@c78560ca-4b45-4335-b268-5f3340f3cb52>1999-07-23 17:43:39 +0000
committerallen <allen@c78560ca-4b45-4335-b268-5f3340f3cb52>1999-07-23 17:43:39 +0000
commit11d902049a76034950a69ce5ddf349b17970283a (patch)
tree37de785ef8b6b9377569c70f654ee2ce6730f75f /src
parent7ebf7aa841e8129c9c4709b3529d60bc36ff65b2 (diff)
Fixed bug in symmetry conditions
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/CartGrid3D/trunk@37 c78560ca-4b45-4335-b268-5f3340f3cb52
Diffstat (limited to 'src')
-rw-r--r--src/Symmetry.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/Symmetry.c b/src/Symmetry.c
index c4363b0..df132ee 100644
--- a/src/Symmetry.c
+++ b/src/Symmetry.c
@@ -1,4 +1,4 @@
- /*@@
+/*@@
@file Symmetry.c
@date Mon Mar 15 15:09:00 1999
@author Gerd Lanfermann
@@ -55,7 +55,11 @@ void SetSymmetry(cGH *GH, int sx, int sy, int sz, const char *imp_gf) {
/* now that we have the same, get the index to the GFs */
index = CCTK_VarIndex(imp_gf);
if (index<0) {
- CCTK_WARN(0,"Grid function has no index");
+ char *message;
+ message = (char *)malloc((100*strlen(imp_gf))*sizeof(char));
+ sprintf(message,"Grid function %s has no index",imp_gf);
+ CCTK_WARN(0,message);
+ free(message);
};
/* Reference the hash table in the GHex and tell it what kind of
@@ -168,7 +172,7 @@ void ApplySymmetry(cGH *GH, char *imp_group) {
{
char *message=NULL;
message = (char *)malloc(300*sizeof(char)+sizeof(imp_group));
- sprintf(message,"Invalid group number decomposing -%s",imp_group);
+ sprintf(message,"Invalid group number decomposing %s",imp_group);
CCTK_WARN(0,message);
free(message);
}