Skip to content

Commit 1a05f38

Browse files
committed
Minor fix
1 parent abb8718 commit 1a05f38

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

pina/callback/refinement/refinement_interface.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,10 @@ def per_point_residual(self, conditions_name=None):
9090
tot_loss.append(torch.abs(target))
9191
return torch.vstack(tot_loss).tensor.mean(), res_loss
9292

93-
def _compute_residual(self, pts, equation):
94-
pts.requires_grad_(True)
95-
pts.retain_grad()
96-
return equation.residual(pts, self.solver.forward(pts))
93+
def _compute_residual(self, points, equation):
94+
points.requires_grad_(True)
95+
points.retain_grad()
96+
return equation.residual(points, self.solver.forward(points))
9797

9898
@abstractmethod
9999
def sample(self, condition):

0 commit comments

Comments
 (0)