Instantiates an instance of a viscosity object implementing Glen's flow law.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=r8), | intent(in) | :: | b_val | The coefficient, , in Glen's flow law. |
||
real(kind=r8), | intent(in) | :: | index | The index, , in the exponent of Glen's flow law. |
The viscosity object being created.
pure function constructor(b_val, index) result(this)
!* Author: Christopher MacMackin
! Date: April 2017
!
! Instantiates an instance of a viscosity object implementing
! Glen's flow law.
!
real(r8), intent(in) :: b_val
!! The coefficient, \(B\), in Glen's flow law.
real(r8), intent(in) :: index
!! The index, \(n\), in the exponent of Glen's flow law.
type(glens_law_viscosity) :: this
!! The viscosity object being created.
this%b_val = b_val
this%index = index
end function constructor