Load variables, parent scheme and conditions defined in lua file.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(tem_adapt_type), | intent(inout) | :: | me |
adapt_type to be filled |
||
type(flu_State), | intent(in) | :: | conf |
lua state to read from |
subroutine tem_load_adapt( me, conf )
! ---------------------------------------------------------------------------
!> adapt_type to be filled
type( tem_adapt_type ), intent(inout) :: me
!> lua state to read from
type( flu_state ), intent(in) :: conf
! ---------------------------------------------------------------------------
integer :: adapt_handle
! ---------------------------------------------------------------------------
! Open the adapt table
call aot_table_open( L = conf, &
& thandle = adapt_handle, &
& key = 'adaptation' )
if ( adapt_handle /= 0 ) then
! get timeControl conditions
call tem_timeControl_load( me = me%time, &
& conf = conf, &
& parent = adapt_handle )
me%active = .TRUE.
write(logUnit(1),"(A)") 'Mesh Adaptation is active!'
end if
! close the adaptation table
call aot_table_close( L=conf, thandle=adapt_handle )
end subroutine tem_load_adapt