Skip to content

Commit

Permalink
Update src/dynamics/thermal/node.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Toshihiro Suzuki <93800108+suzuki-toshihir0@users.noreply.github.com>
  • Loading branch information
200km and suzuki-toshihir0 authored Oct 5, 2023
1 parent 642229c commit 0d6d0cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dynamics/thermal/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ void Node::AssertNodeParams(void) {
capacity_J_K_ = 0.0;
}
// alpha must be between 0 and 1
if (alpha_ < 0.0 && alpha_ > 1.0) {
if (alpha_ < 0.0 || alpha_ > 1.0) {
std::cerr << "[WARNING] node: alpha is over the range [0, 1]." << std::endl;
std::cerr << "The value is set as 0.0." << std::endl;
alpha_ = 0.0;
Expand Down

0 comments on commit 0d6d0cb

Please sign in to comment.