Commit 0c0aaefa authored by Benoît LÉ's avatar Benoît LÉ

[xFEM] Forgot to use xtool::xDataType<S>::zero() in xAssemblerLumpedBlockEqu...

[xFEM] Forgot to use xtool::xDataType<S>::zero() in xAssemblerLumpedBlockEqu and xAssemblerLumpedBlockEquInVector
parent cfe6ecb8
......@@ -462,7 +462,7 @@ class xAssemblerLumpedBlockEqu : public xAssemblerLumped<M, V, S>
void assemble_scalar(const LOCALSCALAR& scal)
{
S val = scal * this->coeff;
if (val != 0.0) xMatVecScaAssembler<M, V, S>::assemble(val, this->sca);
if (val != xtool::xDataType<S>::zero()) xMatVecScaAssembler<M, V, S>::assemble(val, this->sca);
}
};
/// does the same thing as xAssemblerLumpedBlockEqu, but the coefficients of the lumped matrix are put in a
......@@ -536,7 +536,7 @@ class xAssemblerLumpedBlockEquInVector : public xAssemblerLumped<M, V, S>
void assemble_scalar(const LOCALSCALAR& scal)
{
S val = scal * this->coeff;
if (val != 0.0) xMatVecScaAssembler<M, V, S>::assemble(val, this->sca);
if (val != xtool::xDataType<S>::zero()) xMatVecScaAssembler<M, V, S>::assemble(val, this->sca);
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment