CP2K 2.4 (Revision 12889)
Classes | Functions | Variables

cp_result_types Namespace Reference

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

Classes

struct  cp_result_value_type
 low level type for storing real informations More...
struct  cp_result_value_p_type
struct  cp_result_type
 contains arbitrary information which need to be stored More...
struct  cp_result_p_type

Functions

subroutine, public cp_result_create (results, error)
 Allocates and intitializes the cp_result.
subroutine, public cp_result_release (results, error)
 Releases cp_result type.
subroutine, public cp_result_clean (results, error)
 Releases cp_result clean.
subroutine, public cp_result_retain (results, error)
 Retains cp_result type.
subroutine, public cp_result_value_create (value, error)
 Allocates and intitializes the cp_result_value type.
subroutine, public cp_result_value_init (value, type_in_use, size_value, error)
 Setup of the cp_result_value type.
subroutine, public cp_result_value_release (value, error)
 Releases the cp_result_value type.
subroutine, public cp_result_copy (results_in, results_out, error)
 Copies the cp_result type.
subroutine, public cp_result_value_copy (value_out, value_in, error)
 Copies the cp_result_value type.
subroutine, public cp_result_value_p_reallocate (result_value, istart, iend, error)
 Reallocates the cp_result_value type.

Variables

CHARACTER(len=*), parameter,
private 
moduleN = 'cp_result_types'

Detailed Description

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

Author:
fschiff (12.2007)
History
  • 10.2008 Teodoro Laino [tlaino] - University of Zurich major rewriting:
    • information stored in a proper type (not in a character!)
    • module more lean
    • splitting types and creating methods for cp_results

Function Documentation

subroutine,public cp_result_types::cp_result_clean ( TYPE(cp_result_type),pointer  results,
TYPE(cp_error_type),intent(inout)  error 
)

Releases cp_result clean.

Author:
Teodoro Laino [tlaino] - University of Zurich - 10.2008

Definition at line 166 of file cp_result_types.f90.

References cp_result_value_release(), CPPostcondition, and timings::timeset().

Referenced by cp_result_copy(), cp_result_methods::cp_results_erase(), and cp_result_methods::cp_results_mp_bcast().

Here is the call graph for this function:

Here is the caller graph for this function:

subroutine,public cp_result_types::cp_result_copy ( TYPE(cp_result_type),pointer  results_in,
TYPE(cp_result_type),pointer  results_out,
TYPE(cp_error_type),intent(inout)  error 
)

Copies the cp_result type.

Author:
Teodoro Laino [tlaino] - University of Zurich 10.2008

Definition at line 333 of file cp_result_types.f90.

References cp_result_clean(), cp_result_value_copy(), cp_result_value_create(), CPPostcondition, and timings::timeset().

Referenced by cp_result_methods::cp_results_erase(), force_env_methods::force_env_calc_energy_force(), and force_env_methods::mixed_energy_forces().

Here is the call graph for this function:

Here is the caller graph for this function:

subroutine,public cp_result_types::cp_result_create ( TYPE(cp_result_type),pointer  results,
TYPE(cp_error_type),intent(inout)  error 
)

Allocates and intitializes the cp_result.

History
12.2007 created 10.2008 Teodoro Laino [tlaino] - major rewriting
Author:
fschiff

Definition at line 96 of file cp_result_types.f90.

References CPPostcondition, and timings::timeset().

Referenced by cp_result_methods::cp_results_erase(), fist_environment_types::init_fist_env(), mixed_environment_types::init_mixed_env(), qs_environment_types::init_qs_env(), and replica_methods::rep_env_init_low().

Here is the call graph for this function:

Here is the caller graph for this function:

subroutine,public cp_result_types::cp_result_release ( TYPE(cp_result_type),pointer  results,
TYPE(cp_error_type),intent(inout)  error 
)

Releases cp_result type.

History
12.2007 created 10.2008 Teodoro Laino [tlaino] - major rewriting
Author:
fschiff

