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

Functions/Subroutines

subroutine init_trac_line (mask)
 
subroutine update_mask_info ()
 
subroutine init_trac_block (mask)
 
subroutine trac_simple (tco_global, trac_alfa, T_peak)
 
subroutine ltrac (T_peak)
 
subroutine tracl (mask, T_peak)
 
subroutine tracb (mask, T_peak)
 
subroutine block_estable (mask, Tcoff, Tcmax, Bdir, peArr, gdArr)
 
subroutine block_trace_mfl (mask, Tcoff, Tcoff_line, Tcmax, Bdir, peArr, gdArr, xF, numR, xpe, xgd)
 
subroutine rk_bdir (nowgridc, nowpoint, ix_nextD, now_dir, Bdir, ix_mod, first, init_dir)
 
subroutine block_interp_grid (mask, xF, numR, xpe, xgd, Tcoff_line)
 
subroutine get_tmax_grid (x, w, ixIL, ixOL, Tmax_grid)
 
subroutine get_tlcoff (xF, numR, Tlcoff, ipel, igridl)
 
subroutine interp_tcoff (xF, ipel, igridl, numR, Tlcoff)
 
subroutine trace_bfield_trac (xf, ipef, igridf, Tcofl, numP, numRT, forward)
 
subroutine trace_in_pe (igrid, ipoint_in, xf, igridf, numP, forward, statusB, Te_info)
 
subroutine find_points_trac (igrid, ip_in, ip_out, xf, Te_info, numP, forward)
 
subroutine get_dtds (ip, xfpre, xfnow, xfnext, Tpre, Tnow, Tnext, dTds)
 
subroutine get_x_next (ip, xfpre, xfnow, Bnow, xfnext, ds, forward)
 
subroutine get_bte_local (xfloc, Bloc, Tloc, x, Bg, Te, ixIL, dxbD)
 
subroutine find_next_grid_trac (igrid, igrid_next, ipe_next, xf1, newpe, stopB)
 
subroutine init_trac_tcoff ()
 
subroutine init_pegrid_mask ()
 
subroutine update_pegrid_mask ()
 
subroutine create_trac_communicator ()
 
subroutine free_trac_communicator ()
 
subroutine update_trac_communicator ()
 
recursive subroutine traverse_tree_mask (branch)
 
subroutine get_btracing_dir (ipel, igridl, forwardl)
 
subroutine convert_data_trac ()
 
subroutine output_trac_grid (ngrid_ground, ground_grid)
 
subroutine trace_bfield_mask (xFL, numR, TcoffFL, ipeFL, igridFL, forwardFL)
 
subroutine tracefl_mask (xFL, ipeFL, igridFL, ipoint_in, iFL, forwardFL, statusFL, TcoffFL)
 
subroutine find_points_mask (xFL, igrid, iFL, ip_in, ip_out, Tcoff, forward)
 
subroutine get_localbt_mask (xfloc, Bloc, Tloc, x, w, ixIL, dxbD)
 
subroutine get_x_neighbor (ip, xfnow, Bnow, xfnb, ds, forward)
 
subroutine interp_tcoff_mask (xF, ipel, igridl, numR, Tlcoff)
 
subroutine convert_data_back_trac ()
 

Variables

integer numfl
 
integer numlp
 
double precision dl
 
double precision tmax
 
double precision trac_delta
 
double precision t_bott
 
double precision, dimension(:,:), allocatable xfi
 
integer numxt
 
integer d
 
double precision dxt
 
double precision, dimension(ndim) xtmin
 
double precision, dimension(ndim) xtmax
 
double precision, dimension(:^d &,:), allocatable xt
 
integer, dimension(:), allocatable trac_grid
 
integer, dimension(:), allocatable ground_grid
 
integer ngrid_trac
 
integer ngrid_ground
 
integer group_world
 
integer group_trac
 
integer comm_trac
 
integer mype_trac
 
integer npe_trac
 
logical, dimension(:), allocatable trac_pe
 

Function/Subroutine Documentation

◆ block_estable()

