add support for single() and r-RESPA to pair style zero

This commit is contained in:
Axel Kohlmeyer
2019-10-15 17:22:27 -04:00
parent f3b2ec80af
commit b9727e0dfa
2 changed files with 20 additions and 1 deletions

View File

@ -31,6 +31,8 @@ using namespace LAMMPS_NS;
PairZero::PairZero(LAMMPS *lmp) : Pair(lmp) {
coeffflag=1;
writedata=1;
single_enable=1;
respa_enable=1;
}
/* ---------------------------------------------------------------------- */
@ -49,10 +51,16 @@ PairZero::~PairZero()
void PairZero::compute(int eflag, int vflag)
{
ev_init(eflag,vflag);
if (vflag_fdotr) virial_fdotr_compute();
}
/* ---------------------------------------------------------------------- */
void PairZero::compute_outer(int eflag, int vflag)
{
ev_init(eflag,vflag);
}
/* ----------------------------------------------------------------------
allocate all arrays
------------------------------------------------------------------------- */
@ -227,4 +235,13 @@ void PairZero::write_data_all(FILE *fp)
fprintf(fp,"%d %d %g\n",i,j,cut[i][j]);
}
/* ---------------------------------------------------------------------- */
double PairZero::single(int /*i*/, int /*j*/, int /* itype */, int /* jtype */,
double /* rsq */, double /*factor_coul*/,
double /* factor_lj */, double &fforce)
{
fforce = 0.0;
return 0.0;
}