Skip to content

Commit 8aaa662

Browse files
committed
switch to the arrayindexer norm
1 parent 3cbbfc1 commit 8aaa662

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

multigrid/MG.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ def solve(self, rtol=1.e-11):
672672
soln = self.grids[self.nlevels-1]
673673

674674
diff = (soln.get_var("v") - old_phi)/(soln.get_var("v") + self.small)
675-
relative_error = soln.grid.norm(diff)
675+
relative_error = diff.norm()
676676

677677
old_phi = soln.get_var("v").copy()
678678

0 commit comments

Comments
 (0)