aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjthorn <jthorn@0337457d-221f-4ee6-a5f0-14255d5370d8>2005-04-13 16:16:01 +0000
committerjthorn <jthorn@0337457d-221f-4ee6-a5f0-14255d5370d8>2005-04-13 16:16:01 +0000
commit1bf8c2e542a6d050607d56f02329fe18d3572e82 (patch)
tree2df142b97ecbb7cea26bbf5d975e01869a182507
parent88244a8a855e9d5f6e7d82ff6b90ffb26b850611 (diff)
Fix the bug described in
http://www.cactuscode.org/pipermail/developers/2005-April/000825.html where, if domainsize = "spacing" , then zero_origin_z is interpreted backwards. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/CoordBase/trunk@26 0337457d-221f-4ee6-a5f0-14255d5370d8
-rw-r--r--src/Domain.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Domain.c b/src/Domain.c
index d4bb897..deab864 100644
--- a/src/Domain.c
+++ b/src/Domain.c
@@ -166,11 +166,11 @@ CCTK_INT CoordBase_GetDomainSpecification
physical_max[1] = + dy * ncells_y / 2;
}
if (zero_origin_z) {
- physical_min[2] = - dz * ncells_z / 2;
- physical_max[2] = + dz * ncells_z / 2;
- } else {
physical_min[2] = zmin;
physical_max[2] = zmin + dz * ncells_z;
+ } else {
+ physical_min[2] = - dz * ncells_z / 2;
+ physical_max[2] = + dz * ncells_z / 2;
}
thespacing[0] = dx;
thespacing[1] = dy;