lululxvi / deepxde

A library for scientific machine learning and physics-informed learning
https://deepxde.readthedocs.io
GNU Lesser General Public License v2.1
2.47k stars 712 forks source link

PDE error evaluated on bc points in PDE.losses but not used by following codes #1756

Open mynanshan opened 1 month ago

mynanshan commented 1 month ago

https://github.com/lululxvi/deepxde/blob/10ec4e5f4c91a27229b6b5bba32c6c58fc14bf90/deepxde/data/pde.py#L168

I am just wondering why the PDE loss f is computed on the full input array while its f[:bcs_start[-1]] part is not used. Should it be optimized by just passing the part of the inputs to PDE.losses?