[cig-commits] commit: Make an array big enough for 3D.
Mercurial
hg at geodynamics.org
Mon May 21 15:46:57 PDT 2012
changeset: 450:9d6b2ba08b9d
tag: tip
user: Walter Landry <wlandry at caltech.edu>
date: Mon May 21 15:46:35 2012 -0700
files: Utils/src/BuoyancyDampingTerm.cxx
description:
Make an array big enough for 3D.
diff -r c1e2c18c39f8 -r 9d6b2ba08b9d Utils/src/BuoyancyDampingTerm.cxx
--- a/Utils/src/BuoyancyDampingTerm.cxx Mon Apr 30 13:50:43 2012 -0700
+++ b/Utils/src/BuoyancyDampingTerm.cxx Mon May 21 15:46:35 2012 -0700
@@ -227,7 +227,7 @@ void _BuoyancyDampingTerm_AssembleElemen
{
xi[tangent2]=legendre_points[j];
}
- const int num_nodes(9);
+ const int num_nodes(dim==2 ? 9 : 27);
double Ni[num_nodes];
ElementType_EvaluateShapeFunctionsAt(elementType,xi,Ni);
ElementType_Jacobian(elementType,variable1->feMesh,
More information about the CIG-COMMITS
mailing list