Skip to content

Commit

Permalink
Fix delta_1 and delta_2 for SRK of CPA
Browse files Browse the repository at this point in the history
Closes #80
  • Loading branch information
ianhbell committed Dec 14, 2023
1 parent 4bd577a commit 921277e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/teqp/models/CPA.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ class CPACubic {
case cubic_flag::PR:
{ delta_1 = 1 + sqrt(2); delta_2 = 1 - sqrt(2); break; }
case cubic_flag::SRK:
{ delta_1 = 0; delta_2 = 1; break; }
{ delta_1 = 1; delta_2 = 0; break; }
default:
throw std::invalid_argument("Bad cubic flag");
}
Expand Down

0 comments on commit 921277e

Please sign in to comment.