HΦ
3.1.0
|
Set size of memories to be needed for calculation. More...
#include "Common.h"
#include "mfmemory.h"
#include "xsetmem.h"
#include "wrapperMPI.h"
Go to the source code of this file.
Functions | |
void | setmem_HEAD (struct BindStruct *X) |
Set size of memories headers of output files. More... | |
void | setmem_def (struct BindStruct *X, struct BoostList *xBoost) |
Set size of memories for Def and Phys in BindStruct. More... | |
int | setmem_large (struct BindStruct *X) |
Set size of memories for Hamiltonian (Ham, L_vec), vectors(vg, v0, v1, v2, vec, alpha, beta), lists (list_1, list_2_1, list_2_2, list_Diagonal) and Phys(BindStruct.PhysList) struct in the case of Full Diag mode. More... | |
void | setmem_IntAll_Diagonal (int **InterAllOffDiagonal, double complex *ParaInterAllOffDiagonal, int **InterAllDiagonal, double *ParaInterAllDiagonal, const int NInterAll) |
Set the size of memories for InterAllDiagonal and InterAllOffDiagonal arrays. More... | |
int | GetlistSize (struct BindStruct *X) |
Set size of lists for the canonical ensemble. More... | |
Variables | |
static unsigned long int | mfint [7] |
int GetlistSize | ( | struct BindStruct * | X | ) |
Set size of lists for the canonical ensemble.
X | [in,out] Give the information for getting the list size and get the lists. Input: DefineList.iFlgGeneralSpin, DefineList.iCalcModel, DefineList.Nsite, CheckList.sdim, DefineList.Tpow, DefineList.SiteToBit Output: LargeList.SizeOflist_2_1, LargeList.SizeOflist_2_2, LargeList.SizeOflistjb |
TRUE | Normally finished |
FALSE | Unnormally finished |
Definition at line 379 of file xsetmem.c.
References FALSE, TRUE, and X.
Referenced by MakeExcitedList(), and setmem_large().
void setmem_def | ( | struct BindStruct * | X, |
struct BoostList * | xBoost | ||
) |
Set size of memories for Def and Phys in BindStruct.
X | [in,out] BindStruct to get information of Def and Phys structs. |
xBoost | [in,out] Struct for Boost mode. |
Definition at line 56 of file xsetmem.c.
References BoostList::arrayJ, BoostList::list_6spin_pair, BoostList::list_6spin_star, BoostList::num_pivot, BoostList::NumarrayJ, BoostList::R0, and X.
Referenced by main().
void setmem_HEAD | ( | struct BindStruct * | X | ) |
Set size of memories headers of output files.
X | [out] BindStruct to get headers of files. Output: CDataFileHead, CParaFileHead |
Definition at line 42 of file xsetmem.c.
References D_FileNameMax, and X.
Referenced by main().
void setmem_IntAll_Diagonal | ( | int ** | InterAllOffDiagonal, |
double complex * | ParaInterAllOffDiagonal, | ||
int ** | InterAllDiagonal, | ||
double * | ParaInterAllDiagonal, | ||
const int | NInterAll | ||
) |
Set the size of memories for InterAllDiagonal and InterAllOffDiagonal arrays.
InterAllOffDiagonal | [in,out] Arrays of cites and spin indexes of off-diagonal parts of InterAll interactions. |
ParaInterAllOffDiagonal | [in,out] Arrays of parameters of off-diagonal parts of InterAll interactions. |
InterAllDiagonal | [in,out] Arrays of cites and spin indexes of diagonal parts of InterAll interactions. |
ParaInterAllDiagonal | [in,out] Arrays of parameters of diagonal parts of InterAll interactions. |
NInterAll | [in] Total number of InterAll interactions. |
int setmem_large | ( | struct BindStruct * | X | ) |
Set size of memories for Hamiltonian (Ham, L_vec), vectors(vg, v0, v1, v2, vec, alpha, beta), lists (list_1, list_2_1, list_2_2, list_Diagonal) and Phys(BindStruct.PhysList) struct in the case of Full Diag mode.
X | [in,out] BindStruct to give information and give size of memories for Hamiltonian, vectors, lists and Phys struct in the case of Full Diag mode. |
-1 | Fail to set memories. |
0 | Normal to set memories. |
Definition at line 224 of file xsetmem.c.
References alpha, beta, cProFinishAlloc, GetlistSize(), Ham, L_vec, list_1, list_1buf, list_2_1, list_2_2, list_Diagonal, MaxMPI_li(), stdoutMPI, TRUE, v0, v1, v1buf, v2, vec, vg, and X.
Referenced by main(), and MakeExcitedList().
|
static |
Definition at line 34 of file xsetmem.c.
Referenced by check(), and Lanczos_EigenValue().