Skip to content

Nan checks and better discrete adjoint default options#1105

Merged
pcarruscag merged 6 commits intodevelopfrom
nan_checks_better_defaults
Nov 18, 2020
Merged

Nan checks and better discrete adjoint default options#1105
pcarruscag merged 6 commits intodevelopfrom
nan_checks_better_defaults

Conversation

@pcarruscag
Copy link
Member

Proposed Changes

Check for Nan in the monitored values of COutput (was already done for time domain).
For SU2_CFD_AD and SU2_DOT_AD the default MATH_PROBLEM becomes DISCRETE_ADJOINT
When the MATH_PROBLEM is DISCRETE_ADJOINT the linear solver and preconditioner of primal solvers is made the same as the DISCADJ_** ones, i.e. LINEAR_SOLVER and LINEAR_SOLVER_PREC are ignored (see why I think it makes sense in #942, and let me know if you think it doesn't make sense).

Related Work

#942

PR Checklist

  • I am submitting my contribution to the develop branch.
  • My contribution generates no new compiler warnings (try with the '-Wall -Wextra -Wno-unused-parameter -Wno-empty-body' compiler flags, or simply --warnlevel=2 when using meson).
  • My contribution is commented and consistent with SU2 style.
  • I have added a test case that demonstrates my contribution, if necessary.
  • I have updated appropriate documentation (Tutorials, Docs Page, config_template.cpp) , if necessary.

Copy link
Contributor

@oleburghardt oleburghardt left a comment

Choose a reason for hiding this comment

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

Looks good to me, give it a go on Wednesday.

I've seen some nans in forward AD mode recently (for maxHF), maybe this helps to not always ignore them..

@pcarruscag
Copy link
Member Author

Thank you both.
@oleburghardt this will only stop the calculations for values used for monitoring, e.g. you would need a cauchy criteria on maxHF.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants