Skip to content

Commit

Permalink
Increased ANKSwitchTol (#218)
Browse files Browse the repository at this point in the history
* Increased ANKSwitchTol

* suppress terminal output for failed mesh test
  • Loading branch information
sseraj authored May 9, 2022
1 parent bee3f4b commit 38fc9cb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion adflow/pyADflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -4999,7 +4999,7 @@ def _getDefaultOptions():
# Approximate Newton-Krylov Parameters
"useANKSolver": [bool, True],
"ANKUseTurbDADI": [bool, True],
"ANKSwitchTol": [float, 1.0],
"ANKSwitchTol": [float, 1e3],
"ANKSubspaceSize": [int, -1],
"ANKMaxIter": [int, 40],
"ANKLinearSolveTol": [float, 0.05],
Expand Down
2 changes: 1 addition & 1 deletion doc/options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ ANKUseTurbDADI:
ANKSwitchTol:
desc: >
Relative convergence in the residual norm before we switch to the ANK solver.
A value of 1.0 means that the ANK solver is used from the first iteration.
For most cases, the default value should ensure that the ANK solver is used from the first iteration, even after design changes.
ANKSubspaceSize:
desc: >
Expand Down
3 changes: 3 additions & 0 deletions tests/reg_tests/test_solve.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ def test_solve(self):


class TestFailedMesh(unittest.TestCase):

N_PROCS = 1

def test_failed_mesh(self):
options = copy.copy(adflowDefOpts)
options.update(
Expand Down

0 comments on commit 38fc9cb

Please sign in to comment.