🔥 Remove divert() method, associated functions and tests.#3611
🔥 Remove divert() method, associated functions and tests.#3611timothy-nunn merged 11 commits intomainfrom
divert() method, associated functions and tests.#3611Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3611 +/- ##
==========================================
- Coverage 31.66% 31.43% -0.24%
==========================================
Files 86 86
Lines 20198 20096 -102
==========================================
- Hits 6396 6317 -79
+ Misses 13802 13779 -23 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
1d14a50 to
361b3f8
Compare
There was a problem hiding this comment.
Pull Request Overview
This PR removes the divert() method along with its associated functions and tests from the codebase. The changes include extensive removal of divertor-related tests, deletion of corresponding input variables in the configuration, and removal of an initialization routine for the divertor.
Reviewed Changes
Copilot reviewed 4 out of 17 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| tests/unit/test_divertor.py | Removed tests related to divert() and associated functions |
| process/input.py | Removed input variable definitions for divertor functionality |
| process/init.py | Removed initialization for divertor iteration variable 34 |
Files not reviewed (13)
- process/utilities/errorlist.json: Language not supported
- source/fortran/constraint_equations.f90: Language not supported
- source/fortran/constraint_variables.f90: Language not supported
- source/fortran/divertor_variables.f90: Language not supported
- source/fortran/iteration_variables.f90: Language not supported
- source/fortran/numerics.f90: Language not supported
- tests/integration/ref_dicts.json: Language not supported
- tests/regression/input_files/helias_5b.IN.DAT: Language not supported
- tests/regression/input_files/large_tokamak.IN.DAT: Language not supported
- tests/regression/input_files/large_tokamak_nof.IN.DAT: Language not supported
- tests/regression/input_files/large_tokamak_once_through.IN.DAT: Language not supported
- tests/regression/input_files/st_regression.IN.DAT: Language not supported
- tests/regression/input_files/stellarator_helias_once_through.IN.DAT: Language not supported
Comments suppressed due to low confidence (1)
tests/unit/test_divertor.py:21
- The test 'test_divtart' remains in the file after the removal of the divert() method and its associated functions. Please confirm that this test is still applicable or if it should be removed along with the other divertor tests.
def test_divtart(self, monkeypatch, divertor):
timothy-nunn
left a comment
There was a problem hiding this comment.
One question, then good2go
j-a-foster
left a comment
There was a problem hiding this comment.
Deleted variables look fine to me.
… to use Wade model
6fff7f2 to
5f6b654
Compare
This pull request includes a comprehensive set of changes focused on removing obsolete variables and constraints related to the divertor system, as well as updating error handling and initialization processes. The most important changes include the removal of specific variables and constraints, updates to error lists, and adjustments to initialization routines.
Removal of Obsolete Variables and Constraints:
process/input.py: Removed multipleInputVariableentries related to the divertor system, includingbpsout,c1div,c2div,c3div,c4div,c5div,c6div,delld,fdfs,fififi,frrp,ksic,omegan,rlenmax,xparain,zeffdiv, anddivdum.source/fortran/constraint_equations.f90: Deprecated constraint equation 22 and updated the corresponding subroutine to reflect this change.source/fortran/constraint_variables.f90: Removed thefdivcolvariable and its initialization.adas,bpsout,c1div,c2div,c3div,c4div,c5div,c6div,delld,dendiv,densin,divdum,fdfs,fhout,fififi,frrp,ksic,lamp,minstang,omegan,omlarg,ppdivr,ptpdiv,rlclolcn,rlenmax,tsep,xparain, andzeffdiv.Updates to Error Handling:
process/utilities/errorlist.json: Incremented the number of error types and added a new error message for the deprecated constraint equation 34.Adjustments to Initialization Routines:
source/fortran/iteration_variables.f90: Removed the initialization and setting routines for the obsolete iteration variable 34 (fdivcol) and updated related subroutines to reflect this change.source/fortran/numerics.f90: Updated the list of iteration variables to mark variable 34 as not used.Miscellaneous:
process/init.py: Removed the call to initialize the obsolete iteration variable 34.tests/integration/ref_dicts.json: Removed the obsoleteadasentry.Checklist
I confirm that I have completed the following checks: