Skip to content
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

Increased ANKSwitchTol #218

Merged
merged 2 commits into from
May 9, 2022
Merged

Increased ANKSwitchTol #218

merged 2 commits into from
May 9, 2022

Conversation

sseraj
Copy link
Collaborator

@sseraj sseraj commented May 9, 2022

Purpose

As discussed in the maintenance meeting, I increased ANKSwitchTol such that we are practically guaranteed to start with ANK for all cases. A switch tolerance of 1.0 will still use the smoothers when design changes increase the residual above the reference, or even on the first call in some cases as @nwu63 found (probably due to floating point precision).

Expected time until merged

1-2 days

Type of change

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (non-backwards-compatible fix or feature)
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no API changes)
  • Documentation update
  • Maintenance update
  • Other (please describe)

Testing

Checklist

  • I have run flake8 and black to make sure the code adheres to PEP-8 and is consistently formatted
  • I have run unit and regression tests which pass locally with my changes
  • I have added new tests that prove my fix is effective or that my feature works
  • I have added necessary documentation

@sseraj sseraj requested a review from a team as a code owner May 9, 2022 14:36
@sseraj sseraj requested review from joanibal and ArshSaja May 9, 2022 14:36
@sseraj sseraj changed the title Ankswitchtol Increased ANKSwitchTol May 9, 2022
@@ -124,6 +124,9 @@ def test_solve(self):


class TestFailedMesh(unittest.TestCase):

N_PROCS = 1
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just FYI that this is already the default in testflo, but I guess this is more explicit.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think N_PROCS = 1 will run with MPI but with one processor. The test in the terminal has (mpi) before the path and no other terminal output is printed. I made this change to avoid having the ADflow header printed out during the tests.

@codecov
Copy link

codecov bot commented May 9, 2022

Codecov Report

Merging #218 (482cc40) into main (bee3f4b) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #218   +/-   ##
=======================================
  Coverage   40.62%   40.62%           
=======================================
  Files          13       13           
  Lines        3769     3769           
=======================================
  Hits         1531     1531           
  Misses       2238     2238           
Impacted Files Coverage Δ
adflow/pyADflow.py 67.45% <ø> (ø)

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

@ArshSaja ArshSaja merged commit 38fc9cb into main May 9, 2022
@ArshSaja ArshSaja deleted the ankswitchtol branch May 9, 2022 15:40
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.

4 participants