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

fix: Bug with elastic wave propagator at higher orders #3294

Merged
merged 12 commits into from
Sep 2, 2024

Conversation

sframba
Copy link
Contributor

@sframba sframba commented Aug 21, 2024

This PR solves a bug introduced by PR #3202 in the case of the elastic solver at higher orders. The standard calcGradN method of Gauss-Lobatto elements requires the coordinates of all the nodes in the mesh element. These nodes are no longer required for point location due to #3202, so only the mesh corners are passed to PrecomputeSourceAndReceiverTerm. However in the case of the elastic solver at higher orders, this interferes with calcGradN.
To correct this, a specialized version of the method, calcGradNWithCorners, is introduced and used. This method only requires the mesh corners instead of all the element nodes, fixind the issue.

resolves #3311

@sframba sframba self-assigned this Aug 21, 2024
@sframba sframba added type: bug Something isn't working ci: run CUDA builds Allows to triggers (costly) CUDA jobs flag: requires rebaseline Requires rebaseline branch in integratedTests ci: run integrated tests Allows to run the integrated tests in GEOS CI labels Aug 21, 2024
@sframba sframba changed the title Fix a bug with elastic wave propagator at higher orders fix: fix a bug with elastic wave propagator at higher orders Aug 21, 2024
Copy link

codecov bot commented Aug 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 56.58%. Comparing base (5f6d710) to head (516975e).
Report is 87 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #3294      +/-   ##
===========================================
+ Coverage    56.56%   56.58%   +0.01%     
===========================================
  Files         1064     1064              
  Lines        89689    89715      +26     
===========================================
+ Hits         50737    50763      +26     
  Misses       38952    38952              

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

@sframba sframba added flag: no rebaseline Does not require rebaseline and removed flag: requires rebaseline Requires rebaseline branch in integratedTests labels Aug 22, 2024
@sframba sframba changed the title fix: fix a bug with elastic wave propagator at higher orders fix: Bug with elastic wave propagator at higher orders Aug 22, 2024
@sframba
Copy link
Contributor Author

sframba commented Aug 27, 2024

@rrsettgast @castelletto1 @andrea-borio @CusiniM can any of you please give a quick review? This PR only impacts the wave propagators. Thanks!

@acitrain
Copy link
Contributor

acitrain commented Aug 29, 2024

@rrsettgast I think this PR is also fixing issue #3311, one of the main change inside this PR is the line you mentionned with the use of an other (and correct) elemToNodes map

Update: I tried to run the test cases mentionned on the issue (which indeed crash on develop) using this branch and it don't throw any error, so I think that this PR indeed fix the issue

@rrsettgast rrsettgast merged commit a38d1ee into develop Sep 2, 2024
22 checks passed
@rrsettgast rrsettgast deleted the bugfix/elasticHOsrcBug branch September 2, 2024 01:10
rrsettgast pushed a commit that referenced this pull request Sep 17, 2024
* fixed a bug due to PR 3202 concerning the elastic solver at higher orders

* added corresponding compute jacobian with corners

* added correction for ghost nodes

* Re-enable wave tests

---------

Co-authored-by: acitrain <[email protected]>
rrsettgast pushed a commit that referenced this pull request Sep 17, 2024
* fixed a bug due to PR 3202 concerning the elastic solver at higher orders

* added corresponding compute jacobian with corners

* added correction for ghost nodes

* Re-enable wave tests

---------

Co-authored-by: acitrain <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci: run CUDA builds Allows to triggers (costly) CUDA jobs ci: run integrated tests Allows to run the integrated tests in GEOS CI flag: no rebaseline Does not require rebaseline type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Busted array bounds in wave solvers
3 participants