constructor Function

private pure function constructor(viscosity_value) result(this)

Arguments

Type IntentOptional AttributesName
real(kind=r8), intent(in) :: viscosity_value

The numerical value of the viscosity which this type is meant to return.

Return Value type(newtonian_viscosity)

The viscosity object being created.


Called by

proc~~constructor~19~~CalledByGraph proc~constructor~19 constructor interface~newtonian_viscosity newtonian_viscosity interface~newtonian_viscosity->proc~constructor~19

Contents

Source Code


Source Code

  pure function constructor(viscosity_value) result(this)
    real(r8), intent(in) :: viscosity_value
      !! The numerical value of the viscosity which this type is meant 
      !! to return.
    type(newtonian_viscosity) :: this
      !! The viscosity object being created.
    this%viscosity_value = viscosity_value
  end function constructor