Initializes the marker_set type. This subourtine replaces the inheritted lagrangian_init.
| Type | Intent | Optional | 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 |
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