eulerian_obj_MulReal0D Function

private impure function eulerian_obj_MulReal0D(this, in) result(res)

Performs multiplication of real Eulerian objects by real scalar.

Type Bound

eulerian_obj_base

Arguments

Type IntentOptional Attributes Name
class(eulerian_obj_base), intent(in) :: this

An Eulerian object

real(kind=wp), intent(in) :: in

An Eulerian object

Return Value type(eulerian_obj_r)

Result


Calls

proc~~eulerian_obj_mulreal0d~~CallsGraph proc~eulerian_obj_mulreal0d eulerian_obj_base%eulerian_obj_MulReal0D proc~eulerian_obj_init eulerian_obj_base%eulerian_obj_Init proc~eulerian_obj_mulreal0d->proc~eulerian_obj_init

Source Code

    impure function eulerian_obj_MulReal0D(this,in) result (res)
      !> Performs multiplication of real Eulerian objects by real scalar.
      implicit none
      class(eulerian_obj_base), intent(in) :: this                             !! An Eulerian object
      real(wp),                 intent(in) :: in                               !! An Eulerian object
      type(eulerian_obj_r)                 :: res                              !! Result

      call res%Initialize(this%name,this%block,this%parallel,this%staggering)
      select type (this)
      type is (eulerian_obj_r)
          res%cell = this%cell*in

      class default
        call this%parallel%Stop("Error performing multiplication of Eulerian object")
      end select

      return
    end function eulerian_obj_MulReal0D