EVOLUTION: Fix unphysical cells after applying shapes.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
This commit is contained in:
parent
f453d86bc4
commit
37fdafd28d
@ -2852,6 +2852,17 @@ module evolution
|
|||||||
!
|
!
|
||||||
call boundary_variables(tm, dtm)
|
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
|
! correct unphysical states if detected
|
||||||
!
|
!
|
||||||
if (fix_unphysical_cells) then
|
if (fix_unphysical_cells) then
|
||||||
@ -2882,17 +2893,6 @@ module evolution
|
|||||||
end do
|
end do
|
||||||
end if
|
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
|
#ifdef PROFILE
|
||||||
! stop accounting time for variable update
|
! stop accounting time for variable update
|
||||||
!
|
!
|
||||||
|
Loading…
x
Reference in New Issue
Block a user