subroutine mod_trac::block_estable ( logical  mask,
double precision, dimension(numxt^d Tcoff,
double precision, dimension(numxt^d Tcmax,
double precision, dimension(numxt^d,ndim)  Bdir,
integer, dimension(numxt^d peArr,
integer, dimension(numxt^d gdArr 
)

combine table from different processors

in principle, no overlap will happen here

abs(Bdir) <= 1, so that Bdir+2 should always be positive

Definition at line 260 of file mod_trac.t.

◆ block_interp_grid()

subroutine mod_trac::block_interp_grid ( logical  mask,
double precision, dimension(numfl,numlp,ndim)  xF,
integer, dimension(numfl numR,
integer, dimension(numfl,numlp,2**ndim)  xpe,
integer, dimension(numfl,numlp,2**ndim)  xgd,
double precision, dimension(numfl Tcoff_line 
)

interpolate lines into grid cells

Definition at line 472 of file mod_trac.t.

Here is the call graph for this function:

◆ block_trace_mfl()

subroutine mod_trac::block_trace_mfl ( logical  mask,
double precision, dimension(numxt^d Tcoff,
double precision, dimension(numfl Tcoff_line,
double precision, dimension(numxt^d Tcmax,
double precision, dimension(numxt^d,ndim)  Bdir,
integer, dimension(numxt^d peArr,
integer, dimension(numxt^d gdArr,
double precision, dimension(numfl,numlp,ndim)  xF,
integer, dimension(numfl numR,
integer, dimension(numfl,numlp,2**ndim)  xpe,
integer, dimension(numfl,numlp,2**ndim)  xgd 
)

Definition at line 321 of file mod_trac.t.

Here is the call graph for this function:

◆ convert_data_back_trac()

subroutine mod_trac::convert_data_back_trac ( )

Definition at line 1694 of file mod_trac.t.

◆ convert_data_trac()

subroutine mod_trac::convert_data_trac ( )

Definition at line 1215 of file mod_trac.t.

◆ create_trac_communicator()

subroutine mod_trac::create_trac_communicator ( )

Definition at line 1069 of file mod_trac.t.

◆ find_next_grid_trac()

subroutine mod_trac::find_next_grid_trac ( integer  igrid,
integer  igrid_next,
integer  ipe_next,
double precision, dimension(ndim)  xf1,
logical  newpe,
logical  stopB 
)

Definition at line 945 of file mod_trac.t.

◆ find_points_mask()

subroutine mod_trac::find_points_mask ( double precision, dimension(numfl,numlp,ndim)  xFL,
integer  igrid,
integer  iFL,
integer  ip_in,
integer  ip_out,
double precision  Tcoff,
logical  forward 
)

Definition at line 1399 of file mod_trac.t.

Here is the call graph for this function:

◆ find_points_trac()

subroutine mod_trac::find_points_trac ( integer  igrid,
integer  ip_in,
integer  ip_out,
double precision, dimension(nump,ndim)  xf,
double precision, dimension(3)  Te_info,
integer  numP,
logical  forward 
)

Definition at line 752 of file mod_trac.t.

Here is the call graph for this function:

◆ free_trac_communicator()

subroutine mod_trac::free_trac_communicator ( )

Definition at line 1096 of file mod_trac.t.

◆ get_bte_local()

subroutine mod_trac::get_bte_local ( double precision, dimension(ndim)  xfloc,
double precision, dimension(ndir)  Bloc,
double precision  Tloc,
double precision, dimension(ixi^s,ndim)  x,
double precision, dimension(ixi^s,ndir)  Bg,
double precision, dimension(ixi^s)  Te,
integer  ixI,
integer  L,
double precision  dxb,
double precision  D 
)

Definition at line 906 of file mod_trac.t.

◆ get_btracing_dir()

subroutine mod_trac::get_btracing_dir ( integer, dimension(numfl,numlp ipel,
integer, dimension(numfl,numlp igridl,
logical, dimension(numfl forwardl 
)

Definition at line 1157 of file mod_trac.t.

◆ get_dtds()

subroutine mod_trac::get_dtds ( integer  ip,
double precision, dimension(ndim)  xfpre,
double precision, dimension(ndim)  xfnow,
double precision, dimension(ndim)  xfnext,
double precision  Tpre,
double precision  Tnow,
double precision  Tnext,
double precision  dTds 
)

Definition at line 833 of file mod_trac.t.

◆ get_localbt_mask()

subroutine mod_trac::get_localbt_mask ( double precision, dimension(ndim)  xfloc,
double precision, dimension(ndir)  Bloc,
double precision  Tloc,
double precision, dimension(ixi^s,ndim)  x,
double precision, dimension(ixi^s,nw)  w,
integer  ixI,
integer  L,
double precision  dxb,
double precision  D 
)

Definition at line 1472 of file mod_trac.t.

◆ get_tlcoff()

subroutine mod_trac::get_tlcoff ( double precision, dimension(numfl,numlp,ndim)  xF,
integer, dimension(numfl numR,
double precision, dimension(numfl Tlcoff,
integer, dimension(numfl,numlp ipel,
integer, dimension(numfl,numlp igridl 
)

Definition at line 539 of file mod_trac.t.

Here is the call graph for this function:

◆ get_tmax_grid()

subroutine mod_trac::get_tmax_grid ( double precision, dimension(ixi^s,1:ndim), intent(in)  x,
double precision, dimension(ixi^s,1:nw), intent(out)  w,
integer, intent(in)  ixI,
integer, intent(in)  L,
integer, intent(in)  ixO,
  L,
double precision  Tmax_grid 
)

Definition at line 527 of file mod_trac.t.

◆ get_x_neighbor()

subroutine mod_trac::get_x_neighbor ( integer  ip,
double precision, dimension(1:ndim)  xfnow,
double precision, dimension(1:ndir)  Bnow,
double precision, dimension(1:ndim)  xfnb,
double precision  ds,
logical  forward 
)

Definition at line 1511 of file mod_trac.t.

◆ get_x_next()

subroutine mod_trac::get_x_next ( integer  ip,
double precision, dimension(1:ndim)  xfpre,
double precision, dimension(1:ndim)  xfnow,
double precision, dimension(1:ndir)  Bnow,
double precision, dimension(1:ndim)  xfnext,
double precision  ds,
logical  forward 
)

Definition at line 859 of file mod_trac.t.

◆ init_pegrid_mask()

subroutine mod_trac::init_pegrid_mask ( )

Definition at line 1021 of file mod_trac.t.

Here is the call graph for this function:

◆ init_trac_block()

subroutine mod_trac::init_trac_block ( logical, intent(in)  mask)

Definition at line 92 of file mod_trac.t.

◆ init_trac_line()

subroutine mod_trac::init_trac_line ( logical, intent(in)  mask)

Definition at line 22 of file mod_trac.t.

Here is the call graph for this function:

◆ init_trac_tcoff()

subroutine mod_trac::init_trac_tcoff ( )

Definition at line 1009 of file mod_trac.t.

◆ interp_tcoff()

subroutine mod_trac::interp_tcoff ( double precision, dimension(numfl,numlp,ndim)  xF,
integer, dimension(numfl,numlp ipel,
integer, dimension(numfl,numlp igridl,
integer, dimension(numfl numR,
double precision, dimension(numfl Tlcoff 
)

Definition at line 570 of file mod_trac.t.

◆ interp_tcoff_mask()

subroutine mod_trac::interp_tcoff_mask ( double precision, dimension(numfl,numlp,ndim)  xF,
integer, dimension(numfl,numlp ipel,
integer, dimension(numfl,numlp igridl,
integer, dimension(numfl numR,
double precision, dimension(numfl Tlcoff 
)

Definition at line 1551 of file mod_trac.t.

◆ ltrac()

subroutine mod_trac::ltrac ( double precision, intent(in)  T_peak)

Definition at line 183 of file mod_trac.t.

◆ output_trac_grid()

subroutine mod_trac::output_trac_grid ( integer  ngrid_ground,
integer, dimension(max_blocks)  ground_grid 
)

Definition at line 1239 of file mod_trac.t.

◆ rk_bdir()

subroutine mod_trac::rk_bdir ( double precision, dimension(ndim)  nowgridc,
double precision, dimension(ndim)  nowpoint,
integer  ix_next,
integer  D,
double precision, dimension(ndim)  now_dir,
double precision, dimension(numxt^d,ndim)  Bdir,
integer, dimension(ndim,2)  ix_mod,
logical  first,
double precision, optional  init_dir 
)

Definition at line 423 of file mod_trac.t.

◆ trac_simple()

subroutine mod_trac::trac_simple ( double precision, intent(in)  tco_global,
double precision, intent(in)  trac_alfa,
double precision, intent(in)  T_peak 
)

special values(2) to save old tcutoff

Definition at line 158 of file mod_trac.t.

◆ tracb()

subroutine mod_trac::tracb ( logical, intent(in)  mask,
double precision, intent(in)  T_peak 
)

Definition at line 237 of file mod_trac.t.

Here is the call graph for this function:

◆ trace_bfield_mask()

subroutine mod_trac::trace_bfield_mask ( double precision, dimension(numfl,numlp,ndim)  xFL,
integer, dimension(numfl numR,
double precision, dimension(numfl TcoffFL,
integer, dimension(numfl,numlp ipeFL,
integer, dimension(numfl,numlp igridFL,
logical, dimension(numfl forwardFL 
)

Definition at line 1264 of file mod_trac.t.

Here is the call graph for this function:

◆ trace_bfield_trac()

subroutine mod_trac::trace_bfield_trac ( double precision, dimension(nump,ndim)  xf,
integer, dimension(nump)  ipef,
integer, dimension(nump)  igridf,
double precision  Tcofl,
integer  numP,
integer  numRT,
logical  forward 
)

Definition at line 620 of file mod_trac.t.

Here is the call graph for this function:

◆ trace_in_pe()

subroutine mod_trac::trace_in_pe ( integer  igrid,
integer  ipoint_in,
double precision, dimension(nump,ndim)  xf,
integer, dimension(nump)  igridf,
integer  numP,
logical  forward,
double precision, dimension(7+2*ndim)  statusB,
double precision, dimension(3)  Te_info 
)

Definition at line 701 of file mod_trac.t.

Here is the call graph for this function:

◆ tracefl_mask()

subroutine mod_trac::tracefl_mask ( double precision, dimension(numfl,numlp,ndim)  xFL,
integer, dimension(numfl,numlp ipeFL,
integer, dimension(numfl,numlp igridFL,
integer, dimension(numfl ipoint_in,
integer  iFL,
logical, dimension(numfl forwardFL,
double precision, dimension(numfl,5+ndim)  statusFL,
double precision, dimension(numfl TcoffFL 
)

Definition at line 1346 of file mod_trac.t.

Here is the call graph for this function:

◆ tracl()

subroutine mod_trac::tracl ( logical, intent(in)  mask,
double precision, intent(in)  T_peak 
)

Definition at line 199 of file mod_trac.t.

Here is the call graph for this function:

◆ traverse_tree_mask()

recursive subroutine mod_trac::traverse_tree_mask ( type(tree_node_ptr branch)

Definition at line 1127 of file mod_trac.t.

◆ update_mask_info()

subroutine mod_trac::update_mask_info ( )

Definition at line 80 of file mod_trac.t.

Here is the call graph for this function:

◆ update_pegrid_mask()

subroutine mod_trac::update_pegrid_mask ( )

Definition at line 1046 of file mod_trac.t.

Here is the call graph for this function:

◆ update_trac_communicator()

subroutine mod_trac::update_trac_communicator ( )

Definition at line 1103 of file mod_trac.t.

Variable Documentation

◆ comm_trac

integer mod_trac::comm_trac

Definition at line 17 of file mod_trac.t.

◆ d

double precision mod_trac::d

Definition at line 10 of file mod_trac.t.

◆ dl

double precision mod_trac::dl

Definition at line 7 of file mod_trac.t.

◆ dxt

double precision mod_trac::dxt

Definition at line 11 of file mod_trac.t.

◆ ground_grid

integer, dimension(:), allocatable mod_trac::ground_grid

Definition at line 15 of file mod_trac.t.

◆ group_trac

integer mod_trac::group_trac

Definition at line 17 of file mod_trac.t.

◆ group_world

integer mod_trac::group_world

Definition at line 17 of file mod_trac.t.

◆ mype_trac

integer mod_trac::mype_trac

Definition at line 17 of file mod_trac.t.

◆ ngrid_ground

integer mod_trac::ngrid_ground

Definition at line 16 of file mod_trac.t.

◆ ngrid_trac

integer mod_trac::ngrid_trac

Definition at line 16 of file mod_trac.t.

◆ npe_trac

integer mod_trac::npe_trac

Definition at line 17 of file mod_trac.t.

◆ numfl

integer mod_trac::numfl

Definition at line 6 of file mod_trac.t.

◆ numlp

integer mod_trac::numlp

Definition at line 6 of file mod_trac.t.

◆ numxt

integer mod_trac::numxt

Definition at line 10 of file mod_trac.t.

◆ t_bott

double precision mod_trac::t_bott

Definition at line 7 of file mod_trac.t.

◆ tmax

double precision mod_trac::tmax

Definition at line 7 of file mod_trac.t.

◆ trac_delta

double precision mod_trac::trac_delta

Definition at line 7 of file mod_trac.t.

◆ trac_grid

integer, dimension(:), allocatable mod_trac::trac_grid

Definition at line 15 of file mod_trac.t.

◆ trac_pe

logical, dimension(:), allocatable mod_trac::trac_pe

Definition at line 18 of file mod_trac.t.

◆ xfi

double precision, dimension(:,:), allocatable mod_trac::xfi

Definition at line 8 of file mod_trac.t.

◆ xt

double precision, dimension(:^d&,:), allocatable mod_trac::xt

Definition at line 13 of file mod_trac.t.

◆ xtmax

double precision, dimension(ndim) mod_trac::xtmax

Definition at line 12 of file mod_trac.t.

◆ xtmin

double precision, dimension(ndim) mod_trac::xtmin

Definition at line 12 of file mod_trac.t.