Definition at line 126 of file cp_result_types.f90.

References cp_result_value_release(), CPPostcondition, and timings::timeset().

Referenced by cp_result_methods::cp_results_erase(), force_env_types::force_env_release(), and force_env_types::force_env_set().

Here is the call graph for this function:

Here is the caller graph for this function:

subroutine,public cp_result_types::cp_result_retain ( TYPE(cp_result_type),pointer  results,
TYPE(cp_error_type),intent(inout)  error 
)

Retains cp_result type.

History
12.2007 created
Author:
fschiff

Definition at line 202 of file cp_result_types.f90.

subroutine,public cp_result_types::cp_result_value_copy ( TYPE(cp_result_value_type),pointer  value_out,
TYPE(cp_result_value_type),pointer  value_in,
TYPE(cp_error_type),intent(inout)  error 
)

Copies the cp_result_value type.

Author:
Teodoro Laino [tlaino] - University of Zurich 10.2008

Definition at line 369 of file cp_result_types.f90.

References CPPostcondition, input_val_types::integer_t, and timings::timeset().

Referenced by cp_result_copy(), cp_result_value_p_reallocate(), and cp_result_methods::cp_results_erase().

Here is the call graph for this function:

Here is the caller graph for this function:

subroutine,public cp_result_types::cp_result_value_create ( TYPE(cp_result_value_type),pointer  value,
TYPE(cp_error_type),intent(inout)  error 
)

Allocates and intitializes the cp_result_value type.

Author:
Teodoro Laino [tlaino] - University of Zurich 10.2008

Definition at line 223 of file cp_result_types.f90.

References CPPostcondition, and timings::timeset().

Referenced by cp_result_copy(), cp_result_value_p_reallocate(), cp_result_methods::cp_results_erase(), and cp_result_methods::cp_results_mp_bcast().

Here is the call graph for this function:

Here is the caller graph for this function:

subroutine,public cp_result_types::cp_result_value_init ( TYPE(cp_result_value_type),pointer  value,
INTEGER,intent(in)  type_in_use,
INTEGER,intent(in)  size_value,
TYPE(cp_error_type),intent(inout)  error 
)

Setup of the cp_result_value type.

Author:
Teodoro Laino [tlaino] - University of Zurich 10.2008

Definition at line 248 of file cp_result_types.f90.

References CPPostcondition, input_val_types::integer_t, and timings::timeset().

Referenced by cp_result_methods::cp_results_mp_bcast(), cp_result_methods::put_result_r1(), and cp_result_methods::put_result_r2().

Here is the call graph for this function:

Here is the caller graph for this function:

subroutine,public cp_result_types::cp_result_value_p_reallocate ( TYPE(cp_result_value_p_type),dimension(:),pointer  result_value,
INTEGER,intent(in)  istart,
INTEGER,intent(in)  iend,
TYPE(cp_error_type),intent(inout)  error 
)

Reallocates the cp_result_value type.

Author:
Teodoro Laino [tlaino] - University of Zurich 10.2008

Definition at line 411 of file cp_result_types.f90.

References cp_result_value_copy(), cp_result_value_create(), cp_result_value_release(), CPPostcondition, and timings::timeset().

Referenced by cp_result_methods::put_result_r1(), and cp_result_methods::put_result_r2().

Here is the call graph for this function:

Here is the caller graph for this function:

subroutine,public cp_result_types::cp_result_value_release ( TYPE(cp_result_value_type),pointer  value,
TYPE(cp_error_type),intent(inout)  error 
)

Releases the cp_result_value type.

Author:
Teodoro Laino [tlaino] - University of Zurich 10.2008

Definition at line 284 of file cp_result_types.f90.

References CPPostcondition, input_val_types::integer_t, and timings::timeset().

Referenced by cp_result_clean(), cp_result_release(), and cp_result_value_p_reallocate().

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

CHARACTER(len=*),parameter,private cp_result_types::moduleN = 'cp_result_types'

Definition at line 31 of file cp_result_types.f90.