From 3f2c386cd8c71af7d6ba7c301567e04df61acb2e Mon Sep 17 00:00:00 2001 From: Lawrence Kidder Date: Wed, 24 Apr 2024 11:49:27 -0400 Subject: [PATCH] Move Swsh classes and functions to their own directory --- .../Cce/CharacteristicExtractBase.hpp | 2 +- .../Cce/Actions/CalculateScriInputs.hpp | 2 +- .../Cce/Actions/FilterSwshVolumeQuantity.hpp | 2 +- ...ializeCharacteristicEvolutionVariables.hpp | 2 +- .../Actions/InitializeWorldtubeBoundary.hpp | 2 +- .../Cce/Actions/ScriObserveInterpolated.hpp | 4 +- .../Cce/AnalyticBoundaryDataManager.hpp | 4 +- .../Cce/AnalyticSolutions/GaugeWave.cpp | 4 +- .../LinearizedBondiSachs.cpp | 4 +- .../AnalyticSolutions/RobinsonTrautman.cpp | 10 +- .../RotatingSchwarzschild.cpp | 4 +- .../AnalyticSolutions/SphericalMetricData.cpp | 6 +- .../Cce/AnalyticSolutions/TeukolskyWave.cpp | 4 +- .../Cce/AnalyticSolutions/WorldtubeData.cpp | 2 +- .../Cce/AnalyticSolutions/WorldtubeData.hpp | 2 +- src/Evolution/Systems/Cce/BoundaryData.cpp | 4 +- src/Evolution/Systems/Cce/BoundaryData.hpp | 4 +- .../Callbacks/DumpBondiSachsOnWorldtube.hpp | 4 +- src/Evolution/Systems/Cce/Equations.hpp | 2 +- .../Systems/Cce/Events/ObserveFields.hpp | 6 +- .../Cce/GaugeTransformBoundaryData.cpp | 7 +- .../Cce/GaugeTransformBoundaryData.hpp | 6 +- .../Cce/Initialize/ConformalFactor.cpp | 10 +- .../Systems/Cce/Initialize/InitializeJ.cpp | 8 +- .../Systems/Cce/Initialize/InitializeJ.hpp | 6 +- .../Systems/Cce/Initialize/InverseCubic.cpp | 4 +- .../Systems/Cce/Initialize/ZeroNonSmooth.cpp | 2 +- .../Systems/Cce/IntegrandInputSteps.hpp | 2 +- src/Evolution/Systems/Cce/LinearSolve.cpp | 2 +- src/Evolution/Systems/Cce/LinearSolve.hpp | 2 +- src/Evolution/Systems/Cce/NewmanPenrose.cpp | 4 +- src/Evolution/Systems/Cce/NewmanPenrose.hpp | 4 +- .../Systems/Cce/PreSwshDerivatives.hpp | 6 +- .../Systems/Cce/PrecomputeCceDependencies.cpp | 4 +- .../Systems/Cce/PrecomputeCceDependencies.hpp | 4 +- .../Cce/ReducedWorldtubeModeRecorder.cpp | 2 +- src/Evolution/Systems/Cce/ScriPlusValues.cpp | 6 +- .../Systems/Cce/SpecBoundaryData.cpp | 4 +- .../Systems/Cce/SpecBoundaryData.hpp | 4 +- src/Evolution/Systems/Cce/SwshDerivatives.hpp | 4 +- src/Evolution/Systems/Cce/Tags.hpp | 2 +- .../Systems/Cce/WorldtubeBufferUpdater.cpp | 4 +- .../Systems/Cce/WorldtubeBufferUpdater.hpp | 2 +- .../Systems/Cce/WorldtubeDataManager.cpp | 4 +- .../ReduceCceWorldtube/ReduceCceWorldtube.cpp | 4 +- src/NumericalAlgorithms/CMakeLists.txt | 1 + .../Spectral/CMakeLists.txt | 19 ---- .../CMakeLists.txt | 46 +++++++++ .../ComplexDataView.cpp | 2 +- .../ComplexDataView.hpp | 0 .../SwshCoefficients.cpp | 10 +- .../SwshCoefficients.hpp | 4 +- .../SwshCollocation.cpp | 4 +- .../SwshCollocation.hpp | 4 +- .../SwshDerivatives.cpp | 8 +- .../SwshDerivatives.hpp | 12 +-- .../SwshFiltering.cpp | 22 ++--- .../SwshFiltering.hpp | 3 +- .../SwshInterpolation.cpp | 8 +- .../SwshInterpolation.hpp | 0 .../SwshSettings.hpp | 0 .../SwshTags.cpp | 2 +- .../SwshTags.hpp | 6 +- .../SwshTransform.cpp | 2 +- .../SwshTransform.hpp | 8 +- .../CurvedWaveEquation/CMakeLists.txt | 2 +- .../PureSphericalHarmonic.cpp | 2 +- .../AnalyticData/ScalarTensor/CMakeLists.txt | 1 + .../ScalarTensor/KerrSphericalHarmonic.cpp | 2 +- .../Test_AnalyticBoundaryCommunication.cpp | 4 +- .../Cce/Actions/Test_CalculateScriInputs.cpp | 10 +- ...aracteristicEvolutionBondiCalculations.cpp | 4 +- .../Actions/Test_FilterSwshVolumeQuantity.cpp | 8 +- .../Actions/Test_GhBoundaryCommunication.cpp | 6 +- .../Actions/Test_H5BoundaryCommunication.cpp | 6 +- ...Test_InitializeCharacteristicEvolution.cpp | 4 +- .../Test_InitializeFirstHypersurface.cpp | 10 +- ...InitializeKleinGordonFirstHypersurface.cpp | 4 +- .../Test_InitializeWorldtubeBoundary.cpp | 2 +- .../Test_KleinGordonCceCalculations.cpp | 4 +- .../Systems/Cce/Actions/Test_Psi0Matching.cpp | 2 +- .../Actions/Test_ScriObserveInterpolated.cpp | 6 +- .../Systems/Cce/Actions/Test_UpdateGauge.cpp | 10 +- .../Test_BouncingBlackHole.cpp | 2 +- .../Test_LinearizedBondiSachs.cpp | 2 +- .../Test_RobinsonTrautman.cpp | 6 +- .../Systems/Cce/Events/Test_ObserveFields.cpp | 2 +- .../Systems/Cce/Test_BoundaryData.cpp | 2 +- .../Cce/Test_DumpBondiSachsOnWorldtube.cpp | 2 +- .../Systems/Cce/Test_InitializeCce.cpp | 6 +- .../Cce/Test_KleinGordonWorldtubeData.cpp | 2 +- .../Systems/Cce/Test_LinearOperators.cpp | 2 +- .../Systems/Cce/Test_LinearSolve.cpp | 2 +- .../Systems/Cce/Test_PreSwshDerivatives.cpp | 6 +- .../Cce/Test_PrecomputeCceDependencies.cpp | 6 +- .../Systems/Cce/Test_SwshDerivatives.cpp | 10 +- .../Systems/Cce/Test_WorldtubeData.cpp | 2 +- .../Actions/CharacteristicInitialization.hpp | 4 +- .../Cce/Actions/WorldtubeBoundaryMocking.hpp | 2 +- .../AnalyticSolutions/AnalyticDataHelpers.hpp | 2 +- .../Systems/Cce/BoundaryTestHelpers.hpp | 2 +- .../Systems/Cce/CceComputationTestHelpers.cpp | 2 +- .../Systems/Cce/CceComputationTestHelpers.hpp | 6 +- .../NumericalAlgorithms/CMakeLists.txt | 2 +- .../CMakeLists.txt | 2 +- .../SwshTestHelpers.cpp | 4 +- .../SwshTestHelpers.hpp | 8 +- tests/Unit/NumericalAlgorithms/CMakeLists.txt | 1 + .../Spectral/CMakeLists.txt | 10 -- .../SphericalHarmonics/CMakeLists.txt | 2 +- .../Test_RealSphericalHarmonics.cpp | 2 +- .../CMakeLists.txt | 33 +++++++ .../Test_ComplexDataView.cpp | 99 ++++++++++--------- .../Test_SwshCoefficients.cpp | 10 +- .../Test_SwshCollocation.cpp | 4 +- .../Test_SwshDerivatives.cpp | 14 +-- .../Test_SwshFiltering.cpp | 12 +-- .../Test_SwshInterpolation.cpp | 70 ++++++------- .../Test_SwshTags.cpp | 2 +- .../Test_SwshTestHelpers.cpp | 2 +- .../Test_SwshTransform.cpp | 15 ++- 121 files changed, 420 insertions(+), 371 deletions(-) create mode 100644 src/NumericalAlgorithms/SpinWeightedSphericalHarmonics/CMakeLists.txt rename src/NumericalAlgorithms/{Spectral => SpinWeightedSphericalHarmonics}/ComplexDataView.cpp (99%) rename src/NumericalAlgorithms/{Spectral => SpinWeightedSphericalHarmonics}/ComplexDataView.hpp (100%) rename src/NumericalAlgorithms/{Spectral => SpinWeightedSphericalHarmonics}/SwshCoefficients.cpp (97%) rename src/NumericalAlgorithms/{Spectral => SpinWeightedSphericalHarmonics}/SwshCoefficients.hpp (99%) rename src/NumericalAlgorithms/{Spectral => SpinWeightedSphericalHarmonics}/SwshCollocation.cpp (96%) rename src/NumericalAlgorithms/{Spectral => SpinWeightedSphericalHarmonics}/SwshCollocation.hpp (98%) rename src/NumericalAlgorithms/{Spectral => SpinWeightedSphericalHarmonics}/SwshDerivatives.cpp (96%) rename src/NumericalAlgorithms/{Spectral => SpinWeightedSphericalHarmonics}/SwshDerivatives.hpp (97%) rename src/NumericalAlgorithms/{Spectral => SpinWeightedSphericalHarmonics}/SwshFiltering.cpp (95%) rename src/NumericalAlgorithms/{Spectral => SpinWeightedSphericalHarmonics}/SwshFiltering.hpp (98%) rename src/NumericalAlgorithms/{Spectral => SpinWeightedSphericalHarmonics}/SwshInterpolation.cpp (98%) rename src/NumericalAlgorithms/{Spectral => SpinWeightedSphericalHarmonics}/SwshInterpolation.hpp (100%) rename src/NumericalAlgorithms/{Spectral => SpinWeightedSphericalHarmonics}/SwshSettings.hpp (100%) rename src/NumericalAlgorithms/{Spectral => SpinWeightedSphericalHarmonics}/SwshTags.cpp (95%) rename src/NumericalAlgorithms/{Spectral => SpinWeightedSphericalHarmonics}/SwshTags.hpp (97%) rename src/NumericalAlgorithms/{Spectral => SpinWeightedSphericalHarmonics}/SwshTransform.cpp (99%) rename src/NumericalAlgorithms/{Spectral => SpinWeightedSphericalHarmonics}/SwshTransform.hpp (99%) rename tests/Unit/Helpers/NumericalAlgorithms/{Spectral => SpinWeightedSphericalHarmonics}/CMakeLists.txt (84%) rename tests/Unit/Helpers/NumericalAlgorithms/{Spectral => SpinWeightedSphericalHarmonics}/SwshTestHelpers.cpp (96%) rename tests/Unit/Helpers/NumericalAlgorithms/{Spectral => SpinWeightedSphericalHarmonics}/SwshTestHelpers.hpp (96%) create mode 100644 tests/Unit/NumericalAlgorithms/SpinWeightedSphericalHarmonics/CMakeLists.txt rename tests/Unit/NumericalAlgorithms/{Spectral => SpinWeightedSphericalHarmonics}/Test_ComplexDataView.cpp (79%) rename tests/Unit/NumericalAlgorithms/{Spectral => SpinWeightedSphericalHarmonics}/Test_SwshCoefficients.cpp (96%) rename tests/Unit/NumericalAlgorithms/{Spectral => SpinWeightedSphericalHarmonics}/Test_SwshCollocation.cpp (97%) rename tests/Unit/NumericalAlgorithms/{Spectral => SpinWeightedSphericalHarmonics}/Test_SwshDerivatives.cpp (97%) rename tests/Unit/NumericalAlgorithms/{Spectral => SpinWeightedSphericalHarmonics}/Test_SwshFiltering.cpp (94%) rename tests/Unit/NumericalAlgorithms/{Spectral => SpinWeightedSphericalHarmonics}/Test_SwshInterpolation.cpp (82%) rename tests/Unit/NumericalAlgorithms/{Spectral => SpinWeightedSphericalHarmonics}/Test_SwshTags.cpp (98%) rename tests/Unit/NumericalAlgorithms/{Spectral => SpinWeightedSphericalHarmonics}/Test_SwshTestHelpers.cpp (96%) rename tests/Unit/NumericalAlgorithms/{Spectral => SpinWeightedSphericalHarmonics}/Test_SwshTransform.cpp (95%) diff --git a/src/Evolution/Executables/Cce/CharacteristicExtractBase.hpp b/src/Evolution/Executables/Cce/CharacteristicExtractBase.hpp index 80b58b2ab780c..449c2c06b95ab 100644 --- a/src/Evolution/Executables/Cce/CharacteristicExtractBase.hpp +++ b/src/Evolution/Executables/Cce/CharacteristicExtractBase.hpp @@ -11,7 +11,7 @@ #include "Evolution/Systems/Cce/IntegrandInputSteps.hpp" #include "Evolution/Systems/Cce/System.hpp" #include "Evolution/Systems/Cce/Tags.hpp" -#include "NumericalAlgorithms/Spectral/SwshTags.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTags.hpp" #include "Time/StepChoosers/Constant.hpp" #include "Time/StepChoosers/ErrorControl.hpp" #include "Time/StepChoosers/Increase.hpp" diff --git a/src/Evolution/Systems/Cce/Actions/CalculateScriInputs.hpp b/src/Evolution/Systems/Cce/Actions/CalculateScriInputs.hpp index 0354727045d40..38a61aa6b54f2 100644 --- a/src/Evolution/Systems/Cce/Actions/CalculateScriInputs.hpp +++ b/src/Evolution/Systems/Cce/Actions/CalculateScriInputs.hpp @@ -13,7 +13,7 @@ #include "Evolution/Systems/Cce/OptionTags.hpp" #include "Evolution/Systems/Cce/PreSwshDerivatives.hpp" #include "Evolution/Systems/Cce/SwshDerivatives.hpp" -#include "NumericalAlgorithms/Spectral/SwshDerivatives.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshDerivatives.hpp" #include "Parallel/AlgorithmExecution.hpp" #include "Parallel/GlobalCache.hpp" #include "Utilities/Gsl.hpp" diff --git a/src/Evolution/Systems/Cce/Actions/FilterSwshVolumeQuantity.hpp b/src/Evolution/Systems/Cce/Actions/FilterSwshVolumeQuantity.hpp index 99e3f248feb73..03896d224bccc 100644 --- a/src/Evolution/Systems/Cce/Actions/FilterSwshVolumeQuantity.hpp +++ b/src/Evolution/Systems/Cce/Actions/FilterSwshVolumeQuantity.hpp @@ -10,7 +10,7 @@ #include "DataStructures/DataBox/DataBox.hpp" #include "Evolution/Systems/Cce/OptionTags.hpp" #include "Evolution/Systems/Cce/Tags.hpp" -#include "NumericalAlgorithms/Spectral/SwshFiltering.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshFiltering.hpp" #include "Parallel/AlgorithmExecution.hpp" #include "Parallel/GlobalCache.hpp" #include "Parallel/Invoke.hpp" diff --git a/src/Evolution/Systems/Cce/Actions/InitializeCharacteristicEvolutionVariables.hpp b/src/Evolution/Systems/Cce/Actions/InitializeCharacteristicEvolutionVariables.hpp index 324a0223c8a0c..3a6309002fac7 100644 --- a/src/Evolution/Systems/Cce/Actions/InitializeCharacteristicEvolutionVariables.hpp +++ b/src/Evolution/Systems/Cce/Actions/InitializeCharacteristicEvolutionVariables.hpp @@ -13,7 +13,7 @@ #include "DataStructures/Variables.hpp" #include "DataStructures/VariablesTag.hpp" #include "Evolution/Systems/Cce/OptionTags.hpp" -#include "NumericalAlgorithms/Spectral/SwshInterpolation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshInterpolation.hpp" #include "Parallel/AlgorithmExecution.hpp" #include "Parallel/GlobalCache.hpp" #include "ParallelAlgorithms/Initialization/MutateAssign.hpp" diff --git a/src/Evolution/Systems/Cce/Actions/InitializeWorldtubeBoundary.hpp b/src/Evolution/Systems/Cce/Actions/InitializeWorldtubeBoundary.hpp index 49f62bcd62497..e46476e15958a 100644 --- a/src/Evolution/Systems/Cce/Actions/InitializeWorldtubeBoundary.hpp +++ b/src/Evolution/Systems/Cce/Actions/InitializeWorldtubeBoundary.hpp @@ -19,7 +19,7 @@ #include "Evolution/Systems/Cce/OptionTags.hpp" #include "Evolution/Systems/Cce/Tags.hpp" #include "NumericalAlgorithms/Interpolation/SpanInterpolator.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" #include "Parallel/AlgorithmExecution.hpp" #include "Parallel/Invoke.hpp" #include "ParallelAlgorithms/Initialization/MutateAssign.hpp" diff --git a/src/Evolution/Systems/Cce/Actions/ScriObserveInterpolated.hpp b/src/Evolution/Systems/Cce/Actions/ScriObserveInterpolated.hpp index d939639356c77..b84385610de74 100644 --- a/src/Evolution/Systems/Cce/Actions/ScriObserveInterpolated.hpp +++ b/src/Evolution/Systems/Cce/Actions/ScriObserveInterpolated.hpp @@ -17,8 +17,8 @@ #include "Evolution/Systems/Cce/ScriPlusInterpolationManager.hpp" #include "Evolution/Systems/Cce/Tags.hpp" #include "IO/Observer/ReductionActions.hpp" -#include "NumericalAlgorithms/Spectral/SwshCoefficients.hpp" -#include "NumericalAlgorithms/Spectral/SwshTransform.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCoefficients.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTransform.hpp" #include "Parallel/AlgorithmExecution.hpp" #include "Parallel/GlobalCache.hpp" #include "Parallel/Invoke.hpp" diff --git a/src/Evolution/Systems/Cce/AnalyticBoundaryDataManager.hpp b/src/Evolution/Systems/Cce/AnalyticBoundaryDataManager.hpp index 6aab4009724f6..0301f294115f7 100644 --- a/src/Evolution/Systems/Cce/AnalyticBoundaryDataManager.hpp +++ b/src/Evolution/Systems/Cce/AnalyticBoundaryDataManager.hpp @@ -18,8 +18,8 @@ #include "Evolution/Systems/GeneralizedHarmonic/Tags.hpp" #include "IO/Observer/ObserverComponent.hpp" #include "IO/Observer/ReductionActions.hpp" -#include "NumericalAlgorithms/Spectral/SwshCoefficients.hpp" -#include "NumericalAlgorithms/Spectral/SwshTransform.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCoefficients.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTransform.hpp" #include "Parallel/GlobalCache.hpp" #include "Parallel/Invoke.hpp" #include "Parallel/Local.hpp" diff --git a/src/Evolution/Systems/Cce/AnalyticSolutions/GaugeWave.cpp b/src/Evolution/Systems/Cce/AnalyticSolutions/GaugeWave.cpp index 43493e41ff182..5f33ebd5e145f 100644 --- a/src/Evolution/Systems/Cce/AnalyticSolutions/GaugeWave.cpp +++ b/src/Evolution/Systems/Cce/AnalyticSolutions/GaugeWave.cpp @@ -16,8 +16,8 @@ #include "DataStructures/Tensor/Tensor.hpp" #include "DataStructures/Variables.hpp" #include "Evolution/Systems/Cce/Tags.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" -#include "NumericalAlgorithms/Spectral/SwshInterpolation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshInterpolation.hpp" #include "Utilities/ConstantExpressions.hpp" #include "Utilities/Gsl.hpp" #include "Utilities/TMPL.hpp" diff --git a/src/Evolution/Systems/Cce/AnalyticSolutions/LinearizedBondiSachs.cpp b/src/Evolution/Systems/Cce/AnalyticSolutions/LinearizedBondiSachs.cpp index fbbb7bdc0b53b..a4da8c23684bc 100644 --- a/src/Evolution/Systems/Cce/AnalyticSolutions/LinearizedBondiSachs.cpp +++ b/src/Evolution/Systems/Cce/AnalyticSolutions/LinearizedBondiSachs.cpp @@ -19,8 +19,8 @@ #include "NumericalAlgorithms/Spectral/Basis.hpp" #include "NumericalAlgorithms/Spectral/Quadrature.hpp" #include "NumericalAlgorithms/Spectral/Spectral.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" -#include "NumericalAlgorithms/Spectral/SwshInterpolation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshInterpolation.hpp" #include "Utilities/Gsl.hpp" #include "Utilities/StaticCache.hpp" #include "Utilities/TMPL.hpp" diff --git a/src/Evolution/Systems/Cce/AnalyticSolutions/RobinsonTrautman.cpp b/src/Evolution/Systems/Cce/AnalyticSolutions/RobinsonTrautman.cpp index 5275a2f1149b3..79c88d081b745 100644 --- a/src/Evolution/Systems/Cce/AnalyticSolutions/RobinsonTrautman.cpp +++ b/src/Evolution/Systems/Cce/AnalyticSolutions/RobinsonTrautman.cpp @@ -18,11 +18,11 @@ #include "Evolution/Systems/Cce/AnalyticSolutions/WorldtubeData.hpp" #include "Evolution/Systems/Cce/Tags.hpp" #include "NumericalAlgorithms/OdeIntegration/OdeIntegration.hpp" -#include "NumericalAlgorithms/Spectral/SwshCoefficients.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" -#include "NumericalAlgorithms/Spectral/SwshDerivatives.hpp" -#include "NumericalAlgorithms/Spectral/SwshFiltering.hpp" -#include "NumericalAlgorithms/Spectral/SwshTransform.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCoefficients.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshDerivatives.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshFiltering.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTransform.hpp" #include "Options/ParseError.hpp" #include "Utilities/ErrorHandling/Assert.hpp" #include "Utilities/ErrorHandling/Error.hpp" diff --git a/src/Evolution/Systems/Cce/AnalyticSolutions/RotatingSchwarzschild.cpp b/src/Evolution/Systems/Cce/AnalyticSolutions/RotatingSchwarzschild.cpp index 354a293f1f29b..f1f994ebbd7fb 100644 --- a/src/Evolution/Systems/Cce/AnalyticSolutions/RotatingSchwarzschild.cpp +++ b/src/Evolution/Systems/Cce/AnalyticSolutions/RotatingSchwarzschild.cpp @@ -13,8 +13,8 @@ #include "DataStructures/Tensor/Tensor.hpp" #include "DataStructures/Variables.hpp" #include "Evolution/Systems/Cce/Tags.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" -#include "NumericalAlgorithms/Spectral/SwshInterpolation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshInterpolation.hpp" #include "Utilities/Gsl.hpp" #include "Utilities/TMPL.hpp" diff --git a/src/Evolution/Systems/Cce/AnalyticSolutions/SphericalMetricData.cpp b/src/Evolution/Systems/Cce/AnalyticSolutions/SphericalMetricData.cpp index d20320aea5ef1..8136c372b4ebf 100644 --- a/src/Evolution/Systems/Cce/AnalyticSolutions/SphericalMetricData.cpp +++ b/src/Evolution/Systems/Cce/AnalyticSolutions/SphericalMetricData.cpp @@ -16,9 +16,9 @@ #include "DataStructures/Variables.hpp" #include "Evolution/Systems/Cce/BoundaryDataTags.hpp" #include "Evolution/Systems/GeneralizedHarmonic/Tags.hpp" -#include "NumericalAlgorithms/Spectral/SwshDerivatives.hpp" -#include "NumericalAlgorithms/Spectral/SwshTags.hpp" -#include "NumericalAlgorithms/Spectral/SwshTransform.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshDerivatives.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTags.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTransform.hpp" #include "PointwiseFunctions/GeneralRelativity/Tags.hpp" #include "Utilities/Gsl.hpp" #include "Utilities/Serialization/CharmPupable.hpp" diff --git a/src/Evolution/Systems/Cce/AnalyticSolutions/TeukolskyWave.cpp b/src/Evolution/Systems/Cce/AnalyticSolutions/TeukolskyWave.cpp index 6ab6d54489812..a2f282df4b230 100644 --- a/src/Evolution/Systems/Cce/AnalyticSolutions/TeukolskyWave.cpp +++ b/src/Evolution/Systems/Cce/AnalyticSolutions/TeukolskyWave.cpp @@ -16,8 +16,8 @@ #include "DataStructures/Variables.hpp" #include "Evolution/Systems/Cce/AnalyticSolutions/WorldtubeData.hpp" #include "Evolution/Systems/Cce/Tags.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" -#include "NumericalAlgorithms/Spectral/SwshInterpolation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshInterpolation.hpp" #include "Utilities/ConstantExpressions.hpp" #include "Utilities/Gsl.hpp" #include "Utilities/TMPL.hpp" diff --git a/src/Evolution/Systems/Cce/AnalyticSolutions/WorldtubeData.cpp b/src/Evolution/Systems/Cce/AnalyticSolutions/WorldtubeData.cpp index dbc88825c21c5..8d9c990a44a5a 100644 --- a/src/Evolution/Systems/Cce/AnalyticSolutions/WorldtubeData.cpp +++ b/src/Evolution/Systems/Cce/AnalyticSolutions/WorldtubeData.cpp @@ -11,7 +11,7 @@ #include "DataStructures/Tensor/Tensor.hpp" #include "Evolution/Systems/GeneralizedHarmonic/Tags.hpp" #include "NumericalAlgorithms/LinearOperators/PartialDerivatives.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" #include "PointwiseFunctions/GeneralRelativity/GeneralizedHarmonic/SpatialDerivOfLapse.hpp" #include "PointwiseFunctions/GeneralRelativity/GeneralizedHarmonic/SpatialDerivOfShift.hpp" #include "PointwiseFunctions/GeneralRelativity/GeneralizedHarmonic/TimeDerivOfLapse.hpp" diff --git a/src/Evolution/Systems/Cce/AnalyticSolutions/WorldtubeData.hpp b/src/Evolution/Systems/Cce/AnalyticSolutions/WorldtubeData.hpp index cb16bbf6606f7..12f98c4880c12 100644 --- a/src/Evolution/Systems/Cce/AnalyticSolutions/WorldtubeData.hpp +++ b/src/Evolution/Systems/Cce/AnalyticSolutions/WorldtubeData.hpp @@ -13,7 +13,7 @@ #include "Evolution/Systems/Cce/Tags.hpp" #include "Evolution/Systems/GeneralizedHarmonic/Tags.hpp" #include "NumericalAlgorithms/LinearOperators/PartialDerivatives.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" #include "PointwiseFunctions/AnalyticSolutions/AnalyticSolution.hpp" #include "PointwiseFunctions/GeneralRelativity/Tags.hpp" #include "Utilities/Gsl.hpp" diff --git a/src/Evolution/Systems/Cce/BoundaryData.cpp b/src/Evolution/Systems/Cce/BoundaryData.cpp index 01f8e6c70bb39..a66af36b0d4b6 100644 --- a/src/Evolution/Systems/Cce/BoundaryData.cpp +++ b/src/Evolution/Systems/Cce/BoundaryData.cpp @@ -13,8 +13,8 @@ #include "DataStructures/Tensor/Tensor.hpp" #include "DataStructures/Tensor/TypeAliases.hpp" #include "DataStructures/Variables.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" -#include "NumericalAlgorithms/Spectral/SwshDerivatives.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshDerivatives.hpp" #include "Utilities/ErrorHandling/CaptureForError.hpp" #include "Utilities/Math.hpp" #include "Utilities/SetNumberOfGridPoints.hpp" diff --git a/src/Evolution/Systems/Cce/BoundaryData.hpp b/src/Evolution/Systems/Cce/BoundaryData.hpp index bea7d3a804b80..137521573570c 100644 --- a/src/Evolution/Systems/Cce/BoundaryData.hpp +++ b/src/Evolution/Systems/Cce/BoundaryData.hpp @@ -14,8 +14,8 @@ #include "DataStructures/Tensor/TypeAliases.hpp" #include "Evolution/Systems/Cce/BoundaryDataTags.hpp" #include "Evolution/Systems/Cce/Tags.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" -#include "NumericalAlgorithms/Spectral/SwshDerivatives.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshDerivatives.hpp" #include "PointwiseFunctions/GeneralRelativity/GeneralizedHarmonic/Phi.hpp" #include "PointwiseFunctions/GeneralRelativity/GeneralizedHarmonic/TimeDerivOfLapse.hpp" #include "PointwiseFunctions/GeneralRelativity/GeneralizedHarmonic/TimeDerivOfShift.hpp" diff --git a/src/Evolution/Systems/Cce/Callbacks/DumpBondiSachsOnWorldtube.hpp b/src/Evolution/Systems/Cce/Callbacks/DumpBondiSachsOnWorldtube.hpp index fdf6eebb62a76..274defea4be10 100644 --- a/src/Evolution/Systems/Cce/Callbacks/DumpBondiSachsOnWorldtube.hpp +++ b/src/Evolution/Systems/Cce/Callbacks/DumpBondiSachsOnWorldtube.hpp @@ -24,8 +24,8 @@ #include "IO/Observer/Actions/GetLockPointer.hpp" #include "IO/Observer/ObserverComponent.hpp" #include "IO/Observer/ReductionActions.hpp" -#include "NumericalAlgorithms/Spectral/SwshCoefficients.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCoefficients.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" #include "Parallel/GlobalCache.hpp" #include "Parallel/Invoke.hpp" #include "ParallelAlgorithms/Interpolation/InterpolationTargetDetail.hpp" diff --git a/src/Evolution/Systems/Cce/Equations.hpp b/src/Evolution/Systems/Cce/Equations.hpp index 5b3bf7b96210d..47c37e97023ca 100644 --- a/src/Evolution/Systems/Cce/Equations.hpp +++ b/src/Evolution/Systems/Cce/Equations.hpp @@ -10,7 +10,7 @@ #include "DataStructures/Tags/TempTensor.hpp" #include "DataStructures/Tensor/Tensor.hpp" #include "Evolution/Systems/Cce/Tags.hpp" // IWYU pragma: keep -#include "NumericalAlgorithms/Spectral/SwshTags.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTags.hpp" #include "Utilities/Gsl.hpp" #include "Utilities/TMPL.hpp" diff --git a/src/Evolution/Systems/Cce/Events/ObserveFields.hpp b/src/Evolution/Systems/Cce/Events/ObserveFields.hpp index 500aa9f28eceb..67d7ac1187f0a 100644 --- a/src/Evolution/Systems/Cce/Events/ObserveFields.hpp +++ b/src/Evolution/Systems/Cce/Events/ObserveFields.hpp @@ -21,9 +21,9 @@ #include "Evolution/Systems/Cce/Tags.hpp" #include "IO/Observer/ObserverComponent.hpp" #include "IO/Observer/ReductionActions.hpp" -#include "NumericalAlgorithms/Spectral/SwshCoefficients.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" -#include "NumericalAlgorithms/Spectral/SwshTransform.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCoefficients.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTransform.hpp" #include "Options/Context.hpp" #include "Options/ParseError.hpp" #include "Options/String.hpp" diff --git a/src/Evolution/Systems/Cce/GaugeTransformBoundaryData.cpp b/src/Evolution/Systems/Cce/GaugeTransformBoundaryData.cpp index efc49d3346a60..c334b45512792 100644 --- a/src/Evolution/Systems/Cce/GaugeTransformBoundaryData.cpp +++ b/src/Evolution/Systems/Cce/GaugeTransformBoundaryData.cpp @@ -9,10 +9,9 @@ #include "DataStructures/Tags/TempTensor.hpp" #include "DataStructures/Variables.hpp" #include "Evolution/Systems/Cce/Tags.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" -#include "NumericalAlgorithms/Spectral/SwshDerivatives.hpp" -#include "NumericalAlgorithms/Spectral/SwshInterpolation.hpp" - +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshDerivatives.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshInterpolation.hpp" namespace Cce { diff --git a/src/Evolution/Systems/Cce/GaugeTransformBoundaryData.hpp b/src/Evolution/Systems/Cce/GaugeTransformBoundaryData.hpp index 892bf7fb2d82a..ed60b0793c404 100644 --- a/src/Evolution/Systems/Cce/GaugeTransformBoundaryData.hpp +++ b/src/Evolution/Systems/Cce/GaugeTransformBoundaryData.hpp @@ -14,9 +14,9 @@ #include "DataStructures/Tensor/TypeAliases.hpp" #include "DataStructures/Variables.hpp" #include "Evolution/Systems/Cce/Tags.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" -#include "NumericalAlgorithms/Spectral/SwshDerivatives.hpp" -#include "NumericalAlgorithms/Spectral/SwshInterpolation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshDerivatives.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshInterpolation.hpp" #include "Utilities/Gsl.hpp" #include "Utilities/TMPL.hpp" diff --git a/src/Evolution/Systems/Cce/Initialize/ConformalFactor.cpp b/src/Evolution/Systems/Cce/Initialize/ConformalFactor.cpp index 3d43c4c919d99..6185d63e4b9d4 100644 --- a/src/Evolution/Systems/Cce/Initialize/ConformalFactor.cpp +++ b/src/Evolution/Systems/Cce/Initialize/ConformalFactor.cpp @@ -23,11 +23,11 @@ #include "NumericalAlgorithms/Spectral/Basis.hpp" #include "NumericalAlgorithms/Spectral/Quadrature.hpp" #include "NumericalAlgorithms/Spectral/Spectral.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" -#include "NumericalAlgorithms/Spectral/SwshDerivatives.hpp" -#include "NumericalAlgorithms/Spectral/SwshFiltering.hpp" -#include "NumericalAlgorithms/Spectral/SwshInterpolation.hpp" -#include "NumericalAlgorithms/Spectral/SwshTags.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshDerivatives.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshFiltering.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshInterpolation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTags.hpp" #include "Options/ParseOptions.hpp" #include "Utilities/ConstantExpressions.hpp" #include "Utilities/Gsl.hpp" diff --git a/src/Evolution/Systems/Cce/Initialize/InitializeJ.cpp b/src/Evolution/Systems/Cce/Initialize/InitializeJ.cpp index 62b961e40ee00..285e8cd3503f4 100644 --- a/src/Evolution/Systems/Cce/Initialize/InitializeJ.cpp +++ b/src/Evolution/Systems/Cce/Initialize/InitializeJ.cpp @@ -17,10 +17,10 @@ #include "DataStructures/Tensor/TypeAliases.hpp" #include "DataStructures/Variables.hpp" #include "NumericalAlgorithms/Spectral/Spectral.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" -#include "NumericalAlgorithms/Spectral/SwshDerivatives.hpp" -#include "NumericalAlgorithms/Spectral/SwshInterpolation.hpp" -#include "NumericalAlgorithms/Spectral/SwshTags.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshDerivatives.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshInterpolation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTags.hpp" #include "Utilities/ConstantExpressions.hpp" #include "Utilities/Gsl.hpp" #include "Utilities/TMPL.hpp" diff --git a/src/Evolution/Systems/Cce/Initialize/InitializeJ.hpp b/src/Evolution/Systems/Cce/Initialize/InitializeJ.hpp index d6d054f447264..290b919c7f9bd 100644 --- a/src/Evolution/Systems/Cce/Initialize/InitializeJ.hpp +++ b/src/Evolution/Systems/Cce/Initialize/InitializeJ.hpp @@ -12,9 +12,9 @@ #include "DataStructures/Tensor/TypeAliases.hpp" #include "Evolution/Systems/Cce/GaugeTransformBoundaryData.hpp" #include "Evolution/Systems/Cce/Tags.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" -#include "NumericalAlgorithms/Spectral/SwshDerivatives.hpp" -#include "NumericalAlgorithms/Spectral/SwshInterpolation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshDerivatives.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshInterpolation.hpp" #include "Options/String.hpp" #include "Parallel/NodeLock.hpp" #include "Parallel/Printf/Printf.hpp" diff --git a/src/Evolution/Systems/Cce/Initialize/InverseCubic.cpp b/src/Evolution/Systems/Cce/Initialize/InverseCubic.cpp index 253657062c00f..c65770b401fcc 100644 --- a/src/Evolution/Systems/Cce/Initialize/InverseCubic.cpp +++ b/src/Evolution/Systems/Cce/Initialize/InverseCubic.cpp @@ -16,8 +16,8 @@ #include "NumericalAlgorithms/Spectral/Basis.hpp" #include "NumericalAlgorithms/Spectral/Quadrature.hpp" #include "NumericalAlgorithms/Spectral/Spectral.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" -#include "NumericalAlgorithms/Spectral/SwshInterpolation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshInterpolation.hpp" #include "Utilities/Gsl.hpp" #include "Utilities/TMPL.hpp" diff --git a/src/Evolution/Systems/Cce/Initialize/ZeroNonSmooth.cpp b/src/Evolution/Systems/Cce/Initialize/ZeroNonSmooth.cpp index 68d83f06cf4a9..2134e07620950 100644 --- a/src/Evolution/Systems/Cce/Initialize/ZeroNonSmooth.cpp +++ b/src/Evolution/Systems/Cce/Initialize/ZeroNonSmooth.cpp @@ -10,7 +10,7 @@ #include "DataStructures/SpinWeighted.hpp" #include "DataStructures/Tensor/TypeAliases.hpp" #include "Evolution/Systems/Cce/Initialize/InitializeJ.hpp" -#include "NumericalAlgorithms/Spectral/SwshInterpolation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshInterpolation.hpp" #include "Utilities/Gsl.hpp" #include "Utilities/MakeString.hpp" #include "Utilities/Serialization/CharmPupable.hpp" diff --git a/src/Evolution/Systems/Cce/IntegrandInputSteps.hpp b/src/Evolution/Systems/Cce/IntegrandInputSteps.hpp index f6779f94a8aee..dc2be720bc0d8 100644 --- a/src/Evolution/Systems/Cce/IntegrandInputSteps.hpp +++ b/src/Evolution/Systems/Cce/IntegrandInputSteps.hpp @@ -9,7 +9,7 @@ #include "DataStructures/Tags.hpp" #include "Evolution/Systems/Cce/Equations.hpp" #include "Evolution/Systems/Cce/Tags.hpp" -#include "NumericalAlgorithms/Spectral/SwshTags.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTags.hpp" #include "Utilities/TMPL.hpp" namespace Cce { diff --git a/src/Evolution/Systems/Cce/LinearSolve.cpp b/src/Evolution/Systems/Cce/LinearSolve.cpp index 07f79a09be22f..9e56fff1c1c65 100644 --- a/src/Evolution/Systems/Cce/LinearSolve.cpp +++ b/src/Evolution/Systems/Cce/LinearSolve.cpp @@ -15,7 +15,7 @@ #include "NumericalAlgorithms/Spectral/Basis.hpp" #include "NumericalAlgorithms/Spectral/Quadrature.hpp" #include "NumericalAlgorithms/Spectral/Spectral.hpp" -#include "NumericalAlgorithms/Spectral/SwshCoefficients.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCoefficients.hpp" #include "Utilities/ConstantExpressions.hpp" #include "Utilities/Literals.hpp" #include "Utilities/StaticCache.hpp" diff --git a/src/Evolution/Systems/Cce/LinearSolve.hpp b/src/Evolution/Systems/Cce/LinearSolve.hpp index b3ed844f5eeba..e17404b72ea5d 100644 --- a/src/Evolution/Systems/Cce/LinearSolve.hpp +++ b/src/Evolution/Systems/Cce/LinearSolve.hpp @@ -7,7 +7,7 @@ #include "DataStructures/Tensor/TypeAliases.hpp" #include "Evolution/Systems/Cce/OptionTags.hpp" #include "Evolution/Systems/Cce/Tags.hpp" -#include "NumericalAlgorithms/Spectral/SwshTags.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTags.hpp" /// \cond class ComplexDataVector; diff --git a/src/Evolution/Systems/Cce/NewmanPenrose.cpp b/src/Evolution/Systems/Cce/NewmanPenrose.cpp index 20c3632b21531..1963eafe82253 100644 --- a/src/Evolution/Systems/Cce/NewmanPenrose.cpp +++ b/src/Evolution/Systems/Cce/NewmanPenrose.cpp @@ -7,8 +7,8 @@ #include "DataStructures/SpinWeighted.hpp" #include "DataStructures/Tensor/Tensor.hpp" #include "Evolution/Systems/Cce/Tags.hpp" -#include "NumericalAlgorithms/Spectral/SwshDerivatives.hpp" -#include "NumericalAlgorithms/Spectral/SwshInterpolation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshDerivatives.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshInterpolation.hpp" #include "Utilities/Gsl.hpp" #include "Utilities/TMPL.hpp" diff --git a/src/Evolution/Systems/Cce/NewmanPenrose.hpp b/src/Evolution/Systems/Cce/NewmanPenrose.hpp index 6045b610a7c1f..6f8033b8eb2fb 100644 --- a/src/Evolution/Systems/Cce/NewmanPenrose.hpp +++ b/src/Evolution/Systems/Cce/NewmanPenrose.hpp @@ -6,8 +6,8 @@ #include "DataStructures/SpinWeighted.hpp" #include "DataStructures/Tensor/Tensor.hpp" #include "Evolution/Systems/Cce/Tags.hpp" -#include "NumericalAlgorithms/Spectral/SwshDerivatives.hpp" -#include "NumericalAlgorithms/Spectral/SwshInterpolation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshDerivatives.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshInterpolation.hpp" #include "Utilities/Gsl.hpp" #include "Utilities/TMPL.hpp" diff --git a/src/Evolution/Systems/Cce/PreSwshDerivatives.hpp b/src/Evolution/Systems/Cce/PreSwshDerivatives.hpp index 54f4de569c50d..17c410781bacc 100644 --- a/src/Evolution/Systems/Cce/PreSwshDerivatives.hpp +++ b/src/Evolution/Systems/Cce/PreSwshDerivatives.hpp @@ -17,9 +17,9 @@ #include "NumericalAlgorithms/Spectral/Basis.hpp" #include "NumericalAlgorithms/Spectral/Mesh.hpp" #include "NumericalAlgorithms/Spectral/Quadrature.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" -#include "NumericalAlgorithms/Spectral/SwshDerivatives.hpp" -#include "NumericalAlgorithms/Spectral/SwshTags.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshDerivatives.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTags.hpp" #include "Utilities/Gsl.hpp" #include "Utilities/TMPL.hpp" diff --git a/src/Evolution/Systems/Cce/PrecomputeCceDependencies.cpp b/src/Evolution/Systems/Cce/PrecomputeCceDependencies.cpp index fabc669ad0128..7155a614dfa55 100644 --- a/src/Evolution/Systems/Cce/PrecomputeCceDependencies.cpp +++ b/src/Evolution/Systems/Cce/PrecomputeCceDependencies.cpp @@ -10,8 +10,8 @@ #include "Evolution/Systems/Cce/IntegrandInputSteps.hpp" #include "Evolution/Systems/Cce/Tags.hpp" #include "NumericalAlgorithms/Spectral/Spectral.hpp" -#include "NumericalAlgorithms/Spectral/SwshDerivatives.hpp" -#include "NumericalAlgorithms/Spectral/SwshTags.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshDerivatives.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTags.hpp" #include "Utilities/Gsl.hpp" #include "Utilities/VectorAlgebra.hpp" diff --git a/src/Evolution/Systems/Cce/PrecomputeCceDependencies.hpp b/src/Evolution/Systems/Cce/PrecomputeCceDependencies.hpp index 93c604ece3bbe..dbe809be84e6f 100644 --- a/src/Evolution/Systems/Cce/PrecomputeCceDependencies.hpp +++ b/src/Evolution/Systems/Cce/PrecomputeCceDependencies.hpp @@ -14,8 +14,8 @@ #include "NumericalAlgorithms/Spectral/Basis.hpp" #include "NumericalAlgorithms/Spectral/Quadrature.hpp" #include "NumericalAlgorithms/Spectral/Spectral.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" -#include "NumericalAlgorithms/Spectral/SwshTags.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTags.hpp" #include "Utilities/Gsl.hpp" #include "Utilities/TMPL.hpp" #include "Utilities/VectorAlgebra.hpp" diff --git a/src/Evolution/Systems/Cce/ReducedWorldtubeModeRecorder.cpp b/src/Evolution/Systems/Cce/ReducedWorldtubeModeRecorder.cpp index bc804d2eb686a..2c854bc938c66 100644 --- a/src/Evolution/Systems/Cce/ReducedWorldtubeModeRecorder.cpp +++ b/src/Evolution/Systems/Cce/ReducedWorldtubeModeRecorder.cpp @@ -8,7 +8,7 @@ #include "DataStructures/ComplexModalVector.hpp" #include "IO/H5/Dat.hpp" #include "IO/H5/File.hpp" -#include "NumericalAlgorithms/Spectral/SwshCoefficients.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCoefficients.hpp" #include "Utilities/ForceInline.hpp" namespace Cce { diff --git a/src/Evolution/Systems/Cce/ScriPlusValues.cpp b/src/Evolution/Systems/Cce/ScriPlusValues.cpp index 4ad9662557d68..6a911c44f7c55 100644 --- a/src/Evolution/Systems/Cce/ScriPlusValues.cpp +++ b/src/Evolution/Systems/Cce/ScriPlusValues.cpp @@ -7,9 +7,9 @@ #include "DataStructures/DataBox/Prefixes.hpp" #include "Evolution/Systems/Cce/Tags.hpp" -#include "NumericalAlgorithms/Spectral/SwshDerivatives.hpp" -#include "NumericalAlgorithms/Spectral/SwshFiltering.hpp" -#include "NumericalAlgorithms/Spectral/SwshInterpolation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshDerivatives.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshFiltering.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshInterpolation.hpp" namespace Cce { diff --git a/src/Evolution/Systems/Cce/SpecBoundaryData.cpp b/src/Evolution/Systems/Cce/SpecBoundaryData.cpp index 2d2c81ce25d5c..c2a73a346bab2 100644 --- a/src/Evolution/Systems/Cce/SpecBoundaryData.cpp +++ b/src/Evolution/Systems/Cce/SpecBoundaryData.cpp @@ -11,8 +11,8 @@ #include "DataStructures/Tensor/EagerMath/DeterminantAndInverse.hpp" #include "DataStructures/Tensor/Tensor.hpp" #include "DataStructures/Tensor/TypeAliases.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" -#include "NumericalAlgorithms/Spectral/SwshDerivatives.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshDerivatives.hpp" #include "Utilities/ConstantExpressions.hpp" #include "Utilities/Gsl.hpp" #include "Utilities/Math.hpp" diff --git a/src/Evolution/Systems/Cce/SpecBoundaryData.hpp b/src/Evolution/Systems/Cce/SpecBoundaryData.hpp index 48fe25192798d..69a1ef7332e7b 100644 --- a/src/Evolution/Systems/Cce/SpecBoundaryData.hpp +++ b/src/Evolution/Systems/Cce/SpecBoundaryData.hpp @@ -16,8 +16,8 @@ #include "Evolution/Systems/Cce/BoundaryData.hpp" #include "Evolution/Systems/Cce/BoundaryDataTags.hpp" #include "Evolution/Systems/Cce/Tags.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" -#include "NumericalAlgorithms/Spectral/SwshDerivatives.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshDerivatives.hpp" #include "PointwiseFunctions/GeneralRelativity/GeneralizedHarmonic/Phi.hpp" #include "PointwiseFunctions/GeneralRelativity/SpacetimeMetric.hpp" #include "PointwiseFunctions/GeneralRelativity/TimeDerivativeOfSpacetimeMetric.hpp" diff --git a/src/Evolution/Systems/Cce/SwshDerivatives.hpp b/src/Evolution/Systems/Cce/SwshDerivatives.hpp index a103f7b4cde16..f2b2c4ad088be 100644 --- a/src/Evolution/Systems/Cce/SwshDerivatives.hpp +++ b/src/Evolution/Systems/Cce/SwshDerivatives.hpp @@ -16,8 +16,8 @@ #include "Evolution/Systems/Cce/Tags.hpp" #include "NumericalAlgorithms/Spectral/Mesh.hpp" #include "NumericalAlgorithms/Spectral/Spectral.hpp" -#include "NumericalAlgorithms/Spectral/SwshDerivatives.hpp" -#include "NumericalAlgorithms/Spectral/SwshTags.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshDerivatives.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTags.hpp" #include "Utilities/ForceInline.hpp" #include "Utilities/Gsl.hpp" #include "Utilities/TypeTraits.hpp" diff --git a/src/Evolution/Systems/Cce/Tags.hpp b/src/Evolution/Systems/Cce/Tags.hpp index db7d8d35e04b7..28aa02f46b649 100644 --- a/src/Evolution/Systems/Cce/Tags.hpp +++ b/src/Evolution/Systems/Cce/Tags.hpp @@ -11,7 +11,7 @@ #include "DataStructures/Tensor/TypeAliases.hpp" #include "Evolution/Systems/Cce/InterfaceManagers/GhInterfaceManager.hpp" #include "Evolution/Systems/Cce/InterfaceManagers/GhLockstep.hpp" -#include "NumericalAlgorithms/Spectral/SwshTags.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTags.hpp" namespace Cce { diff --git a/src/Evolution/Systems/Cce/WorldtubeBufferUpdater.cpp b/src/Evolution/Systems/Cce/WorldtubeBufferUpdater.cpp index 1007b276cccbe..4f10b3ff8bfe9 100644 --- a/src/Evolution/Systems/Cce/WorldtubeBufferUpdater.cpp +++ b/src/Evolution/Systems/Cce/WorldtubeBufferUpdater.cpp @@ -19,8 +19,8 @@ #include "IO/H5/Dat.hpp" #include "IO/H5/File.hpp" #include "IO/H5/Version.hpp" -#include "NumericalAlgorithms/Spectral/SwshCoefficients.hpp" -#include "NumericalAlgorithms/Spectral/SwshTags.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCoefficients.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTags.hpp" #include "Utilities/ErrorHandling/Assert.hpp" #include "Utilities/ErrorHandling/Error.hpp" #include "Utilities/Gsl.hpp" diff --git a/src/Evolution/Systems/Cce/WorldtubeBufferUpdater.hpp b/src/Evolution/Systems/Cce/WorldtubeBufferUpdater.hpp index 680468be680b5..175e203b2b123 100644 --- a/src/Evolution/Systems/Cce/WorldtubeBufferUpdater.hpp +++ b/src/Evolution/Systems/Cce/WorldtubeBufferUpdater.hpp @@ -20,7 +20,7 @@ #include "IO/H5/Dat.hpp" #include "IO/H5/File.hpp" #include "IO/H5/Version.hpp" -#include "NumericalAlgorithms/Spectral/SwshTags.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTags.hpp" #include "PointwiseFunctions/GeneralRelativity/Tags.hpp" #include "Utilities/ErrorHandling/Assert.hpp" #include "Utilities/Gsl.hpp" diff --git a/src/Evolution/Systems/Cce/WorldtubeDataManager.cpp b/src/Evolution/Systems/Cce/WorldtubeDataManager.cpp index 5ebbe0e2dce91..b8c851e76cc41 100644 --- a/src/Evolution/Systems/Cce/WorldtubeDataManager.cpp +++ b/src/Evolution/Systems/Cce/WorldtubeDataManager.cpp @@ -18,8 +18,8 @@ #include "Evolution/Systems/Cce/SpecBoundaryData.hpp" #include "Evolution/Systems/Cce/Tags.hpp" #include "NumericalAlgorithms/Interpolation/SpanInterpolator.hpp" -#include "NumericalAlgorithms/Spectral/SwshCoefficients.hpp" -#include "NumericalAlgorithms/Spectral/SwshTransform.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCoefficients.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTransform.hpp" #include "Utilities/ErrorHandling/Error.hpp" #include "Utilities/Gsl.hpp" #include "Utilities/TMPL.hpp" diff --git a/src/Executables/ReduceCceWorldtube/ReduceCceWorldtube.cpp b/src/Executables/ReduceCceWorldtube/ReduceCceWorldtube.cpp index 03b09d348d433..90cf316597b43 100644 --- a/src/Executables/ReduceCceWorldtube/ReduceCceWorldtube.cpp +++ b/src/Executables/ReduceCceWorldtube/ReduceCceWorldtube.cpp @@ -16,8 +16,8 @@ #include "Evolution/Systems/Cce/SpecBoundaryData.hpp" #include "Evolution/Systems/Cce/Tags.hpp" #include "Evolution/Systems/Cce/WorldtubeBufferUpdater.hpp" -#include "NumericalAlgorithms/Spectral/SwshCoefficients.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCoefficients.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" #include "Parallel/Printf/Printf.hpp" #include "Utilities/Gsl.hpp" #include "Utilities/TMPL.hpp" diff --git a/src/NumericalAlgorithms/CMakeLists.txt b/src/NumericalAlgorithms/CMakeLists.txt index 5a015c25c25c4..91925fb034cd8 100644 --- a/src/NumericalAlgorithms/CMakeLists.txt +++ b/src/NumericalAlgorithms/CMakeLists.txt @@ -14,3 +14,4 @@ add_subdirectory(RootFinding) add_subdirectory(SpatialDiscretization) add_subdirectory(Spectral) add_subdirectory(SphericalHarmonics) +add_subdirectory(SpinWeightedSphericalHarmonics) diff --git a/src/NumericalAlgorithms/Spectral/CMakeLists.txt b/src/NumericalAlgorithms/Spectral/CMakeLists.txt index f22de036ebfc8..07d9fe911acc6 100644 --- a/src/NumericalAlgorithms/Spectral/CMakeLists.txt +++ b/src/NumericalAlgorithms/Spectral/CMakeLists.txt @@ -10,7 +10,6 @@ spectre_target_sources( PRIVATE Basis.cpp Chebyshev.cpp - ComplexDataView.cpp Filtering.cpp FiniteDifference.cpp Legendre.cpp @@ -19,13 +18,6 @@ spectre_target_sources( Projection.cpp Quadrature.cpp Spectral.cpp - SwshCoefficients.cpp - SwshCollocation.cpp - SwshDerivatives.cpp - SwshFiltering.cpp - SwshInterpolation.cpp - SwshTags.cpp - SwshTransform.cpp ) spectre_target_headers( @@ -34,21 +26,12 @@ spectre_target_headers( HEADERS Basis.hpp Clenshaw.hpp - ComplexDataView.hpp Filtering.hpp LogicalCoordinates.hpp Mesh.hpp Projection.hpp Quadrature.hpp Spectral.hpp - SwshCoefficients.hpp - SwshCollocation.hpp - SwshDerivatives.hpp - SwshFiltering.hpp - SwshInterpolation.hpp - SwshSettings.hpp - SwshTags.hpp - SwshTransform.hpp ) target_link_libraries( @@ -56,11 +39,9 @@ target_link_libraries( PUBLIC DataStructures ErrorHandling - Libsharp Options PRIVATE BLAS::BLAS - Boost::boost LAPACK::LAPACK RootFinding ) diff --git a/src/NumericalAlgorithms/SpinWeightedSphericalHarmonics/CMakeLists.txt b/src/NumericalAlgorithms/SpinWeightedSphericalHarmonics/CMakeLists.txt new file mode 100644 index 0000000000000..b321abe43487b --- /dev/null +++ b/src/NumericalAlgorithms/SpinWeightedSphericalHarmonics/CMakeLists.txt @@ -0,0 +1,46 @@ +# Distributed under the MIT License. +# See LICENSE.txt for details. + +set(LIBRARY SpinWeightedSphericalHarmonics) + +add_spectre_library(${LIBRARY}) + +spectre_target_sources( + ${LIBRARY} + PRIVATE + ComplexDataView.cpp + SwshCoefficients.cpp + SwshCollocation.cpp + SwshDerivatives.cpp + SwshFiltering.cpp + SwshInterpolation.cpp + SwshTags.cpp + SwshTransform.cpp + ) + +spectre_target_headers( + ${LIBRARY} + INCLUDE_DIRECTORY ${CMAKE_SOURCE_DIR}/src + HEADERS + ComplexDataView.hpp + SwshCoefficients.hpp + SwshCollocation.hpp + SwshDerivatives.hpp + SwshFiltering.hpp + SwshInterpolation.hpp + SwshSettings.hpp + SwshTags.hpp + SwshTransform.hpp + ) + +target_link_libraries( + ${LIBRARY} + PUBLIC + DataStructures + ErrorHandling + Libsharp + Options + Spectral + PRIVATE + Boost::boost + ) diff --git a/src/NumericalAlgorithms/Spectral/ComplexDataView.cpp b/src/NumericalAlgorithms/SpinWeightedSphericalHarmonics/ComplexDataView.cpp similarity index 99% rename from src/NumericalAlgorithms/Spectral/ComplexDataView.cpp rename to src/NumericalAlgorithms/SpinWeightedSphericalHarmonics/ComplexDataView.cpp index 79af2c0b69645..9484d1deeb069 100644 --- a/src/NumericalAlgorithms/Spectral/ComplexDataView.cpp +++ b/src/NumericalAlgorithms/SpinWeightedSphericalHarmonics/ComplexDataView.cpp @@ -1,7 +1,7 @@ // Distributed under the MIT License. // See LICENSE.txt for details. -#include "NumericalAlgorithms/Spectral/ComplexDataView.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/ComplexDataView.hpp" #include "DataStructures/ComplexDataVector.hpp" #include "DataStructures/DataVector.hpp" diff --git a/src/NumericalAlgorithms/Spectral/ComplexDataView.hpp b/src/NumericalAlgorithms/SpinWeightedSphericalHarmonics/ComplexDataView.hpp similarity index 100% rename from src/NumericalAlgorithms/Spectral/ComplexDataView.hpp rename to src/NumericalAlgorithms/SpinWeightedSphericalHarmonics/ComplexDataView.hpp diff --git a/src/NumericalAlgorithms/Spectral/SwshCoefficients.cpp b/src/NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCoefficients.cpp similarity index 97% rename from src/NumericalAlgorithms/Spectral/SwshCoefficients.cpp rename to src/NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCoefficients.cpp index 79de9197b6fc7..f8424d81cb513 100644 --- a/src/NumericalAlgorithms/Spectral/SwshCoefficients.cpp +++ b/src/NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCoefficients.cpp @@ -1,7 +1,7 @@ // Distributed under the MIT License. // See LICENSE.txt for details -#include "NumericalAlgorithms/Spectral/SwshCoefficients.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCoefficients.hpp" #include #include @@ -10,7 +10,7 @@ #include #include "DataStructures/SpinWeighted.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" #include "Utilities/ErrorHandling/Error.hpp" #include "Utilities/ForceInline.hpp" #include "Utilities/GenerateInstantiations.hpp" @@ -187,7 +187,7 @@ void goldberg_to_libsharp_modes( const size_t l_max) { const size_t number_of_radial_grid_points = goldberg_modes.data().size() / square(l_max + 1); - for(size_t i = 0; i < number_of_radial_grid_points; ++i) { + for (size_t i = 0; i < number_of_radial_grid_points; ++i) { for (const auto mode : cached_coefficients_metadata(l_max)) { goldberg_modes_to_libsharp_modes_single_pair( mode, libsharp_modes, i, @@ -206,8 +206,8 @@ SpinWeighted goldberg_to_libsharp_modes( const size_t number_of_radial_grid_points = goldberg_modes.data().size() / square(l_max + 1); SpinWeighted result{ - size_of_libsharp_coefficient_vector(l_max) - * number_of_radial_grid_points}; + size_of_libsharp_coefficient_vector(l_max) * + number_of_radial_grid_points}; goldberg_to_libsharp_modes(make_not_null(&result), goldberg_modes, l_max); return result; } diff --git a/src/NumericalAlgorithms/Spectral/SwshCoefficients.hpp b/src/NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCoefficients.hpp similarity index 99% rename from src/NumericalAlgorithms/Spectral/SwshCoefficients.hpp rename to src/NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCoefficients.hpp index 232140e6a7044..042fb1fa2a5b6 100644 --- a/src/NumericalAlgorithms/Spectral/SwshCoefficients.hpp +++ b/src/NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCoefficients.hpp @@ -9,8 +9,8 @@ #include "DataStructures/ComplexModalVector.hpp" #include "DataStructures/SpinWeighted.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" -#include "NumericalAlgorithms/Spectral/SwshSettings.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshSettings.hpp" #include "Utilities/ConstantExpressions.hpp" #include "Utilities/ForceInline.hpp" #include "Utilities/Gsl.hpp" diff --git a/src/NumericalAlgorithms/Spectral/SwshCollocation.cpp b/src/NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.cpp similarity index 96% rename from src/NumericalAlgorithms/Spectral/SwshCollocation.cpp rename to src/NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.cpp index 0915d5e50e546..9adfccfd750e3 100644 --- a/src/NumericalAlgorithms/Spectral/SwshCollocation.cpp +++ b/src/NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.cpp @@ -9,8 +9,8 @@ #include "DataStructures/DataVector.hpp" #include "DataStructures/Tensor/Tensor.hpp" -#include "NumericalAlgorithms/Spectral/ComplexDataView.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/ComplexDataView.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" #include "Utilities/ErrorHandling/Assert.hpp" #include "Utilities/ErrorHandling/Error.hpp" #include "Utilities/ForceInline.hpp" diff --git a/src/NumericalAlgorithms/Spectral/SwshCollocation.hpp b/src/NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp similarity index 98% rename from src/NumericalAlgorithms/Spectral/SwshCollocation.hpp rename to src/NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp index 714524f627bc4..a01bd6478f454 100644 --- a/src/NumericalAlgorithms/Spectral/SwshCollocation.hpp +++ b/src/NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp @@ -9,10 +9,10 @@ #include "DataStructures/DataVector.hpp" #include "DataStructures/Tensor/Tensor.hpp" #include "NumericalAlgorithms/Spectral/Basis.hpp" -#include "NumericalAlgorithms/Spectral/ComplexDataView.hpp" #include "NumericalAlgorithms/Spectral/Mesh.hpp" #include "NumericalAlgorithms/Spectral/Quadrature.hpp" -#include "NumericalAlgorithms/Spectral/SwshSettings.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/ComplexDataView.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshSettings.hpp" #include "Utilities/ForceInline.hpp" #include "Utilities/Gsl.hpp" diff --git a/src/NumericalAlgorithms/Spectral/SwshDerivatives.cpp b/src/NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshDerivatives.cpp similarity index 96% rename from src/NumericalAlgorithms/Spectral/SwshDerivatives.cpp rename to src/NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshDerivatives.cpp index 8af9c515a0257..bdc15b250bc8d 100644 --- a/src/NumericalAlgorithms/Spectral/SwshDerivatives.cpp +++ b/src/NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshDerivatives.cpp @@ -1,16 +1,16 @@ // Distributed under the MIT License. // See LICENSE.txt for details. -#include "NumericalAlgorithms/Spectral/SwshDerivatives.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshDerivatives.hpp" #include "DataStructures/ComplexDataVector.hpp" // IWYU pragma: keep #include "DataStructures/ComplexDiagonalModalOperator.hpp" #include "DataStructures/ComplexModalVector.hpp" #include "DataStructures/SpinWeighted.hpp" // IWYU pragma: keep #include "DataStructures/TempBuffer.hpp" -#include "NumericalAlgorithms/Spectral/ComplexDataView.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" -#include "NumericalAlgorithms/Spectral/SwshTransform.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/ComplexDataView.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTransform.hpp" #include "Utilities/GenerateInstantiations.hpp" #include "Utilities/Literals.hpp" #include "Utilities/StaticCache.hpp" diff --git a/src/NumericalAlgorithms/Spectral/SwshDerivatives.hpp b/src/NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshDerivatives.hpp similarity index 97% rename from src/NumericalAlgorithms/Spectral/SwshDerivatives.hpp rename to src/NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshDerivatives.hpp index 24683080e2436..bced02028d1ee 100644 --- a/src/NumericalAlgorithms/Spectral/SwshDerivatives.hpp +++ b/src/NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshDerivatives.hpp @@ -13,12 +13,12 @@ #include "DataStructures/SpinWeighted.hpp" #include "DataStructures/Tags/TempTensor.hpp" #include "DataStructures/TempBuffer.hpp" // IWYU pragma: keep -#include "NumericalAlgorithms/Spectral/ComplexDataView.hpp" -#include "NumericalAlgorithms/Spectral/SwshCoefficients.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" -#include "NumericalAlgorithms/Spectral/SwshSettings.hpp" -#include "NumericalAlgorithms/Spectral/SwshTags.hpp" -#include "NumericalAlgorithms/Spectral/SwshTransform.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/ComplexDataView.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCoefficients.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshSettings.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTags.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTransform.hpp" #include "Utilities/ForceInline.hpp" #include "Utilities/Gsl.hpp" #include "Utilities/TMPL.hpp" diff --git a/src/NumericalAlgorithms/Spectral/SwshFiltering.cpp b/src/NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshFiltering.cpp similarity index 95% rename from src/NumericalAlgorithms/Spectral/SwshFiltering.cpp rename to src/NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshFiltering.cpp index d532ab453d1e6..7fec558ecbdd3 100644 --- a/src/NumericalAlgorithms/Spectral/SwshFiltering.cpp +++ b/src/NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshFiltering.cpp @@ -1,7 +1,7 @@ // Distributed under the MIT License. // See LICENSE.txt for details. -#include "NumericalAlgorithms/Spectral/SwshFiltering.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshFiltering.hpp" #include "DataStructures/ApplyMatrices.hpp" #include "DataStructures/ComplexDataVector.hpp" @@ -13,9 +13,9 @@ #include "NumericalAlgorithms/Spectral/Filtering.hpp" #include "NumericalAlgorithms/Spectral/Mesh.hpp" #include "NumericalAlgorithms/Spectral/Quadrature.hpp" -#include "NumericalAlgorithms/Spectral/SwshCoefficients.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" -#include "NumericalAlgorithms/Spectral/SwshTransform.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCoefficients.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTransform.hpp" #include "Utilities/GenerateInstantiations.hpp" #include "Utilities/MakeArray.hpp" @@ -136,8 +136,7 @@ void filter_swsh_boundary_quantity( template void filter_swsh_boundary_quantity( const gsl::not_null*> to_filter, - const size_t l_max, const size_t filter_min_l, - const size_t filter_max_l) { + const size_t l_max, const size_t filter_min_l, const size_t filter_max_l) { const size_t number_of_radial_grid_points = to_filter->data().size() / number_of_swsh_collocation_points(l_max); auto transform_buffer = SpinWeighted{ @@ -183,19 +182,18 @@ void filter_swsh_boundary_quantity( const size_t exponential_half_power, \ const gsl::not_null buffer, \ const gsl::not_null*> \ - transform_buffer); \ + transform_buffer); \ template void filter_swsh_volume_quantity( \ const gsl::not_null*> \ to_filter, \ const size_t l_max, const size_t filter_max_l, \ - const double exponential_alpha, \ - const size_t exponential_half_power); \ + const double exponential_alpha, const size_t exponential_half_power); \ template void filter_swsh_volume_quantity( \ const gsl::not_null*> \ to_filter, \ const size_t l_max, const size_t filter_min_l, \ const size_t filter_max_l, const double exponential_alpha, \ - const size_t exponential_half_power); \ + const size_t exponential_half_power); \ template void filter_swsh_boundary_quantity( \ const gsl::not_null*> \ to_filter, \ @@ -208,11 +206,11 @@ void filter_swsh_boundary_quantity( const size_t l_max, const size_t filter_min_l, \ const size_t filter_max_l, \ const gsl::not_null*> \ - transform_buffer); \ + transform_buffer); \ template void filter_swsh_boundary_quantity( \ const gsl::not_null*> \ to_filter, \ - const size_t l_max, const size_t filter_max_l); \ + const size_t l_max, const size_t filter_max_l); \ template void filter_swsh_boundary_quantity( \ const gsl::not_null*> \ to_filter, \ diff --git a/src/NumericalAlgorithms/Spectral/SwshFiltering.hpp b/src/NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshFiltering.hpp similarity index 98% rename from src/NumericalAlgorithms/Spectral/SwshFiltering.hpp rename to src/NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshFiltering.hpp index 11e0d8878c414..9d3c4beb7bbb0 100644 --- a/src/NumericalAlgorithms/Spectral/SwshFiltering.hpp +++ b/src/NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshFiltering.hpp @@ -121,8 +121,7 @@ template void filter_swsh_boundary_quantity( gsl::not_null*> to_filter, size_t l_max, size_t filter_min_l, size_t filter_max_l, - gsl::not_null*> - transform_buffer); + gsl::not_null*> transform_buffer); template void filter_swsh_boundary_quantity( diff --git a/src/NumericalAlgorithms/Spectral/SwshInterpolation.cpp b/src/NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshInterpolation.cpp similarity index 98% rename from src/NumericalAlgorithms/Spectral/SwshInterpolation.cpp rename to src/NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshInterpolation.cpp index 806c3553080de..56c9e82f07c3f 100644 --- a/src/NumericalAlgorithms/Spectral/SwshInterpolation.cpp +++ b/src/NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshInterpolation.cpp @@ -1,7 +1,7 @@ // Distributed under the MIT License. // See LICENSE.txt for details. -#include "NumericalAlgorithms/Spectral/SwshInterpolation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshInterpolation.hpp" #include #include @@ -16,9 +16,9 @@ #include "DataStructures/ComplexModalVector.hpp" #include "DataStructures/DataVector.hpp" #include "DataStructures/SpinWeighted.hpp" -#include "NumericalAlgorithms/Spectral/SwshCoefficients.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" -#include "NumericalAlgorithms/Spectral/SwshTransform.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCoefficients.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTransform.hpp" #include "Utilities/ErrorHandling/Assert.hpp" #include "Utilities/GenerateInstantiations.hpp" #include "Utilities/Gsl.hpp" diff --git a/src/NumericalAlgorithms/Spectral/SwshInterpolation.hpp b/src/NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshInterpolation.hpp similarity index 100% rename from src/NumericalAlgorithms/Spectral/SwshInterpolation.hpp rename to src/NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshInterpolation.hpp diff --git a/src/NumericalAlgorithms/Spectral/SwshSettings.hpp b/src/NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshSettings.hpp similarity index 100% rename from src/NumericalAlgorithms/Spectral/SwshSettings.hpp rename to src/NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshSettings.hpp diff --git a/src/NumericalAlgorithms/Spectral/SwshTags.cpp b/src/NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTags.cpp similarity index 95% rename from src/NumericalAlgorithms/Spectral/SwshTags.cpp rename to src/NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTags.cpp index 993220a2a0543..17ad9446ee813 100644 --- a/src/NumericalAlgorithms/Spectral/SwshTags.cpp +++ b/src/NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTags.cpp @@ -1,7 +1,7 @@ // Distributed under the MIT License. // See LICENSE.txt for details. -#include "NumericalAlgorithms/Spectral/SwshTags.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTags.hpp" namespace Spectral { namespace Swsh { diff --git a/src/NumericalAlgorithms/Spectral/SwshTags.hpp b/src/NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTags.hpp similarity index 97% rename from src/NumericalAlgorithms/Spectral/SwshTags.hpp rename to src/NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTags.hpp index 1759e5163f068..3090106810a7b 100644 --- a/src/NumericalAlgorithms/Spectral/SwshTags.hpp +++ b/src/NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTags.hpp @@ -5,12 +5,12 @@ #include -#include "DataStructures/ComplexDataVector.hpp" // IWYU pragma: keep +#include "DataStructures/ComplexDataVector.hpp" // IWYU pragma: keep #include "DataStructures/ComplexModalVector.hpp" // IWYU pragma: keep #include "DataStructures/DataBox/Tag.hpp" #include "DataStructures/DataBox/TagName.hpp" -#include "DataStructures/SpinWeighted.hpp" // IWYU pragma: keep -#include "DataStructures/Tensor/Tensor.hpp" // IWYU pragma: keep +#include "DataStructures/SpinWeighted.hpp" // IWYU pragma: keep +#include "DataStructures/Tensor/Tensor.hpp" // IWYU pragma: keep #include "DataStructures/Tensor/TypeAliases.hpp" // IWYU pragma: keep #include "Utilities/TMPL.hpp" #include "Utilities/TypeTraits.hpp" diff --git a/src/NumericalAlgorithms/Spectral/SwshTransform.cpp b/src/NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTransform.cpp similarity index 99% rename from src/NumericalAlgorithms/Spectral/SwshTransform.cpp rename to src/NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTransform.cpp index e7430d849a8ba..c9ecfe0234485 100644 --- a/src/NumericalAlgorithms/Spectral/SwshTransform.cpp +++ b/src/NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTransform.cpp @@ -1,7 +1,7 @@ // Distributed under the MIT License. // See LICENSE.txt for details. -#include "NumericalAlgorithms/Spectral/SwshTransform.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTransform.hpp" #include diff --git a/src/NumericalAlgorithms/Spectral/SwshTransform.hpp b/src/NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTransform.hpp similarity index 99% rename from src/NumericalAlgorithms/Spectral/SwshTransform.hpp rename to src/NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTransform.hpp index 0e846ee16335b..e5f42e942f08c 100644 --- a/src/NumericalAlgorithms/Spectral/SwshTransform.hpp +++ b/src/NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTransform.hpp @@ -14,10 +14,10 @@ #include "DataStructures/SpinWeighted.hpp" #include "DataStructures/Tags.hpp" #include "DataStructures/Tags/TempTensor.hpp" -#include "NumericalAlgorithms/Spectral/ComplexDataView.hpp" -#include "NumericalAlgorithms/Spectral/SwshCoefficients.hpp" // IWYU pragma: keep -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" -#include "NumericalAlgorithms/Spectral/SwshTags.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/ComplexDataView.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCoefficients.hpp" // IWYU pragma: keep +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTags.hpp" #include "Utilities/Gsl.hpp" #include "Utilities/TMPL.hpp" diff --git a/src/PointwiseFunctions/AnalyticData/CurvedWaveEquation/CMakeLists.txt b/src/PointwiseFunctions/AnalyticData/CurvedWaveEquation/CMakeLists.txt index 83bd811d0bd89..5b7c7f9cc8c52 100644 --- a/src/PointwiseFunctions/AnalyticData/CurvedWaveEquation/CMakeLists.txt +++ b/src/PointwiseFunctions/AnalyticData/CurvedWaveEquation/CMakeLists.txt @@ -30,7 +30,7 @@ target_link_libraries( DataStructures GeneralRelativity GeneralRelativitySolutions - Spectral + SpinWeightedSphericalHarmonics Utilities WaveEquationSolutions ) diff --git a/src/PointwiseFunctions/AnalyticData/CurvedWaveEquation/PureSphericalHarmonic.cpp b/src/PointwiseFunctions/AnalyticData/CurvedWaveEquation/PureSphericalHarmonic.cpp index 707f335aa0f25..c447e718c5049 100644 --- a/src/PointwiseFunctions/AnalyticData/CurvedWaveEquation/PureSphericalHarmonic.cpp +++ b/src/PointwiseFunctions/AnalyticData/CurvedWaveEquation/PureSphericalHarmonic.cpp @@ -11,7 +11,7 @@ #include "DataStructures/Tensor/EagerMath/Magnitude.hpp" #include "DataStructures/Tensor/Tensor.hpp" #include "Evolution/Systems/CurvedScalarWave/Tags.hpp" -#include "NumericalAlgorithms/Spectral/SwshInterpolation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshInterpolation.hpp" #include "Options/ParseError.hpp" #include "Utilities/MakeWithValue.hpp" #include "Utilities/TaggedTuple.hpp" diff --git a/src/PointwiseFunctions/AnalyticData/ScalarTensor/CMakeLists.txt b/src/PointwiseFunctions/AnalyticData/ScalarTensor/CMakeLists.txt index f7a3e68e91e60..a5fa6e1a3ac79 100644 --- a/src/PointwiseFunctions/AnalyticData/ScalarTensor/CMakeLists.txt +++ b/src/PointwiseFunctions/AnalyticData/ScalarTensor/CMakeLists.txt @@ -29,4 +29,5 @@ target_link_libraries( InitialDataUtilities Options Serialization + SpinWeightedSphericalHarmonics ) diff --git a/src/PointwiseFunctions/AnalyticData/ScalarTensor/KerrSphericalHarmonic.cpp b/src/PointwiseFunctions/AnalyticData/ScalarTensor/KerrSphericalHarmonic.cpp index 6632b8dfb7134..d04c705b7108a 100644 --- a/src/PointwiseFunctions/AnalyticData/ScalarTensor/KerrSphericalHarmonic.cpp +++ b/src/PointwiseFunctions/AnalyticData/ScalarTensor/KerrSphericalHarmonic.cpp @@ -12,7 +12,7 @@ #include "DataStructures/Tensor/EagerMath/Magnitude.hpp" #include "DataStructures/Tensor/Tensor.hpp" #include "Evolution/Systems/CurvedScalarWave/Tags.hpp" -#include "NumericalAlgorithms/Spectral/SwshInterpolation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshInterpolation.hpp" #include "Utilities/ConstantExpressions.hpp" #include "Utilities/ErrorHandling/Assert.hpp" #include "Utilities/GenerateInstantiations.hpp" diff --git a/tests/Unit/Evolution/Systems/Cce/Actions/Test_AnalyticBoundaryCommunication.cpp b/tests/Unit/Evolution/Systems/Cce/Actions/Test_AnalyticBoundaryCommunication.cpp index b23de427fe616..4f8153d01f709 100644 --- a/tests/Unit/Evolution/Systems/Cce/Actions/Test_AnalyticBoundaryCommunication.cpp +++ b/tests/Unit/Evolution/Systems/Cce/Actions/Test_AnalyticBoundaryCommunication.cpp @@ -25,8 +25,8 @@ #include "Framework/ActionTesting.hpp" #include "Framework/TestHelpers.hpp" #include "Helpers/DataStructures/MakeWithRandomValues.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" -#include "NumericalAlgorithms/Spectral/SwshTags.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTags.hpp" #include "Options/Protocols/FactoryCreation.hpp" #include "Parallel/Phase.hpp" #include "ParallelAlgorithms/Actions/TerminatePhase.hpp" diff --git a/tests/Unit/Evolution/Systems/Cce/Actions/Test_CalculateScriInputs.cpp b/tests/Unit/Evolution/Systems/Cce/Actions/Test_CalculateScriInputs.cpp index 6632448e3946f..fd76a12e628ed 100644 --- a/tests/Unit/Evolution/Systems/Cce/Actions/Test_CalculateScriInputs.cpp +++ b/tests/Unit/Evolution/Systems/Cce/Actions/Test_CalculateScriInputs.cpp @@ -23,12 +23,12 @@ #include "Framework/TestHelpers.hpp" #include "Helpers/DataStructures/MakeWithRandomValues.hpp" #include "Helpers/Evolution/Systems/Cce/BoundaryTestHelpers.hpp" -#include "Helpers/NumericalAlgorithms/Spectral/SwshTestHelpers.hpp" +#include "Helpers/NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTestHelpers.hpp" #include "NumericalAlgorithms/Interpolation/BarycentricRationalSpanInterpolator.hpp" -#include "NumericalAlgorithms/Spectral/SwshCoefficients.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" -#include "NumericalAlgorithms/Spectral/SwshFiltering.hpp" -#include "NumericalAlgorithms/Spectral/SwshTransform.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCoefficients.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshFiltering.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTransform.hpp" #include "Parallel/Phase.hpp" #include "ParallelAlgorithms/Actions/MutateApply.hpp" #include "PointwiseFunctions/AnalyticSolutions/GeneralRelativity/KerrSchild.hpp" diff --git a/tests/Unit/Evolution/Systems/Cce/Actions/Test_CharacteristicEvolutionBondiCalculations.cpp b/tests/Unit/Evolution/Systems/Cce/Actions/Test_CharacteristicEvolutionBondiCalculations.cpp index 4963d80c32cf6..3576d48df9461 100644 --- a/tests/Unit/Evolution/Systems/Cce/Actions/Test_CharacteristicEvolutionBondiCalculations.cpp +++ b/tests/Unit/Evolution/Systems/Cce/Actions/Test_CharacteristicEvolutionBondiCalculations.cpp @@ -32,8 +32,8 @@ #include "Helpers/DataStructures/MakeWithRandomValues.hpp" #include "Helpers/Evolution/Systems/Cce/BoundaryTestHelpers.hpp" #include "NumericalAlgorithms/Interpolation/BarycentricRationalSpanInterpolator.hpp" -#include "NumericalAlgorithms/Spectral/SwshInterpolation.hpp" -#include "NumericalAlgorithms/Spectral/SwshTags.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshInterpolation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTags.hpp" #include "Options/Protocols/FactoryCreation.hpp" #include "Parallel/Phase.hpp" #include "ParallelAlgorithms/Actions/MutateApply.hpp" diff --git a/tests/Unit/Evolution/Systems/Cce/Actions/Test_FilterSwshVolumeQuantity.cpp b/tests/Unit/Evolution/Systems/Cce/Actions/Test_FilterSwshVolumeQuantity.cpp index 92f2cbd68b548..1b4267033a5c9 100644 --- a/tests/Unit/Evolution/Systems/Cce/Actions/Test_FilterSwshVolumeQuantity.cpp +++ b/tests/Unit/Evolution/Systems/Cce/Actions/Test_FilterSwshVolumeQuantity.cpp @@ -21,10 +21,10 @@ #include "Helpers/DataStructures/MakeWithRandomValues.hpp" #include "Helpers/Evolution/Systems/Cce/BoundaryTestHelpers.hpp" #include "NumericalAlgorithms/Interpolation/BarycentricRationalSpanInterpolator.hpp" -#include "NumericalAlgorithms/Spectral/SwshCoefficients.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" -#include "NumericalAlgorithms/Spectral/SwshFiltering.hpp" -#include "NumericalAlgorithms/Spectral/SwshTransform.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCoefficients.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshFiltering.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTransform.hpp" #include "Parallel/Phase.hpp" #include "PointwiseFunctions/AnalyticSolutions/GeneralRelativity/KerrSchild.hpp" #include "Utilities/Literals.hpp" diff --git a/tests/Unit/Evolution/Systems/Cce/Actions/Test_GhBoundaryCommunication.cpp b/tests/Unit/Evolution/Systems/Cce/Actions/Test_GhBoundaryCommunication.cpp index 673b4a362ec56..b44e5dd28e7a2 100644 --- a/tests/Unit/Evolution/Systems/Cce/Actions/Test_GhBoundaryCommunication.cpp +++ b/tests/Unit/Evolution/Systems/Cce/Actions/Test_GhBoundaryCommunication.cpp @@ -35,9 +35,9 @@ #include "Helpers/DataStructures/MakeWithRandomValues.hpp" #include "Helpers/Evolution/Systems/Cce/BoundaryTestHelpers.hpp" #include "NumericalAlgorithms/Interpolation/LinearSpanInterpolator.hpp" -#include "NumericalAlgorithms/Spectral/SwshCoefficients.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" -#include "NumericalAlgorithms/Spectral/SwshTags.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCoefficients.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTags.hpp" #include "Options/Protocols/FactoryCreation.hpp" #include "Parallel/Phase.hpp" #include "PointwiseFunctions/AnalyticSolutions/GeneralRelativity/KerrSchild.hpp" diff --git a/tests/Unit/Evolution/Systems/Cce/Actions/Test_H5BoundaryCommunication.cpp b/tests/Unit/Evolution/Systems/Cce/Actions/Test_H5BoundaryCommunication.cpp index 2b384bd0cc1d5..8e0519583c9e4 100644 --- a/tests/Unit/Evolution/Systems/Cce/Actions/Test_H5BoundaryCommunication.cpp +++ b/tests/Unit/Evolution/Systems/Cce/Actions/Test_H5BoundaryCommunication.cpp @@ -32,9 +32,9 @@ #include "Helpers/DataStructures/MakeWithRandomValues.hpp" #include "Helpers/Evolution/Systems/Cce/BoundaryTestHelpers.hpp" #include "NumericalAlgorithms/Interpolation/BarycentricRationalSpanInterpolator.hpp" -#include "NumericalAlgorithms/Spectral/SwshCoefficients.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" -#include "NumericalAlgorithms/Spectral/SwshTags.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCoefficients.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTags.hpp" #include "Options/Protocols/FactoryCreation.hpp" #include "Parallel/Phase.hpp" #include "ParallelAlgorithms/Actions/TerminatePhase.hpp" diff --git a/tests/Unit/Evolution/Systems/Cce/Actions/Test_InitializeCharacteristicEvolution.cpp b/tests/Unit/Evolution/Systems/Cce/Actions/Test_InitializeCharacteristicEvolution.cpp index a2f266ce8c3f8..f3a21ee4f914d 100644 --- a/tests/Unit/Evolution/Systems/Cce/Actions/Test_InitializeCharacteristicEvolution.cpp +++ b/tests/Unit/Evolution/Systems/Cce/Actions/Test_InitializeCharacteristicEvolution.cpp @@ -25,8 +25,8 @@ #include "Helpers/Evolution/Systems/Cce/Actions/CharacteristicInitialization.hpp" #include "Helpers/Evolution/Systems/Cce/BoundaryTestHelpers.hpp" #include "NumericalAlgorithms/Interpolation/BarycentricRationalSpanInterpolator.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" -#include "NumericalAlgorithms/Spectral/SwshTags.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTags.hpp" #include "Options/Protocols/FactoryCreation.hpp" #include "Parallel/GlobalCache.hpp" #include "Parallel/Phase.hpp" diff --git a/tests/Unit/Evolution/Systems/Cce/Actions/Test_InitializeFirstHypersurface.cpp b/tests/Unit/Evolution/Systems/Cce/Actions/Test_InitializeFirstHypersurface.cpp index 6e54cf84292a4..e10d78dd8c10f 100644 --- a/tests/Unit/Evolution/Systems/Cce/Actions/Test_InitializeFirstHypersurface.cpp +++ b/tests/Unit/Evolution/Systems/Cce/Actions/Test_InitializeFirstHypersurface.cpp @@ -23,11 +23,11 @@ #include "Framework/ActionTesting.hpp" #include "Framework/TestHelpers.hpp" #include "Helpers/DataStructures/MakeWithRandomValues.hpp" -#include "Helpers/NumericalAlgorithms/Spectral/SwshTestHelpers.hpp" -#include "NumericalAlgorithms/Spectral/SwshCoefficients.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" -#include "NumericalAlgorithms/Spectral/SwshFiltering.hpp" -#include "NumericalAlgorithms/Spectral/SwshTransform.hpp" +#include "Helpers/NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTestHelpers.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCoefficients.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshFiltering.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTransform.hpp" #include "Parallel/Phase.hpp" #include "ParallelAlgorithms/Actions/MutateApply.hpp" #include "Time/Slab.hpp" diff --git a/tests/Unit/Evolution/Systems/Cce/Actions/Test_InitializeKleinGordonFirstHypersurface.cpp b/tests/Unit/Evolution/Systems/Cce/Actions/Test_InitializeKleinGordonFirstHypersurface.cpp index fb209d2adbee5..f2eea11d957db 100644 --- a/tests/Unit/Evolution/Systems/Cce/Actions/Test_InitializeKleinGordonFirstHypersurface.cpp +++ b/tests/Unit/Evolution/Systems/Cce/Actions/Test_InitializeKleinGordonFirstHypersurface.cpp @@ -7,8 +7,8 @@ #include "Framework/ActionTesting.hpp" #include "Framework/TestHelpers.hpp" #include "Helpers/DataStructures/MakeWithRandomValues.hpp" -#include "Helpers/NumericalAlgorithms/Spectral/SwshTestHelpers.hpp" -#include "NumericalAlgorithms/Spectral/SwshFiltering.hpp" +#include "Helpers/NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTestHelpers.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshFiltering.hpp" #include "Utilities/Gsl.hpp" namespace Cce { diff --git a/tests/Unit/Evolution/Systems/Cce/Actions/Test_InitializeWorldtubeBoundary.cpp b/tests/Unit/Evolution/Systems/Cce/Actions/Test_InitializeWorldtubeBoundary.cpp index c2e56fb8014ab..3f948c647558d 100644 --- a/tests/Unit/Evolution/Systems/Cce/Actions/Test_InitializeWorldtubeBoundary.cpp +++ b/tests/Unit/Evolution/Systems/Cce/Actions/Test_InitializeWorldtubeBoundary.cpp @@ -26,7 +26,7 @@ #include "Helpers/Evolution/Systems/Cce/Actions/WorldtubeBoundaryMocking.hpp" #include "Helpers/Evolution/Systems/Cce/BoundaryTestHelpers.hpp" #include "NumericalAlgorithms/Interpolation/BarycentricRationalSpanInterpolator.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" #include "Parallel/Phase.hpp" #include "ParallelAlgorithms/Actions/TerminatePhase.hpp" #include "PointwiseFunctions/AnalyticSolutions/GeneralRelativity/KerrSchild.hpp" diff --git a/tests/Unit/Evolution/Systems/Cce/Actions/Test_KleinGordonCceCalculations.cpp b/tests/Unit/Evolution/Systems/Cce/Actions/Test_KleinGordonCceCalculations.cpp index e04b478adf722..42cc4034691e4 100644 --- a/tests/Unit/Evolution/Systems/Cce/Actions/Test_KleinGordonCceCalculations.cpp +++ b/tests/Unit/Evolution/Systems/Cce/Actions/Test_KleinGordonCceCalculations.cpp @@ -10,8 +10,8 @@ #include "Framework/ActionTesting.hpp" #include "Framework/TestHelpers.hpp" #include "Helpers/DataStructures/MakeWithRandomValues.hpp" -#include "Helpers/NumericalAlgorithms/Spectral/SwshTestHelpers.hpp" -#include "NumericalAlgorithms/Spectral/SwshFiltering.hpp" +#include "Helpers/NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTestHelpers.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshFiltering.hpp" #include "ParallelAlgorithms/Actions/MutateApply.hpp" #include "Utilities/Gsl.hpp" diff --git a/tests/Unit/Evolution/Systems/Cce/Actions/Test_Psi0Matching.cpp b/tests/Unit/Evolution/Systems/Cce/Actions/Test_Psi0Matching.cpp index 434e176ed0221..677b1dc6fa4ec 100644 --- a/tests/Unit/Evolution/Systems/Cce/Actions/Test_Psi0Matching.cpp +++ b/tests/Unit/Evolution/Systems/Cce/Actions/Test_Psi0Matching.cpp @@ -16,7 +16,7 @@ #include "Evolution/Systems/Cce/OptionTags.hpp" #include "Evolution/Systems/Cce/Tags.hpp" #include "Framework/ActionTesting.hpp" -#include "Helpers/NumericalAlgorithms/Spectral/SwshTestHelpers.hpp" +#include "Helpers/NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTestHelpers.hpp" #include "Parallel/Phase.hpp" namespace Cce { diff --git a/tests/Unit/Evolution/Systems/Cce/Actions/Test_ScriObserveInterpolated.cpp b/tests/Unit/Evolution/Systems/Cce/Actions/Test_ScriObserveInterpolated.cpp index ea2ab419f0cbf..0309ff6a6f9a4 100644 --- a/tests/Unit/Evolution/Systems/Cce/Actions/Test_ScriObserveInterpolated.cpp +++ b/tests/Unit/Evolution/Systems/Cce/Actions/Test_ScriObserveInterpolated.cpp @@ -28,12 +28,12 @@ #include "Framework/TestHelpers.hpp" #include "Helpers/DataStructures/MakeWithRandomValues.hpp" #include "Helpers/Evolution/Systems/Cce/BoundaryTestHelpers.hpp" -#include "Helpers/NumericalAlgorithms/Spectral/SwshTestHelpers.hpp" +#include "Helpers/NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTestHelpers.hpp" #include "IO/Observer/Initialize.hpp" #include "IO/Observer/ObserverComponent.hpp" #include "NumericalAlgorithms/Interpolation/BarycentricRationalSpanInterpolator.hpp" -#include "NumericalAlgorithms/Spectral/SwshCoefficients.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCoefficients.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" #include "Options/Protocols/FactoryCreation.hpp" #include "Parallel/GlobalCache.hpp" #include "Parallel/Phase.hpp" diff --git a/tests/Unit/Evolution/Systems/Cce/Actions/Test_UpdateGauge.cpp b/tests/Unit/Evolution/Systems/Cce/Actions/Test_UpdateGauge.cpp index 9d1337f299cd2..e8ded9271765f 100644 --- a/tests/Unit/Evolution/Systems/Cce/Actions/Test_UpdateGauge.cpp +++ b/tests/Unit/Evolution/Systems/Cce/Actions/Test_UpdateGauge.cpp @@ -19,11 +19,11 @@ #include "Framework/ActionTesting.hpp" #include "Framework/TestHelpers.hpp" #include "Helpers/DataStructures/MakeWithRandomValues.hpp" -#include "Helpers/NumericalAlgorithms/Spectral/SwshTestHelpers.hpp" -#include "NumericalAlgorithms/Spectral/SwshCoefficients.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" -#include "NumericalAlgorithms/Spectral/SwshFiltering.hpp" -#include "NumericalAlgorithms/Spectral/SwshTransform.hpp" +#include "Helpers/NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTestHelpers.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCoefficients.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshFiltering.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTransform.hpp" #include "Parallel/Phase.hpp" #include "ParallelAlgorithms/Actions/MutateApply.hpp" #include "Utilities/Gsl.hpp" diff --git a/tests/Unit/Evolution/Systems/Cce/AnalyticSolutions/Test_BouncingBlackHole.cpp b/tests/Unit/Evolution/Systems/Cce/AnalyticSolutions/Test_BouncingBlackHole.cpp index 2eb5bb4b6d42b..691f844ca6ef9 100644 --- a/tests/Unit/Evolution/Systems/Cce/AnalyticSolutions/Test_BouncingBlackHole.cpp +++ b/tests/Unit/Evolution/Systems/Cce/AnalyticSolutions/Test_BouncingBlackHole.cpp @@ -17,7 +17,7 @@ #include "Helpers/DataStructures/MakeWithRandomValues.hpp" #include "Helpers/Evolution/Systems/Cce/AnalyticSolutions/AnalyticDataHelpers.hpp" #include "Helpers/Evolution/Systems/Cce/BoundaryTestHelpers.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" #include "PointwiseFunctions/AnalyticSolutions/GeneralRelativity/KerrSchild.hpp" #include "PointwiseFunctions/GeneralRelativity/GeneralizedHarmonic/SpatialDerivOfLapse.hpp" #include "PointwiseFunctions/GeneralRelativity/GeneralizedHarmonic/SpatialDerivOfShift.hpp" diff --git a/tests/Unit/Evolution/Systems/Cce/AnalyticSolutions/Test_LinearizedBondiSachs.cpp b/tests/Unit/Evolution/Systems/Cce/AnalyticSolutions/Test_LinearizedBondiSachs.cpp index b53b1b16f193c..28f5fb9a67b38 100644 --- a/tests/Unit/Evolution/Systems/Cce/AnalyticSolutions/Test_LinearizedBondiSachs.cpp +++ b/tests/Unit/Evolution/Systems/Cce/AnalyticSolutions/Test_LinearizedBondiSachs.cpp @@ -21,7 +21,7 @@ #include "Framework/TestHelpers.hpp" #include "Helpers/DataStructures/MakeWithRandomValues.hpp" #include "Helpers/Evolution/Systems/Cce/AnalyticSolutions/AnalyticDataHelpers.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" #include "PointwiseFunctions/AnalyticSolutions/GeneralRelativity/KerrSchild.hpp" #include "PointwiseFunctions/GeneralRelativity/Tags.hpp" #include "Utilities/Gsl.hpp" diff --git a/tests/Unit/Evolution/Systems/Cce/AnalyticSolutions/Test_RobinsonTrautman.cpp b/tests/Unit/Evolution/Systems/Cce/AnalyticSolutions/Test_RobinsonTrautman.cpp index 8db575eed931a..2e54439746a5b 100644 --- a/tests/Unit/Evolution/Systems/Cce/AnalyticSolutions/Test_RobinsonTrautman.cpp +++ b/tests/Unit/Evolution/Systems/Cce/AnalyticSolutions/Test_RobinsonTrautman.cpp @@ -19,9 +19,9 @@ #include "Framework/TestHelpers.hpp" #include "Helpers/DataStructures/MakeWithRandomValues.hpp" #include "Helpers/Evolution/Systems/Cce/AnalyticSolutions/AnalyticDataHelpers.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" -#include "NumericalAlgorithms/Spectral/SwshDerivatives.hpp" -#include "NumericalAlgorithms/Spectral/SwshFiltering.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshDerivatives.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshFiltering.hpp" #include "Options/Context.hpp" #include "PointwiseFunctions/AnalyticSolutions/GeneralRelativity/KerrSchild.hpp" #include "PointwiseFunctions/GeneralRelativity/Tags.hpp" diff --git a/tests/Unit/Evolution/Systems/Cce/Events/Test_ObserveFields.cpp b/tests/Unit/Evolution/Systems/Cce/Events/Test_ObserveFields.cpp index bfcb32f293d1d..c889604f8b795 100644 --- a/tests/Unit/Evolution/Systems/Cce/Events/Test_ObserveFields.cpp +++ b/tests/Unit/Evolution/Systems/Cce/Events/Test_ObserveFields.cpp @@ -14,7 +14,7 @@ #include "Framework/ActionTesting.hpp" #include "Framework/TestHelpers.hpp" #include "IO/Observer/ObserverComponent.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" #include "Parallel/Phase.hpp" #include "ParallelAlgorithms/EventsAndTriggers/Event.hpp" #include "Time/Tags/Time.hpp" diff --git a/tests/Unit/Evolution/Systems/Cce/Test_BoundaryData.cpp b/tests/Unit/Evolution/Systems/Cce/Test_BoundaryData.cpp index 97ad501a54c21..345b44afe5461 100644 --- a/tests/Unit/Evolution/Systems/Cce/Test_BoundaryData.cpp +++ b/tests/Unit/Evolution/Systems/Cce/Test_BoundaryData.cpp @@ -16,7 +16,7 @@ #include "Framework/SetupLocalPythonEnvironment.hpp" #include "Helpers/DataStructures/MakeWithRandomValues.hpp" #include "Helpers/Evolution/Systems/Cce/BoundaryTestHelpers.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" #include "PointwiseFunctions/AnalyticSolutions/GeneralRelativity/KerrSchild.hpp" #include "PointwiseFunctions/GeneralRelativity/GeneralizedHarmonic/Phi.hpp" #include "PointwiseFunctions/GeneralRelativity/GeneralizedHarmonic/Pi.hpp" diff --git a/tests/Unit/Evolution/Systems/Cce/Test_DumpBondiSachsOnWorldtube.cpp b/tests/Unit/Evolution/Systems/Cce/Test_DumpBondiSachsOnWorldtube.cpp index d2f139336f7c8..bc8cbe9988cf8 100644 --- a/tests/Unit/Evolution/Systems/Cce/Test_DumpBondiSachsOnWorldtube.cpp +++ b/tests/Unit/Evolution/Systems/Cce/Test_DumpBondiSachsOnWorldtube.cpp @@ -27,7 +27,7 @@ #include "IO/H5/File.hpp" #include "IO/Observer/Initialize.hpp" #include "IO/Observer/ObserverComponent.hpp" -#include "NumericalAlgorithms/Spectral/SwshCoefficients.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCoefficients.hpp" #include "Parallel/GlobalCache.hpp" #include "ParallelAlgorithms/Interpolation/Protocols/InterpolationTargetTag.hpp" #include "ParallelAlgorithms/Interpolation/Protocols/PostInterpolationCallback.hpp" diff --git a/tests/Unit/Evolution/Systems/Cce/Test_InitializeCce.cpp b/tests/Unit/Evolution/Systems/Cce/Test_InitializeCce.cpp index e3b37e2a6fab0..fbc1d3f2ff17c 100644 --- a/tests/Unit/Evolution/Systems/Cce/Test_InitializeCce.cpp +++ b/tests/Unit/Evolution/Systems/Cce/Test_InitializeCce.cpp @@ -24,9 +24,9 @@ #include "Framework/TestCreation.hpp" #include "Framework/TestHelpers.hpp" #include "Helpers/DataStructures/MakeWithRandomValues.hpp" -#include "Helpers/NumericalAlgorithms/Spectral/SwshTestHelpers.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" -#include "NumericalAlgorithms/Spectral/SwshFiltering.hpp" +#include "Helpers/NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTestHelpers.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshFiltering.hpp" #include "Parallel/NodeLock.hpp" #include "Utilities/Gsl.hpp" diff --git a/tests/Unit/Evolution/Systems/Cce/Test_KleinGordonWorldtubeData.cpp b/tests/Unit/Evolution/Systems/Cce/Test_KleinGordonWorldtubeData.cpp index d52dca5d4cc78..ce5ab23ae32ff 100644 --- a/tests/Unit/Evolution/Systems/Cce/Test_KleinGordonWorldtubeData.cpp +++ b/tests/Unit/Evolution/Systems/Cce/Test_KleinGordonWorldtubeData.cpp @@ -15,7 +15,7 @@ #include "NumericalAlgorithms/Interpolation/BarycentricRationalSpanInterpolator.hpp" #include "NumericalAlgorithms/Interpolation/CubicSpanInterpolator.hpp" #include "NumericalAlgorithms/Interpolation/LinearSpanInterpolator.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" #include "Utilities/Serialization/RegisterDerivedClassesWithCharm.hpp" namespace Cce { diff --git a/tests/Unit/Evolution/Systems/Cce/Test_LinearOperators.cpp b/tests/Unit/Evolution/Systems/Cce/Test_LinearOperators.cpp index 2b52acc66cb97..fdebcbc207a3c 100644 --- a/tests/Unit/Evolution/Systems/Cce/Test_LinearOperators.cpp +++ b/tests/Unit/Evolution/Systems/Cce/Test_LinearOperators.cpp @@ -14,7 +14,7 @@ #include "NumericalAlgorithms/Spectral/Mesh.hpp" #include "NumericalAlgorithms/Spectral/Quadrature.hpp" #include "NumericalAlgorithms/Spectral/Spectral.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" #include "Utilities/VectorAlgebra.hpp" SPECTRE_TEST_CASE("Unit.Evolution.Systems.Cce.LinearOperators", diff --git a/tests/Unit/Evolution/Systems/Cce/Test_LinearSolve.cpp b/tests/Unit/Evolution/Systems/Cce/Test_LinearSolve.cpp index dc9a50440575d..1f5e51f4f3a1b 100644 --- a/tests/Unit/Evolution/Systems/Cce/Test_LinearSolve.cpp +++ b/tests/Unit/Evolution/Systems/Cce/Test_LinearSolve.cpp @@ -14,7 +14,7 @@ #include "Framework/TestHelpers.hpp" #include "Helpers/DataStructures/MakeWithRandomValues.hpp" #include "Helpers/Evolution/Systems/Cce/CceComputationTestHelpers.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" #include "Utilities/VectorAlgebra.hpp" namespace Cce { diff --git a/tests/Unit/Evolution/Systems/Cce/Test_PreSwshDerivatives.cpp b/tests/Unit/Evolution/Systems/Cce/Test_PreSwshDerivatives.cpp index 18f88d9049b7f..bc9d8029a9745 100644 --- a/tests/Unit/Evolution/Systems/Cce/Test_PreSwshDerivatives.cpp +++ b/tests/Unit/Evolution/Systems/Cce/Test_PreSwshDerivatives.cpp @@ -23,9 +23,9 @@ #include "Framework/TestHelpers.hpp" #include "Helpers/DataStructures/MakeWithRandomValues.hpp" #include "Helpers/Evolution/Systems/Cce/CceComputationTestHelpers.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" -#include "NumericalAlgorithms/Spectral/SwshFiltering.hpp" -#include "NumericalAlgorithms/Spectral/SwshTags.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshFiltering.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTags.hpp" #include "Utilities/Gsl.hpp" namespace Cce { diff --git a/tests/Unit/Evolution/Systems/Cce/Test_PrecomputeCceDependencies.cpp b/tests/Unit/Evolution/Systems/Cce/Test_PrecomputeCceDependencies.cpp index cf31a29cb62fc..13c49bdf384b8 100644 --- a/tests/Unit/Evolution/Systems/Cce/Test_PrecomputeCceDependencies.cpp +++ b/tests/Unit/Evolution/Systems/Cce/Test_PrecomputeCceDependencies.cpp @@ -19,9 +19,9 @@ #include "NumericalAlgorithms/Spectral/Basis.hpp" #include "NumericalAlgorithms/Spectral/Quadrature.hpp" #include "NumericalAlgorithms/Spectral/Spectral.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" -#include "NumericalAlgorithms/Spectral/SwshDerivatives.hpp" -#include "NumericalAlgorithms/Spectral/SwshFiltering.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshDerivatives.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshFiltering.hpp" #include "Utilities/Gsl.hpp" #include "Utilities/TMPL.hpp" diff --git a/tests/Unit/Evolution/Systems/Cce/Test_SwshDerivatives.cpp b/tests/Unit/Evolution/Systems/Cce/Test_SwshDerivatives.cpp index 10ecf966086ad..b4c914eb1494c 100644 --- a/tests/Unit/Evolution/Systems/Cce/Test_SwshDerivatives.cpp +++ b/tests/Unit/Evolution/Systems/Cce/Test_SwshDerivatives.cpp @@ -26,11 +26,11 @@ #include "Framework/TestHelpers.hpp" #include "Helpers/DataStructures/MakeWithRandomValues.hpp" #include "Helpers/Evolution/Systems/Cce/CceComputationTestHelpers.hpp" -#include "NumericalAlgorithms/Spectral/SwshCoefficients.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" -#include "NumericalAlgorithms/Spectral/SwshDerivatives.hpp" -#include "NumericalAlgorithms/Spectral/SwshFiltering.hpp" -#include "NumericalAlgorithms/Spectral/SwshTags.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCoefficients.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshDerivatives.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshFiltering.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTags.hpp" #include "Utilities/Gsl.hpp" namespace Cce { diff --git a/tests/Unit/Evolution/Systems/Cce/Test_WorldtubeData.cpp b/tests/Unit/Evolution/Systems/Cce/Test_WorldtubeData.cpp index 75a50644c2c20..9d13ad3491e5a 100644 --- a/tests/Unit/Evolution/Systems/Cce/Test_WorldtubeData.cpp +++ b/tests/Unit/Evolution/Systems/Cce/Test_WorldtubeData.cpp @@ -24,7 +24,7 @@ #include "NumericalAlgorithms/Interpolation/BarycentricRationalSpanInterpolator.hpp" #include "NumericalAlgorithms/Interpolation/CubicSpanInterpolator.hpp" #include "NumericalAlgorithms/Interpolation/LinearSpanInterpolator.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" #include "Parallel/NodeLock.hpp" #include "PointwiseFunctions/AnalyticSolutions/GeneralRelativity/KerrSchild.hpp" #include "Utilities/FileSystem.hpp" diff --git a/tests/Unit/Helpers/Evolution/Systems/Cce/Actions/CharacteristicInitialization.hpp b/tests/Unit/Helpers/Evolution/Systems/Cce/Actions/CharacteristicInitialization.hpp index e0608abf76e86..6bab5b7809591 100644 --- a/tests/Unit/Helpers/Evolution/Systems/Cce/Actions/CharacteristicInitialization.hpp +++ b/tests/Unit/Helpers/Evolution/Systems/Cce/Actions/CharacteristicInitialization.hpp @@ -5,8 +5,8 @@ #include "DataStructures/DataBox/Prefixes.hpp" #include "Framework/ActionTesting.hpp" -#include "NumericalAlgorithms/Spectral/SwshCoefficients.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCoefficients.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" #include "Time/Tags/HistoryEvolvedVariables.hpp" #include "Time/Tags/TimeStep.hpp" #include "Time/Tags/TimeStepId.hpp" diff --git a/tests/Unit/Helpers/Evolution/Systems/Cce/Actions/WorldtubeBoundaryMocking.hpp b/tests/Unit/Helpers/Evolution/Systems/Cce/Actions/WorldtubeBoundaryMocking.hpp index fd801e6655800..8507d919c01d1 100644 --- a/tests/Unit/Helpers/Evolution/Systems/Cce/Actions/WorldtubeBoundaryMocking.hpp +++ b/tests/Unit/Helpers/Evolution/Systems/Cce/Actions/WorldtubeBoundaryMocking.hpp @@ -11,7 +11,7 @@ #include "Evolution/Systems/Cce/Components/WorldtubeBoundary.hpp" #include "Evolution/Systems/Cce/Tags.hpp" #include "Framework/ActionTesting.hpp" -#include "NumericalAlgorithms/Spectral/SwshTags.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTags.hpp" #include "Parallel/Phase.hpp" #include "ParallelAlgorithms/Actions/TerminatePhase.hpp" #include "Utilities/TMPL.hpp" diff --git a/tests/Unit/Helpers/Evolution/Systems/Cce/AnalyticSolutions/AnalyticDataHelpers.hpp b/tests/Unit/Helpers/Evolution/Systems/Cce/AnalyticSolutions/AnalyticDataHelpers.hpp index 2d69fbd30f5df..df0c1e63ceeac 100644 --- a/tests/Unit/Helpers/Evolution/Systems/Cce/AnalyticSolutions/AnalyticDataHelpers.hpp +++ b/tests/Unit/Helpers/Evolution/Systems/Cce/AnalyticSolutions/AnalyticDataHelpers.hpp @@ -15,7 +15,7 @@ #include "Evolution/Systems/Cce/AnalyticSolutions/SphericalMetricData.hpp" #include "Evolution/Systems/Cce/Tags.hpp" #include "Framework/Pypp.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" #include "PointwiseFunctions/GeneralRelativity/GeneralizedHarmonic/SpatialDerivOfLapse.hpp" #include "PointwiseFunctions/GeneralRelativity/GeneralizedHarmonic/SpatialDerivOfShift.hpp" #include "PointwiseFunctions/GeneralRelativity/GeneralizedHarmonic/TimeDerivOfLapse.hpp" diff --git a/tests/Unit/Helpers/Evolution/Systems/Cce/BoundaryTestHelpers.hpp b/tests/Unit/Helpers/Evolution/Systems/Cce/BoundaryTestHelpers.hpp index 04cdb0842d9f4..71493a424a630 100644 --- a/tests/Unit/Helpers/Evolution/Systems/Cce/BoundaryTestHelpers.hpp +++ b/tests/Unit/Helpers/Evolution/Systems/Cce/BoundaryTestHelpers.hpp @@ -13,7 +13,7 @@ #include "Evolution/Systems/Cce/BoundaryData.hpp" #include "Evolution/Systems/Cce/WorldtubeBufferUpdater.hpp" #include "Helpers/Evolution/Systems/Cce/WriteToWorldtubeH5.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" #include "PointwiseFunctions/AnalyticSolutions/GeneralRelativity/KerrSchild.hpp" #include "PointwiseFunctions/GeneralRelativity/GeneralizedHarmonic/Phi.hpp" #include "PointwiseFunctions/GeneralRelativity/GeneralizedHarmonic/Pi.hpp" diff --git a/tests/Unit/Helpers/Evolution/Systems/Cce/CceComputationTestHelpers.cpp b/tests/Unit/Helpers/Evolution/Systems/Cce/CceComputationTestHelpers.cpp index 87cc4bd229319..e91cf6919f886 100644 --- a/tests/Unit/Helpers/Evolution/Systems/Cce/CceComputationTestHelpers.cpp +++ b/tests/Unit/Helpers/Evolution/Systems/Cce/CceComputationTestHelpers.cpp @@ -12,7 +12,7 @@ #include "NumericalAlgorithms/Spectral/Basis.hpp" #include "NumericalAlgorithms/Spectral/Quadrature.hpp" #include "NumericalAlgorithms/Spectral/Spectral.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" #include "Utilities/Gsl.hpp" namespace Cce { diff --git a/tests/Unit/Helpers/Evolution/Systems/Cce/CceComputationTestHelpers.hpp b/tests/Unit/Helpers/Evolution/Systems/Cce/CceComputationTestHelpers.hpp index 8b98bb852b65c..b9e7ea2f3ead8 100644 --- a/tests/Unit/Helpers/Evolution/Systems/Cce/CceComputationTestHelpers.hpp +++ b/tests/Unit/Helpers/Evolution/Systems/Cce/CceComputationTestHelpers.hpp @@ -18,9 +18,9 @@ #include "NumericalAlgorithms/Spectral/Basis.hpp" #include "NumericalAlgorithms/Spectral/Quadrature.hpp" #include "NumericalAlgorithms/Spectral/Spectral.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" -#include "NumericalAlgorithms/Spectral/SwshDerivatives.hpp" -#include "NumericalAlgorithms/Spectral/SwshFiltering.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshDerivatives.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshFiltering.hpp" #include "Utilities/Gsl.hpp" #include "Utilities/TMPL.hpp" #include "Utilities/VectorAlgebra.hpp" diff --git a/tests/Unit/Helpers/NumericalAlgorithms/CMakeLists.txt b/tests/Unit/Helpers/NumericalAlgorithms/CMakeLists.txt index 36587cc0e74c1..31d4142a276bb 100644 --- a/tests/Unit/Helpers/NumericalAlgorithms/CMakeLists.txt +++ b/tests/Unit/Helpers/NumericalAlgorithms/CMakeLists.txt @@ -1,5 +1,5 @@ # Distributed under the MIT License. # See LICENSE.txt for details. -add_subdirectory(Spectral) add_subdirectory(SphericalHarmonics) +add_subdirectory(SpinWeightedSphericalHarmonics) diff --git a/tests/Unit/Helpers/NumericalAlgorithms/Spectral/CMakeLists.txt b/tests/Unit/Helpers/NumericalAlgorithms/SpinWeightedSphericalHarmonics/CMakeLists.txt similarity index 84% rename from tests/Unit/Helpers/NumericalAlgorithms/Spectral/CMakeLists.txt rename to tests/Unit/Helpers/NumericalAlgorithms/SpinWeightedSphericalHarmonics/CMakeLists.txt index 112c14d781c99..b13d92157a67a 100644 --- a/tests/Unit/Helpers/NumericalAlgorithms/Spectral/CMakeLists.txt +++ b/tests/Unit/Helpers/NumericalAlgorithms/SpinWeightedSphericalHarmonics/CMakeLists.txt @@ -1,7 +1,7 @@ # Distributed under the MIT License. # See LICENSE.txt for details. -set(LIBRARY "SpectralHelpers") +set(LIBRARY "SpinWeightedSphericalHarmonicsHelpers") set(LIBRARY_SOURCES SwshTestHelpers.cpp diff --git a/tests/Unit/Helpers/NumericalAlgorithms/Spectral/SwshTestHelpers.cpp b/tests/Unit/Helpers/NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTestHelpers.cpp similarity index 96% rename from tests/Unit/Helpers/NumericalAlgorithms/Spectral/SwshTestHelpers.cpp rename to tests/Unit/Helpers/NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTestHelpers.cpp index 27269391a3006..efe9b89cec21b 100644 --- a/tests/Unit/Helpers/NumericalAlgorithms/Spectral/SwshTestHelpers.cpp +++ b/tests/Unit/Helpers/NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTestHelpers.cpp @@ -1,13 +1,13 @@ // Distributed under the MIT License. // See LICENSE.txt for details. -#include "Helpers/NumericalAlgorithms/Spectral/SwshTestHelpers.hpp" +#include "Helpers/NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTestHelpers.hpp" #include #include #include -#include "NumericalAlgorithms/Spectral/SwshTags.hpp" // IWYU pragma: keep +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTags.hpp" // IWYU pragma: keep namespace Spectral { namespace Swsh { diff --git a/tests/Unit/Helpers/NumericalAlgorithms/Spectral/SwshTestHelpers.hpp b/tests/Unit/Helpers/NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTestHelpers.hpp similarity index 96% rename from tests/Unit/Helpers/NumericalAlgorithms/Spectral/SwshTestHelpers.hpp rename to tests/Unit/Helpers/NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTestHelpers.hpp index da843fed8d12a..99f5f0dac474d 100644 --- a/tests/Unit/Helpers/NumericalAlgorithms/Spectral/SwshTestHelpers.hpp +++ b/tests/Unit/Helpers/NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTestHelpers.hpp @@ -11,10 +11,10 @@ #include "DataStructures/ComplexModalVector.hpp" #include "DataStructures/DataVector.hpp" #include "Helpers/DataStructures/MakeWithRandomValues.hpp" -#include "NumericalAlgorithms/Spectral/ComplexDataView.hpp" -#include "NumericalAlgorithms/Spectral/SwshCoefficients.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" -#include "NumericalAlgorithms/Spectral/SwshTags.hpp" // IWYU pragma: keep +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/ComplexDataView.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCoefficients.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTags.hpp" // IWYU pragma: keep #include "Utilities/Gsl.hpp" /// \cond diff --git a/tests/Unit/NumericalAlgorithms/CMakeLists.txt b/tests/Unit/NumericalAlgorithms/CMakeLists.txt index 8511427e36d6b..45ab85f62b212 100644 --- a/tests/Unit/NumericalAlgorithms/CMakeLists.txt +++ b/tests/Unit/NumericalAlgorithms/CMakeLists.txt @@ -13,3 +13,4 @@ add_subdirectory(OdeIntegration) add_subdirectory(RootFinding) add_subdirectory(Spectral) add_subdirectory(SphericalHarmonics) +add_subdirectory(SpinWeightedSphericalHarmonics) diff --git a/tests/Unit/NumericalAlgorithms/Spectral/CMakeLists.txt b/tests/Unit/NumericalAlgorithms/Spectral/CMakeLists.txt index 84644dbe766c1..cd1fd2605bf42 100644 --- a/tests/Unit/NumericalAlgorithms/Spectral/CMakeLists.txt +++ b/tests/Unit/NumericalAlgorithms/Spectral/CMakeLists.txt @@ -9,7 +9,6 @@ set(LIBRARY_SOURCES Test_ChebyshevGauss.cpp Test_ChebyshevGaussLobatto.cpp Test_Clenshaw.cpp - Test_ComplexDataView.cpp Test_Filtering.cpp Test_FiniteDifference.cpp Test_IndefiniteIntegral.cpp @@ -19,14 +18,6 @@ set(LIBRARY_SOURCES Test_Mesh.cpp Test_Projection.cpp Test_Spectral.cpp - Test_SwshCoefficients.cpp - Test_SwshCollocation.cpp - Test_SwshDerivatives.cpp - Test_SwshFiltering.cpp - Test_SwshInterpolation.cpp - Test_SwshTags.cpp - Test_SwshTestHelpers.cpp - Test_SwshTransform.cpp ) add_test_library(${LIBRARY} "${LIBRARY_SOURCES}") @@ -41,6 +32,5 @@ target_link_libraries( ErrorHandling LinearOperators Spectral - SpectralHelpers Utilities ) diff --git a/tests/Unit/NumericalAlgorithms/SphericalHarmonics/CMakeLists.txt b/tests/Unit/NumericalAlgorithms/SphericalHarmonics/CMakeLists.txt index 6c4be404d6f32..c4eafb0d6fcde 100644 --- a/tests/Unit/NumericalAlgorithms/SphericalHarmonics/CMakeLists.txt +++ b/tests/Unit/NumericalAlgorithms/SphericalHarmonics/CMakeLists.txt @@ -21,9 +21,9 @@ target_link_libraries( PRIVATE DataStructures RootFinding - Spectral SphericalHarmonics SphericalHarmonicsHelpers + SpinWeightedSphericalHarmonics Utilities ) diff --git a/tests/Unit/NumericalAlgorithms/SphericalHarmonics/Test_RealSphericalHarmonics.cpp b/tests/Unit/NumericalAlgorithms/SphericalHarmonics/Test_RealSphericalHarmonics.cpp index 05e6e435f95b2..4c90ed483ec67 100644 --- a/tests/Unit/NumericalAlgorithms/SphericalHarmonics/Test_RealSphericalHarmonics.cpp +++ b/tests/Unit/NumericalAlgorithms/SphericalHarmonics/Test_RealSphericalHarmonics.cpp @@ -8,8 +8,8 @@ #include "DataStructures/DataVector.hpp" #include "Framework/TestHelpers.hpp" #include "Helpers/DataStructures/MakeWithRandomValues.hpp" -#include "NumericalAlgorithms/Spectral/SwshInterpolation.hpp" #include "NumericalAlgorithms/SphericalHarmonics/RealSphericalHarmonics.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshInterpolation.hpp" namespace ylm { SPECTRE_TEST_CASE("Unit.SphericalHarmonics.RealSphericalHarmonics", diff --git a/tests/Unit/NumericalAlgorithms/SpinWeightedSphericalHarmonics/CMakeLists.txt b/tests/Unit/NumericalAlgorithms/SpinWeightedSphericalHarmonics/CMakeLists.txt new file mode 100644 index 0000000000000..8681a63f65bed --- /dev/null +++ b/tests/Unit/NumericalAlgorithms/SpinWeightedSphericalHarmonics/CMakeLists.txt @@ -0,0 +1,33 @@ +# Distributed under the MIT License. +# See LICENSE.txt for details. + +set(LIBRARY "Test_SpinWeightedSphericalHarmonics") + +set(LIBRARY_SOURCES + Test_ComplexDataView.cpp + Test_SwshCoefficients.cpp + Test_SwshCollocation.cpp + Test_SwshDerivatives.cpp + Test_SwshFiltering.cpp + Test_SwshInterpolation.cpp + Test_SwshTags.cpp + Test_SwshTestHelpers.cpp + Test_SwshTransform.cpp + ) + +add_test_library(${LIBRARY} "${LIBRARY_SOURCES}") + +target_link_libraries( + ${LIBRARY} + PRIVATE + Boost::boost + DataStructures + DiscontinuousGalerkin + Domain + ErrorHandling + LinearOperators + Spectral + SpinWeightedSphericalHarmonics + SpinWeightedSphericalHarmonicsHelpers + Utilities + ) diff --git a/tests/Unit/NumericalAlgorithms/Spectral/Test_ComplexDataView.cpp b/tests/Unit/NumericalAlgorithms/SpinWeightedSphericalHarmonics/Test_ComplexDataView.cpp similarity index 79% rename from tests/Unit/NumericalAlgorithms/Spectral/Test_ComplexDataView.cpp rename to tests/Unit/NumericalAlgorithms/SpinWeightedSphericalHarmonics/Test_ComplexDataView.cpp index 2836eb98e1357..61ec9578fae7f 100644 --- a/tests/Unit/NumericalAlgorithms/Spectral/Test_ComplexDataView.cpp +++ b/tests/Unit/NumericalAlgorithms/SpinWeightedSphericalHarmonics/Test_ComplexDataView.cpp @@ -12,7 +12,7 @@ #include "DataStructures/DataVector.hpp" #include "Framework/TestHelpers.hpp" #include "Helpers/DataStructures/MakeWithRandomValues.hpp" -#include "NumericalAlgorithms/Spectral/ComplexDataView.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/ComplexDataView.hpp" #include "Utilities/ErrorHandling/Error.hpp" // IWYU pragma: keep #include "Utilities/Gsl.hpp" #include "Utilities/Math.hpp" @@ -29,7 +29,8 @@ void test_basic_view_functionality(const ComplexDataView& view, // clang-tidy: This class uses manual memory management deliberately, // so silence complaints about pointer math and casts. // The reinterpret casts are intentional. See - // NumericalAlgorithms/Spectral/ComplexDataView.cpp for an explanation + // NumericalAlgorithms/SpinWeightedSphericalHarmonics/ComplexDataView.cpp + // for an explanation if (Representation == ComplexRepresentation::Interleaved) { CHECK(view.real_data() == reinterpret_cast(source_vec_data + offset)); // NOLINT @@ -181,7 +182,7 @@ void test_view() { // clang-tidy and gcc ignore for allowing the intentional self-assignment #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wextra" - vector_view = vector_view; // NOLINT + vector_view = vector_view; // NOLINT #pragma GCC diagnostic pop #if defined(__clang__) && __clang_major__ > 6 #pragma GCC diagnostic pop @@ -197,54 +198,54 @@ void test_view() { SPECTRE_TEST_CASE("Unit.NumericalAlgorithms.Spectral.ComplexDataView", "[Unit][NumericalAlgorithms]") { - { - INFO("Test Interleaved view"); - test_view(); - } - { - INFO("Test RealsThenImags view"); - test_view(); - } + { + INFO("Test Interleaved view"); + test_view(); + } + { + INFO("Test RealsThenImags view"); + test_view(); + } #ifdef SPECTRE_DEBUG - // spot-test two assignment asserts - they all call the same size-checking - // function, so this should be sufficiently robust. - CHECK_THROWS_WITH( - ([]() { - MAKE_GENERATOR(gen); - UniformCustomDistribution sdist{5, 50}; - const size_t overall_size = sdist(gen); - const size_t view_size = sdist(gen) % (overall_size - 1) + 1; - const size_t offset = sdist(gen) % (overall_size - view_size + 1); - - ComplexDataVector source_vec{overall_size}; - ComplexDataView vector_view_1{ - make_not_null(&source_vec), view_size, offset}; - ComplexDataView vector_view_2{ - make_not_null(&source_vec), view_size + 1, offset}; - - // this line should fail the size assert - vector_view_1 = vector_view_2; - }()), - Catch::Matchers::ContainsSubstring( - "Assignment must be to the same size")); - CHECK_THROWS_WITH( - ([]() { - MAKE_GENERATOR(gen); - UniformCustomDistribution sdist{5, 50}; - const size_t overall_size = sdist(gen); - const size_t view_size = sdist(gen) % (overall_size - 1) + 1; - const size_t offset = sdist(gen) % (overall_size - view_size + 1); - - ComplexDataVector source_vec{overall_size}; - ComplexDataView vector_view_1{ - make_not_null(&source_vec), view_size, offset}; - - // this line should fail the size assert - vector_view_1.assign_real(real(source_vec)); - }()), - Catch::Matchers::ContainsSubstring( - "Assignment must be to the same size")); + // spot-test two assignment asserts - they all call the same size-checking + // function, so this should be sufficiently robust. + CHECK_THROWS_WITH( + ([]() { + MAKE_GENERATOR(gen); + UniformCustomDistribution sdist{5, 50}; + const size_t overall_size = sdist(gen); + const size_t view_size = sdist(gen) % (overall_size - 1) + 1; + const size_t offset = sdist(gen) % (overall_size - view_size + 1); + + ComplexDataVector source_vec{overall_size}; + ComplexDataView vector_view_1{ + make_not_null(&source_vec), view_size, offset}; + ComplexDataView vector_view_2{ + make_not_null(&source_vec), view_size + 1, offset}; + + // this line should fail the size assert + vector_view_1 = vector_view_2; + }()), + Catch::Matchers::ContainsSubstring( + "Assignment must be to the same size")); + CHECK_THROWS_WITH( + ([]() { + MAKE_GENERATOR(gen); + UniformCustomDistribution sdist{5, 50}; + const size_t overall_size = sdist(gen); + const size_t view_size = sdist(gen) % (overall_size - 1) + 1; + const size_t offset = sdist(gen) % (overall_size - view_size + 1); + + ComplexDataVector source_vec{overall_size}; + ComplexDataView vector_view_1{ + make_not_null(&source_vec), view_size, offset}; + + // this line should fail the size assert + vector_view_1.assign_real(real(source_vec)); + }()), + Catch::Matchers::ContainsSubstring( + "Assignment must be to the same size")); #endif } diff --git a/tests/Unit/NumericalAlgorithms/Spectral/Test_SwshCoefficients.cpp b/tests/Unit/NumericalAlgorithms/SpinWeightedSphericalHarmonics/Test_SwshCoefficients.cpp similarity index 96% rename from tests/Unit/NumericalAlgorithms/Spectral/Test_SwshCoefficients.cpp rename to tests/Unit/NumericalAlgorithms/SpinWeightedSphericalHarmonics/Test_SwshCoefficients.cpp index dc3f28478bb1a..1cf6949fc614e 100644 --- a/tests/Unit/NumericalAlgorithms/Spectral/Test_SwshCoefficients.cpp +++ b/tests/Unit/NumericalAlgorithms/SpinWeightedSphericalHarmonics/Test_SwshCoefficients.cpp @@ -15,11 +15,11 @@ #include "DataStructures/SpinWeighted.hpp" #include "Framework/TestHelpers.hpp" #include "Helpers/DataStructures/MakeWithRandomValues.hpp" -#include "Helpers/NumericalAlgorithms/Spectral/SwshTestHelpers.hpp" -#include "NumericalAlgorithms/Spectral/ComplexDataView.hpp" -#include "NumericalAlgorithms/Spectral/SwshCoefficients.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" -#include "NumericalAlgorithms/Spectral/SwshTransform.hpp" +#include "Helpers/NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTestHelpers.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/ComplexDataView.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCoefficients.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTransform.hpp" #include "Utilities/ConstantExpressions.hpp" #include "Utilities/ErrorHandling/Error.hpp" #include "Utilities/Gsl.hpp" diff --git a/tests/Unit/NumericalAlgorithms/Spectral/Test_SwshCollocation.cpp b/tests/Unit/NumericalAlgorithms/SpinWeightedSphericalHarmonics/Test_SwshCollocation.cpp similarity index 97% rename from tests/Unit/NumericalAlgorithms/Spectral/Test_SwshCollocation.cpp rename to tests/Unit/NumericalAlgorithms/SpinWeightedSphericalHarmonics/Test_SwshCollocation.cpp index 91c69a2ae2133..b4656613189f1 100644 --- a/tests/Unit/NumericalAlgorithms/Spectral/Test_SwshCollocation.cpp +++ b/tests/Unit/NumericalAlgorithms/SpinWeightedSphericalHarmonics/Test_SwshCollocation.cpp @@ -10,8 +10,8 @@ #include "Framework/TestHelpers.hpp" #include "Helpers/DataStructures/MakeWithRandomValues.hpp" -#include "NumericalAlgorithms/Spectral/ComplexDataView.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/ComplexDataView.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" #include "Utilities/ErrorHandling/Error.hpp" namespace Spectral::Swsh { diff --git a/tests/Unit/NumericalAlgorithms/Spectral/Test_SwshDerivatives.cpp b/tests/Unit/NumericalAlgorithms/SpinWeightedSphericalHarmonics/Test_SwshDerivatives.cpp similarity index 97% rename from tests/Unit/NumericalAlgorithms/Spectral/Test_SwshDerivatives.cpp rename to tests/Unit/NumericalAlgorithms/SpinWeightedSphericalHarmonics/Test_SwshDerivatives.cpp index 6bc3281b0a25c..db0e17994217c 100644 --- a/tests/Unit/NumericalAlgorithms/Spectral/Test_SwshDerivatives.cpp +++ b/tests/Unit/NumericalAlgorithms/SpinWeightedSphericalHarmonics/Test_SwshDerivatives.cpp @@ -19,13 +19,13 @@ #include "DataStructures/VariablesTag.hpp" #include "Framework/TestHelpers.hpp" #include "Helpers/DataStructures/MakeWithRandomValues.hpp" -#include "Helpers/NumericalAlgorithms/Spectral/SwshTestHelpers.hpp" -#include "NumericalAlgorithms/Spectral/ComplexDataView.hpp" -#include "NumericalAlgorithms/Spectral/SwshCoefficients.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" -#include "NumericalAlgorithms/Spectral/SwshDerivatives.hpp" -#include "NumericalAlgorithms/Spectral/SwshTags.hpp" -#include "NumericalAlgorithms/Spectral/SwshTransform.hpp" +#include "Helpers/NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTestHelpers.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/ComplexDataView.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCoefficients.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshDerivatives.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTags.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTransform.hpp" #include "Utilities/Gsl.hpp" #include "Utilities/TMPL.hpp" diff --git a/tests/Unit/NumericalAlgorithms/Spectral/Test_SwshFiltering.cpp b/tests/Unit/NumericalAlgorithms/SpinWeightedSphericalHarmonics/Test_SwshFiltering.cpp similarity index 94% rename from tests/Unit/NumericalAlgorithms/Spectral/Test_SwshFiltering.cpp rename to tests/Unit/NumericalAlgorithms/SpinWeightedSphericalHarmonics/Test_SwshFiltering.cpp index a1bab5e0cfd98..b145eca3d2524 100644 --- a/tests/Unit/NumericalAlgorithms/Spectral/Test_SwshFiltering.cpp +++ b/tests/Unit/NumericalAlgorithms/SpinWeightedSphericalHarmonics/Test_SwshFiltering.cpp @@ -18,10 +18,10 @@ #include "NumericalAlgorithms/Spectral/Basis.hpp" #include "NumericalAlgorithms/Spectral/Mesh.hpp" #include "NumericalAlgorithms/Spectral/Quadrature.hpp" -#include "NumericalAlgorithms/Spectral/SwshCoefficients.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" -#include "NumericalAlgorithms/Spectral/SwshFiltering.hpp" -#include "NumericalAlgorithms/Spectral/SwshTransform.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCoefficients.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshFiltering.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTransform.hpp" #include "Utilities/Gsl.hpp" #include "Utilities/VectorAlgebra.hpp" @@ -153,8 +153,8 @@ void test_radial_filtering() { Spectral::Basis::Legendre, Spectral::Quadrature::GaussLobatto}))}; - filter_swsh_volume_quantity(make_not_null(&to_filter), l_max, l_max, - alpha, half_power); + filter_swsh_volume_quantity(make_not_null(&to_filter), l_max, l_max, alpha, + half_power); CHECK_ITERABLE_APPROX(to_filter.data(), expected_post_filter.data()); } diff --git a/tests/Unit/NumericalAlgorithms/Spectral/Test_SwshInterpolation.cpp b/tests/Unit/NumericalAlgorithms/SpinWeightedSphericalHarmonics/Test_SwshInterpolation.cpp similarity index 82% rename from tests/Unit/NumericalAlgorithms/Spectral/Test_SwshInterpolation.cpp rename to tests/Unit/NumericalAlgorithms/SpinWeightedSphericalHarmonics/Test_SwshInterpolation.cpp index aabb415831d01..2cea6cd895bd8 100644 --- a/tests/Unit/NumericalAlgorithms/Spectral/Test_SwshInterpolation.cpp +++ b/tests/Unit/NumericalAlgorithms/SpinWeightedSphericalHarmonics/Test_SwshInterpolation.cpp @@ -8,10 +8,10 @@ #include "Framework/TestHelpers.hpp" #include "Helpers/DataStructures/MakeWithRandomValues.hpp" -#include "Helpers/NumericalAlgorithms/Spectral/SwshTestHelpers.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" -#include "NumericalAlgorithms/Spectral/SwshInterpolation.hpp" -#include "NumericalAlgorithms/Spectral/SwshTransform.hpp" +#include "Helpers/NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTestHelpers.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshInterpolation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTransform.hpp" #include "Utilities/Literals.hpp" namespace Spectral::Swsh { @@ -88,14 +88,14 @@ void test_interpolation(const gsl::not_null generator) { const auto deserialized_interpolator = serialize_and_deserialize(interpolator); for (int l = 0; l <= static_cast(l_max); ++l) { - for(int m = -l; m <= l; ++m) { + for (int m = -l; m <= l; ++m) { auto sYlm = SpinWeightedSphericalHarmonic{spin, static_cast(l), m}; if (l == std::max(abs(m), abs(spin))) { SpinWeighted harmonic_test; interpolator.direct_evaluation_swsh_at_l_min( make_not_null(&harmonic_test), m); - for(size_t i = 0; i < number_of_target_points; ++i) { + for (size_t i = 0; i < number_of_target_points; ++i) { CHECK_ITERABLE_APPROX(sYlm.evaluate(target_theta[i], target_phi[i]), harmonic_test.data()[i]); } @@ -110,20 +110,20 @@ void test_interpolation(const gsl::not_null generator) { make_not_null(&harmonic_test_l_min_plus_one), harmonic_test_l_min, m); - for(size_t i = 0; i < number_of_target_points; ++i) { + for (size_t i = 0; i < number_of_target_points; ++i) { CHECK_ITERABLE_APPROX(sYlm.evaluate(target_theta[i], target_phi[i]), harmonic_test_l_min_plus_one.data()[i]); } } if (l == std::max(abs(m), abs(spin)) and abs(m) > abs(spin)) { - if(m > 0) { + if (m > 0) { SpinWeighted harmonic_test; interpolator.direct_evaluation_swsh_at_l_min( make_not_null(&harmonic_test), m - 1); interpolator.evaluate_swsh_m_recurrence_at_l_min( make_not_null(&harmonic_test), m); - INFO("checking l=" << l <<" m=" << m); - for(size_t i = 0; i < number_of_target_points; ++i) { + INFO("checking l=" << l << " m=" << m); + for (size_t i = 0; i < number_of_target_points; ++i) { CHECK_ITERABLE_APPROX(sYlm.evaluate(target_theta[i], target_phi[i]), harmonic_test.data()[i]); } @@ -134,7 +134,7 @@ void test_interpolation(const gsl::not_null generator) { deserialized_interpolator.evaluate_swsh_m_recurrence_at_l_min( make_not_null(&harmonic_test), m); INFO("checking l=" << l << " m=" << m); - for(size_t i = 0; i < number_of_target_points; ++i) { + for (size_t i = 0; i < number_of_target_points; ++i) { CHECK_ITERABLE_APPROX(sYlm.evaluate(target_theta[i], target_phi[i]), harmonic_test.data()[i]); } @@ -145,8 +145,8 @@ void test_interpolation(const gsl::not_null generator) { make_not_null(&harmonic_test), m + 1); interpolator.evaluate_swsh_m_recurrence_at_l_min( make_not_null(&harmonic_test), m); - INFO("checking l=" << l <<" m=" << m); - for(size_t i = 0; i < number_of_target_points; ++i) { + INFO("checking l=" << l << " m=" << m); + for (size_t i = 0; i < number_of_target_points; ++i) { CHECK_ITERABLE_APPROX(sYlm.evaluate(target_theta[i], target_phi[i]), harmonic_test.data()[i]); } @@ -156,20 +156,20 @@ void test_interpolation(const gsl::not_null generator) { make_not_null(&harmonic_test), m + 1); deserialized_interpolator.evaluate_swsh_m_recurrence_at_l_min( make_not_null(&harmonic_test), m); - INFO("checking l=" << l <<" m=" << m); - for(size_t i = 0; i < number_of_target_points; ++i) { + INFO("checking l=" << l << " m=" << m); + for (size_t i = 0; i < number_of_target_points; ++i) { CHECK_ITERABLE_APPROX(sYlm.evaluate(target_theta[i], target_phi[i]), harmonic_test.data()[i]); } } } - for(size_t i = 0; i < number_of_target_points; ++i) { + for (size_t i = 0; i < number_of_target_points; ++i) { // gcc warns about the casts in ways that are impossible to satisfy #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wsign-conversion" expected.data()[i] += - goldberg_modes.data()[ - square(static_cast(l)) + static_cast(l + m)] * + goldberg_modes.data()[square(static_cast(l)) + + static_cast(l + m)] * TestHelpers::spin_weighted_spherical_harmonic( spin, l, m, target_theta[i], target_phi[i]); another_expected.data()[i] += @@ -182,17 +182,17 @@ void test_interpolation(const gsl::not_null generator) { Approx factorial_approx = Approx::custom() - .epsilon(std::numeric_limits::epsilon() * 1.0e5) - .scale(1.0); + .epsilon(std::numeric_limits::epsilon() * 1.0e5) + .scale(1.0); // direct test Clenshaw sums - for(int m = -static_cast(l_max); m <= static_cast(l_max); ++m) { + for (int m = -static_cast(l_max); m <= static_cast(l_max); ++m) { SpinWeighted expected_clenshaw_sum{ number_of_target_points, 0.0}; for (int l = std::max(abs(m), abs(spin)); l <= static_cast(l_max); ++l) { auto sYlm = SpinWeightedSphericalHarmonic{spin, static_cast(l), m}; - for(size_t i = 0; i < number_of_target_points; ++i) { + for (size_t i = 0; i < number_of_target_points; ++i) { expected_clenshaw_sum.data()[i] += goldberg_modes.data()[square(static_cast(l)) + static_cast(l + m)] * @@ -218,7 +218,7 @@ void test_interpolation(const gsl::not_null generator) { swsh_transform(l_max, 1, generated_collocation), l_max), m); INFO("checking clenshaw sum for m=" << m); - for(size_t i = 0; i < number_of_target_points; ++i) { + for (size_t i = 0; i < number_of_target_points; ++i) { CHECK_ITERABLE_CUSTOM_APPROX(clenshaw.data()[i], expected_clenshaw_sum.data()[i], factorial_approx); @@ -241,7 +241,7 @@ SPECTRE_TEST_CASE("Unit.NumericalAlgorithms.Spectral.SwshInterpolation", "[Unit][NumericalAlgorithms]") { MAKE_GENERATOR(generator); // test a few points on each run of the test, these are cheap. - for(size_t i = 0; i < 10; ++i) { + for (size_t i = 0; i < 10; ++i) { test_basis_function(make_not_null(&generator)); } @@ -250,17 +250,17 @@ SPECTRE_TEST_CASE("Unit.NumericalAlgorithms.Spectral.SwshInterpolation", test_interpolation<2>(make_not_null(&generator)); #ifdef SPECTRE_DEBUG - CHECK_THROWS_WITH( - ([]() { - SwshInterpolator interp{}; - SpinWeighted interp_source{ - number_of_swsh_collocation_points(5_st)}; - SpinWeighted interp_target{ - number_of_swsh_collocation_points(5_st)}; - interp.interpolate(make_not_null(&interp_target), interp_source); - }()), - Catch::Matchers::ContainsSubstring( - "Attempting to perform interpolation")); + CHECK_THROWS_WITH(([]() { + SwshInterpolator interp{}; + SpinWeighted interp_source{ + number_of_swsh_collocation_points(5_st)}; + SpinWeighted interp_target{ + number_of_swsh_collocation_points(5_st)}; + interp.interpolate(make_not_null(&interp_target), + interp_source); + }()), + Catch::Matchers::ContainsSubstring( + "Attempting to perform interpolation")); CHECK_THROWS_WITH(([]() { SwshInterpolator interp{}; SpinWeighted interp_target{ diff --git a/tests/Unit/NumericalAlgorithms/Spectral/Test_SwshTags.cpp b/tests/Unit/NumericalAlgorithms/SpinWeightedSphericalHarmonics/Test_SwshTags.cpp similarity index 98% rename from tests/Unit/NumericalAlgorithms/Spectral/Test_SwshTags.cpp rename to tests/Unit/NumericalAlgorithms/SpinWeightedSphericalHarmonics/Test_SwshTags.cpp index 098d99b88c4a5..b96089d6291a8 100644 --- a/tests/Unit/NumericalAlgorithms/Spectral/Test_SwshTags.cpp +++ b/tests/Unit/NumericalAlgorithms/SpinWeightedSphericalHarmonics/Test_SwshTags.cpp @@ -10,7 +10,7 @@ #include "DataStructures/Tensor/Tensor.hpp" // IWYU pragma: keep #include "DataStructures/Tensor/TypeAliases.hpp" // IWYU pragma: keep #include "Helpers/DataStructures/DataBox/TestHelpers.hpp" -#include "NumericalAlgorithms/Spectral/SwshTags.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTags.hpp" #include "Utilities/TMPL.hpp" #include "Utilities/TypeTraits.hpp" diff --git a/tests/Unit/NumericalAlgorithms/Spectral/Test_SwshTestHelpers.cpp b/tests/Unit/NumericalAlgorithms/SpinWeightedSphericalHarmonics/Test_SwshTestHelpers.cpp similarity index 96% rename from tests/Unit/NumericalAlgorithms/Spectral/Test_SwshTestHelpers.cpp rename to tests/Unit/NumericalAlgorithms/SpinWeightedSphericalHarmonics/Test_SwshTestHelpers.cpp index bd58693e51b48..76bf440da8c17 100644 --- a/tests/Unit/NumericalAlgorithms/Spectral/Test_SwshTestHelpers.cpp +++ b/tests/Unit/NumericalAlgorithms/SpinWeightedSphericalHarmonics/Test_SwshTestHelpers.cpp @@ -10,7 +10,7 @@ #include "Framework/TestHelpers.hpp" #include "Helpers/DataStructures/MakeWithRandomValues.hpp" -#include "Helpers/NumericalAlgorithms/Spectral/SwshTestHelpers.hpp" +#include "Helpers/NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTestHelpers.hpp" #include "Utilities/ConstantExpressions.hpp" #include "Utilities/Math.hpp" diff --git a/tests/Unit/NumericalAlgorithms/Spectral/Test_SwshTransform.cpp b/tests/Unit/NumericalAlgorithms/SpinWeightedSphericalHarmonics/Test_SwshTransform.cpp similarity index 95% rename from tests/Unit/NumericalAlgorithms/Spectral/Test_SwshTransform.cpp rename to tests/Unit/NumericalAlgorithms/SpinWeightedSphericalHarmonics/Test_SwshTransform.cpp index 5480be03ba1da..9caca52e57d53 100644 --- a/tests/Unit/NumericalAlgorithms/Spectral/Test_SwshTransform.cpp +++ b/tests/Unit/NumericalAlgorithms/SpinWeightedSphericalHarmonics/Test_SwshTransform.cpp @@ -19,12 +19,12 @@ #include "DataStructures/VariablesTag.hpp" #include "Framework/TestHelpers.hpp" #include "Helpers/DataStructures/MakeWithRandomValues.hpp" -#include "Helpers/NumericalAlgorithms/Spectral/SwshTestHelpers.hpp" -#include "NumericalAlgorithms/Spectral/ComplexDataView.hpp" -#include "NumericalAlgorithms/Spectral/SwshCoefficients.hpp" -#include "NumericalAlgorithms/Spectral/SwshCollocation.hpp" -#include "NumericalAlgorithms/Spectral/SwshTags.hpp" // IWYU pragma: keep -#include "NumericalAlgorithms/Spectral/SwshTransform.hpp" +#include "Helpers/NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTestHelpers.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/ComplexDataView.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCoefficients.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshCollocation.hpp" +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTags.hpp" // IWYU pragma: keep +#include "NumericalAlgorithms/SpinWeightedSphericalHarmonics/SwshTransform.hpp" #include "Utilities/Gsl.hpp" #include "Utilities/TMPL.hpp" #include "Utilities/TypeTraits.hpp" @@ -249,8 +249,7 @@ void test_interpolate_to_collocation() { make_not_null(&coefficient_distribution), number_of_radial_points, l_max); const SpinWeighted collocation_data = - inverse_swsh_transform(l_max, number_of_radial_points, - expected_modes); + inverse_swsh_transform(l_max, number_of_radial_points, expected_modes); const size_t target_l_max = sdist(gen); SpinWeighted resampled_collocation{