Set particular value to the Fixed_var variable
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=wp), | intent(out), | dimension(:) | :: | fixed_var | ||
real(kind=wp), | intent(in) | :: | fix_val | |||
real(kind=wp), | intent(in) | :: | inf_val | |||
integer, | intent(in) | :: | count | |||
integer, | intent(in) | :: | ios |
subroutine set_value(fixed_var, fix_val, inf_val, count, ios)
!< Set particular value to the Fixed_var variable
implicit none
integer, intent(in) :: ios
integer, intent(in) :: count
real(wp) , intent(in) :: fix_val
real(wp) , intent(in) :: inf_val
real(wp) , intent(out), dimension(:) :: fixed_var
if(ios==0)then
fixed_var(count) = fix_val
else
fixed_var(count) = inf_val
end if
end subroutine set_value