If not valid abort with error noting invalid spline and which method was invoked
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
logical, | intent(in) | :: | valid | |||
character(len=*), | intent(in) | :: | routine_name |
subroutine handle_spline_error_logical(valid, routine_name)
use mp, only: mp_abort
implicit none
logical, intent(in) :: valid
character(len = *), intent(in) :: routine_name
if (.not. valid) call mp_abort('Attempt to use invalid spline in '//routine_name, .true.)
end subroutine handle_spline_error_logical