Conversation
…pport, and refine kernel computations
…d Vsh support, and refine kernel computations" This reverts commit 6c6b5d3.
…simplify energy function calculations
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Critical derivative-chain and optimization-coordinate inconsistencies remain unresolved.
Get a fresh assessment by requesting another Copilot review.
Pull request overview
Updates SurfATT to version 2.1.2 with Rayleigh kernel changes, radial-anisotropy handling, and kernel-density output.
Changes:
- Adjusts Rayleigh derivative scaling.
- Adds radial kernel handling.
- Stores and exposes per-iteration kernel density.
- Bumps the project version.
File summaries
| File | Summary |
|---|---|
src/xdmf.cpp |
Adds kernel-density XDMF attributes; moderate, 1 vote: density visibility is incorrectly coupled to gradient output. |
src/surfker/rlker.cpp |
Updates Rayleigh derivative scaling; critical, 1 vote: derivative conventions remain inconsistent with optimization updates. |
src/preproc.cpp |
Adds radial-anisotropy kernel handling; critical, 2 votes: the radial chain-rule contributions are incomplete. |
src/optimize.cpp |
Revises optimizer derivative documentation; nit, 2 votes: the explanation contradicts the implementation. |
src/inversion.cpp |
Stores weighted kernel density per iteration. |
include/inversion.h |
Declares kernel-density storage support. |
CMakeLists.txt |
Bumps the version to 2.1.2. |
Review details
Suppressed comments (1)
src/xdmf.cpp:98
store_kernel_density()writeskernel_density_Nindependently of gradient snapshots, but this attribute is emitted only whenit <= last_grad_iter. With the default steepest-descent configuration (output_in_process_modelfalse), the HDF5 dataset is created but XDMF never references it; even when model output is enabled, density visibility is incorrectly coupled to gradient output. Emit the attribute based on the density dataset/iteration and update the XDMF after writing it.
if (IP.postproc().is_kden) {
out << attr("kernel_density", "kernel_density" + sfx);
}
- Files reviewed: 7/7 changed files
- Comments generated: 3
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+839
to
+841
| s.dcda[m] *= inv_ug_s0 / s.za[m]; | ||
| s.dcdb[m] *= (s.iwat[m] == 1) ? 0.0 : inv_ug_s0 / s.zb[m]; | ||
| s.dcdr[m] *= inv_ug_s0 / s.zrho[m]; |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.