Skip to content

FIX: guard dk at zero rmax and enforce GRT_MIN_NK in dynamic GF - #282

Merged
Dengda98 merged 1 commit into
mainfrom
dk
Aug 6, 2026
Merged

FIX: guard dk at zero rmax and enforce GRT_MIN_NK in dynamic GF#282
Dengda98 merged 1 commit into
mainfrom
dk

Conversation

@Dengda98

@Dengda98 Dengda98 commented Aug 6, 2026

Copy link
Copy Markdown
Owner

When the epicentral-distance array is all zeros, dk=2π/(L·rmax) previously divided by zero. Floor rmax by GRT_ZERO_DISTANCE when forming dk (so dk becomes large), then tighten it if nk < GRT_MIN_NK (renamed from GRT_MIN_STATIC_NK). Apply the same nk floor in the dynamic spectrum loop, and skip Length auto-scaling when rmax≈0.

@Dengda98
Dengda98 merged commit 2ea036d into main Aug 6, 2026
9 checks passed
@Dengda98
Dengda98 deleted the dk branch August 6, 2026 06:06
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.

1 participant