Return a string with the finite difference formula.
Input is the method id
code.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | id |
the id code for the method |
||
character(len=:), | intent(out), | allocatable | :: | formula |
the formula string |
|
character(len=:), | intent(out), | optional, | allocatable | :: | name |
subroutine get_finite_diff_formula(id,formula,name) implicit none integer,intent(in) :: id !! the id code for the method character(len=:),allocatable,intent(out) :: formula !! the formula string character(len=:),allocatable,intent(out),optional :: name type(finite_diff_method) :: fd logical :: found call get_finite_difference_method(id,fd,found) if (found .and. fd%id/=0) then call get_formula(fd,formula) if (present(name)) name = fd%name else formula = '' if (present(name)) name = '' end if end subroutine get_finite_diff_formula