Skip to content

Conversation

@bd713
Copy link

@bd713 bd713 commented Jul 3, 2025

This PR introduces a comprehensive suite of Python utilities for running and validating gravity simulations using GEOS (see corresponding GEOS PR). These tools support inversion workflows, ensure correctness of forward and adjoint implementations, and provide reproducible testing.

The PR includes:

  • GravitySolver.py
    Extends the base Solver class with gravity-specific functionality, enabling modeling of gravity responses from density models.
  • GravityLinearOpSolver.py
    A SciPy-compatible LinearOperator wrapper around the GEOS GravitySolver.
    Supports forward modeling, adjoint modeling, and loss/gradient computation for optimization and inversion workflows.
  • InversionUtils.py
    Utility functions for inversion workflows, including:
    • computeResidual, computeL2Loss
    • gradientTest (Taylor expansion validation)
    • adjointTest (inner product symmetry check)

DENEL Bertrand added 2 commits July 2, 2025 20:06
@bd713 bd713 requested a review from alexbenedicto July 3, 2025 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants