HPhi++
3.1.0
|
To set memory, we use ?malloc%
function defined in mfmemmory.h
, where ?
indicates the type of the array and %
means the dimension.
For example, char_malloc2(X, N1, N2)
function sets the size of memories N1 \( \times \) N2 characters to two dimensional array X.
To set memories to global arrays, we prepare two functions, setmem_def() and setmem_large() functions.
In this function, the memories of the arrays which do not have large memory are stored.
Arrays for defining interactions and correlation functions are mainly defined.
In this function, the memories of the arrays which have large memory are stored.
Arrays for defining Hamiltonian and vectors are mainly defined.