Skip to content

Commit

Permalink
delete duplicated code
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerry-Jzy committed Dec 15, 2024
1 parent 45fecb5 commit cf076d9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion deepxde/data/pde_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,6 @@ def forward_call(trunk_input):
f = self.pde.pde(inputs[1], (outputs, forward_call), model.net.auxiliary_vars)
if not isinstance(f, (list, tuple)):
f = [f]
bcs_start = np.cumsum([0] + self.pde.num_bcs)
error_f = [fi[:, bcs_start[-1]:] for fi in f]
losses = [loss_fn(bkd.zeros_like(error), error) for error in error_f] # noqa
# BC
Expand Down

0 comments on commit cf076d9

Please sign in to comment.