MPI-AMRVAC  2.2
The MPI - Adaptive Mesh Refinement - Versatile Advection Code
Data Types | Functions/Subroutines | Variables
mod_ghostcells_update Module Reference

update ghost cells of all blocks including physical boundaries More...

Data Types

type  wbuffer
 

Functions/Subroutines

subroutine init_bc ()
 
subroutine create_bc_mpi_datatype (nwstart, nwbc)
 
subroutine get_bc_comm_type (comm_type, ixL, ixGL, nwstart, nwbc)
 
subroutine put_bc_comm_types ()
 
subroutine getbc (time, qdt, psb, nwstart, nwbc, req_diag)
 do update ghost cells of all blocks including physical boundaries More...
 
subroutine identifyphysbound (s, iibD)
 

Variables

logical, public bcphys =.true.
 
integer ixm
 
integer, dimension(^nd, 0:3) l
 
integer ixcog
 
integer ixcom
 
integer, parameter npwbuf =2
 The number of interleaving sending buffers for ghost cells. More...
 
integer, dimension(-1:2,-1:1) ixs_srl_
 
integer, dimension(-1:2,-1:1) ixr_srl_
 
integer, dimension(^nd,-1:1) ixs_srl_stg_
 
integer, dimension(^nd,-1:1) ixr_srl_stg_
 
integer, dimension(-1:1,-1:1) ixs_r_
 
integer, dimension(^nd,-1:1) ixs_r_stg_
 
integer, dimension(-1:1, 0:3) ixr_r_
 
integer, dimension(^nd, 0:3) ixr_r_stg_
 
integer, dimension(-1:1, 0:3) ixs_p_
 
integer, dimension(-1:1, 0:3) ixr_p_
 
integer, dimension(^nd, 0:3) ixs_p_stg_
 
integer, dimension(^nd, 0:3) ixr_p_stg_
 
integer nrecv_bc_srl
 
integer nsend_bc_srl
 
integer nrecv_bc_r
 
integer nsend_bc_r
 
integer nrecv_bc_p
 
integer nsend_bc_p
 
integer nbuff_bc_recv_srl
 
integer nbuff_bc_send_srl
 
integer nbuff_bc_recv_r
 
integer nbuff_bc_send_r
 
integer nbuff_bc_recv_p
 
integer nbuff_bc_send_p
 
integer ibuf_send_srl
 
integer ibuf_recv_srl
 
integer ibuf_send_r
 
integer ibuf_recv_r
 
integer ibuf_send_p
 
integer ibuf_recv_p
 
integer isend_srl
 
integer irecv_srl
 
integer isend_r
 
integer irecv_r
 
integer isend_p
 
integer irecv_p
 
integer, dimension(-1:1^d &) sizes_srl_send_total
 
integer, dimension(-1:1^d &) sizes_srl_recv_total
 
integer, dimension(^nd,-1:1^d &) sizes_srl_send_stg
 
integer, dimension(^nd,-1:1^d &) sizes_srl_recv_stg
 
integer, dimension(:), allocatable recvrequest_srl
 
integer, dimension(:), allocatable sendrequest_srl
 
integer, dimension(:,:), allocatable recvstatus_srl
 
integer, dimension(:,:), allocatable sendstatus_srl
 
double precision, dimension(:), allocatable recvbuffer_srl
 
double precision, dimension(:), allocatable sendbuffer_srl
 
integer, dimension(:), allocatable recvrequest_r
 
integer, dimension(:), allocatable sendrequest_r
 
integer, dimension(:,:), allocatable recvstatus_r
 
integer, dimension(:,:), allocatable sendstatus_r
 
double precision, dimension(:), allocatable recvbuffer_r
 
double precision, dimension(:), allocatable sendbuffer_r
 
integer, dimension(:), allocatable recvrequest_p
 
integer, dimension(:), allocatable sendrequest_p
 
integer, dimension(:,:), allocatable recvstatus_p
 
integer, dimension(:,:), allocatable sendstatus_p
 
double precision, dimension(:), allocatable recvbuffer_p
 
double precision, dimension(:), allocatable sendbuffer_p
 
integer, dimension(-1:1^d &) sizes_r_send_total
 
integer, dimension(0:3^d &) sizes_r_recv_total
 
