[cig-commits] r14484 - cs/cigma/trunk/src

luis at geodynamics.org luis at geodynamics.org
Fri Mar 27 10:09:18 PDT 2009


Author: luis
Date: 2009-03-27 10:09:17 -0700 (Fri, 27 Mar 2009)
New Revision: 14484

Modified:
   cs/cigma/trunk/src/fn_inclusion.cpp
Log:
Found source of crash (third element is value[2]).

Gale outputs vectors with three components (even in two dimensions),
so we must define the bm.circular_inclusion.Velocity to have
rank 3. Ultimately, there should be a better way to select which
vector components to include in the comparison (TODO).

Modified: cs/cigma/trunk/src/fn_inclusion.cpp
===================================================================
--- cs/cigma/trunk/src/fn_inclusion.cpp	2009-03-27 17:09:10 UTC (rev 14483)
+++ cs/cigma/trunk/src/fn_inclusion.cpp	2009-03-27 17:09:17 UTC (rev 14484)
@@ -43,7 +43,7 @@
 
     value[0] = -2 * C * x[0];
     value[1] = +2 * C * x[1];
-    value[3] = 0;
+    value[2] = 0;
 
     return true;
 }



More information about the CIG-COMMITS mailing list