Skip to content

Commit 09a1d00

Browse files
committed
Adapted to changes in VMC++
1 parent 6ead27f commit 09a1d00

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

examples/ex4/main.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ class Gaussian1D1POrbital: public WaveFunction{
8484
}
8585
}
8686

87+
double computeWFValue(const double * protovalues){
88+
return exp(0.5*protovalues[0]);
89+
}
8790
};
8891

8992

src/vmc/FFNNWaveFunction.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,12 @@ void FFNNWaveFunction::computeAllDerivatives(const double *in){
8181
}
8282
}
8383
}
84-
8584
}
8685

87-
86+
double FFNNWaveFunction::computeWFValue(const double * protovalues)
87+
{
88+
return sqrt(protovalues[0]);
89+
}
8890

8991

9092
// -- Constructor and destructor

src/vmc/FFNNWaveFunction.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ class FFNNWaveFunction: public WaveFunction{
3838
// MCI acceptance starting from the new and old sampling functions
3939
double getAcceptance(const double * protoold, const double * protonew);
4040

41-
// --- computation of the derivatives
41+
// --- computation of the derivatives / wf value
4242
void computeAllDerivatives(const double *in);
43-
43+
double computeWFValue(const double * protovalues);
4444
};
4545

4646

test/ut1/main.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,9 @@ class QuadrExponential1D1POrbital: public WaveFunction{
129129
}
130130
}
131131

132+
double computeWFValue(const double * protovalues){
133+
return exp(0.5*protovalues[0]);
134+
}
132135
};
133136

134137

0 commit comments

Comments
 (0)