Operator =.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(solver_object), | intent(inout) | :: | lhs | Left hand side. |
||
| type(solver_object), | intent(in) | :: | rhs | Right hand side. |
pure subroutine solver_assign_solver(lhs, rhs)
!< Operator `=`.
class(solver_object), intent(inout) :: lhs !< Left hand side.
type(solver_object), intent(in) :: rhs !< Right hand side.
lhs%error = rhs%error
if (allocated(rhs%time_integrator)) lhs%time_integrator = rhs%time_integrator
if (allocated(rhs%convective_operator)) lhs%convective_operator = rhs%convective_operator
if (allocated(rhs%diffusive_operator)) lhs%diffusive_operator = rhs%diffusive_operator
if (allocated(rhs%turbulence_model)) lhs%turbulence_model = rhs%turbulence_model
lhs%artificial_viscosity = rhs%artificial_viscosity
lhs%residuals_tolerance = rhs%residuals_tolerance
lhs%pseudo_compressibility = rhs%pseudo_compressibility
lhs%chimera_forcing = rhs%chimera_forcing
endsubroutine solver_assign_solver