Skip to content

Dev 2.1.2 - #40

Merged
xumi1993 merged 6 commits into
develfrom
dev-2.1.2
Sep 14, 2026
Merged

xumi1993 merged 6 commits into
develfrom
dev-2.1.2

Conversation

@xumi1993

Copy link
Copy Markdown
Member

No description provided.

@xumi1993
xumi1993 requested a lite review from Copilot September 14, 2026 07:50
@xumi1993
xumi1993 changed the base branch from main to devel September 14, 2026 07:50

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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() writes kernel_density_N independently of gradient snapshots, but this attribute is emitted only when it <= last_grad_iter. With the default steepest-descent configuration (output_in_process_model false), 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 thread src/preproc.cpp Outdated
Comment thread src/surfker/rlker.cpp
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];
Comment thread src/optimize.cpp Outdated
xumi1993 and others added 2 commits September 14, 2026 15:57
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>
@xumi1993
xumi1993 merged commit b1326b5 into devel Sep 14, 2026
20 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