Skip to content

Enhance HDF5 loading, kernel logic, and integration tests - #44

Merged
HouseJaay merged 4 commits into
mainfrom
devel
Nov 10, 2026
Merged

HouseJaay merged 4 commits into
mainfrom
devel

Conversation

@xumi1993

@xumi1993 xumi1993 commented Nov 3, 2026

Copy link
Copy Markdown
Member

This pull request introduces several important changes to both the workflow configuration and the core inversion/optimization logic, primarily to improve robustness, ensure correct application of parameter chain rules, and clarify the mathematical implementation. The changes affect how kernels are combined, how gradients and descent directions are handled, and how model loading errors are managed.

Kernel Combination and Chain Rule Application:

  • Updated the kernel combination in preproc::combine_kernels to consistently apply the correct physical model values (e.g., vs, vp, rho) as multiplicative factors, ensuring that the kernels represent derivatives with respect to the logarithm of the parameters, as required for multiplicative updates. This affects all wave types and ensures correct scaling and chain rule application throughout the kernel computation. [1] [2] [3] [4]

Optimization and Gradient Handling:

  • Simplified the computation of the descent direction and kernel dot products in optimize.cpp by removing redundant per-parameter chain rule logic. The code now assumes that combine_kernels() already returns the appropriate derivatives, and the descent step is consistently applied as x(alpha) = x0 - alpha*d. [1] [2] [3]

Model Loading Robustness:

  • Improved the 3D model loading logic to handle missing vsv datasets gracefully by falling back to vs and logging a message, ensuring radial anisotropy models remain robust to incomplete HDF5 files.
  • Added explicit error handling for HDF5 exceptions that do not derive from std::exception, preventing silent failures during model loading.

Workflow Configuration:

  • Updated the GitHub Actions test workflow to set OpenMPI environment variables, bypassing problematic UCX transports on Azure runners and ensuring reliable test execution.

…' is absent for radial anisotropy and improve error handling for H5 exceptions
…arameters for radial anisotropy and enhance sensitivity calculations
Enhance HDF5 loading and refactor kernel combination logic
@xumi1993
xumi1993 requested a review from HouseJaay November 3, 2026 07:42
@HouseJaay
HouseJaay merged commit de6c409 into main Nov 10, 2026
40 checks passed
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