Commit 8c168b8a by Francois Gygi

*** empty log message ***


git-svn-id: http://qboxcode.org/svn/qb/trunk@471 cba15fb0-1239-40c8-b417-11db7ca47a34
parent 616598ca
////////////////////////////////////////////////////////////////////////////////
//
// ResetVcmCmd.h:
//
////////////////////////////////////////////////////////////////////////////////
// $Id: ResetVcmCmd.h,v 1.1 2006-09-06 00:34:24 fgygi Exp $
#ifndef RESETVCMCMD_H
#define RESETVCMCMD_H
#include <string>
#include <cstdlib>
#include <iostream>
using namespace std;
#include "UserInterface.h"
#include "Sample.h"
class ResetVcmCmd : public Cmd
{
public:
Sample *s;
ResetVcmCmd(Sample *sample) : s(sample) {};
char *name(void) const { return "reset_vcm"; }
char *help_msg(void) const
{
return
"\n reset_vcm\n\n"
" syntax: reset_vcm \n\n"
" The reset_vcm command subtracts the velocity of the center\n"
" of mass from the velocity of each atom.\n\n";
}
int action(int argc, char **argv)
{
s->atoms.reset_vcm();
return 0;
}
};
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment