Skip to content

Add micro-point support in interpolation process - #104

Draft
Leguark wants to merge 4 commits into
bordersfrom
micro
Draft

Leguark wants to merge 4 commits into
bordersfrom
micro

Conversation

@Leguark

@Leguark Leguark commented Sep 28, 2026

Copy link
Copy Markdown
Member

Introduced a new MicroPoints data structure and incorporated micro-point corrections into the interpolation framework. This includes gradient computation, anisotropy handling, and validation for authored points, along with warnings for unsupported or ignored configurations.

Introduced a new `MicroPoints` data structure and incorporated micro-point corrections into the interpolation framework. This includes gradient computation, anisotropy handling, and validation for authored points, along with warnings for unsupported or ignored configurations.

Leguark commented Sep 28, 2026

Copy link
Copy Markdown
Member Author

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

Refactored micro-point correction into a separate `MicroCorrection` class for modularity and maintainability. Replaced the earlier in-place configuration logic with stack-local `MicroCorrection` objects. Updated references, tests, and removed legacy micro-point settings. Improved evaluation performance by optimizing gradient computation and kernel handling.
Modularized micro-point handling by introducing stack-local configuration via `prepare_micro_points`. Extended support for authored micro-points in fault and non-fault stacks, adding validation, residual computation, and warnings for unsupported configurations. Enhanced evaluation flow by integrating grid, macro, and micro point structures, optimizing kernel compositions, and ensuring consistent coordinate layout across interpolation workflows. Updated documentation and adapted tests for new behaviors and configurations.
- Fixed NumPy-authored micro coordinates entering PyTorch evaluation, including CUDA and autograd.
- Removed the test-only correction hook from _evaluate_sys_eq(). Macro evaluators no longer depend on micro correction.
- Combined correction values and optional gradients into one evaluation pass.
- Centralized global ownership validation and unsupported-stack checks in preparation, removing duplicate checks from stack execution.
- Documented global versus stack-local surface indices and prepared query state.
- Moved prototype solve helpers into a test-only reference module and removed the unused macro-evaluation helper.
- Added transform, backend, early-validation, and multi-level mesh regression tests.
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