Skip to content

Commit

Permalink
Use new API in test
Browse files Browse the repository at this point in the history
  • Loading branch information
jwallwork23 committed Aug 29, 2024
1 parent 92fd546 commit a814b90
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/test_monge_ampere.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,8 @@ def test_coordinate_update(self):
coords.interpolate(as_vector([x + 1, y]))
mover = MongeAmpereMover(Mesh(coords), const_monitor)
mover._grad_phi.interpolate(as_vector([1, 0]))
mover._update_coordinates()
mover._update_physical_coordinates()
mover.to_physical_coordinates()
self.assertAlmostEqual(errornorm(mover.grad_phi, mover._grad_phi), 0)
mover.xi.dat.data[:, 0] += 1
self.assertAlmostEqual(errornorm(mover.x, mover.xi), 0)

0 comments on commit a814b90

Please sign in to comment.