Changeset 25242
- Timestamp:
- 07/09/20 11:26:43 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/Elements/Element.cpp
r25209 r25242 65 65 IssmDouble dvx[3],dvy[3],dvz[3],dvmag[3]; 66 66 IssmDouble eps[3][3],epseff,epsprime; 67 IssmDouble lambdas[MAXVERTICES]; 67 68 int dim; 68 69 IssmDouble *xyz_list = NULL; … … 78 79 /*Allocate arrays*/ 79 80 const int NUM_VERTICES = this->GetNumberOfVertices(); 80 81 IssmDouble* lambdas = xNew<IssmDouble>(NUM_VERTICES);82 81 83 82 /* Start looping on the number of vertices: */ … … 133 132 134 133 /*Add Stress tensor components into inputs*/ 135 this->AddInput2(LambdaSEnum, lambdas,P1Enum);134 this->AddInput2(LambdaSEnum,&lambdas[0],P1Enum); 136 135 137 136 /*Clean up and return*/ 138 137 delete gauss; 139 138 xDelete<IssmDouble>(xyz_list); 140 xDelete<IssmDouble>(lambdas); 141 142 } 143 /*}}}*/ 139 }/*}}}*/ 144 140 void Element::ComputeNewDamage(){/*{{{*/ 145 141
Note:
See TracChangeset
for help on using the changeset viewer.