You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/MPIVMC.hpp
+6-3Lines changed: 6 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -49,8 +49,11 @@ namespace MPIVMC
49
49
#endif
50
50
}
51
51
52
-
voidIntegrate(MCI * const mci, constlong &Nmc, double * average, double * error, int NfindMRT2stepIterations, int NdecorrelationSteps, int nblocks=-1)
52
+
voidIntegrate(MCI * const mci, constlong &Nmc, double * average, double * error, int NfindMRT2stepIterations, int NdecorrelationSteps, bool randomizeWalkers = false, int nblocks=-1)
53
53
{
54
+
if (randomizeWalkers) {
55
+
mci->newRandomX();
56
+
}
54
57
#if USE_MPI==1
55
58
MPIMCI::integrate(mci, Nmc, average, error, NfindMRT2stepIterations, NdecorrelationSteps, nblocks < 0 ? 16 : nblocks); // if compiling with USE_MPI, set default block count to 16
56
59
#else
@@ -64,11 +67,11 @@ namespace MPIVMC
64
67
// if compiling with USE_MPI, set fixed defaults (totaling 5000 quick no-sample steps)
65
68
int stepsMRT2 = findMRT2step ? 25 : 0;
66
69
int stepsDecorr = initialdecorrelation ? 2500 : 0;
67
-
Integrate(mci, Nmc, average, error, stepsMRT2, stepsDecorr, nblocks < 0 ? 16 : nblocks); // if compiling with USE_MPI, set fixed defaults (totaling 5000 quick no-sample steps)
70
+
Integrate(mci, Nmc, average, error, stepsMRT2, stepsDecorr, true, nblocks < 0 ? 16 : nblocks); // if compiling with USE_MPI, also use random initial walker positions and fixed blocking
0 commit comments