You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Legacy output routines now only print trace species when there are trace species to print - #184
Adds if statement to ensure unitialized memory isn't printed when using legacy interface if there are no trace species. Fixes#183
Changes
Added if statement around trace specie names output to prevent writing trace_names if there were no trace species to all problems except the rocket problem. The rocket problem code already had this test in place.
Testing
100% pass test_main.py, ctest w/PFUNIT, pytest.
Ran bug reproducibility .inp files from #183; output is attached showing the behavior now replicates CEA 2 without extraneous output.
I reviewed the diff and built both this branch and the base commit (2f79a64) with gfortran on Windows. I ran small no-trace cases for tp, det, and shock (incd froz eql), using only to restrict the species. On the base build, all three print uninitialized bytes after "WERE LESS THAN … FOR ALL ASSIGNED CONDITIONS". With this PR they print blank lines, and the only difference between the two outputs is that one line.
On this branch, test_main.py passes 14/14, ctest (including pFUnit) passes 15/15, and pytest source/bind/python/tests passes 114/114.
A no-trace rocket case gave identical output before and after. The unguarded second rocket site, which the diff also guards, reads past the end of a zero-size array, which the guard prevents. The description says rocket already had this check, but that second site did not.
This branch has not been deployed
No deployments
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
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.
Summary
Adds if statement to ensure unitialized memory isn't printed when using legacy interface if there are no trace species. Fixes #183
Changes
Added if statement around trace specie names output to prevent writing trace_names if there were no trace species to all problems except the rocket problem. The rocket problem code already had this test in place.
Testing
100% pass test_main.py, ctest w/PFUNIT, pytest.
Ran bug reproducibility .inp files from #183; output is attached showing the behavior now replicates CEA 2 without extraneous output.
test_det.out.txt
test_shock.out.txt
test_tp.out.txt
Compatibility / Numerical behavior