Skip to content

Commit

Permalink
commented out the part using ibmPatchExists flag. this needs more car…
Browse files Browse the repository at this point in the history
…e in MPI handling.
  • Loading branch information
dreamer2368 committed Dec 21, 2022
1 parent d2244f5 commit 368c368
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ImmersedBoundaryImpl.f90
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ subroutine updateIBMVariables(this, mode, grid, simulationFlags)
return
end if

if (.not. this%ibmPatchExists) return
!if (.not. this%ibmPatchExists) return

assert(size(this%levelset, 1) == size(this%conservedVariables, 1))
assert(size(this%levelset, 2) == 1)
Expand Down
4 changes: 3 additions & 1 deletion src/SinusoidalWallLevelsetImpl.f90
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ subroutine updateSinusoidalWallLevelset(this, mode, grids, states)
* cos(2.0_wp * pi * states(1)%time / this%levelsetPeriod)

do i = 1, size(states)
if (.not. states(i)%ibmPatchExists) cycle
!NOTE: you cannot simply cycle here, since even in the same grid, some
!processors may not have ibm patch.
!if (.not. states(i)%ibmPatchExists) cycle

assert(size(states(i)%levelset, 1) == size(states(i)%conservedVariables, 1))
assert(size(states(i)%levelset, 2) == 1)
Expand Down

0 comments on commit 368c368

Please sign in to comment.