avoid unnecessary initialization

value is immediately overwritten in block below
This commit is contained in:
Arne Morten Kvarving
2021-09-30 09:33:32 +02:00
parent 030b638180
commit 703e3e668e

View File

@@ -67,7 +67,7 @@ bool ASMs1DSpec::integrate (Integrand& integrand,
Vector wg1, xg1, points1;
Matrix D1, dNdu, Jac;
bool ok = Legendre::GLL(wg1,points1,p1);
int nGP = nGauss;
int nGP;
if (nGauss < 1) // using the nodal points themselves as integration points
ok &= Legendre::basisDerivatives(nGP=p1,D1);