BOSampleStepper.h 1.49 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
// BOSampleStepper.h
//
////////////////////////////////////////////////////////////////////////////////
18
// $Id: BOSampleStepper.h,v 1.9 2009-09-08 05:35:39 fgygi Exp $
19 20 21 22 23

#ifndef BOSAMPLESTEPPER_H
#define BOSAMPLESTEPPER_H

#include "SampleStepper.h"
Francois Gygi committed
24
#include "EnergyFunctional.h"
25
#include "Sample.h"
26
#include "ChargeDensity.h"
27
#include "Wavefunction.h"
28

29 30 31 32 33 34
class WavefunctionStepper;
class IonicStepper;

class BOSampleStepper : public SampleStepper
{
  private:
35

36 37
  Wavefunction dwf;
  Wavefunction* wfv;
Francois Gygi committed
38
  int nitscf_;
39
  int nite_;
Francois Gygi committed
40 41
  ChargeDensity cd_;
  EnergyFunctional ef_;
42

43 44 45
  WavefunctionStepper* wf_stepper;
  IonicStepper* ionic_stepper;

46 47
  bool initial_atomic_density;

48 49 50 51 52 53
  // Do not allow construction of BOSampleStepper unrelated to a Sample
  BOSampleStepper(void);

  public:

  mutable TimerMap tmap;
54

55
  void step(int niter);
56
  void initialize_density(void);
57

Francois Gygi committed
58
  BOSampleStepper(Sample& s, int nitscf, int nite);
Francois Gygi committed
59
  ~BOSampleStepper();
60 61
};
#endif