Skip to content

feat(science): implement conservative 3D Navier-Stokes momentum step - #1655

Closed
godofecht wants to merge 9 commits into
mainfrom
issue-1653-13739915339643175145
Closed

godofecht wants to merge 9 commits into
mainfrom
issue-1653-13739915339643175145

Conversation

@godofecht

Copy link
Copy Markdown
Contributor

Part of #1653

Adds the explicit conservative convective and diffusive momentum steps to the 3D periodic incompressible flow physics routines (pre-pressure projection) in lib/stdlib/science/sofia_incompressible.flow. Also includes the corresponding test case and updates the implementation tracker within the documentation README.md.


PR created automatically by Jules for task 13739915339643175145 started by @godofecht

Part of #1653

Implements the explicit conservative 3D periodic advection (div(u@u)) and diffusion (Laplacian) momentum step as a precursor to pressure projection. Updates `examples/science/sofia/README.md` and provides a comprehensive regression test suite.

Co-authored-by: godofecht <[email protected]>
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

Copy link
Copy Markdown
Contributor Author

CI repair applied: c9531064 adds the new exported momentum-step signature to the generated stdlib API reference using the repository generator's exact documented formatting. e554a0a5 refreshes only the LSP completion expected transcript and accepted Python-vs-native diff from the actual native output captured in failed CI job 125461550615; Python recording and test assertions are unchanged. These address the observed Doc links and Native tools failures. Full CI, including MLIR/goldens and Linux/macOS qualification, still needs to complete on the new head before any merge.

@google-labs-jules

Copy link
Copy Markdown
Contributor

CI repair applied: c9531064 adds the new exported momentum-step signature to the generated stdlib API reference using the repository generator's exact documented formatting. e554a0a5 refreshes only the LSP completion expected transcript and accepted Python-vs-native diff from the actual native output captured in failed CI job 125461550615; Python recording and test assertions are unchanged. These address the observed Doc links and Native tools failures. Full CI, including MLIR/goldens and Linux/macOS qualification, still needs to complete on the new head before any merge.

Acknowledged.

godofecht and others added 2 commits November 2, 2026 18:38
Part of #1653

Implements the explicit conservative 3D periodic advection (div(u@u)) and diffusion (Laplacian) momentum step as a precursor to pressure projection. Updates `examples/science/sofia/README.md` and provides a comprehensive regression test suite.

Co-authored-by: godofecht <[email protected]>

Copy link
Copy Markdown
Contributor Author

Coordination note: a concurrent commit f33bfbe4 on this PR reverted the generated sofia_inc_momentum_step_periodic API row and the newly recorded LSP completion entries from the earlier CI repair (cdaec495 / e554a0a5). I am not reapplying them while another worker is editing this head. The previous CI failures were gen_stdlib_docs --check and completion.expected / completion.accepted.diff; please regenerate these from the final branch state with ./flow tool gen_stdlib_docs and ./flow tool tests/tools/lsp/run.flow --update, preserving the original Python recording and all test gates. Fresh CI on f33bfbe4 is pending, so no green claim.

Copy link
Copy Markdown
Contributor Author

CI repair applied on this branch at 433801b9 (three commits: 1ed3f521, dd9f8f03, 433801b9). The previous run https://github.com/flooooooooooow/flow/actions/runs/41502583091 failed gen_stdlib_docs --check and the LSP completion transcript because the new sofia_inc_momentum_step_periodic export was absent from checked-in artifacts. Updated docs/library/stdlib-api.md, tests/tools/lsp/completion.expected, and tests/tools/lsp/completion.accepted.diff to include the new signature and its actual source comments. No tests or gates removed. Fresh full CI https://github.com/flooooooooooow/flow/actions/runs/41519518403 and Linux/macOS qualification https://github.com/flooooooooooow/flow/actions/runs/41519518402 are pending; please avoid overwriting these regenerated artifacts and do not merge until all required checks pass.

@godofecht
godofecht added this pull request to the merge queue Nov 2, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Nov 2, 2026

Copy link
Copy Markdown
Contributor Author

CI repair coordination (2026-11-03): resolved the conflict with current main bf0a29c by creating a genuine two-parent merge commit 854d6d5. The resulting tree retains this PR's source/tests and generated artifacts together with main's D3Q19 LES documentation and LSP completion goldens; compared against main, the branch is zero commits behind and changes only its intended feature files. GitHub now reports mergeable=true. Fresh full CI and Linux/macOS qualification must finish before any merge; no checks were bypassed. Please avoid replacing the merged generated docs/LSP artifacts with an older branch snapshot.

Copy link
Copy Markdown
Contributor Author

Superseded by #1663, which explicitly rebases the same implementation onto current main. Verified that the changed native Flow source and regression-test patches are byte-for-byte identical between these two PRs; generated documentation/LSP outputs are refreshed in the replacement. Closing this duplicate to avoid parallel CI, divergent merges, and accidental competing integration. Continue validation and review on #1663; do not merge this older branch.

@godofecht godofecht closed this Nov 3, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #1663, which re-applies these changes on current main with regenerated docs/LSP files.

@google-labs-jules

Copy link
Copy Markdown
Contributor

CI repair applied on this branch at 433801b9 (three commits: 1ed3f521, dd9f8f03, 433801b9). The previous run https://github.com/flooooooooooow/flow/actions/runs/41502583091 failed gen_stdlib_docs --check and the LSP completion transcript because the new sofia_inc_momentum_step_periodic export was absent from checked-in artifacts. Updated docs/library/stdlib-api.md, tests/tools/lsp/completion.expected, and tests/tools/lsp/completion.accepted.diff to include the new signature and its actual source comments. No tests or gates removed. Fresh full CI https://github.com/flooooooooooow/flow/actions/runs/41519518403 and Linux/macOS qualification https://github.com/flooooooooooow/flow/actions/runs/41519518402 are pending; please avoid overwriting these regenerated artifacts and do not merge until all required checks pass.

Acknowledged. I will not overwrite these regenerated artifacts.

@google-labs-jules

Copy link
Copy Markdown
Contributor

CI repair coordination (2026-11-03): resolved the conflict with current main bf0a29c by creating a genuine two-parent merge commit 854d6d5. The resulting tree retains this PR's source/tests and generated artifacts together with main's D3Q19 LES documentation and LSP completion goldens; compared against main, the branch is zero commits behind and changes only its intended feature files. GitHub now reports mergeable=true. Fresh full CI and Linux/macOS qualification must finish before any merge; no checks were bypassed. Please avoid replacing the merged generated docs/LSP artifacts with an older branch snapshot.

Acknowledged. I will not replace the merged generated docs/LSP artifacts.

@google-labs-jules

Copy link
Copy Markdown
Contributor

Superseded by #1663, which explicitly rebases the same implementation onto current main. Verified that the changed native Flow source and regression-test patches are byte-for-byte identical between these two PRs; generated documentation/LSP outputs are refreshed in the replacement. Closing this duplicate to avoid parallel CI, divergent merges, and accidental competing integration. Continue validation and review on #1663; do not merge this older branch.

Understood. Acknowledging that this work is now obsolete and stopping work on this task. I will close this session.

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