[DEPRECATED] Initializes block object.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(block_obj), | intent(inout) | :: | this |
A block object |
||
| real(kind=wp), | intent(in) | :: | xlo(3) |
Coordinates of the bottom left corner |
||
| real(kind=wp), | intent(in) | :: | xhi(3) |
Coordinates of the top right corner |
||
| integer, | intent(in) | :: | lo(3) |
Array lower bound |
||
| integer, | intent(in) | :: | hi(3) |
Array upper bound |
||
| integer, | intent(in) | :: | ngc |
Number of ghostcells |
||
| type(parallel_obj), | intent(in), | target | :: | parallel |
Parallel structure to link with |
impure subroutine block_obj_Init2(this,xlo,xhi,lo,hi,ngc,parallel) !> [DEPRECATED] Initializes block object. implicit none class(block_obj), intent(inout) :: this !! A block object real(wp), intent(in) :: xlo(3) !! Coordinates of the bottom left corner real(wp), intent(in) :: xhi(3) !! Coordinates of the top right corner integer, intent(in) :: lo(3) !! Array lower bound integer, intent(in) :: hi(3) !! Array upper bound integer, intent(in) :: ngc !! Number of ghostcells type(parallel_obj), intent(in), & target :: parallel !! Parallel structure to link with ! Work variables integer :: dir ! Point to the master objects this%parallel => parallel ! Setup ghostcells this%ngc = ngc ! Initialize MPI datatypes do dir=1,3 this%gc_slab_r(dir) = MPI_DATATYPE_NULL this%gc_slab_i(dir) = MPI_DATATYPE_NULL end do ! Set up the grid call this%SetupUniformGrid(xlo,xhi,lo,hi) ! Switch flag this%is_initialized = .true. return end subroutine block_obj_Init2