integer, dimension(^nd,-1:1^d &) sizes_r_send_stg
 
integer, dimension(^nd, 0:3^d &) sizes_r_recv_stg
 
integer, dimension(0:3^d &) sizes_p_send_total
 
integer, dimension(0:3^d &) sizes_p_recv_total
 
integer, dimension(^nd, 0:3^d &) sizes_p_send_stg
 
integer, dimension(^nd, 0:3^d &) sizes_p_recv_stg
 
integer, dimension(-1:2^d &,-1:1^d &), target type_send_srl_f
 
integer, dimension(-1:2^d &,-1:1^d &), target type_recv_srl_f
 
integer, dimension(-1:1^d &,-1:1^d &), target type_send_r_f
 
integer, dimension(-1:1^d &, 0:3^d &), target type_recv_r_f
 
integer, dimension(-1:1^d &, 0:3^d &), target type_send_p_f
 
integer, dimension(-1:1^d &, 0:3^d &), target type_recv_p_f
 
integer, dimension(-1:2^d &,-1:1^d &), target type_send_srl_p1
 
integer, dimension(-1:2^d &,-1:1^d &), target type_recv_srl_p1
 
integer, dimension(-1:1^d &,-1:1^d &), target type_send_r_p1
 
integer, dimension(-1:1^d &, 0:3^d &), target type_recv_r_p1
 
integer, dimension(-1:1^d &, 0:3^d &), target type_send_p_p1
 
integer, dimension(-1:1^d &, 0:3^d &), target type_recv_p_p1
 
integer, dimension(-1:2^d &,-1:1^d &), target type_send_srl_p2
 
integer, dimension(-1:2^d &,-1:1^d &), target type_recv_srl_p2
 
integer, dimension(-1:1^d &,-1:1^d &), target type_send_r_p2
 
integer, dimension(-1:1^d &, 0:3^d &), target type_recv_r_p2
 
integer, dimension(-1:1^d &, 0:3^d &), target type_send_p_p2
 
integer, dimension(-1:1^d &, 0:3^d &), target type_recv_p_p2
 
integer, dimension(:^d &,:^d &), pointer type_send_srl
 
integer, dimension(:^d &,:^d &), pointer type_recv_srl
 
integer, dimension(:^d &,:^d &), pointer type_send_r
 
integer, dimension(:^d &,:^d &), pointer type_recv_r
 
integer, dimension(:^d &,:^d &), pointer type_send_p
 
integer, dimension(:^d &,:^d &), pointer type_recv_p
 

Detailed Description

update ghost cells of all blocks including physical boundaries

Function/Subroutine Documentation

◆ create_bc_mpi_datatype()

subroutine mod_ghostcells_update::create_bc_mpi_datatype ( integer, intent(in)  nwstart,
integer, intent(in)  nwbc 
)

Definition at line 354 of file mod_ghostcells_update.t.

Here is the call graph for this function:

◆ get_bc_comm_type()

subroutine mod_ghostcells_update::get_bc_comm_type ( integer, intent(inout)  comm_type,
integer, intent(in)  ix,
integer, intent(in)  L,
integer, intent(in)  ixG,
  L,
integer, intent(in)  nwstart,
integer, intent(in)  nwbc 
)

Definition at line 378 of file mod_ghostcells_update.t.

◆ getbc()

subroutine mod_ghostcells_update::getbc ( double precision, intent(in)  time,
double precision, intent(in)  qdt,
type(state), dimension(max_blocks), target  psb,
integer, intent(in)  nwstart,
integer, intent(in)  nwbc,
logical, intent(in), optional  req_diag 
)

do update ghost cells of all blocks including physical boundaries

Definition at line 424 of file mod_ghostcells_update.t.

Here is the call graph for this function:

◆ identifyphysbound()

subroutine mod_ghostcells_update::identifyphysbound ( type(state s,
integer, intent(out)  iib,
integer, intent(out)  D 
)

Definition at line 1759 of file mod_ghostcells_update.t.

◆ init_bc()

subroutine mod_ghostcells_update::init_bc ( )

Definition at line 110 of file mod_ghostcells_update.t.

Here is the call graph for this function:

◆ put_bc_comm_types()

subroutine mod_ghostcells_update::put_bc_comm_types ( )

Definition at line 399 of file mod_ghostcells_update.t.

Variable Documentation

◆ bcphys

logical, public mod_ghostcells_update::bcphys =.true.

Definition at line 11 of file mod_ghostcells_update.t.

◆ ibuf_recv_p

integer mod_ghostcells_update::ibuf_recv_p

Definition at line 53 of file mod_ghostcells_update.t.

◆ ibuf_recv_r

integer mod_ghostcells_update::ibuf_recv_r

Definition at line 53 of file mod_ghostcells_update.t.

◆ ibuf_recv_srl

integer mod_ghostcells_update::ibuf_recv_srl

Definition at line 53 of file mod_ghostcells_update.t.

◆ ibuf_send_p

integer mod_ghostcells_update::ibuf_send_p

Definition at line 53 of file mod_ghostcells_update.t.

◆ ibuf_send_r

integer mod_ghostcells_update::ibuf_send_r

Definition at line 53 of file mod_ghostcells_update.t.

◆ ibuf_send_srl

integer mod_ghostcells_update::ibuf_send_srl

Definition at line 53 of file mod_ghostcells_update.t.

◆ irecv_p

integer mod_ghostcells_update::irecv_p

Definition at line 56 of file mod_ghostcells_update.t.

◆ irecv_r

integer mod_ghostcells_update::irecv_r

Definition at line 56 of file mod_ghostcells_update.t.

◆ irecv_srl

integer mod_ghostcells_update::irecv_srl

Definition at line 56 of file mod_ghostcells_update.t.

◆ isend_p

integer mod_ghostcells_update::isend_p

Definition at line 56 of file mod_ghostcells_update.t.

◆ isend_r

integer mod_ghostcells_update::isend_r

Definition at line 56 of file mod_ghostcells_update.t.

◆ isend_srl

integer mod_ghostcells_update::isend_srl

Definition at line 56 of file mod_ghostcells_update.t.

◆ ixcog

integer mod_ghostcells_update::ixcog

Definition at line 12 of file mod_ghostcells_update.t.

◆ ixcom

integer mod_ghostcells_update::ixcom

Definition at line 12 of file mod_ghostcells_update.t.

◆ ixm

integer mod_ghostcells_update::ixm

Definition at line 12 of file mod_ghostcells_update.t.

◆ ixr_p_

integer, dimension(-1:1, 0:3) mod_ghostcells_update::ixr_p_

Definition at line 41 of file mod_ghostcells_update.t.

◆ ixr_p_stg_

integer, dimension(^nd,0:3) mod_ghostcells_update::ixr_p_stg_

Definition at line 44 of file mod_ghostcells_update.t.

◆ ixr_r_

integer, dimension(-1:1, 0:3) mod_ghostcells_update::ixr_r_

Definition at line 35 of file mod_ghostcells_update.t.

◆ ixr_r_stg_

integer, dimension(^nd,0:3) mod_ghostcells_update::ixr_r_stg_

Definition at line 38 of file mod_ghostcells_update.t.

◆ ixr_srl_

integer, dimension(-1:2,-1:1) mod_ghostcells_update::ixr_srl_

Definition at line 23 of file mod_ghostcells_update.t.

◆ ixr_srl_stg_

integer, dimension(^nd,-1:1) mod_ghostcells_update::ixr_srl_stg_

Definition at line 26 of file mod_ghostcells_update.t.

◆ ixs_p_

integer, dimension(-1:1, 0:3) mod_ghostcells_update::ixs_p_

Definition at line 41 of file mod_ghostcells_update.t.

◆ ixs_p_stg_

integer, dimension(^nd,0:3) mod_ghostcells_update::ixs_p_stg_

Definition at line 44 of file mod_ghostcells_update.t.

◆ ixs_r_

integer, dimension(-1:1,-1:1) mod_ghostcells_update::ixs_r_

Definition at line 29 of file mod_ghostcells_update.t.

◆ ixs_r_stg_

integer, dimension(^nd,-1:1) mod_ghostcells_update::ixs_r_stg_

Definition at line 32 of file mod_ghostcells_update.t.

◆ ixs_srl_

integer, dimension(-1:2,-1:1) mod_ghostcells_update::ixs_srl_

Definition at line 23 of file mod_ghostcells_update.t.

◆ ixs_srl_stg_

integer, dimension(^nd,-1:1) mod_ghostcells_update::ixs_srl_stg_

Definition at line 26 of file mod_ghostcells_update.t.

◆ l

integer, dimension(^nd,0:3) mod_ghostcells_update::l

Definition at line 12 of file mod_ghostcells_update.t.

◆ nbuff_bc_recv_p

integer mod_ghostcells_update::nbuff_bc_recv_p

Definition at line 50 of file mod_ghostcells_update.t.

◆ nbuff_bc_recv_r

integer mod_ghostcells_update::nbuff_bc_recv_r

Definition at line 50 of file mod_ghostcells_update.t.

◆ nbuff_bc_recv_srl

integer mod_ghostcells_update::nbuff_bc_recv_srl

Definition at line 50 of file mod_ghostcells_update.t.

◆ nbuff_bc_send_p

integer mod_ghostcells_update::nbuff_bc_send_p

Definition at line 50 of file mod_ghostcells_update.t.

◆ nbuff_bc_send_r

integer mod_ghostcells_update::nbuff_bc_send_r

Definition at line 50 of file mod_ghostcells_update.t.

◆ nbuff_bc_send_srl

integer mod_ghostcells_update::nbuff_bc_send_srl

Definition at line 50 of file mod_ghostcells_update.t.

◆ npwbuf

integer, parameter mod_ghostcells_update::npwbuf =2

The number of interleaving sending buffers for ghost cells.

Definition at line 15 of file mod_ghostcells_update.t.

◆ nrecv_bc_p

integer mod_ghostcells_update::nrecv_bc_p

Definition at line 47 of file mod_ghostcells_update.t.

◆ nrecv_bc_r

integer mod_ghostcells_update::nrecv_bc_r

Definition at line 47 of file mod_ghostcells_update.t.

◆ nrecv_bc_srl

integer mod_ghostcells_update::nrecv_bc_srl

Definition at line 47 of file mod_ghostcells_update.t.

◆ nsend_bc_p

integer mod_ghostcells_update::nsend_bc_p

Definition at line 47 of file mod_ghostcells_update.t.

◆ nsend_bc_r

integer mod_ghostcells_update::nsend_bc_r

Definition at line 47 of file mod_ghostcells_update.t.

◆ nsend_bc_srl

integer mod_ghostcells_update::nsend_bc_srl

Definition at line 47 of file mod_ghostcells_update.t.

◆ recvbuffer_p

double precision, dimension(:), allocatable mod_ghostcells_update::recvbuffer_p

Definition at line 80 of file mod_ghostcells_update.t.

◆ recvbuffer_r

double precision, dimension(:), allocatable mod_ghostcells_update::recvbuffer_r

Definition at line 74 of file mod_ghostcells_update.t.

◆ recvbuffer_srl

double precision, dimension(:), allocatable mod_ghostcells_update::recvbuffer_srl

Definition at line 68 of file mod_ghostcells_update.t.

◆ recvrequest_p

integer, dimension(:), allocatable mod_ghostcells_update::recvrequest_p

Definition at line 76 of file mod_ghostcells_update.t.

◆ recvrequest_r

integer, dimension(:), allocatable mod_ghostcells_update::recvrequest_r

Definition at line 70 of file mod_ghostcells_update.t.

◆ recvrequest_srl

integer, dimension(:), allocatable mod_ghostcells_update::recvrequest_srl

Definition at line 64 of file mod_ghostcells_update.t.

◆ recvstatus_p

integer, dimension(:,:), allocatable mod_ghostcells_update::recvstatus_p

Definition at line 77 of file mod_ghostcells_update.t.

◆ recvstatus_r

integer, dimension(:,:), allocatable mod_ghostcells_update::recvstatus_r

Definition at line 71 of file mod_ghostcells_update.t.

◆ recvstatus_srl

integer, dimension(:,:), allocatable mod_ghostcells_update::recvstatus_srl

Definition at line 65 of file mod_ghostcells_update.t.

◆ sendbuffer_p

double precision, dimension(:), allocatable mod_ghostcells_update::sendbuffer_p

Definition at line 80 of file mod_ghostcells_update.t.

◆ sendbuffer_r

double precision, dimension(:), allocatable mod_ghostcells_update::sendbuffer_r

Definition at line 74 of file mod_ghostcells_update.t.

◆ sendbuffer_srl

double precision, dimension(:), allocatable mod_ghostcells_update::sendbuffer_srl

Definition at line 68 of file mod_ghostcells_update.t.

◆ sendrequest_p

integer, dimension(:), allocatable mod_ghostcells_update::sendrequest_p

Definition at line 76 of file mod_ghostcells_update.t.

◆ sendrequest_r

integer, dimension(:), allocatable mod_ghostcells_update::sendrequest_r

Definition at line 70 of file mod_ghostcells_update.t.

◆ sendrequest_srl

integer, dimension(:), allocatable mod_ghostcells_update::sendrequest_srl

Definition at line 64 of file mod_ghostcells_update.t.

◆ sendstatus_p

integer, dimension(:,:), allocatable mod_ghostcells_update::sendstatus_p

Definition at line 77 of file mod_ghostcells_update.t.

◆ sendstatus_r

integer, dimension(:,:), allocatable mod_ghostcells_update::sendstatus_r

Definition at line 71 of file mod_ghostcells_update.t.

◆ sendstatus_srl

integer, dimension(:,:), allocatable mod_ghostcells_update::sendstatus_srl

Definition at line 65 of file mod_ghostcells_update.t.

◆ sizes_p_recv_stg

integer, dimension(^nd,0:3^d&) mod_ghostcells_update::sizes_p_recv_stg

Definition at line 90 of file mod_ghostcells_update.t.

◆ sizes_p_recv_total

integer, dimension(0:3^d&) mod_ghostcells_update::sizes_p_recv_total

Definition at line 89 of file mod_ghostcells_update.t.

◆ sizes_p_send_stg

integer, dimension(^nd,0:3^d&) mod_ghostcells_update::sizes_p_send_stg

Definition at line 90 of file mod_ghostcells_update.t.

◆ sizes_p_send_total

integer, dimension(0:3^d&) mod_ghostcells_update::sizes_p_send_total

Definition at line 89 of file mod_ghostcells_update.t.

◆ sizes_r_recv_stg

integer, dimension(^nd,0:3^d&) mod_ghostcells_update::sizes_r_recv_stg

Definition at line 86 of file mod_ghostcells_update.t.

◆ sizes_r_recv_total

integer, dimension(0:3^d&) mod_ghostcells_update::sizes_r_recv_total

Definition at line 84 of file mod_ghostcells_update.t.

◆ sizes_r_send_stg

integer, dimension(^nd,-1:1^d&) mod_ghostcells_update::sizes_r_send_stg

Definition at line 85 of file mod_ghostcells_update.t.

◆ sizes_r_send_total

integer, dimension(-1:1^d&) mod_ghostcells_update::sizes_r_send_total

Definition at line 83 of file mod_ghostcells_update.t.

◆ sizes_srl_recv_stg

integer, dimension(^nd,-1:1^d&) mod_ghostcells_update::sizes_srl_recv_stg

Definition at line 62 of file mod_ghostcells_update.t.

◆ sizes_srl_recv_total

integer, dimension(-1:1^d&) mod_ghostcells_update::sizes_srl_recv_total

Definition at line 59 of file mod_ghostcells_update.t.

◆ sizes_srl_send_stg

integer, dimension(^nd,-1:1^d&) mod_ghostcells_update::sizes_srl_send_stg

Definition at line 62 of file mod_ghostcells_update.t.

◆ sizes_srl_send_total

integer, dimension(-1:1^d&) mod_ghostcells_update::sizes_srl_send_total

Definition at line 59 of file mod_ghostcells_update.t.

◆ type_recv_p

integer, dimension(:^d&,:^d&), pointer mod_ghostcells_update::type_recv_p

Definition at line 105 of file mod_ghostcells_update.t.

◆ type_recv_p_f

integer, dimension(-1:1^d&, 0:3^d&), target mod_ghostcells_update::type_recv_p_f

Definition at line 97 of file mod_ghostcells_update.t.

◆ type_recv_p_p1

integer, dimension(-1:1^d&, 0:3^d&), target mod_ghostcells_update::type_recv_p_p1

Definition at line 100 of file mod_ghostcells_update.t.

◆ type_recv_p_p2

integer, dimension(-1:1^d&, 0:3^d&), target mod_ghostcells_update::type_recv_p_p2

Definition at line 103 of file mod_ghostcells_update.t.

◆ type_recv_r

integer, dimension(:^d&,:^d&), pointer mod_ghostcells_update::type_recv_r

Definition at line 105 of file mod_ghostcells_update.t.

◆ type_recv_r_f

integer, dimension(-1:1^d&, 0:3^d&), target mod_ghostcells_update::type_recv_r_f

Definition at line 97 of file mod_ghostcells_update.t.

◆ type_recv_r_p1

integer, dimension(-1:1^d&, 0:3^d&), target mod_ghostcells_update::type_recv_r_p1

Definition at line 100 of file mod_ghostcells_update.t.

◆ type_recv_r_p2

integer, dimension(-1:1^d&, 0:3^d&), target mod_ghostcells_update::type_recv_r_p2

Definition at line 103 of file mod_ghostcells_update.t.

◆ type_recv_srl

integer, dimension(:^d&,:^d&), pointer mod_ghostcells_update::type_recv_srl

Definition at line 104 of file mod_ghostcells_update.t.

◆ type_recv_srl_f

integer, dimension(-1:2^d&,-1:1^d&), target mod_ghostcells_update::type_recv_srl_f

Definition at line 95 of file mod_ghostcells_update.t.

◆ type_recv_srl_p1

integer, dimension(-1:2^d&,-1:1^d&), target mod_ghostcells_update::type_recv_srl_p1

Definition at line 98 of file mod_ghostcells_update.t.

◆ type_recv_srl_p2

integer, dimension(-1:2^d&,-1:1^d&), target mod_ghostcells_update::type_recv_srl_p2

Definition at line 101 of file mod_ghostcells_update.t.

◆ type_send_p

integer, dimension(:^d&,:^d&), pointer mod_ghostcells_update::type_send_p

Definition at line 105 of file mod_ghostcells_update.t.

◆ type_send_p_f

integer, dimension(-1:1^d&, 0:3^d&), target mod_ghostcells_update::type_send_p_f

Definition at line 97 of file mod_ghostcells_update.t.

◆ type_send_p_p1

integer, dimension(-1:1^d&, 0:3^d&), target mod_ghostcells_update::type_send_p_p1

Definition at line 100 of file mod_ghostcells_update.t.

◆ type_send_p_p2

integer, dimension(-1:1^d&, 0:3^d&), target mod_ghostcells_update::type_send_p_p2

Definition at line 103 of file mod_ghostcells_update.t.

◆ type_send_r

integer, dimension(:^d&,:^d&), pointer mod_ghostcells_update::type_send_r

Definition at line 104 of file mod_ghostcells_update.t.

◆ type_send_r_f

integer, dimension(-1:1^d&,-1:1^d&), target mod_ghostcells_update::type_send_r_f

Definition at line 96 of file mod_ghostcells_update.t.

◆ type_send_r_p1

integer, dimension(-1:1^d&,-1:1^d&), target mod_ghostcells_update::type_send_r_p1

Definition at line 99 of file mod_ghostcells_update.t.

◆ type_send_r_p2

integer, dimension(-1:1^d&,-1:1^d&), target mod_ghostcells_update::type_send_r_p2

Definition at line 102 of file mod_ghostcells_update.t.

◆ type_send_srl

integer, dimension(:^d&,:^d&), pointer mod_ghostcells_update::type_send_srl

Definition at line 104 of file mod_ghostcells_update.t.

◆ type_send_srl_f

integer, dimension(-1:2^d&,-1:1^d&), target mod_ghostcells_update::type_send_srl_f

Definition at line 95 of file mod_ghostcells_update.t.

◆ type_send_srl_p1

integer, dimension(-1:2^d&,-1:1^d&), target mod_ghostcells_update::type_send_srl_p1

Definition at line 98 of file mod_ghostcells_update.t.

◆ type_send_srl_p2

integer, dimension(-1:2^d&,-1:1^d&), target mod_ghostcells_update::type_send_srl_p2

Definition at line 101 of file mod_ghostcells_update.t.