-
Notifications
You must be signed in to change notification settings - Fork 109
Test with Probe #943
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Test with Probe #943
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨No code suggestions found for the PR. |
Did you make these golden files with '--generate' or with '--add-new-variables'? This feature should be compatible with '--add-new-variables' if it isn't, and the new golden files should be generated with '--add-new-variables' so that the existing golden data isn't changed, just appended to. |
I used --generate. I will try add-new-variables tonight. |
User description
Description
To test mfc probe output.
Fixes #455
Type of change
Please delete options that are not relevant.
Scope
If you cannot check the above box, please split your PR into multiple PRs that each have a common goal.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Provide instructions so we can reproduce.
Please also list any relevant details for your test configuration
Test Configuration:
Checklist
docs/
)examples/
that demonstrate my new feature performing as expected.They run to completion and demonstrate "interesting physics"
./mfc.sh format
before committing my codeIf your code changes any code source files (anything in
src/simulation
)To make sure the code is performing as expected on GPU devices, I have:
nvtx
ranges so that they can be identified in profiles./mfc.sh run XXXX --gpu -t simulation --nsys
, and have attached the output file (.nsys-rep
) and plain text results to this PR./mfc.sh run XXXX --gpu -t simulation --rsys --hip-trace
, and have attached the output file and plain text results to this PR.PR Type
Enhancement, Tests, Bug fix
Description
• Enhanced probe output functionality with MHD support and precision-dependent formatting
• Added automatic probe configuration for test cases based on dimensionality (1D, 2D, 3D)
• Implemented special handling for probe files in data packing by discarding time column
• Fixed Silo database function name from
DBADDIOPT
toDBADDIAOPT
• Updated extensive golden reference data across multiple test cases to include probe output files
• Added magnetic pressure computation and acceleration calculations for 2D simulations
• Improved probe positioning logic and default finite difference order settings
Changes walkthrough 📝
3 files
m_data_output.fpp
Enhanced probe output with MHD support and precision formatting
src/simulation/m_data_output.fpp
• Added MHD support to probe output by computing magnetic pressure and
passing it to pressure computation
• Implemented precision-dependent
formatting for probe output using dynamic format strings
• Fixed
chemistry variable initialization to occur within proper conditional
blocks
• Added acceleration computation for 2D simulations and
enhanced probe output formatting for different physics models
case.py
Automated probe setup for test case generation
toolchain/mfc/test/case.py
• Added automatic probe configuration for test cases based on
dimensionality
• Implemented probe positioning logic for 1D, 2D, and
3D simulations
• Added default finite difference order setting and
probe write enablement
pack.py
Enhanced data packing for probe output files
toolchain/mfc/packer/pack.py
• Added special handling for probe files in data packing by discarding
time column
• Modified data extraction logic to handle probe output
format differently from regular grid data
1 files
m_data_output.fpp
Fixed Silo database function name for option handling
src/post_process/m_data_output.fpp
• Fixed function name from
DBADDIOPT
toDBADDIAOPT
for Silo databaseoption handling
4 files
golden.txt
Updated golden reference data with probe outputs
tests/2F35A1FE/golden.txt
• Updated golden reference data with minor numerical precision changes
• Added new probe output data files to test expectations
golden.txt
Added probe data to golden reference
tests/AE9A7D73/golden.txt
• Added probe output data to golden reference file
golden.txt
Update golden test data with probe output files
tests/2A6136EF/golden.txt
• Minor numerical precision adjustments in several data files
(D/cons.3.00.000050.dat, D/cons.4.00.000050.dat,
D/prim.3.00.000050.dat)
• Addition of two new probe data files
(D/probe1_prim.dat and D/probe2_prim.dat) containing primitive
variable data
• Updated golden reference values to reflect probe
output testing functionality
golden.txt
Update golden test data with probe output files
tests/C79E1D3C/golden.txt
• Updated numerical values in
D/cons.3.00.000050.dat
line with minorprecision changes
• Updated numerical values in
D/cons.4.00.000050.dat
line with minor precision changes
• Updated numerical values in
D/prim.3.00.000050.dat
line with minorprecision changes
• Added two new probe data files:
D/probe1_prim.dat
and
D/probe2_prim.dat
with numerical output data101 files