Skip to content

Commit 6261324

Browse files
author
Roberto Di Remigio
committed
Stupid fix in compute_nonequilibrium_asc: we were still using the equilibrium PCM matrix
1 parent ce78521 commit 6261324

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/interface/Interface.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ extern "C" void compute_nonequilibrium_asc(char * potString, char * chgString, i
174174
}
175175

176176
// If it already exists there's no problem, we will pass a reference to its values to
177-
_solver->computeCharge(iter_pot->second->vector(), iter_chg->second->vector(), *irrep);
177+
_noneqSolver->computeCharge(iter_pot->second->vector(), iter_chg->second->vector(), *irrep);
178178
// Renormalization of charges: divide by the number of symmetry operations in the group
179179
(*iter_chg->second) /= double(_cavity->pointGroup().nrIrrep());
180180
}
@@ -602,10 +602,7 @@ void initNonEqSolver()
602602
_noneqSolver = SolverFactory::TheSolverFactory().createSolver(modelType, solverInput);
603603
_noneqSolver->buildSystemMatrix(*_cavity);
604604
#endif
605-
// Always save the cavity in a cavity.npz binary file
606-
// Cavity should be saved to file in initCavity(), due to the dependencies of
607-
// the WaveletCavity on the wavelet solvers it has to be done here...
608-
_cavity->saveCavity();
605+
noneqExists = true;
609606
}
610607

611608
void initAtoms(Eigen::VectorXd & charges_, Eigen::Matrix3Xd & sphereCenter_)

0 commit comments

Comments
 (0)