PSDAWavefunctionStepper.h 1.23 KB
Newer Older
1 2
////////////////////////////////////////////////////////////////////////////////
//
Francois Gygi committed
3 4 5 6
// Copyright (c) 2008 The Regents of the University of California
//
// This file is part of Qbox
//
Francois Gygi committed
7 8
// Qbox is distributed under the terms of the GNU General Public License
// as published by the Free Software Foundation, either version 2 of
Francois Gygi committed
9 10 11 12 13 14
// the License, or (at your option) any later version.
// See the file COPYING in the root directory of this distribution
// or <http://www.gnu.org/licenses/>.
//
////////////////////////////////////////////////////////////////////////////////
//
15 16 17 18 19 20 21 22
// PSDAWavefunctionStepper.h
//
////////////////////////////////////////////////////////////////////////////////

#ifndef PSDAWAVEFUNCTIONSTEPPER_H
#define PSDAWAVEFUNCTIONSTEPPER_H

#include "WavefunctionStepper.h"
23
#include "Wavefunction.h"
24
class Preconditioner;
25 26 27 28

class PSDAWavefunctionStepper : public WavefunctionStepper
{
  private:
29

30
  Preconditioner& prec_;
31 32 33 34
  Wavefunction wf_last_, dwf_last_;

  // Anderson acceleration flag
  bool extrapolate_;
35

36 37 38 39 40
  public:

  void update(Wavefunction& dwf);
  virtual void preprocess(void) { extrapolate_ = false; }

41 42
  PSDAWavefunctionStepper(Wavefunction& wf, Preconditioner& prec,
    TimerMap& tmap);
Francois Gygi committed
43
  ~PSDAWavefunctionStepper();
44 45
};
#endif