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

Addresses issue when running Samurai-TR #120

Open
wants to merge 1 commit into
base: thermo_asap
Choose a base branch
from
Open

Conversation

johnmauff
Copy link
Collaborator

This PR addresses an issue in the construction of the observation vector that was creating non-checkboard solutions. It also updates the output of Samurai-WIND and uses the correct convergence criterion.

Copy link

codecov bot commented Dec 12, 2024

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 32.22%. Comparing base (c9a6610) to head (6769344).

Files with missing lines Patch % Lines
src/VarDriver3D.cpp 0.00% 1 Missing ⚠️
Additional details and impacted files
@@               Coverage Diff               @@
##           thermo_asap     #120      +/-   ##
===============================================
+ Coverage        32.21%   32.22%   +0.01%     
===============================================
  Files               53       53              
  Lines            18406    18396      -10     
===============================================
  Hits              5929     5929              
+ Misses           12477    12467      -10     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@sjsprecious sjsprecious left a comment

Choose a reason for hiding this comment

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

Thanks @johnmauff for fixing the numVars issue.

Besides one minor question, I am curious about the output of your new Beltrami run with these changes. Does the residual / iteration count remain the same?

@@ -47,7 +47,7 @@ set(SOLVER_CG_EPSILON 1.0e-18)
set(SOLVER_CG_BETA_TYPE 2)

# type of convergenve for Samurai CG(1 = ~step size(orig), 2 = ||g(X)||/||g(X0)||)
set(SOLVER_CG_CONV_TYPE 1)
set(SOLVER_CG_CONV_TYPE 2)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is there a reason to change the convergence type here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The previous setting of convergence type is the original value before the code was modified by ASAP. I don't know how it got set to 1 but the more numerical proper value is setting to be 2. Allison kept the old option in there but it is really not numerically correct. I suspect that changing this will modify iteration count, though I have not tested it yet.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Thanks for the clarification. Since the SOLVER_SAMURAI is currently set to TN solver, I assume this change won't affect the results at all unless we change the solver type?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good point, I missed that this only applies to the CG solver. Now I understand why it was set to 1 originally.

Copy link
Collaborator

@jcdehart jcdehart left a comment

Choose a reason for hiding this comment

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

From the scientific side, Michael and I had also identified numVars as a potential source of error, so 7 should be correct.
The new updated sounding file is correct.
I'm less knowledgeable about the SOLVER_CG_CONV_TYPE variable requirement, so I don't feel comfortable weighing in on that change.

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.

3 participants