#include <accum.h>
Inheritance diagram for sc::SumAccumH:


Public Member Functions | |
| SumAccumH (StateIn &) | |
| SumAccumH (const Ref< KeyVal > &) | |
| The KeyVal constructor. | |
| void | save_data_state (StateOut &) |
| Save the base classes (with save_data_state) and the members in the same order that the StateIn CTOR initializes them. | |
| void | init (const Ref< Wavefunction > &) |
| Sets the current Wavefunction. | |
| void | accum (const RefSymmSCMatrix &h) |
| Sum the contribution from this object into h. | |
| void | done () |
| Should be called after we are finished with this AccumH. | |
| double | e () |
| Returns the scalar contribution to the energy. | |
Protected Attributes | |
| int | n_ |
| Ref< AccumH > * | accums_ |
Sums the results of several AccumH objects.
| void sc::SumAccumH::save_data_state | ( | StateOut & | ) | [virtual] |
Save the base classes (with save_data_state) and the members in the same order that the StateIn CTOR initializes them.
This must be implemented by the derived class if the class has data.
Reimplemented from sc::AccumH.
| void sc::SumAccumH::init | ( | const Ref< Wavefunction > & | ) | [virtual] |
Sets the current Wavefunction.
This is needed if the contribution depends on the current Wavefunction. This would override a Wavefunction givin in the KeyVal CTOR.
Reimplemented from sc::AccumH.
| void sc::SumAccumH::accum | ( | const RefSymmSCMatrix & | h | ) | [virtual] |
| void sc::SumAccumH::done | ( | ) | [virtual] |
Should be called after we are finished with this AccumH.
The reference to current Wavefunction object will be removed, and accum cannot be called until another init call is made.
Reimplemented from sc::AccumH.
| double sc::SumAccumH::e | ( | ) | [virtual] |
Returns the scalar contribution to the energy.
Available only after accum is called.
Reimplemented from sc::AccumH.