#ifndef GRADIENT_FRAME_H
#define GRADIENT_FRAME_H

#ifndef GRADIENT_H
#include "Gradient.h"
#endif

namespace MM
{
class Atom_group;

class Gradient_frame : public Gradient
{
    Atom_group const &      group_;

public:
    explicit Gradient_frame (Atom_group const & group) ;

    virtual int             size () const;
    virtual void            get (double *values) const;


protected:
    double                  norm_;
    double                  rms_;

    void                    update ();
};

}//MM

#endif //GRADIENT_FRAME_H
