[cig-commits] commit:
Mercurial
hg at geodynamics.org
Mon Nov 24 11:59:31 PST 2008
changeset: 147:154a85ccbdcf
user: LukeHodkinson
date: Thu Aug 28 17:44:03 2008 +0000
files: Mesh/src/CartesianGenerator.c
description:
Found a bug in the node bunching code. Was
causing big gaps near the top of the domain.
diff -r 9a07128742e4 -r 154a85ccbdcf Mesh/src/CartesianGenerator.c
--- a/Mesh/src/CartesianGenerator.c Wed Aug 27 06:22:14 2008 +0000
+++ b/Mesh/src/CartesianGenerator.c Thu Aug 28 17:44:03 2008 +0000
@@ -2320,10 +2320,10 @@ void CartesianGenerator_CalcGeom( Cartes
}
}
else {
- vert[d_i] = self->crdMin[d_i] + self->contactGeom[d_i] +
+ 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] - 2.0 * self->contactGeom[d_i]);
+ (steps[d_i] - (self->contactDepth[d_i][1] ? 2.0 : 1.0) * self->contactGeom[d_i]);
}
}
}
More information about the CIG-COMMITS
mailing list