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

This commit is contained in:
sjplimp
2012-03-02 16:34:21 +00:00
parent eab4d169d0
commit 4ba21107a1
2 changed files with 6 additions and 1 deletions

View File

@ -149,7 +149,7 @@ Atom::Atom(LAMMPS *lmp) : Pointers(lmp)
atom_style = NULL;
avec = NULL;
create_avec("atomic",0,NULL);
create_avec("atomic",0,NULL,lmp->suffix);
}
/* ---------------------------------------------------------------------- */

View File

@ -15,6 +15,7 @@
#include "atom_vec.h"
#include "atom.h"
#include "domain.h"
#include "error.h"
using namespace LAMMPS_NS;
@ -26,6 +27,7 @@ AtomVec::AtomVec(LAMMPS *lmp, int narg, char **arg) : Pointers(lmp)
bonds_allow = angles_allow = dihedrals_allow = impropers_allow = 0;
mass_type = dipole_type = 0;
size_data_bonus = 0;
cudable = false;
}
/* ----------------------------------------------------------------------
@ -37,6 +39,9 @@ void AtomVec::init()
deform_vremap = domain->deform_vremap;
deform_groupbit = domain->deform_groupbit;
h_rate = domain->h_rate;
if (lmp->cuda != NULL && cudable == false)
error->all(FLERR,"USER-CUDA package requires a cuda enabled atom_style");
}
/* ----------------------------------------------------------------------