From eaf7ed7707507ed6b012470820b7a7b737743fd4 Mon Sep 17 00:00:00 2001 From: Anders Hafreager <andershaf@gmail.com> Date: Thu, 2 Mar 2017 21:25:27 -0800 Subject: [PATCH] Print error if pair_write does not get correct number of arguments --- src/pair.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pair.cpp b/src/pair.cpp index 5d73a592e8..685280cfce 100644 --- a/src/pair.cpp +++ b/src/pair.cpp @@ -1534,7 +1534,7 @@ void Pair::virial_fdotr_compute() void Pair::write_file(int narg, char **arg) { - if (narg < 8) error->all(FLERR,"Illegal pair_write command"); + if (narg != 8 && narg != 10) error->all(FLERR,"Illegal pair_write command"); if (single_enable == 0) error->all(FLERR,"Pair style does not support pair_write"); -- GitLab