Skip to content

Commit 28787c6

Browse files
committed
Use references for inline functions for performance
1 parent 0426ed1 commit 28787c6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Residual/ResidualGive/applyAGive.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#include "../../../include/common/geometry_helper.h"
44

55
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,
6-
Vector<double> result, ConstVector<double> x)
6+
Vector<double>& result, ConstVector<double>& x)
77
{
88
const int global_index = grid.index(i_r, i_theta);
99
double coeff_beta, arr, att, art, detDF;

src/Residual/ResidualTake/applyResidualTake.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#include "../../../include/Residual/ResidualTake/residualTake.h"
22

33
inline void node_apply_residual_take(int i_r, int i_theta, const PolarGrid& grid, bool DirBC_Interior,
4-
Vector<double> result, ConstVector<double> rhs, ConstVector<double> x,
5-
ConstVector<double> arr, ConstVector<double> att, ConstVector<double> art,
6-
ConstVector<double> detDF, ConstVector<double> coeff_beta)
4+
Vector<double>& result, ConstVector<double>& rhs, ConstVector<double>& x,
5+
ConstVector<double>& arr, ConstVector<double>& att, ConstVector<double>& art,
6+
ConstVector<double>& detDF, ConstVector<double>& coeff_beta)
77
{
88
do {
99
/* -------------------- */

0 commit comments

Comments
 (0)