PB3D  [2.45]
Ideal linear high-n MHD stability in 3-D
Public Member Functions | List of all members
num_utilities::dis2con Interface Reference

Convert between points from a discrete grid to a continuous grid. More...

Public Member Functions

integer function dis2con_eqd (pt_d, pt_c, lim_d, lim_c)
 equidistant version More...
 
integer function dis2con_reg (pt_d, pt_c, var_c)
 regular version More...
 

Detailed Description

Convert between points from a discrete grid to a continuous grid.

This is done by providing either the the limits on the grid (lim_c and lim_d), in which case the grid is assumed to be equidistant, or the grid values themselves, in which case the grid just has to be regular.

The output is a real value. If the discrete value lies outside the range, in the case of a regular grid, a negative value is outputted, as well as a message.

Returns
ierr

Definition at line 206 of file num_utilities.f90.

Member Function/Subroutine Documentation

◆ dis2con_eqd()

integer function num_utilities::dis2con::dis2con_eqd ( integer, intent(in)  pt_d,
real(dp), intent(inout)  pt_c,
integer, dimension(2), intent(in)  lim_d,
real(dp), dimension(2), intent(in)  lim_c 
)

equidistant version

Parameters
[in]pt_dpoint on discrete grid
[in,out]pt_cpoint on continous grid
[in]lim_d[min_d,max_d]
[in]lim_c[min_c,max_c]

Definition at line 1336 of file num_utilities.f90.

◆ dis2con_reg()

integer function num_utilities::dis2con::dis2con_reg ( integer, intent(in)  pt_d,
real(dp), intent(inout)  pt_c,
real(dp), dimension(:), intent(in)  var_c 
)

regular version

Parameters
[in]pt_dpoint on discrete grid
[in,out]pt_cpoint on continous grid
[in]var_ccontinous grid values

Definition at line 1356 of file num_utilities.f90.


The documentation for this interface was generated from the following file: