Fix Stellarator regression failures #4406
Merged
Merged
Conversation
chris-ashe
requested changes
Jul 2, 2026
| eden_plasma_electrons_thermal_vol_avg / t_electron_energy_confinement | ||
| ) / 1e6 # Convert from W/m³ to MW/m³ | ||
|
|
||
| # import ipdb |
|
|
||
| # import ipdb | ||
|
|
||
| # ipdb.set_trace() |
ae83824 to
bc897ec
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4406 +/- ##
==========================================
- Coverage 48.83% 48.82% -0.01%
==========================================
Files 151 151
Lines 29397 29405 +8
==========================================
+ Hits 14356 14358 +2
- Misses 15041 15047 +6 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
chris-ashe
approved these changes
Jul 2, 2026
chris-ashe
approved these changes
Jul 2, 2026
clmould
approved these changes
Jul 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reverts constraint 17 to pre-#4299.
The issue is that constraint 17 used to be formatted as
PROCESS/process/core/solver/constraints.py
Lines 594 to 605 in a68bb7f
Importantly, it used
pden_plasma_rad_mw. Now, the constraint usesf_p_plasma_separatrix_radwhich is calculated asPROCESS/process/models/physics/physics.py
Lines 1037 to 1042 in 024a2f2
However this uses
p_plasma_rad_mwwhich also includes the SOL radiationPROCESS/process/models/stellarator/stellarator.py
Line 2170 in a68bb7f
which is never accounted for in pden_plasma_rad_mw. This changed the constraint, making the problem harder to solve, and led to constant failures when running the
stellarator-heliastest.The diffs in the
stellarator-heliastest should revert it back to this file.Thanks @clmould for identifying constraint 17 was the problem!