SetSolutionFromEqn_DGModel1D_t Subroutine

public subroutine SetSolutionFromEqn_DGModel1D_t(this, eqn)

Arguments

TypeIntentOptionalAttributesName
class(DGModel1D_t), intent(inout) :: this
type(EquationParser), intent(in) :: eqn(1:this%solution%nVar)

Contents


Source Code

  subroutine SetSolutionFromEqn_DGModel1D_t(this,eqn)
    implicit none
    class(DGModel1D_t),intent(inout) :: this
    type(EquationParser),intent(in) :: eqn(1:this%solution%nVar)
    ! Local
    integer :: iVar

    ! Copy the equation parser
    do iVar = 1,this%solution%nVar
      call this%solution%SetEquation(ivar,eqn(iVar)%equation)
    enddo

    call this%solution%SetInteriorFromEquation(this%t)
    call this%solution%BoundaryInterp()

  endsubroutine SetSolutionFromEqn_DGModel1D_t