Skip to content

Commit 0ca0073

Browse files
committed
CleanUp for PR_v4
1 parent 7635543 commit 0ca0073

File tree

4 files changed

+16
-21
lines changed

4 files changed

+16
-21
lines changed

src/pmpo_c.cpp

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ void polympo_startCommunication_f(MPMesh_ptr p_mpmesh){
6969

7070
//MP info
7171
void polympo_createMPs_f(MPMesh_ptr p_mpmesh,
72-
const int numElms,
73-
const int numMPs, // total number of MPs which is >= number of active MPs
74-
int* mpsPerElm,
75-
const int* mp2Elm,
76-
const int* isMPActive) {
72+
const int numElms,
73+
const int numMPs, // total number of MPs which is >= number of active MPs
74+
int* mpsPerElm,
75+
const int* mp2Elm,
76+
const int* isMPActive){
7777
checkMPMeshValid(p_mpmesh);
7878
//the mesh must be fixed/set before adding MPs
7979
auto p_mesh = ((polyMPO::MPMesh*)p_mpmesh)->p_mesh;
@@ -204,12 +204,12 @@ void polympo_startRebuildMPs_f(MPMesh_ptr p_mpmesh,
204204
}
205205

206206
void polympo_startRebuildMPs2_f(MPMesh_ptr p_mpmesh,
207-
const int sizeMP2elm,
208-
const int* elem_ids,
209-
const int nMPs_delete,
210-
const int nMPs_add,
211-
int* recvMPs_elm,
212-
int* recvMPs_ids) {
207+
const int sizeMP2elm,
208+
const int* elem_ids,
209+
const int nMPs_delete,
210+
const int nMPs_add,
211+
int* recvMPs_elm,
212+
int* recvMPs_ids) {
213213

214214
Kokkos::Timer timer;
215215
checkMPMeshValid(p_mpmesh);
@@ -263,9 +263,7 @@ void polympo_setAppIDFunc_f(MPMesh_ptr p_mpmesh, IntVoidFunc getNext, void* appI
263263
p_MPs->setAppIDFunc(getNextAppID);
264264
}
265265

266-
void polympo_getMPTgtElmID_f(MPMesh_ptr p_mpmesh,
267-
const int numMPs,
268-
int* elmIDs){
266+
void polympo_getMPTgtElmID_f(MPMesh_ptr p_mpmesh, const int numMPs, int* elmIDs){
269267
Kokkos::Timer timer;
270268
checkMPMeshValid(p_mpmesh);
271269
auto p_MPs = ((polyMPO::MPMesh*)p_mpmesh)->p_MPs;
@@ -288,9 +286,7 @@ void polympo_getMPTgtElmID_f(MPMesh_ptr p_mpmesh,
288286
pumipic::RecordTime("PolyMPO_getMPTgtElmID", timer.seconds());
289287
}
290288

291-
void polympo_getMPCurElmID_f(MPMesh_ptr p_mpmesh,
292-
const int numMPs,
293-
int* elmIDs){
289+
void polympo_getMPCurElmID_f(MPMesh_ptr p_mpmesh, const int numMPs, int* elmIDs){
294290
checkMPMeshValid(p_mpmesh);
295291
auto p_MPs = ((polyMPO::MPMesh*)p_mpmesh)->p_MPs;
296292
PMT_ALWAYS_ASSERT(numMPs >= p_MPs->getCount());

src/pmpo_wachspressBasis.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace polyMPO{
1010
template <MeshFieldIndex meshFieldIndex>
1111
void sphericalInterpolation(MPMesh& mpMesh){
1212
Kokkos::Timer timer;
13-
13+
1414
auto p_mesh = mpMesh.p_mesh;
1515
auto vtxCoords = p_mesh->getMeshField<polyMPO::MeshF_VtxCoords>();
1616
int numVtxs = p_mesh->getNumVertices();

test/testFortranMPAdvection.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ subroutine runReconstructionTest(mpMesh, numMPs, numPush, nCells, nVertices, mp2
106106

107107
call polympo_setMPMass(mpMesh,1,numMPs,c_loc(mpMass))
108108
call polympo_setMPVel(mpMesh,2,numMPs,c_loc(mpVel))
109-
109+
110110
! Although this test just does 0th order reconstruction testing, and just needs the BasisSlice,
111111
! calculating the coefficeints too as that will involve calculating the Basis Slice
112112
call polympo_reconstruct_coeff_with_MPI(mpmesh)
@@ -164,7 +164,7 @@ subroutine runApiTest(mpMesh, numMPs, nVertices, nCells, numPush, mpLatLon, mpPo
164164
meshVtxMass = TEST_VAL
165165
meshElmMass = TEST_VAL
166166
meshVtxVel = TEST_VAL
167-
167+
168168
do j = 1, numPush
169169
call polympo_setMPPositions(mpMesh,3,numMPs,c_loc(mpPosition))
170170
call polympo_setMeshVtxOnSurfDispIncr(mpMesh,nCompsDisp,nVertices,c_loc(dispIncr))

test/testFortranMPReconstruction.f90

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@ program main
166166
end do
167167
end do
168168

169-
170169
call polympo_deleteMPMesh(mpMesh)
171170
call polympo_finalize()
172171

0 commit comments

Comments
 (0)