20 #ifndef CONVERGENCESCHEME_CHEMPS2_H 21 #define CONVERGENCESCHEME_CHEMPS2_H 63 void set_instruction(
const int instruction,
const int D,
const double energy_conv,
const int max_sweeps,
const double noise_prefactor,
const double davidson_rtol);
71 void setInstruction(
const int instruction,
const int D,
const double energy_conv,
const int max_sweeps,
const double noise_prefactor){
72 set_instruction( instruction, D, energy_conv, max_sweeps, noise_prefactor, CheMPS2::DAVIDSON_DMRG_RTOL );
78 int get_D(
const int instruction)
const;
103 int num_instructions;
109 double * energy_convergence;
112 int * num_max_sweeps;
115 double * noise_prefac;
118 double * dvdson_rtol;
virtual ~ConvergenceScheme()
Destructor.
double get_energy_conv(const int instruction) const
Get the energy convergence threshold for a particular instruction.
double get_noise_prefactor(const int instruction) const
Get the noise prefactor for a particular instruction.
void set_instruction(const int instruction, const int D, const double energy_conv, const int max_sweeps, const double noise_prefactor, const double davidson_rtol)
Set an instruction.
int get_D(const int instruction) const
Get the number of renormalized states for a particular instruction.
int get_number() const
Get the number of instructions.
int get_max_sweeps(const int instruction) const
Get the maximum number of sweeps for a particular instruction.
double get_dvdson_rtol(const int instruction) const
Get the Davidson residual tolerance for a particular instruction.
void setInstruction(const int instruction, const int D, const double energy_conv, const int max_sweeps, const double noise_prefactor)
Set an instruction.
ConvergenceScheme(const int num_instructions)
Constructor.