@@ -156,7 +156,7 @@ namespace polyMPO{
156156 void Mesh::gridSolveGPU (){
157157 std::cout<<__FUNCTION__<<std::endl;
158158 // Mesh Fields
159- int numVertices = getNumVertices ();
159+ int numVerticesOwned = getNumVerticesOwned ();
160160 auto totalMassVtx = getMeshField<MeshF_TotalMassVtx>();
161161 auto totalMassFVtx = getMeshField<MeshF_TotalMassFVtx>();
162162 auto airStress = getMeshField<MeshF_AirStress>();
@@ -171,7 +171,7 @@ namespace polyMPO{
171171 double sinOceanTurningAngle=0.0 ;
172172 double cosOceanTurningAngle=1.0 ;
173173
174- Kokkos::parallel_for (" SolveGridVelocity" , numVertices , KOKKOS_LAMBDA (const int vtx){
174+ Kokkos::parallel_for (" SolveGridVelocity" , numVerticesOwned , KOKKOS_LAMBDA (const int vtx){
175175 if (solve_velocity (vtx) == 0 ) return ;
176176 double a, b, c, d, s, rhs_u, rhs_v, denom ;
177177
@@ -195,7 +195,7 @@ namespace polyMPO{
195195 printf("Vtx %d F: %.15e %.15e %.15e %.15e %.15e %.15e %.15e %.15e %.15e \n", vtx, totalMassVtx(vtx,0), totalMassFVtx(vtx,0),
196196 airStress(vtx,0), airStress(vtx,1), surfaceTiltForce(vtx,0), surfaceTiltForce(vtx,1), oceanStress(vtx,0), oceanStress(vtx,1),
197197 oceanStressCoeff(vtx, 0));*/
198- printf (" Vtx %d V: %.15e %.15e \n " , vtx, velocity (vtx,0 ), velocity (vtx,1 ));
198+ // printf("Vtx %d V: %.15e %.15e \n", vtx, velocity(vtx,0), velocity(vtx,1));
199199 }
200200 });
201201 }
0 commit comments