Skip to content

Commit

Permalink
Change _coupled_id to _coupled_var_num for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
cticenhour committed May 13, 2022
1 parent 63c4015 commit 624dd60
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion modules/electromagnetics/include/bcs/VectorPortBC.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class VectorPortBC : public VectorIntegratedBC
MooseEnum _component;

const VectorVariableValue & _coupled_val;
unsigned int _coupled_id;
unsigned int _coupled_var_num;

Function & _inc_real;
Function & _inc_imag;
Expand Down
6 changes: 3 additions & 3 deletions modules/electromagnetics/src/bcs/VectorPortBC.C
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ VectorPortBC::VectorPortBC(const InputParameters & parameters)
_component(getParam<MooseEnum>("component")),

_coupled_val(coupledVectorValue("coupled_field")),
_coupled_id(coupled("coupled_field")),
_coupled_var_num(coupled("coupled_field")),

_inc_real(getFunction("real_incoming")),
_inc_imag(getFunction("imag_incoming")),
Expand Down Expand Up @@ -125,11 +125,11 @@ VectorPortBC::computeQpOffDiagJacobian(unsigned int jvar)
Real off_diag_jac = _beta.value(_t, _q_point[_qp]) * _test[_i][_qp].cross(_normals[_qp]) *
_normals[_qp].cross(_phi[_j][_qp]);

if (_component == elk::REAL && jvar == _coupled_id)
if (_component == elk::REAL && jvar == _coupled_var_num)
{
return off_diag_jac;
}
else if (_component == elk::IMAGINARY && jvar == _coupled_id)
else if (_component == elk::IMAGINARY && jvar == _coupled_var_num)
{
return -off_diag_jac;
}
Expand Down

0 comments on commit 624dd60

Please sign in to comment.