RunCmd.h 1.39 KB
Newer Older
Francois Gygi committed
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/>.
//
////////////////////////////////////////////////////////////////////////////////
//
Francois Gygi committed
15 16 17 18 19 20 21 22 23 24
// RunCmd.h:
//
////////////////////////////////////////////////////////////////////////////////

#ifndef RUNCMD_H
#define RUNCMD_H

#include <iostream>
#include "UserInterface.h"

25
class Sample;
Francois Gygi committed
26 27 28 29 30 31 32 33 34 35
class RunCmd : public Cmd
{
  private:

  public:

  Sample *s;

  RunCmd(Sample *sample) : s(sample) {};

36 37
  const char *name(void) const { return "run"; }
  const char *help_msg(void) const
Francois Gygi committed
38
  {
39
    return
Francois Gygi committed
40
    "\n run\n\n"
Francois Gygi committed
41
    " syntax: run [-atomic_density] n [nitscf [nite]]\n\n"
Francois Gygi committed
42
    "   The run command runs n steps of simulation. Each step\n"
Francois Gygi committed
43
    "   consists of one or more (nitscf) scf steps, each consisting\n"
Francois Gygi committed
44
    "   of one or more (nite) electronic steps.\n"
Francois Gygi committed
45
    "   If the -atomic_density option is used, the initial charge\n"
Francois Gygi committed
46
    "   density is a sum of atomic charge densities.\n\n";
Francois Gygi committed
47 48 49 50 51 52
  }

  int action(int argc, char **argv);

};
#endif