EVOLUTION: Fix unphysical cells after applying shapes.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
This commit is contained in:
Grzegorz Kowal 2020-11-26 10:50:49 -03:00
parent f453d86bc4
commit 37fdafd28d

View File

@ -2852,6 +2852,17 @@ module evolution
!
call boundary_variables(tm, dtm)
! apply shapes in blocks which need it
!
pdata => list_data
do while (associated(pdata))
pmeta => pdata%meta
if (pmeta%update) call update_shapes(pdata, tm, dtm)
pdata => pdata%next
end do
! correct unphysical states if detected
!
if (fix_unphysical_cells) then
@ -2882,17 +2893,6 @@ module evolution
end do
end if
! apply shapes in blocks which need it
!
pdata => list_data
do while (associated(pdata))
pmeta => pdata%meta
if (pmeta%update) call update_shapes(pdata, tm, dtm)
pdata => pdata%next
end do
#ifdef PROFILE
! stop accounting time for variable update
!