HΦ  3.1.0
SingleEx.c File Reference

Functions to compute singly excited state. More...

#include "bitcalc.h"
#include "SingleEx.h"
#include "SingleExHubbard.h"

Go to the source code of this file.

Functions

int GetSingleExcitedState (struct BindStruct *X, double complex *tmp_v0, double complex *tmp_v1)
 Calculation of single excited state Target System: Hubbard, Kondo. More...
 

Detailed Description

Functions to compute singly excited state.

Definition in file SingleEx.c.

Function Documentation

◆ GetSingleExcitedState()

int GetSingleExcitedState ( struct BindStruct X,
double complex *  tmp_v0,
double complex *  tmp_v1 
)

Calculation of single excited state Target System: Hubbard, Kondo.

Returns
TRUE: Normally finished
FALSE: Abnormally finished
Author
Kazuyoshi Yoshimi
Version
1.2
Parameters
Xdefine list to get and put information of calcuation
[out]tmp_v0Result v0 = H v1
[in]tmp_v1v0 = H v1

Definition at line 30 of file SingleEx.c.

References FALSE, GetSingleExcitedStateHubbard(), GetSingleExcitedStateHubbardGC(), TRUE, and X.

Referenced by GetExcitedState().

34  {
35  int iret = 0;
36  //tmp_v0
37  if (X->Def.NSingleExcitationOperator == 0) return TRUE;
38 
39  switch (X->Def.iCalcModel) {
40  case HubbardGC:
41  iret = GetSingleExcitedStateHubbardGC(X, tmp_v0, tmp_v1);
42  break;
43 
44  case KondoGC:
45  case Hubbard:
46  case Kondo:
47  iret = GetSingleExcitedStateHubbard(X, tmp_v0, tmp_v1);
48  break;
49 
50  case Spin:
51  case SpinGC:
52  iret = FALSE;
53  break;
54 
55  default:
56  iret = FALSE;
57  break;
58  }/*switch (X->Def.iCalcModel)*/
59  return iret;
60 }/*int GetSingleExcitedState*/
#define TRUE
Definition: global.h:26
int GetSingleExcitedStateHubbardGC(struct BindStruct *X, double complex *tmp_v0, double complex *tmp_v1)
Calculation of Single excited state for Hubbard Grand canonical system.
#define FALSE
Definition: global.h:25
int GetSingleExcitedStateHubbard(struct BindStruct *X, double complex *tmp_v0, double complex *tmp_v1)
Calculation of Single excited state for Hubbard canonical system.
struct EDMainCalStruct X
Definition: struct.h:431