Skip to content

Commit

Permalink
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/api_cc/src/DeepPot.cc
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ void DeepPot::init(const std::string& model,
ntypes = get_scalar<int>("descrpt_attr/ntypes");
try {
ntypes_spin = get_scalar<int>("spin_attr/ntypes_spin");
} catch (deepmd::deepmd_exception) {
} catch (const deepmd::deepmd_exception) {
ntypes_spin = 0;
}
dfparam = get_scalar<int>("fitting_attr/dfparam");
Expand All @@ -488,7 +488,7 @@ void DeepPot::init(const std::string& model,
if (daparam > 0) {
try {
aparam_nall = get_scalar<bool>("fitting_attr/aparam_nall");
} catch (deepmd::deepmd_exception) {
} catch (const deepmd::deepmd_exception) {
aparam_nall = false;
}
} else {
Expand Down Expand Up @@ -1331,7 +1331,7 @@ void DeepPotModelDevi::init(const std::vector<std::string>& models,
ntypes = get_scalar<int>("descrpt_attr/ntypes");
try {
ntypes_spin = get_scalar<int>("spin_attr/ntypes_spin");
} catch (deepmd::deepmd_exception) {
} catch (const deepmd::deepmd_exception) {
ntypes_spin = 0;
}
dfparam = get_scalar<int>("fitting_attr/dfparam");
Expand All @@ -1345,7 +1345,7 @@ void DeepPotModelDevi::init(const std::vector<std::string>& models,
if (daparam > 0) {
try {
aparam_nall = get_scalar<bool>("fitting_attr/aparam_nall");
} catch (deepmd::deepmd_exception) {
} catch (const deepmd::deepmd_exception) {
aparam_nall = false;
}
} else {
Expand Down

0 comments on commit 0b4680e

Please sign in to comment.