Skip to content

Commit

Permalink
Merge pull request #82 from shiozaki/mep_quickfix
Browse files Browse the repository at this point in the history
quick fix for mep_direction = 0
  • Loading branch information
shiozaki authored Jul 25, 2018
2 parents 09e0639 + c07a4c6 commit 9348d8f
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 9348d8f

Please sign in to comment.