~ubuntu-branches/debian/sid/lammps/sid

« back to all changes in this revision

Viewing changes to src/fix_wall_region.cpp

  • Committer: Package Import Robot
  • Author(s): Anton Gladky
  • Date: 2013-11-20 22:41:36 UTC
  • mfrom: (1.2.2)
  • Revision ID: package-import@ubuntu.com-20131120224136-tzx7leh606fqnckm
Tags: 0~20131119.git7162cf0-1
* [e65b919] Imported Upstream version 0~20131119.git7162cf0
* [f7bddd4] Fix some problems, introduced by upstream recently.
* [3616dfc] Use wrap-and-sort script.
* [7e92030] Ignore quilt dir

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
#include "output.h"
25
25
#include "respa.h"
26
26
#include "error.h"
 
27
#include "force.h"
27
28
 
28
29
using namespace LAMMPS_NS;
29
30
using namespace FixConst;
59
60
  else if (strcmp(arg[4],"harmonic") == 0) style = HARMONIC;
60
61
  else error->all(FLERR,"Illegal fix wall/region command");
61
62
 
62
 
  epsilon = atof(arg[5]);
63
 
  sigma = atof(arg[6]);
64
 
  cutoff = atof(arg[7]);
 
63
  epsilon = force->numeric(FLERR,arg[5]);
 
64
  sigma = force->numeric(FLERR,arg[6]);
 
65
  cutoff = force->numeric(FLERR,arg[7]);
65
66
 
66
67
  if (cutoff <= 0.0) error->all(FLERR,"Fix wall/region cutoff <= 0.0");
67
68