10 integer,
allocatable,
public ::
mag(:)
16 subroutine get_divb(w,ixI^L,ixO^L,divb, fourthorder)
20 integer,
intent(in) :: ixi^
l, ixo^
l
21 double precision,
intent(in) :: w(ixi^s,1:nw)
22 double precision,
intent(inout) :: divb(ixi^s)
23 logical,
intent(in),
optional :: fourthorder
25 integer :: ixc^
l, idir
30 ixc^
l=ixo^
l-
kr(idir,^
d);
31 divb(ixo^s)=divb(ixo^s)+
block%ws(ixo^s,idir)*
block%surfaceC(ixo^s,idir)-&
32 block%ws(ixc^s,idir)*
block%surfaceC(ixc^s,idir)
34 divb(ixo^s)=divb(ixo^s)/
block%dvolume(ixo^s)
integer, dimension(:), allocatable, public mag
Indices of the magnetic field.
subroutine, public get_divb(w, ixIL, ixOL, divb, fourthorder)
Calculate div B within ixO.
Module with geometry-related routines (e.g., divergence, curl)
subroutine divvectors(qvec, ixIL, ixOL, divq)
Calculate divergence of a vector qvec within ixL using limited extrapolation to cell edges.
subroutine divvector(qvec, ixIL, ixOL, divq, fourthorder, sixthorder)
Calculate divergence of a vector qvec within ixL.
This module contains definitions of global parameters and variables and some generic functions/subrou...
type(state), pointer block
Block pointer for using one block and its previous state.
integer, dimension(3, 3) kr
Kronecker delta tensor.
integer, parameter ndim
Number of spatial dimensions for grid variables.
logical stagger_grid
True for using stagger grid.
character(len=std_len) typediv
integer, dimension(:), allocatable, parameter d
integer ndir
Number of spatial dimensions (components) for vector variables.