Skip to content

Commit fdd6cfc

Browse files
Formatting
1 parent bcb3953 commit fdd6cfc

File tree

3 files changed

+24
-27
lines changed

3 files changed

+24
-27
lines changed

src/SELF_MappedScalar_3D_t.f90

+11-11
Original file line numberDiff line numberDiff line change
@@ -156,19 +156,19 @@ subroutine MPIExchangeAsync_MappedScalar3D_t(this,mesh,resetCount)
156156

157157
msgCount = msgCount+1
158158
call MPI_IRECV(this%extBoundary(:,:,s1,e1,ivar), &
159-
(this%interp%N+1)*(this%interp%N+1), &
160-
mesh%decomp%mpiPrec, &
161-
r2,globalSideId, &
162-
mesh%decomp%mpiComm, &
163-
mesh%decomp%requests(msgCount),iError)
159+
(this%interp%N+1)*(this%interp%N+1), &
160+
mesh%decomp%mpiPrec, &
161+
r2,globalSideId, &
162+
mesh%decomp%mpiComm, &
163+
mesh%decomp%requests(msgCount),iError)
164164

165165
msgCount = msgCount+1
166166
call MPI_ISEND(this%boundary(:,:,s1,e1,ivar), &
167-
(this%interp%N+1)*(this%interp%N+1), &
168-
mesh%decomp%mpiPrec, &
169-
r2,globalSideId, &
170-
mesh%decomp%mpiComm, &
171-
mesh%decomp%requests(msgCount),iError)
167+
(this%interp%N+1)*(this%interp%N+1), &
168+
mesh%decomp%mpiPrec, &
169+
r2,globalSideId, &
170+
mesh%decomp%mpiComm, &
171+
mesh%decomp%requests(msgCount),iError)
172172
endif
173173
endif
174174

@@ -199,7 +199,7 @@ subroutine ApplyFlip_MappedScalar3D_t(this,mesh)
199199
e2 = mesh%sideInfo(3,s1,e1) ! Neighbor Element
200200
s2 = mesh%sideInfo(4,s1,e1)/10
201201
bcid = mesh%sideInfo(5,s1,e1)
202-
if(e2 > 0) then ! Interior Element
202+
if(e2 > 0) then ! Interior Element
203203
r2 = mesh%decomp%elemToRank(e2) ! Neighbor Rank
204204

205205
if(r2 /= mesh%decomp%rankId) then

src/SELF_MappedVector_3D_t.f90

+12-14
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ subroutine SetInteriorFromEquation_MappedVector3D_t(this,geometry,time)
127127

128128
endsubroutine SetInteriorFromEquation_MappedVector3D_t
129129

130-
131130
subroutine MPIExchangeAsync_MappedVector3D_t(this,mesh,resetCount)
132131
implicit none
133132
class(MappedVector3D_t),intent(inout) :: this
@@ -158,23 +157,23 @@ subroutine MPIExchangeAsync_MappedVector3D_t(this,mesh,resetCount)
158157

159158
s2 = mesh%sideInfo(4,s1,e1)/10
160159
globalSideId = abs(mesh%sideInfo(2,s1,e1))
161-
tag = globalsideid+mesh%nUniqueSides*(ivar-1 + this%nvar*(idir-1))
160+
tag = globalsideid+mesh%nUniqueSides*(ivar-1+this%nvar*(idir-1))
162161

163162
msgCount = msgCount+1
164163
call MPI_IRECV(this%extBoundary(:,:,s1,e1,ivar,idir), &
165-
(this%interp%N+1)*(this%interp%N+1), &
166-
mesh%decomp%mpiPrec, &
167-
r2,globalSideId, &
168-
mesh%decomp%mpiComm, &
169-
mesh%decomp%requests(msgCount),iError)
164+
(this%interp%N+1)*(this%interp%N+1), &
165+
mesh%decomp%mpiPrec, &
166+
r2,globalSideId, &
167+
mesh%decomp%mpiComm, &
168+
mesh%decomp%requests(msgCount),iError)
170169

171170
msgCount = msgCount+1
172171
call MPI_ISEND(this%boundary(:,:,s1,e1,ivar,idir), &
173-
(this%interp%N+1)*(this%interp%N+1), &
174-
mesh%decomp%mpiPrec, &
175-
r2,globalSideId, &
176-
mesh%decomp%mpiComm, &
177-
mesh%decomp%requests(msgCount),iError)
172+
(this%interp%N+1)*(this%interp%N+1), &
173+
mesh%decomp%mpiPrec, &
174+
r2,globalSideId, &
175+
mesh%decomp%mpiComm, &
176+
mesh%decomp%requests(msgCount),iError)
178177
endif
179178
endif
180179

@@ -199,7 +198,6 @@ subroutine ApplyFlip_MappedVector3D_t(this,mesh)
199198
integer :: bcid
200199
real(prec) :: extBuff(1:this%interp%N+1,1:this%interp%N+1)
201200

202-
203201
do idir = 1,3
204202
do ivar = 1,this%nvar
205203
do e1 = 1,this%nElem
@@ -208,7 +206,7 @@ subroutine ApplyFlip_MappedVector3D_t(this,mesh)
208206
e2 = mesh%sideInfo(3,s1,e1) ! Neighbor Element
209207
s2 = mesh%sideInfo(4,s1,e1)/10
210208
bcid = mesh%sideInfo(5,s1,e1)
211-
if(e2 > 0) then ! Interior Element
209+
if(e2 > 0) then ! Interior Element
212210
r2 = mesh%decomp%elemToRank(e2) ! Neighbor Rank
213211

214212
if(r2 /= mesh%decomp%rankId) then

src/cpu/SELF_DomainDecomposition.f90

+1-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ module SELF_DomainDecomposition
3030

3131
implicit none
3232

33-
type, extends(DomainDecomposition_t) :: DomainDecomposition
33+
type,extends(DomainDecomposition_t) :: DomainDecomposition
3434
endtype DomainDecomposition
3535

36-
3736
endmodule SELF_DomainDecomposition

0 commit comments

Comments
 (0)