use correct style in error messages
This commit is contained in:
@ -408,14 +408,14 @@ void PairHbondDreidingLJangleoffset::init_style()
|
|||||||
// and computing forces on A,H which may be on different procs
|
// and computing forces on A,H which may be on different procs
|
||||||
|
|
||||||
if (atom->molecular == Atom::ATOMIC)
|
if (atom->molecular == Atom::ATOMIC)
|
||||||
error->all(FLERR,"Pair style hbond/dreiding requires molecular system");
|
error->all(FLERR,"Pair style hbond/dreiding/lj/angleoffset requires molecular system");
|
||||||
if (atom->tag_enable == 0)
|
if (atom->tag_enable == 0)
|
||||||
error->all(FLERR,"Pair style hbond/dreiding requires atom IDs");
|
error->all(FLERR,"Pair style hbond/dreiding/lj/angleoffset requires atom IDs");
|
||||||
if (atom->map_style == Atom::MAP_NONE)
|
if (atom->map_style == Atom::MAP_NONE)
|
||||||
error->all(FLERR,"Pair style hbond/dreiding requires an atom map, "
|
error->all(FLERR,"Pair style hbond/dreiding/lj/angleoffset requires an atom map, "
|
||||||
"see atom_modify");
|
"see atom_modify");
|
||||||
if (force->newton_pair == 0)
|
if (force->newton_pair == 0)
|
||||||
error->all(FLERR,"Pair style hbond/dreiding requires newton pair on");
|
error->all(FLERR,"Pair style hbond/dreiding/lj/angleoffset requires newton pair on");
|
||||||
|
|
||||||
// set donor[M]/acceptor[M] if any atom of type M is a donor/acceptor
|
// set donor[M]/acceptor[M] if any atom of type M is a donor/acceptor
|
||||||
|
|
||||||
@ -431,7 +431,7 @@ void PairHbondDreidingLJangleoffset::init_style()
|
|||||||
acceptor[j] = 1;
|
acceptor[j] = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!anyflag) error->all(FLERR,"No pair hbond/dreiding coefficients set");
|
if (!anyflag) error->all(FLERR,"No pair hbond/dreiding/lj/angleoffset coefficients set");
|
||||||
|
|
||||||
// set additional param values
|
// set additional param values
|
||||||
// offset is for LJ only, angle term is not included
|
// offset is for LJ only, angle term is not included
|
||||||
@ -441,14 +441,6 @@ void PairHbondDreidingLJangleoffset::init_style()
|
|||||||
params[m].lj2 = 60.0*params[m].epsilon*pow(params[m].sigma,10.0);
|
params[m].lj2 = 60.0*params[m].epsilon*pow(params[m].sigma,10.0);
|
||||||
params[m].lj3 = 5.0*params[m].epsilon*pow(params[m].sigma,12.0);
|
params[m].lj3 = 5.0*params[m].epsilon*pow(params[m].sigma,12.0);
|
||||||
params[m].lj4 = 6.0*params[m].epsilon*pow(params[m].sigma,10.0);
|
params[m].lj4 = 6.0*params[m].epsilon*pow(params[m].sigma,10.0);
|
||||||
|
|
||||||
/*
|
|
||||||
if (offset_flag) {
|
|
||||||
double ratio = params[m].sigma / params[m].cut_outer;
|
|
||||||
params[m].offset = params[m].epsilon *
|
|
||||||
((2.0*pow(ratio,9.0)) - (3.0*pow(ratio,6.0)));
|
|
||||||
} else params[m].offset = 0.0;
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// full neighbor list request
|
// full neighbor list request
|
||||||
|
|||||||
@ -282,8 +282,7 @@ void PairHbondDreidingMorseAngleoffset::coeff(int narg, char **arg)
|
|||||||
|
|
||||||
if (nparams == maxparam) {
|
if (nparams == maxparam) {
|
||||||
maxparam += CHUNK;
|
maxparam += CHUNK;
|
||||||
params = (Param *) memory->srealloc(params, maxparam*sizeof(Param),
|
params = (Param *) memory->srealloc(params, maxparam*sizeof(Param),"pair:params");
|
||||||
"pair:params");
|
|
||||||
|
|
||||||
// make certain all addional allocated storage is initialized
|
// make certain all addional allocated storage is initialized
|
||||||
// to avoid false positives when checking with valgrind
|
// to avoid false positives when checking with valgrind
|
||||||
@ -301,8 +300,7 @@ void PairHbondDreidingMorseAngleoffset::coeff(int narg, char **arg)
|
|||||||
params[nparams].cut_outersq = cut_outer_one*cut_outer_one;
|
params[nparams].cut_outersq = cut_outer_one*cut_outer_one;
|
||||||
params[nparams].cut_angle = cut_angle_one;
|
params[nparams].cut_angle = cut_angle_one;
|
||||||
params[nparams].angle_offset = angle_offset_one;
|
params[nparams].angle_offset = angle_offset_one;
|
||||||
params[nparams].denom_vdw =
|
params[nparams].denom_vdw = (params[nparams].cut_outersq-params[nparams].cut_innersq) *
|
||||||
(params[nparams].cut_outersq-params[nparams].cut_innersq) *
|
|
||||||
(params[nparams].cut_outersq-params[nparams].cut_innersq) *
|
(params[nparams].cut_outersq-params[nparams].cut_innersq) *
|
||||||
(params[nparams].cut_outersq-params[nparams].cut_innersq);
|
(params[nparams].cut_outersq-params[nparams].cut_innersq);
|
||||||
|
|
||||||
@ -333,14 +331,14 @@ void PairHbondDreidingMorseAngleoffset::init_style()
|
|||||||
// and computing forces on A,H which may be on different procs
|
// and computing forces on A,H which may be on different procs
|
||||||
|
|
||||||
if (atom->molecular == Atom::ATOMIC)
|
if (atom->molecular == Atom::ATOMIC)
|
||||||
error->all(FLERR,"Pair style hbond/dreiding requires molecular system");
|
error->all(FLERR,"Pair style hbond/dreiding/morse/angleoffset requires molecular system");
|
||||||
if (atom->tag_enable == 0)
|
if (atom->tag_enable == 0)
|
||||||
error->all(FLERR,"Pair style hbond/dreiding requires atom IDs");
|
error->all(FLERR,"Pair style hbond/dreiding/morse/angleoffset requires atom IDs");
|
||||||
if (atom->map_style == Atom::MAP_NONE)
|
if (atom->map_style == Atom::MAP_NONE)
|
||||||
error->all(FLERR,"Pair style hbond/dreiding requires an atom map, "
|
error->all(FLERR,"Pair style hbond/dreiding/morse/angleoffset requires an atom map, "
|
||||||
"see atom_modify");
|
"see atom_modify");
|
||||||
if (force->newton_pair == 0)
|
if (force->newton_pair == 0)
|
||||||
error->all(FLERR,"Pair style hbond/dreiding requires newton pair on");
|
error->all(FLERR,"Pair style hbond/dreiding/morse/angleoffset requires newton pair on");
|
||||||
|
|
||||||
// set donor[M]/acceptor[M] if any atom of type M is a donor/acceptor
|
// set donor[M]/acceptor[M] if any atom of type M is a donor/acceptor
|
||||||
|
|
||||||
@ -356,21 +354,13 @@ void PairHbondDreidingMorseAngleoffset::init_style()
|
|||||||
acceptor[j] = 1;
|
acceptor[j] = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!anyflag) error->all(FLERR,"No pair hbond/dreiding coefficients set");
|
if (!anyflag) error->all(FLERR,"No pair hbond/dreiding/morse/angleoffset coefficients set");
|
||||||
|
|
||||||
// set additional param values
|
// set additional param values
|
||||||
// offset is for Morse only, angle term is not included
|
// offset is for Morse only, angle term is not included
|
||||||
|
|
||||||
for (int m = 0; m < nparams; m++) {
|
for (int m = 0; m < nparams; m++) {
|
||||||
params[m].morse1 = 2.0*params[m].d0*params[m].alpha;
|
params[m].morse1 = 2.0*params[m].d0*params[m].alpha;
|
||||||
|
|
||||||
/*
|
|
||||||
if (offset_flag) {
|
|
||||||
double alpha_dr = -params[m].alpha * (params[m].cut - params[m].r0);
|
|
||||||
params[m].offset = params[m].d0 *
|
|
||||||
((exp(2.0*alpha_dr)) - (2.0*exp(alpha_dr)));
|
|
||||||
} else params[m].offset = 0.0;
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// full neighbor list request
|
// full neighbor list request
|
||||||
|
|||||||
Reference in New Issue
Block a user