[cig-commits] commit:

Mercurial hg at geodynamics.org
Mon Nov 24 11:59:28 PST 2008


changeset:   143:26330d709ebf
user:        LukeHodkinson
date:        Tue Aug 26 18:52:39 2008 +0000
files:       Utils/src/RegularRemesher.c
description:
There was a problem with the node bunching when
only one side of the domain was being bunched.


diff -r 19a4ff478938 -r 26330d709ebf Utils/src/RegularRemesher.c
--- a/Utils/src/RegularRemesher.c	Tue Aug 26 17:59:11 2008 +0000
+++ b/Utils/src/RegularRemesher.c	Tue Aug 26 18:52:39 2008 +0000
@@ -240,10 +240,10 @@ void _RegularRemesher_Remesh( void* _sel
                }
             }
             else {
-               mesh->verts[v_i][d_i] = leftCrd + gen->contactGeom[d_i] +
+               mesh->verts[v_i][d_i] = leftCrd + (gen->contactDepth[d_i][0] ? gen->contactGeom[d_i] : 0.0) +
                   ((double)(center - gen->contactDepth[d_i][0]) / 
                    (double)(vGrid->sizes[d_i] - (gen->contactDepth[d_i][0] + gen->contactDepth[d_i][1]) - 1)) *
-                  ((rightCrd - leftCrd) - 2.0 * gen->contactGeom[d_i]);
+                  ((rightCrd - leftCrd) - (gen->contactDepth[d_i][1] ? 2.0 : 1.0) * gen->contactGeom[d_i]);
             }
          }
          else {



More information about the CIG-COMMITS mailing list