eulerian_obj_AssignInt0D Subroutine

private impure subroutine eulerian_obj_AssignInt0D(this, in)

Performs assignment for Eulerian_obj.

Type Bound

eulerian_obj_base

Arguments

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

An Eulerian object

integer, intent(in) :: in

Object to assign


Source Code

    impure subroutine eulerian_obj_AssignInt0D(this,in)
      !> Performs assignment for Eulerian_obj.
      implicit none
      class(eulerian_obj_base), intent(inout) :: this                          !! An Eulerian object
      integer,                  intent(in)    :: in                            !! Object to assign

      select type (this)
      type is (eulerian_obj_r)
          this%cell = real(in,wp)

      type is (eulerian_obj_i)
          this%cell = in

      class default
        call this%parallel%Stop("Error assigning Eulerian object")
      end select

      return
    end subroutine eulerian_obj_AssignInt0D