CP2K 2.4 (Revision 12889)
Classes | Namespaces | Defines | Functions | Variables

cp_array_logical_utils.f90 File Reference

#include "cp_common_uses.h"
Include dependency graph for cp_array_logical_utils.f90:

Go to the source code of this file.

Classes

interface  cp_array_logical_utils::cp_guarantee_size
struct  cp_array_logical_utils::cp_1d_logical_p_type
 represent a pointer to a 1d array More...
struct  cp_array_logical_utils::cp_2d_logical_p_type
 represent a pointer to a 2d array More...
struct  cp_array_logical_utils::cp_3d_logical_p_type
 represent a pointer to a 3d array More...

Namespaces

namespace  cp_array_logical_utils
 

various utilities that regard array of different kinds: output, allocation,...


Defines

#define CP_L_LESS_Q(el1, el2)   ( (.not.el1).and.el2 )

Functions

subroutine, public cp_array_logical_utils::cp_1d_logical_write (array, unit_nr, el_format, error)
 writes an array to the given unit
subroutine, public cp_array_logical_utils::cp_2d_logical_write (array, unit_nr, el_format, error)
 writes an array to the given unit
subroutine, public cp_array_logical_utils::cp_1d_logical_guarantee_size (array, n, init, error)
 If the size of the array is changes reallocate it. Issues a warning when the size changes (but not on allocation and deallocation).
subroutine, public cp_array_logical_utils::cp_2d_logical_guarantee_size (array, n_rows, n_cols, init, error)
 If the size of the array is changes reallocate it. Issues a warning when the size changes (but not on allocation and deallocation).
function, public cp_array_logical_utils::cp_1d_logical_bsearch (array, el, l_index, u_index, error)
 returns the index at which the element el should be inserted in the array to keep it ordered (array(i)>=el). If the element is bigger than all the elements in the array returns the last index+1.

Variables

LOGICAL, parameter, private cp_array_logical_utils::debug_this_module = .TRUE.
CHARACTER(len=*), parameter,
private 
cp_array_logical_utils::moduleN = 'cp_array_logical_utils'

Define Documentation

#define CP_L_LESS_Q (   el1,
  el2 
)    ( (.not.el1).and.el2 )