Updates mid points.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(block_obj), | intent(inout) | :: | this |
A block object |
pure subroutine block_obj_UpdateMidPoints(this) !> Updates mid points. implicit none class(block_obj), intent(inout) :: this !! A block object ! Work variables integer :: i,dir associate (lo => this%lo, hi => this%hi, ngc=> this%ngc,& axis => this%axis) do dir=1,3 do i=lo(dir)-ngc,hi(dir)+ngc axis(dir)%xm(i) = 0.5_wp*(axis(dir)%x(i)+axis(dir)%x(i+1)) end do end do end associate return end subroutine block_obj_UpdateMidPoints