Sets the this % interior attribute using the eqn attribute, geometry (for physical positions), and provided simulation time.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(MappedScalar1D), | intent(inout) | :: | this | |||
real(kind=prec), | intent(in) | :: | time |
subroutine SetInteriorFromEquation_MappedScalar1D(this,time)
!! Sets the this % interior attribute using the eqn attribute,
!! geometry (for physical positions), and provided simulation time.
implicit none
class(MappedScalar1D),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
call gpuCheck(hipMemcpy(this%interior_gpu,c_loc(this%interior),sizeof(this%interior),hipMemcpyHostToDevice))
endsubroutine SetInteriorFromEquation_MappedScalar1D