Skip to content

Commit

Permalink
Migrate to const functions
Browse files Browse the repository at this point in the history
  • Loading branch information
cticenhour committed Apr 29, 2022
1 parent 4769a5a commit 038305a
Show file tree
Hide file tree
Showing 19 changed files with 37 additions and 37 deletions.
4 changes: 2 additions & 2 deletions modules/electromagnetics/include/bcs/AbsorbingBC.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ class AbsorbingBC : public IntegratedBC

MooseEnum _component;

Function & _func_real;
const Function & _func_real;

Function & _func_imag;
const Function & _func_imag;

Real _coeff_real;

Expand Down
2 changes: 1 addition & 1 deletion modules/electromagnetics/include/bcs/CoupledGradBC.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class CoupledGradBC : public IntegratedBC

Real _coefficient;

Function & _func;
const Function & _func;

const VariableGradient & _coupled_grad;
};
Expand Down
8 changes: 4 additions & 4 deletions modules/electromagnetics/include/bcs/PortBC.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ class PortBC : public IntegratedBC

MooseEnum _component;

Function & _func_real;
const Function & _func_real;

Function & _func_imag;
const Function & _func_imag;

Function & _profile_func_real;
const Function & _profile_func_real;

Function & _profile_func_imag;
const Function & _profile_func_imag;

Real _coeff_real;

Expand Down
4 changes: 2 additions & 2 deletions modules/electromagnetics/include/bcs/ReflectionBC.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ class ReflectionBC : public IntegratedBC

MooseEnum _component;

Function & _func_real;
const Function & _func_real;

Function & _func_imag;
const Function & _func_imag;

Real _coeff_real;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ class VectorCurlPenaltyDirichletBC : public VectorIntegratedBC
virtual Real computeQpResidual();
virtual Real computeQpJacobian();
Real _penalty;
Function & _exact_x;
Function & _exact_y;
Function & _exact_z;
const Function & _exact_x;
const Function & _exact_y;
const Function & _exact_z;
};

#endif // VECTORCURLPENALTYDIRICHLETBC_H
6 changes: 3 additions & 3 deletions modules/electromagnetics/include/bcs/VectorPortBC.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ class VectorPortBC : public VectorIntegratedBC
virtual Real computeQpJacobian() override;
virtual Real computeQpOffDiagJacobian(unsigned int jvar) override;

Function & _beta;
const Function & _beta;

MooseEnum _component;

const VectorVariableValue & _coupled_val;
unsigned int _coupled_var_num;

Function & _inc_real;
Function & _inc_imag;
const Function & _inc_real;
const Function & _inc_imag;

std::complex<double> _jay;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ class HelmholtzTestFunc : public Function, public FunctionInterface
protected:
Real _L;

Function & _a;
Function & _b;
const Function & _a;
const Function & _b;

Real _d;
Real _h;
Expand Down
4 changes: 2 additions & 2 deletions modules/electromagnetics/include/functions/JinSlabCoeffFunc.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ class JinSlabCoeffFunc : public Function, public FunctionInterface
virtual Real value(Real t, const Point & p) override;

protected:
Function & _epsR_real;
Function & _epsR_imag;
const Function & _epsR_real;
const Function & _epsR_imag;

Real _muR_real;
Real _muR_imag;
Expand Down
4 changes: 2 additions & 2 deletions modules/electromagnetics/include/functions/OneDFieldCoeff.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ class OneDFieldCoeff : public Function, public FunctionInterface
private:
Real _theta;

Function & _epsR;
const Function & _epsR;

Function & _InverseMuR;
const Function & _InverseMuR;
};

#endif // ONEDFIELDCOEFF_H
2 changes: 1 addition & 1 deletion modules/electromagnetics/include/functions/RobinTestFunc.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class RobinTestFunc : public Function, public FunctionInterface
Real _gL_real;
Real _gL_imag;

Function & _func;
const Function & _func;

MooseEnum _component;
};
Expand Down
8 changes: 4 additions & 4 deletions modules/electromagnetics/include/functions/WaveCoeff.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ class WaveCoeff : public Function, public FunctionInterface
virtual Real value(Real t, const Point & p) override;

protected:
Function & _eps_r_real;
Function & _eps_r_imag;
const Function & _eps_r_real;
const Function & _eps_r_imag;

Function & _mu_r_real;
Function & _mu_r_imag;
const Function & _mu_r_real;
const Function & _mu_r_imag;

Real _k;

Expand Down
2 changes: 1 addition & 1 deletion modules/electromagnetics/include/kernels/CoeffField.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class CoeffField : public Reaction
private:
Real _coefficient;

Function & _func;
const Function & _func;
};

#endif /* COEFFFIELD_H */
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class CoupledCoeffField : public Kernel
private:
Real _coefficient;

Function & _func;
const Function & _func;

const VariableValue & _coupled_val;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class CoupledFuncDiffusion : public Kernel

private:

Function & _func;
const Function & _func;

Real _sign;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class CoupledVectorCoeffField : public VectorKernel

Real _coefficient;

Function & _func;
const Function & _func;

const VectorVariableValue & _coupled_val;
};
Expand Down
2 changes: 1 addition & 1 deletion modules/electromagnetics/include/kernels/FuncDiffusion.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class FuncDiffusion : public Diffusion

private:

Function & _func;
const Function & _func;
};

#endif // FUNCDIFFUSION_H
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class VectorCoeffField : public VectorKernel

Real _coefficient;

Function & _func;
const Function & _func;
};

#endif // VECTORCOEFFFIELD_H
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ class VectorCurrentSource : public VectorKernel
virtual Real computeQpResidual() override;
virtual Real computeQpJacobian() override;

Function & _func;
const Function & _func;

Function & _source_real;
Function & _source_imag;
const Function & _source_real;
const Function & _source_imag;

MooseEnum _component;
};
Expand Down
4 changes: 2 additions & 2 deletions modules/electromagnetics/test/include/functions/MMSTestFunc.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ class MMSTestFunc : public Function, public FunctionInterface
protected:
Real _L;

Function & _a;
Function & _b;
const Function & _a;
const Function & _b;

Real _d;
Real _h;
Expand Down

0 comments on commit 038305a

Please sign in to comment.