#ifndef GRADIENT_CACHE_H
#define GRADIENT_CACHE_H

#ifndef GRADIENT_FRAME_H
#include "Gradient_frame.h"
#endif

namespace MM
{
class Atom_group;

class Gradient_cache : public Gradient_frame
{
public:
    explicit Gradient_cache (Atom_group const & group)
        : Gradient_frame(group) {update();}

    double      norm ()                                         {return norm_;}
    double      rms  ()                                         {return rms_; }
};

}//MM

#endif //GRADIENT_CACHE_H
