Skip to content

Commit

Permalink
Use accent consistently
Browse files Browse the repository at this point in the history
  • Loading branch information
jwallwork23 committed Aug 26, 2024
1 parent 941d7a8 commit bb3a780
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions movement/monge_ampere.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def MongeAmpereMover(mesh, monitor_function, method="relaxation", **kwargs):
:type phi_init: :class:`firedrake.function.Function`
:kwarg sigma_init: initial guess for the Hessian
:type sigma_init: :class:`firedrake.function.Function`
:return: the Monge-Ampere Mover object
:return: the Monge-Ampère Mover object
:rtype: :class:`MongeAmpereMover_Relaxation` or
:class:`MongeAmpereMover_QuasiNewton`
"""
Expand All @@ -67,7 +67,7 @@ def MongeAmpereMover(mesh, monitor_function, method="relaxation", **kwargs):
class MongeAmpereMover_Base(PrimeMover, metaclass=abc.ABCMeta):
"""
Base class for mesh movers based on the solution
of Monge-Ampere type equations.
of Monge-Ampère type equations.
"""

def __init__(self, mesh, monitor_function, **kwargs):
Expand Down Expand Up @@ -289,7 +289,7 @@ def l2_projector(self):

class MongeAmpereMover_Relaxation(MongeAmpereMover_Base):
r"""
The elliptic Monge-Ampere equation is solved in a parabolised form using a
The elliptic Monge-Ampère equation is solved in a parabolised form using a
pseudo-time relaxation,
.. math::
Expand Down Expand Up @@ -449,7 +449,7 @@ def move(self):

class MongeAmpereMover_QuasiNewton(MongeAmpereMover_Base):
r"""
The elliptic Monge-Ampere equation is solved using a quasi-Newton method (see
The elliptic Monge-Ampère equation is solved using a quasi-Newton method (see
:cite:`MCB:18` for details).
"""

Expand Down
16 changes: 8 additions & 8 deletions test/test_monge_ampere.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
class BaseClasses:
class TestMongeAmpere(unittest.TestCase):
"""
Base class for Monge-ampere unit tests.
Base class for Monge-Ampère unit tests.
"""

def mesh(self, dim=1, n=10, periodic=False):
Expand All @@ -34,7 +34,7 @@ def dummy_monitor(self):

class TestExceptions(BaseClasses.TestMongeAmpere):
"""
Unit tests for exceptions raised by Monge-Ampere movers.
Unit tests for exceptions raised by Monge-Ampère movers.
"""

def test_method_valueerror(self):
Expand Down Expand Up @@ -142,7 +142,7 @@ def test_periodic_plex_valueerror(self):

class TestMonitor(BaseClasses.TestMongeAmpere):
"""
Unit tests for monitor functions used by Monge-Ampere movers.
Unit tests for monitor functions used by Monge-Ampère movers.
"""

@parameterized.expand(
Expand Down Expand Up @@ -205,7 +205,7 @@ def test_change_monitor(self, dim, method):

class TestBCs(BaseClasses.TestMongeAmpere):
"""
Unit tests for boundary conditions of Monge-Ampere movers.
Unit tests for boundary conditions of Monge-Ampère movers.
"""

def _test_boundary_preservation(self, mesh, method, fixed_boundaries):
Expand Down Expand Up @@ -246,7 +246,7 @@ def _test_boundary_preservation(self, mesh, method, fixed_boundaries):
def test_periodic(self, dim, method):
"""
Test that periodic unit domains are not given boundary conditions by the
Monge-Ampere movers.
Monge-Ampère movers.
"""
mesh = self.mesh(dim=dim, periodic=True)
volume = assemble(Constant(1.0) * dx(domain=mesh))
Expand Down Expand Up @@ -282,7 +282,7 @@ def test_periodic(self, dim, method):
)
def test_boundary_preservation_axis_aligned(self, dim, method, fixed_boundaries):
"""
Test that boundaries of unit domains are preserved by the Monge-Ampere movers.
Test that boundaries of unit domains are preserved by the Monge-Ampère movers.
"""
mesh = self.mesh(dim=dim)
volume = assemble(Constant(1.0) * dx(domain=mesh))
Expand Down Expand Up @@ -317,7 +317,7 @@ def test_boundary_preservation_non_axis_aligned(
):
"""
Test that boundaries of rotated unit domains are preserved by the
Monge-Ampere movers.
Monge-Ampère movers.
"""
mesh = self.mesh(dim=dim)
volume = assemble(Constant(1.0) * dx(domain=mesh))
Expand Down Expand Up @@ -379,7 +379,7 @@ def test_boundary_preservation_non_axis_aligned(

class TestMisc(BaseClasses.TestMongeAmpere):
"""
Unit tests for other misc. functionality of Monge-Ampere movers.
Unit tests for other misc. functionality of Monge-Ampère movers.
"""

@parameterized.expand(
Expand Down

0 comments on commit bb3a780

Please sign in to comment.