Documentation for module cp_result_types

set of type/routines to handle the storage of results in force_envs

source: cp_result_types.F
Loading...

public Types:

cp_result_type
contains arbitrary information which need to be stored
cp_result_p_type
...

public Subroutines/Functions:

Releases cp_result clean
Copies the cp_result type
Allocates and intitializes the cp_result
Releases cp_result type
Retains cp_result type
Copies the cp_result_value type
Allocates and intitializes the cp_result_value type
Setup of the cp_result_value type
Reallocates the cp_result_value type

Parameters:

INTEGER
:: result_type_integer = 2
INTEGER
:: result_type_logical = 1
INTEGER
:: result_type_real = 3

public Types:

TYPE :: cp_result_p_type

...


POINTER :: results ...

TYPE :: cp_result_type

contains arbitrary information which need to be stored


INTEGER
:: ref_count ...
POINTER, DIMENSION(:) :: result_value ...
DIMENSION(:), POINTER :: result_label ...

SUBROUTINEcp_result_clean(results)

Releases cp_result clean

Arguments:
POINTER
:: results ...

SUBROUTINEcp_result_copy(results_in, results_out)

Copies the cp_result type

Arguments:
POINTER
:: results_in ...
POINTER
:: results_out ...

SUBROUTINEcp_result_create(results)

Allocates and intitializes the cp_result

Arguments:
POINTER
:: results ...

SUBROUTINEcp_result_release(results)

Releases cp_result type

Arguments:
POINTER
:: results ...

SUBROUTINEcp_result_retain(results)

Retains cp_result type

Arguments:
POINTER
:: results ...

SUBROUTINEcp_result_value_copy(value_out, value_in)

Copies the cp_result_value type

Arguments:
POINTER
:: value_out ...
POINTER
:: value_in ...

SUBROUTINEcp_result_value_create(value)

Allocates and intitializes the cp_result_value type

Arguments:
POINTER
:: value ...

SUBROUTINEcp_result_value_init(value, type_in_use, size_value)

Setup of the cp_result_value type

Arguments:
POINTER
:: value ...
INTEGER,
INTENT(in)
:: type_in_use ...
INTEGER,
INTENT(in)
:: size_value ...

SUBROUTINEcp_result_value_p_reallocate(result_value, istart, iend)

Reallocates the cp_result_value type

Arguments:
POINTER
:: result_value(:) ...
INTEGER,
INTENT(in)
:: istart ...
INTEGER,
INTENT(in)
:: iend ...

private Parameters/Types:

private Types:

TYPE :: cp_result_value_p_type

...


POINTER :: value ...

TYPE :: cp_result_value_type

low level type for storing real informations


INTEGER
:: type_in_use ...
LOGICAL,
DIMENSION(:), POINTER :: logical_type ...
INTEGER,
DIMENSION(:), POINTER :: integer_type ...
REAL(dp),
DIMENSION(:), POINTER :: real_type ...