From c07a4c6389352239e029d04af1710f5e65e63f04 Mon Sep 17 00:00:00 2001 From: Jae Woo Park Date: Wed, 25 Jul 2018 12:11:00 -0500 Subject: [PATCH] quick fix for mep_direction = 0 --- src/opt/optinfo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/opt/optinfo.h b/src/opt/optinfo.h index b36480580..c2378a5df 100644 --- a/src/opt/optinfo.h +++ b/src/opt/optinfo.h @@ -215,7 +215,7 @@ class OptInfo : public GradInfo { if (opttype_->is_mep()) { // parameters for MEP calculations (Gonzalez, Schlegel) mep_direction_ = idat->get("mep_direction", 1); - if (hess_approx_) + if (hess_approx_ && mep_direction_ != 0) throw std::runtime_error("MEP calculation should be started with Hessian eigenvectors"); } else { // initialize the values