git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@1470 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp
2008-02-08 19:47:58 +00:00
parent cbe6927348
commit a15113ed1f
14 changed files with 37 additions and 14 deletions

View File

@ -20,6 +20,7 @@
#include "stdlib.h"
#include "pair_dpd.h"
#include "atom.h"
#include "atom_vec.h"
#include "comm.h"
#include "update.h"
#include "force.h"
@ -250,17 +251,14 @@ void PairDPD::coeff(int narg, char **arg)
void PairDPD::init_style()
{
// check that atom style is dpd or hybrid with dpd
// else compute() will not have ghost atom velocities
if (atom->style_match("dpd") == 0)
error->all("Pair style dpd requires atom style dpd");
if (atom->avec->ghost_velocity == 0)
error->all("Pair dpd requires ghost atoms store velocity");
// if newton off, forces between atoms ij will be double computed
// using different random numbers
if (force->newton_pair == 0 && comm->me == 0) error->warning(
"Pair style dpd needs newton pair on for momentum conservation");
"Pair dpd needs newton pair on for momentum conservation");
int irequest = neighbor->request(this);
}