Init_Scalar2D Subroutine

public subroutine Init_Scalar2D(this, interp, nVar, nElem)

Arguments

TypeIntentOptionalAttributesName
class(Scalar2D), intent(out) :: this
type(Lagrange), intent(in), target:: interp
integer, intent(in) :: nVar
integer, intent(in) :: nElem

Calls

proc~~init_scalar2d~~CallsGraph proc~init_scalar2d Init_Scalar2D proc~ensuredevicebuffers_scalar2d EnsureDeviceBuffers_Scalar2D proc~init_scalar2d->proc~ensuredevicebuffers_scalar2d ensuredevicebuffer ensuredevicebuffer proc~ensuredevicebuffers_scalar2d->ensuredevicebuffer

Contents

Source Code


Source Code

  subroutine Init_Scalar2D(this,interp,nVar,nElem)
    implicit none
    class(Scalar2D),intent(out) :: this
    type(Lagrange),intent(in),target :: interp
    integer,intent(in) :: nVar
    integer,intent(in) :: nElem

    this%interp => interp
    this%nVar = nVar
    this%nElem = nElem
    this%N = interp%N
    this%M = interp%M

    call this%MapArrays(interp%N+1,nVar,nElem)

    allocate(this%meta(1:nVar))
    allocate(this%eqn(1:nVar))

    this%interior = 0.0_prec
    this%boundary = 0.0_prec
    this%extBoundary = 0.0_prec
    this%avgBoundary = 0.0_prec
    this%boundarynormal = 0.0_prec

    call EnsureDeviceBuffers_Scalar2D(this)

    call this%UpdateDevice()

  endsubroutine Init_Scalar2D