[cig-commits] commit:
Mercurial
hg at geodynamics.org
Mon Nov 24 11:59:31 PST 2008
changeset: 149:ee2240d07250
user: LukeHodkinson
date: Fri Aug 29 16:42:55 2008 +0000
files: Mesh/src/CartesianGenerator.c
description:
Found a bug causing slightly crap remeshing.
diff -r 4b33c2403285 -r ee2240d07250 Mesh/src/CartesianGenerator.c
--- a/Mesh/src/CartesianGenerator.c Thu Aug 28 17:45:00 2008 +0000
+++ b/Mesh/src/CartesianGenerator.c Fri Aug 29 16:42:55 2008 +0000
@@ -2323,7 +2323,7 @@ void CartesianGenerator_CalcGeom( Cartes
vert[d_i] = self->crdMin[d_i] + (self->contactDepth[d_i][0] ? self->contactGeom[d_i] : 0.0) +
((double)(inds[d_i] - self->contactDepth[d_i][0]) /
(double)(grid->sizes[d_i] - (self->contactDepth[d_i][0] + self->contactDepth[d_i][1]) - 1)) *
- (steps[d_i] - (self->contactDepth[d_i][1] ? 2.0 : 1.0) * self->contactGeom[d_i]);
+ (steps[d_i] - ((self->contactDepth[d_i][1] ? 1.0 : 0.0) + (self->contactDepth[d_i][0] ? 1.0 : 0.0)) * self->contactGeom[d_i]);
}
}
}
More information about the CIG-COMMITS
mailing list