Skip to content

Commit c7dfb27

Browse files
committed
Linear rec with MPs as Cell Centres
1 parent 8333764 commit c7dfb27

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/testFortranMPReconstruction.f90

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ program main
101101
j = verticesOnCell(1,i)
102102
mpLatLon(1,i) = latVertex(j)
103103
mpLatLon(2,i) = lonVertex(j)
104-
mpPosition(1,i) = xVertex(j)
105-
mpPosition(2,i) = yVertex(j)
106-
mpPosition(3,i) = zVertex(j)
104+
mpPosition(1,i) = xCell(i) !xVertex(j)
105+
mpPosition(2,i) = yCell(i) !yVertex(j)
106+
mpPosition(3,i) = zCell(i) !zVertex(j)
107107
end do
108108

109109
call polympo_createMPs(mpMesh,nCells,numMPs,c_loc(mpsPerElm),c_loc(mp2Elm),c_loc(isMPActive))
@@ -127,7 +127,7 @@ program main
127127
call polympo_applyReconstruction(mpMesh)
128128
call polympo_getMeshVtxMass(mpMesh,nVertices,c_loc(meshVtxMass1))
129129
do i = 1, nVertices
130-
!call assert(meshVtxMass1(i) < TEST_VAL+TOLERANCE1 .and. meshVtxMass1(i) > TEST_VAL-TOLERANCE1, "Error: wrong vtx mass lINEAR")
130+
call assert(meshVtxMass1(i) < TEST_VAL+TOLERANCE1 .and. meshVtxMass1(i) > TEST_VAL-TOLERANCE1, "Error: wrong vtx mass lINEAR")
131131
end do
132132

133133

0 commit comments

Comments
 (0)