Skip to content

Commit

Permalink
cover normalization of ft surface_rzfourier
Browse files Browse the repository at this point in the history
  • Loading branch information
smiet committed Jul 5, 2024
1 parent 9d807fa commit ac81224
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/geo/test_surface_rzfourier.py
Original file line number Diff line number Diff line change
Expand Up @@ -766,10 +766,10 @@ def test_fourier_transform_scalar(self):
self.assertEqual(np.all(np.abs(ft_cosines[cosines_mask]) < 1e-10), True)

# Transform back to real space:
field2 = s.inverse_fourier_transform_scalar(ft_sines, ft_cosines, stellsym=False)
field2 = s.inverse_fourier_transform_scalar(ft_sines, ft_cosines, stellsym=False, normalization=1/2*np.pi**2)

# Check that the result is the same as the original field:
np.testing.assert_allclose(field, field2)
np.testing.assert_allclose(field/2*np.pi**2, field2)

class SurfaceRZPseudospectralTests(unittest.TestCase):
def test_names(self):
Expand Down

0 comments on commit ac81224

Please sign in to comment.