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

Integrates a function using the trapezoidal rule. More...

Public Member Functions

integer function calc_int_eqd (var, step_size, var_int)
 equidistant version More...
 
integer function calc_int_reg (var, x, var_int)
 regular version More...
 

Detailed Description

Integrates a function using the trapezoidal rule.

This function can be defined on an equidistant grid or a regular one:

Note
For periodic function, the trapezoidal rule works well only if the last point of the grid is included, i.e. the point where the function is equal to the first point.
Returns
ierr

Definition at line 160 of file num_utilities.f90.

Member Function/Subroutine Documentation

◆ calc_int_eqd()

integer function num_utilities::calc_int::calc_int_eqd ( real(dp), dimension(:), intent(in)  var,
real(dp), intent(in)  step_size,
real(dp), dimension(:), intent(inout)  var_int 
)

equidistant version

Parameters
[in,out]var_intintegrated variable
[in]varvariable to be integrated
[in]step_sizestep size of abscissa

Definition at line 327 of file num_utilities.f90.

+ Here is the call graph for this function:

◆ calc_int_reg()

integer function num_utilities::calc_int::calc_int_reg ( real(dp), dimension(:), intent(in)  var,
real(dp), dimension(:), intent(in)  x,
real(dp), dimension(:), intent(inout)  var_int 
)

regular version

Parameters
[in,out]var_intintegrated variable
[in]varvariable to be integrated
[in]xabscissa

Definition at line 286 of file num_utilities.f90.

+ Here is the call graph for this function:

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