PhreeqcEOS inherits from Phreeqc2026EOS#351
Conversation
…qcEOS inherits from NativeEOS into PhreeqcEOS itself
|
EDIT: A further change has been made here, where EOS <- IdealEOS Note that what prompted this initially:
I guess you meant effectively:
We can only calls methods that are "up" the chain, and cannot easily remove any classes in the future that have any descendants, so this makes it easy going forward. |
… are identical). PhreeqcEOS has its own _destroy_ppsol (identical to NativeEOS but differs slightly from Phreeqc2026EOS).
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #351 +/- ##
==========================================
- Coverage 86.31% 85.36% -0.96%
==========================================
Files 14 14
Lines 1856 1858 +2
Branches 322 322
==========================================
- Hits 1602 1586 -16
- Misses 208 226 +18
Partials 46 46 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This is to address the concern in issue #329:
To do this, the class hierarchy needs to be tweaked so that
PhreeqcEOSnow descends fromPhreeqc2026EOS(and thus doesn't need its own.equilibrate()). The progression of commits should make this clear.This means a temporary increase in code volume a bit, because
NativeEOSandPhreeqcEOSwhich are now in different branches of the class hierarchy might do similar things for certain methods, but hopefully this is not a concern sincePhreeqcEOSwill go away.