Menu

#33 Slight redesign to Hamiltonian, Liouvillean, and Exact interfaces

Milestone 11
open
5
2014-02-20
2014-02-20
No

Hamiltonian::addContribution should have this signature:
void addContribution(double, const StateVectorLow&, StateVectorLow&, double, bool replace) const
(or even)
void addContribution(double, const StateVectorLow&, StateVectorLow&&, double, bool replace) const

Then, it could replace with its contribution, instead of adding
=> in MCWF_Trajectory::derivs Psi=0 initialization not necessaly
Master rho=0 ditto

Liouvillean::actWithJ should have this signature:
void actWithJ_v(double, const StateVectorLow& psiIN, StateVectorLow& psiOUT, size_t) const
(or even)
void actWithJ_v(double, const StateVectorLow& psiIN, StateVectorLow&& psiOUT, size_t) const
(noting that psiOUT might be the same as psiIN)
=> copy of rho in Master::step not necessary

Exact::actWithU ditto.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.