Skip to content

Commit d4ac9f4

Browse files
committed
cs_safe: Add @assert for checking convergence during SR20 work
1 parent 0da6f9a commit d4ac9f4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/CCBlade.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,8 @@ function solve(rotor, section, op; npts=10, forcebackwardsearch=false, epsilon_e
505505
success, phiL, phiU = firstbracket(phi -> residual(phi, xv, pv), phimin, phimax, npts, backwardsearch)
506506

507507
function solve(x, p)
508-
phistar, _ = FLOWMath.brent(phi -> residual(phi, x, p), phiL, phiU; atol, rtol)
508+
phistar, outputs = FLOWMath.brent(phi -> residual(phi, x, p), phiL, phiU; atol, rtol)
509+
@assert outputs.flag == "CONVERGED"
509510
return phistar
510511
end
511512

0 commit comments

Comments
 (0)