aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschnetter <schnetter@c78560ca-4b45-4335-b268-5f3340f3cb52>2004-03-26 14:27:22 +0000
committerschnetter <schnetter@c78560ca-4b45-4335-b268-5f3340f3cb52>2004-03-26 14:27:22 +0000
commitc62376aa026b678d4fd956c5e77d8db54d9496ee (patch)
treeab5a4137d5ebb1b31a83c7e6949d381f7128c56c
parent1478cd3442978751eebae2ef6c23d9c3feb180f7 (diff)
Do not report an error when no variables have been selected for a
symmetry condition. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/CartGrid3D/trunk@196 c78560ca-4b45-4335-b268-5f3340f3cb52
-rw-r--r--src/Symmetry.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Symmetry.c b/src/Symmetry.c
index 546ce17..2d9132f 100644
--- a/src/Symmetry.c
+++ b/src/Symmetry.c
@@ -701,13 +701,13 @@ void CartGrid3D_ApplyBC (CCTK_ARGUMENTS)
assert (nvars>=0);
indices = malloc (nvars * sizeof *indices);
- assert (indices);
+ assert (nvars==0 || indices);
faces = malloc (nvars * sizeof *faces);
- assert (faces);
+ assert (nvars==0 || faces);
widths = malloc (nvars * sizeof *widths);
- assert (widths);
+ assert (nvars==0 || widths);
tables = malloc (nvars * sizeof *tables);
- assert (tables);
+ assert (nvars==0 || tables);
ierr = Boundary_SelectedGVs
(cctkGH, nvars, indices, faces, widths, tables, 0);