MPI-AMRVAC  3.1
The MPI - Adaptive Mesh Refinement - Versatile Advection Code (development version)
Functions/Subroutines
mod_calculate_xw Module Reference

Handles computations for coordinates and variables in output. More...

Functions/Subroutines

subroutine calc_grid (qunit, igrid, xC, xCC, xC_TMP, xCC_TMP, wC_TMP, wCC_TMP, normconv, ixCL, ixCCL, first)
 Compute both corner as well as cell-centered values for output. More...
 
subroutine to_cartesian (x_TMP, w_TMP, ixL, xC, wC)
 convert to cartesian coordinates and vector components More...
 
subroutine getheadernames (wnamei, xandwnamei, outfilehead)
 get all variables names More...
 
subroutine calc_x (igrid, xC, xCC)
 computes cell corner (xC) and cell center (xCC) coordinates More...
 

Detailed Description

Handles computations for coordinates and variables in output.

Function/Subroutine Documentation

◆ calc_grid()

subroutine mod_calculate_xw::calc_grid ( integer, intent(in)  qunit,
integer, intent(in)  igrid,
double precision, dimension(ixmlo^d-1:ixmhi^d,ndim), intent(in)  xC,
double precision, dimension(ixmlo^d:ixmhi^d,ndim), intent(in)  xCC,
double precision, dimension(ixmlo^d-1:ixmhi^d,ndim)  xC_TMP,
double precision, dimension(ixmlo^d:ixmhi^d,ndim)  xCC_TMP,
double precision, dimension(ixmlo^d-1:ixmhi^d,nw+nwauxio)  wC_TMP,
double precision, dimension(ixmlo^d:ixmhi^d,nw+nwauxio)  wCC_TMP,
double precision, dimension(0:nw+nwauxio), intent(out)  normconv,
integer  ixC,
integer  L,
integer  ixCC,
  L,
logical, intent(in)  first 
)

Compute both corner as well as cell-centered values for output.

Definition at line 8 of file mod_calculate_xw.t.

Here is the call graph for this function:

◆ calc_x()

subroutine mod_calculate_xw::calc_x ( integer, intent(in)  igrid,
double precision, dimension(ixmlo^d-1:ixmhi^d,ndim), intent(out)  xC,
double precision, dimension(ixmlo^d:ixmhi^d,ndim), intent(out)  xCC 
)

computes cell corner (xC) and cell center (xCC) coordinates

Definition at line 420 of file mod_calculate_xw.t.

◆ getheadernames()

subroutine mod_calculate_xw::getheadernames ( character(len=name_len), dimension(1:nw+nwauxio)  wnamei,
character(len=name_len), dimension(1:ndim+nw+nwauxio)  xandwnamei,
character(len=1024)  outfilehead 
)

get all variables names

Definition at line 293 of file mod_calculate_xw.t.

Here is the call graph for this function:

◆ to_cartesian()

subroutine mod_calculate_xw::to_cartesian ( double precision, dimension(ix^s,ndim)  x_TMP,
double precision, dimension(ix^s,nw+nwauxio)  w_TMP,
integer  ix,
integer  L,
double precision, dimension(ix^s,ndim)  xC,
double precision, dimension(ix^s,nw+nwauxio)  wC 
)

convert to cartesian coordinates and vector components

Definition at line 154 of file mod_calculate_xw.t.