physicsnemo icon indicating copy to clipboard operation
physicsnemo copied to clipboard

Fixed indexing error for modulus loss function

Open fresleven opened this issue 1 year ago • 1 comments

Modulus Pull Request

Description

I forgot to include a commit when pushing the MHD example, which was also supposed to fixe the SWE PINO indexing incorrectly. This is the updated version

https://github.com/NVIDIA/modulus/pull/338#issuecomment-2094897687

Checklist

  • [ ] I am familiar with the Contributing Guidelines.
  • [ ] New or existing tests cover these changes.
  • [ ] The documentation is up to date with these changes.
  • [ ] The CHANGELOG.md is up to date with these changes.
  • [ ] An issue is linked to this pull request.

Dependencies

fresleven avatar May 05 '24 19:05 fresleven

/blossom-ci

mnabian avatar May 10 '24 21:05 mnabian

/blossom-ci

NickGeneva avatar May 28 '24 18:05 NickGeneva

Instead cropping we should consider padding @ktangsali

We should pad the repo with a reflection boundary so we can compute edge derivatives. Makes the domain periodic iirc so the calculation is better.

See: https://github.com/NVIDIA/modulus-sym/blob/main/examples/darcy/darcy_PINO.py#L95

NickGeneva avatar May 30 '24 01:05 NickGeneva

Merged here: https://github.com/NVIDIA/modulus/pull/545

Thanks for the patch.

NickGeneva avatar Jun 07 '24 19:06 NickGeneva