Moved data member initializer into constructor

This commit is contained in:
Yohai Meiron 2020-02-07 20:49:17 +01:00
parent 6e45215356
commit 85076f9030
2 changed files with 4 additions and 2 deletions

View file

@ -63,6 +63,8 @@ etics::scf::scfclass::scfclass() {
N=0; N=0;
Nmax=0; Nmax=0;
k3gs=-1; k3bs=-1; k4gs=-1; k4bs=-1; k3gs=-1; k3bs=-1; k4gs=-1; k4bs=-1;
PartialSum = NULL;
PartialSum_h = NULL;
} }
etics::scf::scfclass::~scfclass() { etics::scf::scfclass::~scfclass() {

View file

@ -52,8 +52,8 @@ namespace etics {
//WARNING we just hardcode 1024 as the maximum size of the coefficient structure. This is because having NMAX and LMAX here causes problems. //WARNING we just hardcode 1024 as the maximum size of the coefficient structure. This is because having NMAX and LMAX here causes problems.
Complex A_h[1024]; Complex A_h[1024];
CacheStruct Cache_h; CacheStruct Cache_h;
Complex *PartialSum = NULL; Complex *PartialSum;
Complex *PartialSum_h = NULL; Complex *PartialSum_h;
int k3gs, k3bs, k4gs, k4bs; int k3gs, k3bs, k4gs, k4bs;
void CalculateCoefficients(int n, int l); void CalculateCoefficients(int n, int l);
}; };