Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
toxa81 committed Jul 21, 2023
1 parent 37e667d commit 7a01327
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/context/config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1439,16 +1439,16 @@ class config_t
dict_["/nlcg/tol"_json_pointer] = tol__;
}
/// NLCG processing unit
inline auto procssing_unit() const
inline auto processing_unit() const
{
return dict_.at("/nlcg/procssing_unit"_json_pointer).get<std::string>();
return dict_.at("/nlcg/processing_unit"_json_pointer).get<std::string>();
}
inline void procssing_unit(std::string procssing_unit__)
inline void processing_unit(std::string processing_unit__)
{
if (dict_.contains("locked")) {
throw std::runtime_error(locked_msg);
}
dict_["/nlcg/procssing_unit"_json_pointer] = procssing_unit__;
dict_["/nlcg/processing_unit"_json_pointer] = processing_unit__;
}
private:
nlohmann::json& dict_;
Expand Down
2 changes: 1 addition & 1 deletion src/context/input_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@
"default" : 1e-9,
"title" : "CG tolerance"
},
"procssing_unit": {
"processing_unit": {
"type": "string",
"default": "",
"enum": [
Expand Down

0 comments on commit 7a01327

Please sign in to comment.