🌐 US-Proxy
class="logged-out env-production page-responsive" style="word-wrap: break-word;" >
Skip to content

Fix Diffusion(time=True) dropping the time derivative in darcy_physic… - #2023

Open
aaguadob wants to merge 2 commits into
NVIDIA:mainfrom
aaguadob:fix/darcy-diffusion-time
Open

aaguadob wants to merge 2 commits into
NVIDIA:mainfrom
aaguadob:fix/darcy-diffusion-time

Conversation

@aaguadob

Copy link
Copy Markdown

…s_informed example

Closes #2020.

PhysicsNeMo Pull Request

Description

Checklist

Dependencies

Review Process

All PRs are reviewed by the PhysicsNeMo team before merging.

Depending on which files are changed, GitHub may automatically assign a maintainer for review.

We are also testing AI-based code review tools (e.g., Greptile), which may add automated comments with a confidence score.
This score reflects the AI’s assessment of merge readiness and is not a qualitative judgment of your work, nor is
it an indication that the PR will be accepted / rejected.

AI-generated feedback should be reviewed critically for usefulness.
You are not required to respond to every AI comment, but they are intended to help both authors and reviewers.
Please react to Greptile comments with 👍 or 👎 to provide feedback on their accuracy.

…s_informed example

Closes NVIDIA#2020.

Signed-off-by: aaguadob <aimar.a1000@gmail.com>
@copy-pr-bot

copy-pr-bot Bot commented Sep 28, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@github-actions

Copy link
Copy Markdown
Contributor

CODEOWNERS review map

Current for commit 7fe997517f39. An approval covers every file listed for that owner; one owner is sufficient for shared files.

No CODEOWNER

  • CHANGELOG.md
  • examples/cfd/darcy_physics_informed/utils.py

Comment /codeowners-info to refresh.

@greptile-apps

greptile-apps Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Retrigger

[Medium risk] Fixes time derivative handling in a physics simulation example.

The PR appears safe to merge, though the corrected time-dependent path should have a regression test.

Findings

  1. P2 Time-dependent path lacks coverage ▶

Summary

The PR makes the example’s diffusion field depend on t when time=True, preserving the symbolic time derivative, and records the fix in the changelog.

  • The corrected path still needs a regression test.

Reviews (1) · Last reviewed commit: "Fix Diffusion(time=True) dropping the ti..."

Comment on lines +52 to +53
if time:
iv["t"] = Symbol("t")

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.

P2 Time-dependent path lacks coverage

Please add a test that checks Diffusion(time=True) retains a nonzero time derivative. Both existing example callers set time=False, so the behavior fixed here is not exercised and could silently regress.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Added in 66c888c: examples/cfd/darcy_physics_informed/tests/test_utils.py checks that Diffusion(time=True) keeps dT/dt (with T a function of t) and that time=False gives -div(k grad u) - Q.

Signed-off-by: aaguadob <aimar.a1000@gmail.com>

This branch has not been deployed

No deployments
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.

🐛[BUG]: Diffusion(time=True) in darcy_physics_informed/utils.py silently drops the time-derivative term

1 participant