Initializes the ResPart_set type. This subourtine replaces the inheritted lagrangian_init.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(ResPart_set), | intent(inout) | :: | this |
Set of resolved partilces |
||
| character(len=*), | intent(in) | :: | name |
Name of instance |
||
| type(block_obj), | intent(in), | target | :: | block |
A block object |
|
| type(parallel_obj), | intent(in), | target | :: | parallel |
Parallel structure to link with |
impure subroutine ResPart_set_Init(this,name,block,parallel) !> Initializes the ResPart_set type. ! This subourtine replaces the inheritted lagrangian_init. class(ResPart_set), intent(inout) :: this !! Set of resolved partilces character(len=*), intent(in) :: name !! Name of instance 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 ! Initialize immersed boundary call this%ib%initialize(trim(adjustl(this%name))//'_markers',this%block,this%parallel) ! Turn on flag this%is_initialized = .true. return end subroutine ResPart_set_Init