add dimension check

This commit is contained in:
davidfir3
2022-03-28 13:34:36 +08:00
parent cf17fd2306
commit 13228ca29a

View File

@ -123,6 +123,10 @@ void ComputeFEPTA::init()
// setup and error checks
if (domain->dimension == 2) {
error->all(FLERR,"Cannot compute fep/ta in 2d simulation");
}
if (tailflag) {
if (force->pair->tail_flag == 0)
error->all(FLERR,"Compute fep/ta tail when pair style does not "