git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@7891 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -149,7 +149,7 @@ Atom::Atom(LAMMPS *lmp) : Pointers(lmp)
|
|||||||
|
|
||||||
atom_style = NULL;
|
atom_style = NULL;
|
||||||
avec = NULL;
|
avec = NULL;
|
||||||
create_avec("atomic",0,NULL);
|
create_avec("atomic",0,NULL,lmp->suffix);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ---------------------------------------------------------------------- */
|
/* ---------------------------------------------------------------------- */
|
||||||
|
|||||||
@ -15,6 +15,7 @@
|
|||||||
#include "atom_vec.h"
|
#include "atom_vec.h"
|
||||||
#include "atom.h"
|
#include "atom.h"
|
||||||
#include "domain.h"
|
#include "domain.h"
|
||||||
|
#include "error.h"
|
||||||
|
|
||||||
using namespace LAMMPS_NS;
|
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;
|
bonds_allow = angles_allow = dihedrals_allow = impropers_allow = 0;
|
||||||
mass_type = dipole_type = 0;
|
mass_type = dipole_type = 0;
|
||||||
size_data_bonus = 0;
|
size_data_bonus = 0;
|
||||||
|
cudable = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ----------------------------------------------------------------------
|
/* ----------------------------------------------------------------------
|
||||||
@ -37,6 +39,9 @@ void AtomVec::init()
|
|||||||
deform_vremap = domain->deform_vremap;
|
deform_vremap = domain->deform_vremap;
|
||||||
deform_groupbit = domain->deform_groupbit;
|
deform_groupbit = domain->deform_groupbit;
|
||||||
h_rate = domain->h_rate;
|
h_rate = domain->h_rate;
|
||||||
|
|
||||||
|
if (lmp->cuda != NULL && cudable == false)
|
||||||
|
error->all(FLERR,"USER-CUDA package requires a cuda enabled atom_style");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ----------------------------------------------------------------------
|
/* ----------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user