Skip to content

Commit 3134b8b

Browse files
authored
Move cmdline.h to ConfigParser (#120)
1 parent b57ec83 commit 3134b8b

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ if(GMGPOLAR_BUILD_TESTS)
8080
'*/_deps/googletest-src/*'
8181
'*/include/InputFunctions/*'
8282
'*/src/InputFunctions/*'
83+
'*/include/ConfigParser/cmdline.h'
8384
--output-file ${CMAKE_BINARY_DIR}/coverage-filtered.info
8485
--ignore-errors unused
8586
# Generate HTML report

include/ConfigParser/config_parser.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#include <stdexcept>
66
#include <memory>
77

8-
#include "../../include/Utilities/cmdline.h"
8+
#include "../../include/ConfigParser/cmdline.h"
99
#include "../../include/common/global_definitions.h"
1010
#include "../../include/PolarGrid/polargrid.h"
1111
#include "../../include/GMGPolar/test_cases.h"

include/GMGPolar/gmgpolar.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ class LevelCache;
2121
#include "../LinearAlgebra/vector.h"
2222
#include "../LinearAlgebra/vector_operations.h"
2323
#include "../PolarGrid/polargrid.h"
24-
#include "../Utilities/cmdline.h"
2524
#include "../common/global_definitions.h"
2625
#include "test_cases.h"
2726

src/Level/levelCache.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ LevelCache::LevelCache(const PolarGrid& grid, const DensityProfileCoefficients&
3030
const double r = grid.radius(i_r);
3131
for (int i_theta = 0; i_theta < grid.ntheta(); i_theta++) {
3232
const double theta = grid.theta(i_theta);
33-
const double index = grid.index(i_r, i_theta);
33+
const int index = grid.index(i_r, i_theta);
3434
if (!cache_domain_geometry_) {
3535
coeff_alpha_[index] = density_profile_coefficients.alpha(r, theta);
3636
}
@@ -47,7 +47,7 @@ LevelCache::LevelCache(const PolarGrid& grid, const DensityProfileCoefficients&
4747
const double theta = grid.theta(i_theta);
4848
const double sin_theta = sin_theta_[i_theta];
4949
const double cos_theta = cos_theta_[i_theta];
50-
const double index = grid.index(i_r, i_theta);
50+
const int index = grid.index(i_r, i_theta);
5151

5252
double coeff_alpha = density_profile_coefficients.alpha(r, theta);
5353

@@ -68,7 +68,7 @@ LevelCache::LevelCache(const PolarGrid& grid, const DensityProfileCoefficients&
6868
const double cos_theta = cos_theta_[i_theta];
6969
for (int i_r = grid.numberSmootherCircles(); i_r < grid.nr(); i_r++) {
7070
const double r = grid.radius(i_r);
71-
const double index = grid.index(i_r, i_theta);
71+
const int index = grid.index(i_r, i_theta);
7272

7373
double coeff_alpha;
7474
if (cache_density_profile_coefficients_ && !cache_domain_geometry_) {
@@ -203,4 +203,4 @@ const Vector<double>& LevelCache::art() const
203203
const Vector<double>& LevelCache::detDF() const
204204
{
205205
return detDF_;
206-
}
206+
}

0 commit comments

Comments
 (0)