Closed eytanadler closed 8 months ago
Can you also update the failed mesh solution counter?
Yes chef!
Attention: Patch coverage is 80.00000%
with 1 lines
in your changes are missing coverage. Please review.
Project coverage is 41.49%. Comparing base (
65c0fc5
) to head (1922c66
).
Files | Patch % | Lines |
---|---|---|
adflow/pyADflow.py | 80.00% | 1 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@eirikurj if you're ok mixing PRs, I'm happy to make these minor changes in #343.
In general I do prefer a separate PR, even if these are just small changes. But since #343 is small as well, I guess its fine.
Purpose
In the existing version, the output file numbering is hard coded to be three digits long (e.g. 003). If there are more than 999 output files, the number is extended to four digits. This messes with file sorting in some cases because the 1001th case can come between the 101st and 102nd, depending on the sorting algorithm.
This PR adds a new option,
writeSolutionDigits
, to manually specify the number of digits in the output filename to get around this sorting problem.Expected time until merged
A few days
Type of change
Testing
Run a case that writes out solution files. Try changing the
writeSolutionDigits
option to something other than the default of 3 and observe that the output filenames change.Checklist
flake8
andblack
to make sure the Python code adheres to PEP-8 and is consistently formattedfprettify
or C/C++ code withclang-format
as applicable