Skip to content

[BUG FIX] Get elevation used bottom faces when BOTTOM_FREE_SURFACE=.true. & t0 assumed hdur is half duration even though USE_RICKER is true.#1869

Merged
danielpeter merged 1 commit into
SPECFEM:develfrom
lsawade:devel
May 12, 2026

Conversation

@lsawade
Copy link
Copy Markdown

@lsawade lsawade commented May 12, 2026

Elevation

When

BOTTOM_FREE_SURFACE             = .false.

the faces of the bottom elements are being prepended to the free surface elements. As a result the optimized get_elevation method that use free surface horizontal position, will check the bottom surfaces first. This fix skips those elements if BOTTOM_FREE_SURFACE = .false..

T0 for CMT+Ricker

This unrelated bug assumed that the CMTSOLUTION's half-duration is a indeed a half-duration, even though the

USE_RICKER_TIME_FUNCTION        = .true.

setting assumes it to be f0. As a result for very small f0 (big pulse width) the start time is very close to 0.0 instead of starting much earlier.
This PR fixes that by using the same t0 computation as the FORCESOLUTION's Ricker wavelet.

…ation for CMTSOLUTION when USE_RICKER is true.
@lsawade
Copy link
Copy Markdown
Author

lsawade commented May 12, 2026

FYI, @Rohit-Kakodkar, @icui

@codecov
Copy link
Copy Markdown

codecov Bot commented May 12, 2026

Codecov Report

❌ Patch coverage is 69.23077% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 40.79%. Comparing base (21e40fd) to head (4a038bb).

Files with missing lines Patch % Lines
src/specfem3D/get_cmt.f90 33.33% 2 Missing ⚠️
src/specfem3D/get_elevation.f90 80.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##            devel    #1869      +/-   ##
==========================================
- Coverage   40.79%   40.79%   -0.01%     
==========================================
  Files         276      276              
  Lines       65953    65963      +10     
  Branches    10577    10581       +4     
==========================================
+ Hits        26906    26910       +4     
- Misses      39033    39039       +6     
  Partials       14       14              
Flag Coverage Δ
coverage-testname- 40.79% <69.23%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@danielpeter danielpeter merged commit 09adfc1 into SPECFEM:devel May 12, 2026
54 checks passed
@danielpeter
Copy link
Copy Markdown
Member

thanks 🙏 Lucas!

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.

2 participants