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

Add to an array (3) the product of arrays (1) and (2). More...

Public Member Functions

integer function add_arr_mult_3_3 (arr_1, arr_2, arr_3, deriv)
 version with arr_1 and arr_2 in 3 coords. More...
 
integer function add_arr_mult_3_1 (arr_1, arr_2, arr_3, deriv)
 version with arr_1 in 3 coords and arr_2 only in the flux coord. More...
 
integer function add_arr_mult_1_1 (arr_1, arr_2, arr_3, deriv)
 Version with arr_1 and arr_2 only in the flux coord. More...
 

Detailed Description

Add to an array (3) the product of arrays (1) and (2).

The derivatives are distributed between both acording to the binomial theorem. Both arrays are given on a 3-D or 1-D grid.

Returns
ierr

Definition at line 39 of file num_utilities.f90.

Member Function/Subroutine Documentation

◆ add_arr_mult_1_1()

integer function num_utilities::add_arr_mult::add_arr_mult_1_1 ( real(dp), dimension(1:,0:), intent(in)  arr_1,
real(dp), dimension(1:,0:), intent(in)  arr_2,
real(dp), dimension(1:), intent(out)  arr_3,
integer, dimension(3), intent(in)  deriv 
)

Version with arr_1 and arr_2 only in the flux coord.

Parameters
[in]arr_1arr_1
[in]arr_2arr_2
[out]arr_3arr_3
[in]derivderivatives

Definition at line 492 of file num_utilities.f90.

◆ add_arr_mult_3_1()

integer function num_utilities::add_arr_mult::add_arr_mult_3_1 ( real(dp), dimension(1:,1:,1:,0:,0:,0:), intent(in)  arr_1,
real(dp), dimension(1:,0:), intent(in)  arr_2,
real(dp), dimension(1:,1:,1:), intent(out)  arr_3,
integer, dimension(3), intent(in)  deriv 
)

version with arr_1 in 3 coords and arr_2 only in the flux coord.

Parameters
[in]arr_1arr_1
[in]arr_2arr_2
[out]arr_3arr_3
[in]derivderivatives

Definition at line 441 of file num_utilities.f90.

◆ add_arr_mult_3_3()

integer function num_utilities::add_arr_mult::add_arr_mult_3_3 ( real(dp), dimension(1:,1:,1:,0:,0:,0:), intent(in)  arr_1,
real(dp), dimension(1:,1:,1:,0:,0:,0:), intent(in)  arr_2,
real(dp), dimension(1:,1:,1:), intent(out)  arr_3,
integer, dimension(3), intent(in)  deriv 
)

version with arr_1 and arr_2 in 3 coords.

Parameters
[in]arr_1arr_1
[in]arr_2arr_2
[out]arr_3arr_3
[in]derivderivatives

Definition at line 363 of file num_utilities.f90.

+ Here is the call graph for this function:

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