Skip to content

Commit

Permalink
removed comments whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Angelyr committed Aug 14, 2024
1 parent da467ec commit 8b639ea
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/pmpo_MPMesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ void MPMesh::CVTTrackingElmCenterBased(const int printVTPIndex){
closestElm = elmID;
minDistSq = neighborDistSq;
}
}
}
if(closestElm<0){
MPs2Elm(mp) = iElm;
break;
Expand Down
6 changes: 0 additions & 6 deletions src/pmpo_MPMesh_assembly.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,11 @@ void MPMesh::assemblyVtx0(){

template <MeshFieldIndex meshFieldIndex>
void MPMesh::assemblyElm0() {

Kokkos::Timer timer;
constexpr MaterialPointSlice mpfIndex = meshFieldIndexToMPSlice<meshFieldIndex>;
auto mpData = p_MPs->getData<mpfIndex>();
const int numEntries = mpSliceToNumEntries<mpfIndex>();

//auto mpCurElmID = p_MPs->getData<polyMPO::MPF_Cur_Elm_ID>();
//auto num_mps = p_MPs->getCount();

int numElms = p_mesh->getNumElements();
p_mesh->fillMeshField<meshFieldIndex>(numElms, numEntries, 0.0);
auto meshField = p_mesh->getMeshField<meshFieldIndex>();
Expand All @@ -87,8 +83,6 @@ void MPMesh::assemblyElm0() {
if(mask) { //if material point is 'active'/'enabled'

Kokkos::atomic_add(&mpsPerElm(elm),1);
//auto elm_mp=mpCurElmID(mp);
//Kokkos::atomic_add(&mpsPerElm(elm_mp),1);
for(int j=0;j<numEntries;j++){
Kokkos::atomic_add(&meshField(elm,j), mpData(mp,0));
}
Expand Down
2 changes: 1 addition & 1 deletion src/pmpo_c.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,6 @@ void polympo_setMeshElm2ElmConn_f(MPMesh_ptr p_mpmesh, const int maxEdges, const
kkViewHostU<const int**> arrayHost(array,maxEdges,nCells); //Fortran is column-major
auto p_mesh = ((polyMPO::MPMesh*)p_mpmesh)->p_mesh;
PMT_ALWAYS_ASSERT(p_mesh->meshEditable());


//check the size
PMT_ALWAYS_ASSERT(maxEdges <= maxVtxsPerElm);
Expand Down Expand Up @@ -928,3 +927,4 @@ void polympo_summarizeTime_f(){
void polympo_setTimingVerbosity_f(int v){
pumipic::SetTimingVerbosity(v);
}

2 changes: 1 addition & 1 deletion src/pmpo_materialPoints.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ class MaterialPoints {
// x = cosLon cosLat, y = sinLon cosLat, z = sinLat
tgtPosXYZ(mp,0) = radius * std::cos(geoLon) * std::cos(geoLat);
tgtPosXYZ(mp,1) = radius * std::sin(geoLon) * std::cos(geoLat);
tgtPosXYZ(mp,2) = radius * std::sin(geoLat);
tgtPosXYZ(mp,2) = radius * std::sin(geoLat);
}
};
if(isRotatedFlag){
Expand Down

0 comments on commit 8b639ea

Please sign in to comment.