marker_set_Init Subroutine

private impure subroutine marker_set_Init(this, name, block, parallel)

Initializes the marker_set type. This subourtine replaces the inheritted lagrangian_init.

Type Bound

marker_set

Arguments

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

A collection of tessellation elements

character(len=*), intent(in) :: name

Name of this IB surface

type(block_obj), intent(in), target :: block

A block object

type(parallel_obj), intent(in), target :: parallel

Parallel structure to link with


Calls

proc~~marker_set_init~~CallsGraph proc~marker_set_init marker_set%marker_set_Init proc~lagrangian_set_creatempitype lagrangian_set%lagrangian_set_CreateMPIType proc~marker_set_init->proc~lagrangian_set_creatempitype proc~lagrangian_set_resize lagrangian_set%lagrangian_set_Resize proc~marker_set_init->proc~lagrangian_set_resize proc~marker_set_setobjecttype marker_set%marker_set_SetObjectType proc~marker_set_init->proc~marker_set_setobjecttype proc~marker_set_setreadchunksize marker_set%marker_set_SetReadChunkSize proc~marker_set_init->proc~marker_set_setreadchunksize SetMPIDataTypeParams SetMPIDataTypeParams proc~lagrangian_set_creatempitype->SetMPIDataTypeParams mpi_type_commit mpi_type_commit proc~lagrangian_set_creatempitype->mpi_type_commit mpi_type_create_resized mpi_type_create_resized proc~lagrangian_set_creatempitype->mpi_type_create_resized mpi_type_create_struct mpi_type_create_struct proc~lagrangian_set_creatempitype->mpi_type_create_struct mpi_type_get_extent mpi_type_get_extent proc~lagrangian_set_creatempitype->mpi_type_get_extent mpi_type_size mpi_type_size proc~lagrangian_set_creatempitype->mpi_type_size

Source Code

    impure subroutine marker_set_Init(this,name,block,parallel)
      !> Initializes the marker_set type.
      ! This subourtine replaces the inheritted lagrangian_init.
      class(marker_set),  intent(inout) :: this                                !! A collection of tessellation elements
      character(len=*),   intent(in)    :: name                                !! Name of this IB surface
      type(block_obj),    intent(in),    &
                                 target :: block                               !! A block object
      type(parallel_obj), intent(in),    &
                                 target :: parallel                            !! Parallel structure to link with

      ! Point to the master objects
      this%parallel => parallel
      this%block    => block

      ! Allocate arrays
      allocate(this%count_proc(this%parallel%nproc))
      this%count_proc(:)=0

      ! Set name of variable
      this%name=trim(adjustl(name))

      ! Set sample type
      call this%SetObjectType()

      ! Initialize array with length zero
      this%count_ = 0
      call this%Resize(this%count_)

      ! Create MPI type
      call this%CreateMPIType

      ! Set default read chunk size
      call this%SetReadChunkSize(READ_CHUNK_SIZE)

      ! Switch flag on
      this%is_initialized = .true.

      return
    end subroutine marker_set_Init