@@ -147,25 +147,24 @@ void MPMesh::assemblyVtx1() {
147147 p_MPs->parallel_for (assemble, " assembly" );
148148
149149 // Solve Ax=b for each vertex
150- Kokkos::View<double *[vec4d_nEntries]> VtxCoeffs (" VtxMatrices " , p_mesh->getNumVertices ());
150+ Kokkos::View<double *[vec4d_nEntries]> VtxCoeffs (" VtxCoeffs " , p_mesh->getNumVertices ());
151151 Kokkos::parallel_for (" solving Ax=b" , numVtx, KOKKOS_LAMBDA (const int vtx){
152152 Vec4d v0 = {VtxMatrices (vtx,0 ,0 ), VtxMatrices (vtx,0 ,1 ), VtxMatrices (vtx,0 ,2 ), VtxMatrices (vtx,0 ,3 )};
153153 Vec4d v1 = {VtxMatrices (vtx,1 ,0 ), VtxMatrices (vtx,1 ,1 ), VtxMatrices (vtx,1 ,2 ), VtxMatrices (vtx,1 ,3 )};
154154 Vec4d v2 = {VtxMatrices (vtx,2 ,0 ), VtxMatrices (vtx,2 ,1 ), VtxMatrices (vtx,2 ,2 ), VtxMatrices (vtx,2 ,3 )};
155155 Vec4d v3 = {VtxMatrices (vtx,3 ,0 ), VtxMatrices (vtx,3 ,1 ), VtxMatrices (vtx,3 ,2 ), VtxMatrices (vtx,3 ,3 )};
156- Matrix4d A = {v0,v1,v2,v3};
157-
158- // double f_norm=A.frobeniusNorm();
156+
157+ Matrix4d A = {v0,v1,v2,v3};
159158 double A_trace = A.trace ();
160159 Matrix4d A_regularized = {v0, v1, v2, v3};
161160 A_regularized.addToDiag (A_trace*1e-8 );
162-
161+
163162 double coeff[vec4d_nEntries]={0.0 , 0.0 , 0.0 , 0.0 };
164163 CholeskySolve4d_UnitRHS (A_regularized, coeff);
165164 for (int i=0 ; i<vec4d_nEntries; i++)
166165 VtxCoeffs (vtx,i)=coeff[i];
167166 });
168-
167+
169168 // Reconstruct
170169 auto reconstruct = PS_LAMBDA (const int & elm, const int & mp, const int & mask) {
171170 if (mask) { // if material point is 'active'/'enabled'
@@ -189,7 +188,7 @@ void MPMesh::assemblyVtx1() {
189188 }
190189 };
191190 p_MPs->parallel_for (reconstruct, " reconstruct" );
192-
191+
193192 Kokkos::parallel_for (" assigning" , numVtx, KOKKOS_LAMBDA (const int vtx){
194193 for (int k=0 ; k<numEntries; k++)
195194 meshField (vtx, k) = reconVals (vtx,k);
0 commit comments