@@ -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
203203const Vector<double >& LevelCache::detDF () const
204204{
205205 return detDF_;
206- }
206+ }
0 commit comments