(git:6a2e663)
xc_derivative_types Module Reference

Provides types for the management of the xc-functionals and their derivatives. More...

Functions/Subroutines

subroutine, public xc_derivative_create (derivative, desc, r3d_ptr)
 allocates and initializes a derivative type More...
 
subroutine, public xc_derivative_release (derivative, pw_pool)
 allocates and initializes a derivative type More...
 
subroutine, public xc_derivative_get (deriv, split_desc, order, deriv_data, accept_null_data)
 returns various information on the given derivative More...
 

Detailed Description

Provides types for the management of the xc-functionals and their derivatives.

Function/Subroutine Documentation

◆ xc_derivative_create()

subroutine, public xc_derivative_types::xc_derivative_create ( type(xc_derivative_type)  derivative,
integer, dimension(:), intent(in)  desc,
real(kind=dp), dimension(:, :, :), pointer, contiguous  r3d_ptr 
)

allocates and initializes a derivative type

Parameters
derivativethe object to create
descthe derivative description
r3d_ptrthe data array (the ownership of it passes to the derivative type), the array is not zeroed

Definition at line 57 of file xc_derivative_types.F.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ xc_derivative_release()

subroutine, public xc_derivative_types::xc_derivative_release ( type(xc_derivative_type)  derivative,
type(pw_pool_type), optional, pointer  pw_pool 
)

allocates and initializes a derivative type

Parameters
derivativethe object to create
pw_poolif given gives back the cr3d array deriv_data back to it instead of deallocating it

Definition at line 75 of file xc_derivative_types.F.

Here is the caller graph for this function:

◆ xc_derivative_get()

subroutine, public xc_derivative_types::xc_derivative_get ( type(xc_derivative_type), intent(in)  deriv,
integer, dimension(:), optional, pointer  split_desc,
integer, intent(out), optional  order,
real(kind=dp), dimension(:, :, :), optional, pointer  deriv_data,
logical, intent(in), optional  accept_null_data 
)

returns various information on the given derivative

Parameters
derivthe derivative you want information about
split_descan array that describes the derivative (each position represents a variable, see xc_derivative_desc.F)
orderthe order of the derivative
deriv_datathe 3d real array with the derivative
accept_null_dataif deriv_data can be unassociated (defaults to no)

Definition at line 101 of file xc_derivative_types.F.