Skip to content

Add impurity_right_bc to EdgeModelOutputs and decouple _update_impurities from Extended Lengyel. - #2474

Merged
copybara-service[bot] merged 1 commit into
mainfrom
test_982421473
Sep 28, 2026
Merged

copybara-service[bot] merged 1 commit into
mainfrom
test_982421473

Conversation

@copybara-service

Copy link
Copy Markdown

Add impurity_right_bc to EdgeModelOutputs and decouple _update_impurities from Extended Lengyel.

Updating core impurity boundary conditions previously required updaters.py to inspect Extended Lengyel enums and recalculate enrichment scaling factors, preventing generic substitution with alternative edge models.

Add impurity_right_bc to EdgeModelOutputs in torax/_src/edge/base.py. Compute boundary conditions directly within _build_extended_lengyel_outputs for seeded impurities and edge-sourced fixed impurities. Simplify _update_impurities in updaters.py to consume edge_outputs.impurity_right_bc directly, removing model-specific scaling factor calculations.

@copybara-service
copybara-service Bot force-pushed the test_982421473 branch 3 times, most recently from deeb623 to 379b3e8 Compare September 28, 2026 11:41
…ties from Extended Lengyel.

Updating core impurity boundary conditions previously required `updaters.py` to inspect Extended Lengyel enums and recalculate enrichment scaling factors, preventing generic substitution with alternative edge models.

Add `impurity_right_bc` to `EdgeModelOutputs` in `torax/_src/edge/base.py`. Compute boundary conditions directly within `_build_extended_lengyel_outputs` for seeded impurities and edge-sourced fixed impurities. Simplify `_update_impurities` in `updaters.py` to consume `edge_outputs.impurity_right_bc` directly, removing model-specific scaling factor calculations.

PiperOrigin-RevId: 989560797
@copybara-service
copybara-service Bot merged commit 2e6fb6b into main Sep 28, 2026
3 checks passed
@copybara-service
copybara-service Bot deleted the test_982421473 branch September 28, 2026 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant