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

[WIP] set Newton iteration maxIter to 50 #643

Closed

Conversation

chongchonghe
Copy link
Contributor

@chongchonghe chongchonghe commented Jun 10, 2024

Description

We don't need a high value for maxIter since the Newton-Raphson iteration converges fast under the new base variables. We should also minimizing the average/maximal iterations for good performance.

Checklist

Before this pull request can be reviewed, all of these tasks should be completed. Denote completed tasks with an x inside the square brackets [ ] in the Markdown source below:

  • I have added a description (see above).
  • I have added a link to any related issues see (see above).
  • I have read the Contributing Guide.
  • I have added tests for any new physics that this PR adds to the code.
  • I have tested this PR on my local computer and all tests pass.
  • I have manually triggered the GPU tests with the magic comment /azp run.
  • I have requested a reviewer for this PR.

@chongchonghe
Copy link
Contributor Author

/azp run

Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@BenWibking
Copy link
Collaborator

This is somewhat dangerous, since this assertion does not actually work when running on GPU:

AMREX_ALWAYS_ASSERT_WITH_MESSAGE(n < maxIter, "Newton-Raphson iteration failed to converge!");

See #543.

@chongchonghe
Copy link
Contributor Author

This is somewhat dangerous, since this assertion does not actually work when running on GPU:

AMREX_ALWAYS_ASSERT_WITH_MESSAGE(n < maxIter, "Newton-Raphson iteration failed to converge!");

See #543.

OK, I'll look into that when I get back to work next couple of weeks. I'll leave it here for now with a label "Do not merge".

@BenWibking
Copy link
Collaborator

This is somewhat dangerous, since this assertion does not actually work when running on GPU:

AMREX_ALWAYS_ASSERT_WITH_MESSAGE(n < maxIter, "Newton-Raphson iteration failed to converge!");

See #543.

OK, I'll look into that when I get back to work next couple of weeks. I'll leave it here for now with a label "Do not merge".

@chongchonghe Can you take a look at this again? I think this is the last thing before the radiation code can be used for production sims.

@chongchonghe chongchonghe changed the title set Newton iteration maxIter to 50 [WIP] set Newton iteration maxIter to 50 Aug 6, 2024
@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Aug 6, 2024
@chongchonghe chongchonghe marked this pull request as draft August 6, 2024 11:02
auto-merge was automatically disabled August 6, 2024 11:02

Pull request was converted to draft

@chongchonghe
Copy link
Contributor Author

Completed in #716

@chongchonghe chongchonghe deleted the chongchong/set_maxIter_to_lower_value branch September 5, 2024 23:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do not merge size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants