SetInteriorFromEquation_MappedScalar1D_t Subroutine

public subroutine SetInteriorFromEquation_MappedScalar1D_t(this, time)

Sets the this % interior attribute using the eqn attribute, geometry (for physical positions), and provided simulation time.

Arguments

TypeIntentOptionalAttributesName
class(MappedScalar1D_t), intent(inout) :: this
real(kind=prec), intent(in) :: time

Contents


Source Code

  subroutine SetInteriorFromEquation_MappedScalar1D_t(this,time)
    !!  Sets the this % interior attribute using the eqn attribute,
    !!  geometry (for physical positions), and provided simulation time.
    implicit none
    class(MappedScalar1D_t),intent(inout) :: this
    real(prec),intent(in) :: time
    ! Local
    integer :: iVar

    do ivar = 1,this%nvar
      this%interior(:,:,ivar) = this%eqn(ivar)%evaluate(this%geometry%x%interior)
    enddo

  endsubroutine SetInteriorFromEquation_MappedScalar1D_t