From ab2e3feb0912a2f6a26c66d7c56d8ed60a436bf7 Mon Sep 17 00:00:00 2001 From: Liwei Ji Date: Sun, 23 Jun 2024 13:30:25 +0000 Subject: [PATCH] Multipole: decorate sphericalharmonic --- Multipole/src/make.code.defn | 2 +- Multipole/src/multipole.cc | 2 +- .../{sphericalharmonic.cc => sphericalharmonic.cxx} | 6 ++---- .../{sphericalharmonic.hh => sphericalharmonic.hxx} | 13 ++++++------- Multipole/src/tests.cc | 2 +- 5 files changed, 11 insertions(+), 14 deletions(-) rename Multipole/src/{sphericalharmonic.cc => sphericalharmonic.cxx} (98%) rename Multipole/src/{sphericalharmonic.hh => sphericalharmonic.hxx} (56%) diff --git a/Multipole/src/make.code.defn b/Multipole/src/make.code.defn index 9e4b87d3..e124a877 100644 --- a/Multipole/src/make.code.defn +++ b/Multipole/src/make.code.defn @@ -5,6 +5,6 @@ SRCS = \ integrate.cxx \ interpolate.cxx \ multipole.cc \ - sphericalharmonic.cc \ + sphericalharmonic.cxx \ tests.cc \ utils.cc diff --git a/Multipole/src/multipole.cc b/Multipole/src/multipole.cc index 15b3e436..6b3b9a14 100644 --- a/Multipole/src/multipole.cc +++ b/Multipole/src/multipole.cc @@ -15,7 +15,7 @@ #include "multipole.hh" #include "interpolate.hxx" #include "utils.hh" -#include "sphericalharmonic.hh" +#include "sphericalharmonic.hxx" using namespace std; diff --git a/Multipole/src/sphericalharmonic.cc b/Multipole/src/sphericalharmonic.cxx similarity index 98% rename from Multipole/src/sphericalharmonic.cc rename to Multipole/src/sphericalharmonic.cxx index e25459ce..78b8e641 100644 --- a/Multipole/src/sphericalharmonic.cc +++ b/Multipole/src/sphericalharmonic.cxx @@ -1,13 +1,11 @@ +#include "sphericalharmonic.hxx" + #include #include #include #include #include -#include "cctk.h" -#include "cctk_Parameters.h" -#include "cctk_Arguments.h" -#include "sphericalharmonic.hh" static const CCTK_REAL PI = acos(-1.0); diff --git a/Multipole/src/sphericalharmonic.hh b/Multipole/src/sphericalharmonic.hxx similarity index 56% rename from Multipole/src/sphericalharmonic.hh rename to Multipole/src/sphericalharmonic.hxx index 987eb10e..49e4cc99 100644 --- a/Multipole/src/sphericalharmonic.hh +++ b/Multipole/src/sphericalharmonic.hxx @@ -1,7 +1,9 @@ +#ifndef MULTIPOLE_SPHERICALHARMONIC_HXX +#define MULTIPOLE_SPHERICALHARMONIC_HXX -#ifndef __sphericalharmonic_h -#define __sphericalharmonic_h -#include "cctk.h" +#include +#include +#include void Multipole_HarmonicSetup(int s, int l, int m, int array_size, CCTK_REAL const th[], CCTK_REAL const ph[], @@ -10,7 +12,4 @@ void Multipole_HarmonicSetup(int s, int l, int m, int array_size, void Multipole_SphericalHarmonic(int s, int l, int m, CCTK_REAL th, CCTK_REAL ph, CCTK_REAL *reY, CCTK_REAL *imY); -void Multipole_SphericalHarmonicWeyl(int s, int l, int m, CCTK_REAL th, - CCTK_REAL ph, CCTK_REAL *reY, - CCTK_REAL *imY); -#endif +#endif // #ifndef MULTIPOLE_SPHERICALHARMONIC_HXX diff --git a/Multipole/src/tests.cc b/Multipole/src/tests.cc index d5a1d7f9..20e24171 100644 --- a/Multipole/src/tests.cc +++ b/Multipole/src/tests.cc @@ -10,7 +10,7 @@ #include "utils.hh" #include "integrate.hxx" #include "interpolate.hxx" -#include "sphericalharmonic.hh" +#include "sphericalharmonic.hxx" using namespace Multipole;