This subroutine loads the definition of a spatial Heaviside function including Gibbs oscillations occuring for a high order approximation.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(flu_State) | :: | conf |
lua state type |
|||
integer, | intent(in) | :: | thandle |
aotus parent handle |
||
type(tem_heaviside_gibbs_type), | intent(out) | :: | me |
Heaviside function data |
subroutine tem_load_heaviside_gibbs( conf, thandle, me )
! ---------------------------------------------------------------------------
!> Heaviside function data
type(tem_heaviside_gibbs_type),intent(out) :: me
!> lua state type
type(flu_State) :: conf
!> aotus parent handle
integer, intent(in) :: thandle
! ---------------------------------------------------------------------------
integer :: iError
! ---------------------------------------------------------------------------
! Center
call aot_get_val( L = conf, &
& thandle = thandle, &
& key = 'center', &
& val = me%center, &
& ErrCode = iError )
! Order
call aot_get_val( L = conf, &
& thandle = thandle, &
& key = 'order', &
& val = me%order, &
& ErrCode = iError )
! Left value
call aot_get_val( L = conf, &
& thandle = thandle, &
& key = 'left', &
& val = me%left, &
& ErrCode = iError )
! Right value
call aot_get_val( L = conf, &
& thandle = thandle, &
& key = 'right', &
& val = me%right, &
& ErrCode = iError )
write(logUnit(1),*) ' Data for Heaviside function (including Gibbs'// &
& 'oscillations):'
write(logUnit(1),*) ' * center =', me%center
write(logUnit(1),*) ' * order =', me%order
write(logUnit(1),*) ' * left =', me%left
write(logUnit(1),*) ' * right =', me%right
end subroutine tem_load_heaviside_gibbs