Skip to content

Commit

Permalink
quick fix for mep_direction = 0
Browse files Browse the repository at this point in the history
  • Loading branch information
jwpk1201 committed Jul 25, 2018
1 parent 09e0639 commit c07a4c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/opt/optinfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ class OptInfo : public GradInfo {
if (opttype_->is_mep()) {
// parameters for MEP calculations (Gonzalez, Schlegel)
mep_direction_ = idat->get<int>("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
Expand Down

0 comments on commit c07a4c6

Please sign in to comment.