@@ -150,7 +150,6 @@ void MPMesh::assemblyVtx1() {
150150 // Solve Ax=b for each vertex
151151 Kokkos::View<double *[vec4d_nEntries]> VtxCoeffs (" VtxCoeffs" , p_mesh->getNumVertices ());
152152 Kokkos::parallel_for (" solving Ax=b" , numVtx, KOKKOS_LAMBDA (const int vtx){
153-
154153 Vec4d v0 = {VtxMatrices (vtx,0 ,0 ), VtxMatrices (vtx,0 ,1 ), VtxMatrices (vtx,0 ,2 ), VtxMatrices (vtx,0 ,3 )};
155154 Vec4d v1 = {VtxMatrices (vtx,1 ,0 ), VtxMatrices (vtx,1 ,1 ), VtxMatrices (vtx,1 ,2 ), VtxMatrices (vtx,1 ,3 )};
156155 Vec4d v2 = {VtxMatrices (vtx,2 ,0 ), VtxMatrices (vtx,2 ,1 ), VtxMatrices (vtx,2 ,2 ), VtxMatrices (vtx,2 ,3 )};
@@ -165,18 +164,8 @@ void MPMesh::assemblyVtx1() {
165164 CholeskySolve4d_UnitRHS (A_regularized, coeff);
166165 for (int i=0 ; i<vec4d_nEntries; i++)
167166 VtxCoeffs (vtx,i)=coeff[i];
168-
169167 });
170168
171- /*
172- Kokkos::fence(); // Ensures synchronization
173- cudaError_t err = cudaGetLastError();
174- if (err != cudaSuccess) {
175- std::cerr << "CUDA error: " << cudaGetErrorString(err) << std::endl;
176- }
177- assert(cudaDeviceSynchronize() == cudaSuccess);
178- */
179-
180169 // Reconstruct
181170 auto reconstruct = PS_LAMBDA (const int & elm, const int & mp, const int & mask) {
182171 if (mask) { // if material point is 'active'/'enabled'
@@ -205,7 +194,6 @@ void MPMesh::assemblyVtx1() {
205194 for (int k=0 ; k<numEntries; k++)
206195 meshField (vtx, k) = reconVals (vtx,k);
207196 });
208-
209197}
210198
211199template <MeshFieldIndex meshFieldIndex>
0 commit comments