PB3D
[2.45]
Ideal linear high-n MHD stability in 3-D
|
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... | |
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.
Definition at line 206 of file num_utilities.f90.
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
[in] | pt_d | point on discrete grid |
[in,out] | pt_c | point 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.
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
[in] | pt_d | point on discrete grid |
[in,out] | pt_c | point on continous grid |
[in] | var_c | continous grid values |
Definition at line 1356 of file num_utilities.f90.