Skip to content

Commit 210b0e5

Browse files
committed
rhs clean
1 parent 12eb6f8 commit 210b0e5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Modules/Legacy/FiniteElements/ApplyFEMVoltageSource.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,11 @@ void ApplyFEMVoltageSource::execute()
125125
SparseRowMatrixHandle mat(matrix_cast::as_sparse(stiffnessMatrix));
126126
DenseColumnMatrixHandle rhs(new DenseColumnMatrix(nsize));
127127

128-
DenseColumnMatrixHandle rhsIn(matrix_cast::as_column((*rhsMatrix)));
129128
if (rhsMatrix)
130129
{
131130
//rhsIn = rhsMatrix->column();
131+
DenseColumnMatrixHandle rhsIn(matrix_cast::as_column((*rhsMatrix)));
132+
132133
if (rhsIn && (rhsIn->nrows() == nsize))
133134
{
134135
for (unsigned int i = 0; i < nsize; i++)

0 commit comments

Comments
 (0)