diff --git a/src/DirectSolver/DirectSolver-COO-MUMPS-Give/buildSolverMatrix.cpp b/src/DirectSolver/DirectSolver-COO-MUMPS-Give/buildSolverMatrix.cpp index 54f58b64..3edc6b1a 100644 --- a/src/DirectSolver/DirectSolver-COO-MUMPS-Give/buildSolverMatrix.cpp +++ b/src/DirectSolver/DirectSolver-COO-MUMPS-Give/buildSolverMatrix.cpp @@ -4,7 +4,8 @@ #ifdef GMGPOLAR_USE_MUMPS -inline void updateMatrixElement(SparseMatrixCOO& matrix, int ptr, int offset, int row, int col, double val) +static inline void updateMatrixElement(SparseMatrixCOO& matrix, int ptr, int offset, int row, int col, + double val) { matrix.row_index(ptr + offset) = row; matrix.col_index(ptr + offset) = col; diff --git a/src/DirectSolver/DirectSolver-COO-MUMPS-Take/buildSolverMatrix.cpp b/src/DirectSolver/DirectSolver-COO-MUMPS-Take/buildSolverMatrix.cpp index e58512c7..42566e19 100644 --- a/src/DirectSolver/DirectSolver-COO-MUMPS-Take/buildSolverMatrix.cpp +++ b/src/DirectSolver/DirectSolver-COO-MUMPS-Take/buildSolverMatrix.cpp @@ -2,7 +2,8 @@ #ifdef GMGPOLAR_USE_MUMPS -inline void updateMatrixElement(SparseMatrixCOO& matrix, int ptr, int offset, int row, int col, double val) +static inline void updateMatrixElement(SparseMatrixCOO& matrix, int ptr, int offset, int row, int col, + double val) { matrix.row_index(ptr + offset) = row; matrix.col_index(ptr + offset) = col; diff --git a/src/DirectSolver/DirectSolver-CSR-LU-Give/buildSolverMatrix.cpp b/src/DirectSolver/DirectSolver-CSR-LU-Give/buildSolverMatrix.cpp index c192da23..a942bc17 100644 --- a/src/DirectSolver/DirectSolver-CSR-LU-Give/buildSolverMatrix.cpp +++ b/src/DirectSolver/DirectSolver-CSR-LU-Give/buildSolverMatrix.cpp @@ -2,7 +2,7 @@ #include "../../../include/common/geometry_helper.h" -inline void updateMatrixElement(SparseMatrixCSR& matrix, int offset, int row, int col, double val) +static inline void updateMatrixElement(SparseMatrixCSR& matrix, int offset, int row, int col, double val) { matrix.row_nz_index(row, offset) = col; matrix.row_nz_entry(row, offset) += val; diff --git a/src/DirectSolver/DirectSolver-CSR-LU-Take/buildSolverMatrix.cpp b/src/DirectSolver/DirectSolver-CSR-LU-Take/buildSolverMatrix.cpp index efd03176..0e9b6ac4 100644 --- a/src/DirectSolver/DirectSolver-CSR-LU-Take/buildSolverMatrix.cpp +++ b/src/DirectSolver/DirectSolver-CSR-LU-Take/buildSolverMatrix.cpp @@ -1,6 +1,6 @@ #include "../../../include/DirectSolver/DirectSolver-CSR-LU-Take/directSolverTakeCustomLU.h" -inline void updateMatrixElement(SparseMatrixCSR& matrix, int offset, int row, int col, double val) +static inline void updateMatrixElement(SparseMatrixCSR& matrix, int offset, int row, int col, double val) { matrix.row_nz_index(row, offset) = col; matrix.row_nz_entry(row, offset) = val; diff --git a/src/ExtrapolatedSmoother/ExtrapolatedSmootherGive/buildAscMatrices.cpp b/src/ExtrapolatedSmoother/ExtrapolatedSmootherGive/buildAscMatrices.cpp index cabda889..a010f2a5 100644 --- a/src/ExtrapolatedSmoother/ExtrapolatedSmootherGive/buildAscMatrices.cpp +++ b/src/ExtrapolatedSmoother/ExtrapolatedSmootherGive/buildAscMatrices.cpp @@ -3,7 +3,8 @@ #include "../../../include/common/geometry_helper.h" /* Tridiagonal matrices */ -inline void updateTridiagonalElement(SymmetricTridiagonalSolver& matrix, int row, int column, double value) +static inline void updateTridiagonalElement(SymmetricTridiagonalSolver& matrix, int row, int column, + double value) { if (row == column) matrix.main_diagonal(row) += value; @@ -14,23 +15,23 @@ inline void updateTridiagonalElement(SymmetricTridiagonalSolver& matrix, } /* Diagonal matrices */ -inline void updateDiagonalElement(DiagonalSolver& matrix, int row, int column, double value) +static inline void updateDiagonalElement(DiagonalSolver& matrix, int row, int column, double value) { matrix.diagonal(row) += value; } /* Inner Boundary COO/CSR matrix */ #ifdef GMGPOLAR_USE_MUMPS -inline void updateCOOCSRMatrixElement(SparseMatrixCOO& matrix, int ptr, int offset, int row, int col, - double val) +static inline void updateCOOCSRMatrixElement(SparseMatrixCOO& matrix, int ptr, int offset, int row, int col, + double val) { matrix.row_index(ptr + offset) = row; matrix.col_index(ptr + offset) = col; matrix.value(ptr + offset) += val; } #else -inline void updateCOOCSRMatrixElement(SparseMatrixCSR& matrix, int ptr, int offset, int row, int col, - double val) +static inline void updateCOOCSRMatrixElement(SparseMatrixCSR& matrix, int ptr, int offset, int row, int col, + double val) { matrix.row_nz_index(row, offset) = col; matrix.row_nz_entry(row, offset) += val; diff --git a/src/ExtrapolatedSmoother/ExtrapolatedSmootherGive/smootherSolver.cpp b/src/ExtrapolatedSmoother/ExtrapolatedSmootherGive/smootherSolver.cpp index d960640b..b72feb85 100644 --- a/src/ExtrapolatedSmoother/ExtrapolatedSmootherGive/smootherSolver.cpp +++ b/src/ExtrapolatedSmoother/ExtrapolatedSmootherGive/smootherSolver.cpp @@ -2,10 +2,10 @@ #include "../../../include/common/geometry_helper.h" -inline void nodeApplyAscOrthoCircleGive(int i_r, int i_theta, const PolarGrid& grid, bool DirBC_Interior, - SmootherColor smoother_color, ConstVector& x, ConstVector& rhs, - Vector& result, double arr, double att, double art, double detDF, - double coeff_beta) +static inline void nodeApplyAscOrthoCircleGive(int i_r, int i_theta, const PolarGrid& grid, bool DirBC_Interior, + SmootherColor smoother_color, ConstVector& x, + ConstVector& rhs, Vector& result, double arr, double att, + double art, double detDF, double coeff_beta) { assert(i_r >= 0 && i_r <= grid.numberSmootherCircles()); @@ -394,10 +394,10 @@ inline void nodeApplyAscOrthoCircleGive(int i_r, int i_theta, const PolarGrid& g } } -inline void nodeApplyAscOrthoRadialGive(int i_r, int i_theta, const PolarGrid& grid, bool DirBC_Interior, - SmootherColor smoother_color, ConstVector& x, ConstVector& rhs, - Vector& result, double arr, double att, double art, double detDF, - double coeff_beta) +static inline void nodeApplyAscOrthoRadialGive(int i_r, int i_theta, const PolarGrid& grid, bool DirBC_Interior, + SmootherColor smoother_color, ConstVector& x, + ConstVector& rhs, Vector& result, double arr, double att, + double art, double detDF, double coeff_beta) { assert(i_r >= grid.numberSmootherCircles() - 1 && i_r < grid.nr()); diff --git a/src/ExtrapolatedSmoother/ExtrapolatedSmootherTake/buildAscMatrices.cpp b/src/ExtrapolatedSmoother/ExtrapolatedSmootherTake/buildAscMatrices.cpp index 83da9225..46f7e2a1 100644 --- a/src/ExtrapolatedSmoother/ExtrapolatedSmootherTake/buildAscMatrices.cpp +++ b/src/ExtrapolatedSmoother/ExtrapolatedSmootherTake/buildAscMatrices.cpp @@ -1,7 +1,8 @@ #include "../../../include/ExtrapolatedSmoother/ExtrapolatedSmootherTake/extrapolatedSmootherTake.h" /* Tridiagonal matrices */ -inline void updateTridiagonalElement(SymmetricTridiagonalSolver& matrix, int row, int column, double value) +static inline void updateTridiagonalElement(SymmetricTridiagonalSolver& matrix, int row, int column, + double value) { if (row == column) matrix.main_diagonal(row) = value; @@ -12,23 +13,23 @@ inline void updateTridiagonalElement(SymmetricTridiagonalSolver& matrix, } /* Diagonal matrices */ -inline void updateDiagonalElement(DiagonalSolver& matrix, int row, int column, double value) +static inline void updateDiagonalElement(DiagonalSolver& matrix, int row, int column, double value) { matrix.diagonal(row) = value; } /* Inner Boundary COO/CSR matrix */ #ifdef GMGPOLAR_USE_MUMPS -inline void updateCOOCSRMatrixElement(SparseMatrixCOO& matrix, int ptr, int offset, int row, int col, - double val) +static inline void updateCOOCSRMatrixElement(SparseMatrixCOO& matrix, int ptr, int offset, int row, int col, + double val) { matrix.row_index(ptr + offset) = row; matrix.col_index(ptr + offset) = col; matrix.value(ptr + offset) = val; } #else -inline void updateCOOCSRMatrixElement(SparseMatrixCSR& matrix, int ptr, int offset, int row, int col, - double val) +static inline void updateCOOCSRMatrixElement(SparseMatrixCSR& matrix, int ptr, int offset, int row, int col, + double val) { matrix.row_nz_index(row, offset) = col; matrix.row_nz_entry(row, offset) = val; diff --git a/src/ExtrapolatedSmoother/ExtrapolatedSmootherTake/smootherSolver.cpp b/src/ExtrapolatedSmoother/ExtrapolatedSmootherTake/smootherSolver.cpp index 8a73f791..3e119c1c 100644 --- a/src/ExtrapolatedSmoother/ExtrapolatedSmootherTake/smootherSolver.cpp +++ b/src/ExtrapolatedSmoother/ExtrapolatedSmootherTake/smootherSolver.cpp @@ -1,10 +1,11 @@ #include "../../../include/ExtrapolatedSmoother/ExtrapolatedSmootherTake/extrapolatedSmootherTake.h" -inline void nodeApplyAscOrthoCircleTake(int i_r, int i_theta, const PolarGrid& grid, bool DirBC_Interior, - SmootherColor smoother_color, ConstVector& x, ConstVector& rhs, - Vector& result, ConstVector& arr, ConstVector& att, - ConstVector& art, ConstVector& detDF, - ConstVector& coeff_beta) +static inline void nodeApplyAscOrthoCircleTake(int i_r, int i_theta, const PolarGrid& grid, bool DirBC_Interior, + SmootherColor smoother_color, ConstVector& x, + ConstVector& rhs, Vector& result, + ConstVector& arr, ConstVector& att, + ConstVector& art, ConstVector& detDF, + ConstVector& coeff_beta) { assert(i_r >= 0 && i_r <= grid.numberSmootherCircles()); @@ -182,11 +183,12 @@ inline void nodeApplyAscOrthoCircleTake(int i_r, int i_theta, const PolarGrid& g } } -inline void nodeApplyAscOrthoRadialTake(int i_r, int i_theta, const PolarGrid& grid, bool DirBC_Interior, - SmootherColor smoother_color, ConstVector& x, ConstVector& rhs, - Vector& result, ConstVector& arr, - const ConstVector& att, ConstVector& art, - const ConstVector& detDF, ConstVector& coeff_beta) +static inline void nodeApplyAscOrthoRadialTake(int i_r, int i_theta, const PolarGrid& grid, bool DirBC_Interior, + SmootherColor smoother_color, ConstVector& x, + ConstVector& rhs, Vector& result, + ConstVector& arr, const ConstVector& att, + ConstVector& art, const ConstVector& detDF, + ConstVector& coeff_beta) { assert(i_r >= grid.numberSmootherCircles() - 1 && i_r < grid.nr()); diff --git a/src/Interpolation/extrapolated_prolongation.cpp b/src/Interpolation/extrapolated_prolongation.cpp index 8fe8c65f..9145fc9a 100644 --- a/src/Interpolation/extrapolated_prolongation.cpp +++ b/src/Interpolation/extrapolated_prolongation.cpp @@ -46,9 +46,9 @@ * */ -inline void fineNodeExtrapolatedProlongation(int i_r, int i_theta, int i_r_coarse, int i_theta_coarse, - const PolarGrid& coarse_grid, const PolarGrid& fine_grid, - Vector& fine_result, ConstVector& coarse_values) +static inline void fineNodeExtrapolatedProlongation(int i_r, int i_theta, int i_r_coarse, int i_theta_coarse, + const PolarGrid& coarse_grid, const PolarGrid& fine_grid, + Vector& fine_result, ConstVector& coarse_values) { if (i_r & 1) { if (i_theta & 1) { /* (odd, odd) -> node in center of coarse cell */ diff --git a/src/Interpolation/extrapolated_restriction.cpp b/src/Interpolation/extrapolated_restriction.cpp index ab0d7895..a248f940 100644 --- a/src/Interpolation/extrapolated_restriction.cpp +++ b/src/Interpolation/extrapolated_restriction.cpp @@ -21,9 +21,9 @@ * - Radial direction: check domain boundaries */ -inline void coarseNodeExtrapolatedRestriction(int i_r_coarse, int i_theta_coarse, const PolarGrid& fine_grid, - const PolarGrid& coarse_grid, Vector& coarse_result, - ConstVector& fine_values) +static inline void coarseNodeExtrapolatedRestriction(int i_r_coarse, int i_theta_coarse, const PolarGrid& fine_grid, + const PolarGrid& coarse_grid, Vector& coarse_result, + ConstVector& fine_values) { int i_r = i_r_coarse * 2; int i_theta = i_theta_coarse * 2; diff --git a/src/Interpolation/fmg_interpolation.cpp b/src/Interpolation/fmg_interpolation.cpp index 6edac90c..4e7f0c7c 100644 --- a/src/Interpolation/fmg_interpolation.cpp +++ b/src/Interpolation/fmg_interpolation.cpp @@ -53,9 +53,9 @@ * */ -inline void fineNodeFMGInterpolation(int i_r, int i_theta, int i_r_coarse, int i_theta_coarse, - const PolarGrid& coarse_grid, const PolarGrid& fine_grid, - Vector& fine_result, ConstVector& coarse_values) +static inline void fineNodeFMGInterpolation(int i_r, int i_theta, int i_r_coarse, int i_theta_coarse, + const PolarGrid& coarse_grid, const PolarGrid& fine_grid, + Vector& fine_result, ConstVector& coarse_values) { /* Case 1: On the boundary */ if (i_r == 0 || i_r == fine_grid.nr() - 1) { diff --git a/src/Interpolation/injection.cpp b/src/Interpolation/injection.cpp index 42f34c90..05753e6c 100644 --- a/src/Interpolation/injection.cpp +++ b/src/Interpolation/injection.cpp @@ -2,9 +2,9 @@ /* Remark: This injection is not scaled. */ -inline void coarseNodeInjection(int i_r_coarse, int i_theta_coarse, const PolarGrid& fine_grid, - const PolarGrid& coarse_grid, Vector& coarse_result, - ConstVector& fine_values) +static inline void coarseNodeInjection(int i_r_coarse, int i_theta_coarse, const PolarGrid& fine_grid, + const PolarGrid& coarse_grid, Vector& coarse_result, + ConstVector& fine_values) { int i_r = i_r_coarse * 2; int i_theta = i_theta_coarse * 2; diff --git a/src/Interpolation/prolongation.cpp b/src/Interpolation/prolongation.cpp index ca98e2a0..9c417da7 100644 --- a/src/Interpolation/prolongation.cpp +++ b/src/Interpolation/prolongation.cpp @@ -51,9 +51,9 @@ * - k1, k2 in angular direction */ -inline void fineNodeProlongation(int i_r, int i_theta, int i_r_coarse, int i_theta_coarse, const PolarGrid& coarse_grid, - const PolarGrid& fine_grid, Vector& fine_result, - ConstVector& coarse_values) +static inline void fineNodeProlongation(int i_r, int i_theta, int i_r_coarse, int i_theta_coarse, + const PolarGrid& coarse_grid, const PolarGrid& fine_grid, + Vector& fine_result, ConstVector& coarse_values) { if (i_r & 1) { if (i_theta & 1) { /* (odd, odd) -> fine node in center of coarse cell */ diff --git a/src/Interpolation/restriction.cpp b/src/Interpolation/restriction.cpp index bfc46c3c..669e7914 100644 --- a/src/Interpolation/restriction.cpp +++ b/src/Interpolation/restriction.cpp @@ -22,9 +22,9 @@ * - Radial direction: check domain boundaries (inner/outer radius) */ -inline void coarseNodeRestriction(int i_r_coarse, int i_theta_coarse, const PolarGrid& fine_grid, - const PolarGrid& coarse_grid, Vector& coarse_result, - ConstVector& fine_values) +static inline void coarseNodeRestriction(int i_r_coarse, int i_theta_coarse, const PolarGrid& fine_grid, + const PolarGrid& coarse_grid, Vector& coarse_result, + ConstVector& fine_values) { int i_r = i_r_coarse * 2; int i_theta = i_theta_coarse * 2; diff --git a/src/Residual/ResidualGive/applyAGive.cpp b/src/Residual/ResidualGive/applyAGive.cpp index b250bbc5..15193fa4 100644 --- a/src/Residual/ResidualGive/applyAGive.cpp +++ b/src/Residual/ResidualGive/applyAGive.cpp @@ -1,8 +1,8 @@ #include "../../../include/Residual/ResidualGive/residualGive.h" -inline void node_apply_a_give(int i_r, int i_theta, double r, double theta, const PolarGrid& grid, - const LevelCache& level_cache, bool DirBC_Interior, Vector& result, - ConstVector& x) +static inline void node_apply_a_give(int i_r, int i_theta, double r, double theta, const PolarGrid& grid, + const LevelCache& level_cache, bool DirBC_Interior, Vector& result, + ConstVector& x) { /* ---------------------------------------- */ /* Compute or retrieve stencil coefficients */ diff --git a/src/Residual/ResidualTake/applyResidualTake.cpp b/src/Residual/ResidualTake/applyResidualTake.cpp index 11140ff8..9c4a2417 100644 --- a/src/Residual/ResidualTake/applyResidualTake.cpp +++ b/src/Residual/ResidualTake/applyResidualTake.cpp @@ -1,9 +1,10 @@ #include "../../../include/Residual/ResidualTake/residualTake.h" -inline void node_apply_residual_take(int i_r, int i_theta, const PolarGrid& grid, bool DirBC_Interior, - Vector& result, ConstVector& rhs, ConstVector& x, - ConstVector& arr, ConstVector& att, ConstVector& art, - ConstVector& detDF, ConstVector& coeff_beta) +static inline void node_apply_residual_take(int i_r, int i_theta, const PolarGrid& grid, bool DirBC_Interior, + Vector& result, ConstVector& rhs, ConstVector& x, + ConstVector& arr, ConstVector& att, + ConstVector& art, ConstVector& detDF, + ConstVector& coeff_beta) { /* -------------------- */ /* Node in the interior */ diff --git a/src/Smoother/SmootherGive/buildMatrix.cpp b/src/Smoother/SmootherGive/buildMatrix.cpp index d31186f4..e931daa6 100644 --- a/src/Smoother/SmootherGive/buildMatrix.cpp +++ b/src/Smoother/SmootherGive/buildMatrix.cpp @@ -3,7 +3,7 @@ #include "../../../include/common/geometry_helper.h" /* Tridiagonal matrices */ -inline void updateMatrixElement(SymmetricTridiagonalSolver& matrix, int row, int column, double value) +static inline void updateMatrixElement(SymmetricTridiagonalSolver& matrix, int row, int column, double value) { if (row == column) matrix.main_diagonal(row) += value; @@ -15,16 +15,16 @@ inline void updateMatrixElement(SymmetricTridiagonalSolver& matrix, int /* Inner Boundary COO/CSR matrix */ #ifdef GMGPOLAR_USE_MUMPS -inline void updateCOOCSRMatrixElement(SparseMatrixCOO& matrix, int ptr, int offset, int row, int col, - double val) +static inline void updateCOOCSRMatrixElement(SparseMatrixCOO& matrix, int ptr, int offset, int row, int col, + double val) { matrix.row_index(ptr + offset) = row; matrix.col_index(ptr + offset) = col; matrix.value(ptr + offset) += val; } #else -inline void updateCOOCSRMatrixElement(SparseMatrixCSR& matrix, int ptr, int offset, int row, int col, - double val) +static inline void updateCOOCSRMatrixElement(SparseMatrixCSR& matrix, int ptr, int offset, int row, int col, + double val) { matrix.row_nz_index(row, offset) = col; matrix.row_nz_entry(row, offset) += val; diff --git a/src/Smoother/SmootherGive/smootherSolver.cpp b/src/Smoother/SmootherGive/smootherSolver.cpp index d2901508..395ebdf4 100644 --- a/src/Smoother/SmootherGive/smootherSolver.cpp +++ b/src/Smoother/SmootherGive/smootherSolver.cpp @@ -2,10 +2,10 @@ #include "../../../include/common/geometry_helper.h" -inline void nodeApplyAscOrthoCircleGive(int i_r, int i_theta, const PolarGrid& grid, bool DirBC_Interior, - SmootherColor smoother_color, ConstVector& x, ConstVector& rhs, - Vector& result, double arr, double att, double art, double detDF, - double coeff_beta) +static inline void nodeApplyAscOrthoCircleGive(int i_r, int i_theta, const PolarGrid& grid, bool DirBC_Interior, + SmootherColor smoother_color, ConstVector& x, + ConstVector& rhs, Vector& result, double arr, double att, + double art, double detDF, double coeff_beta) { assert(i_r >= 0 && i_r <= grid.numberSmootherCircles()); @@ -186,10 +186,10 @@ inline void nodeApplyAscOrthoCircleGive(int i_r, int i_theta, const PolarGrid& g } } -inline void nodeApplyAscOrthoRadialGive(int i_r, int i_theta, const PolarGrid& grid, bool DirBC_Interior, - SmootherColor smoother_color, ConstVector& x, ConstVector& rhs, - Vector& result, double arr, double att, double art, double detDF, - double coeff_beta) +static inline void nodeApplyAscOrthoRadialGive(int i_r, int i_theta, const PolarGrid& grid, bool DirBC_Interior, + SmootherColor smoother_color, ConstVector& x, + ConstVector& rhs, Vector& result, double arr, double att, + double art, double detDF, double coeff_beta) { assert(i_r >= grid.numberSmootherCircles() - 1 && i_r < grid.nr()); diff --git a/src/Smoother/SmootherTake/buildMatrix.cpp b/src/Smoother/SmootherTake/buildMatrix.cpp index d8430837..4cf8e3e9 100644 --- a/src/Smoother/SmootherTake/buildMatrix.cpp +++ b/src/Smoother/SmootherTake/buildMatrix.cpp @@ -1,7 +1,7 @@ #include "../../../include/Smoother/SmootherTake/smootherTake.h" /* Tridiagonal matrices */ -inline void updateMatrixElement(SymmetricTridiagonalSolver& matrix, int row, int column, double value) +static inline void updateMatrixElement(SymmetricTridiagonalSolver& matrix, int row, int column, double value) { if (row == column) matrix.main_diagonal(row) = value; @@ -13,16 +13,16 @@ inline void updateMatrixElement(SymmetricTridiagonalSolver& matrix, int /* Inner Boundary COO/CSR matrix */ #ifdef GMGPOLAR_USE_MUMPS -inline void updateCOOCSRMatrixElement(SparseMatrixCOO& matrix, int ptr, int offset, int row, int col, - double val) +static inline void updateCOOCSRMatrixElement(SparseMatrixCOO& matrix, int ptr, int offset, int row, int col, + double val) { matrix.row_index(ptr + offset) = row; matrix.col_index(ptr + offset) = col; matrix.value(ptr + offset) = val; } #else -inline void updateCOOCSRMatrixElement(SparseMatrixCSR& matrix, int ptr, int offset, int row, int col, - double val) +static inline void updateCOOCSRMatrixElement(SparseMatrixCSR& matrix, int ptr, int offset, int row, int col, + double val) { matrix.row_nz_index(row, offset) = col; matrix.row_nz_entry(row, offset) = val; diff --git a/src/Smoother/SmootherTake/smootherSolver.cpp b/src/Smoother/SmootherTake/smootherSolver.cpp index 66a7db06..e2125c76 100644 --- a/src/Smoother/SmootherTake/smootherSolver.cpp +++ b/src/Smoother/SmootherTake/smootherSolver.cpp @@ -1,10 +1,11 @@ #include "../../../include/Smoother/SmootherTake/smootherTake.h" -inline void nodeApplyAscOrthoCircleTake(int i_r, int i_theta, const PolarGrid& grid, bool DirBC_Interior, - SmootherColor smoother_color, ConstVector& x, ConstVector& rhs, - Vector& result, ConstVector& arr, ConstVector& att, - ConstVector& art, ConstVector& detDF, - ConstVector& coeff_beta) +static inline void nodeApplyAscOrthoCircleTake(int i_r, int i_theta, const PolarGrid& grid, bool DirBC_Interior, + SmootherColor smoother_color, ConstVector& x, + ConstVector& rhs, Vector& result, + ConstVector& arr, ConstVector& att, + ConstVector& art, ConstVector& detDF, + ConstVector& coeff_beta) { assert(i_r >= 0 && i_r < grid.numberSmootherCircles()); @@ -88,11 +89,12 @@ inline void nodeApplyAscOrthoCircleTake(int i_r, int i_theta, const PolarGrid& g } } -inline void nodeApplyAscOrthoRadialTake(int i_r, int i_theta, const PolarGrid& grid, bool DirBC_Interior, - SmootherColor smoother_color, ConstVector& x, ConstVector& rhs, - Vector& result, ConstVector& arr, - const ConstVector& att, ConstVector& art, - const ConstVector& detDF, ConstVector& coeff_beta) +static inline void nodeApplyAscOrthoRadialTake(int i_r, int i_theta, const PolarGrid& grid, bool DirBC_Interior, + SmootherColor smoother_color, ConstVector& x, + ConstVector& rhs, Vector& result, + ConstVector& arr, const ConstVector& att, + ConstVector& art, const ConstVector& detDF, + ConstVector& coeff_beta) { assert(i_r >= grid.numberSmootherCircles() && i_r < grid.nr()); /* -------------------- */