message: Fixed a bug introduced in
diff: @@ -82,22 +82,24 @@ void InitCoefficient(mfem::Coefficient *Q, mfem::Mesh &mesh,
  const mfem::IntegrationRule &ir,
  Coefficient*& coeff_ptr, Context &ctx)
  {
  - ConstantCoefficient *coeff;
  if ( Q == nullptr )
  {
  Coefficient *ceedCoeff = new Coefficient(1);
  ctx.coeff = 1.0;
  coeff_ptr = ceedCoeff;
  }
  - else if (coeff = dynamic_cast<ConstantCoefficient*>(Q))
  + else if (ConstantCoefficient *const_coeff =
  + dynamic_cast<ConstantCoefficient*>(Q))
  {
  Coefficient *ceedCoeff = new Coefficient(1);
  - ctx.coeff = coeff->constant;
  + ctx.coeff = const_coeff->constant;
  coeff_ptr = ceedCoeff;
  }
  - else if (coeff = dynamic_cast<GridFunctionCoefficient*>(Q))
  + else if (GridFunctionCoefficient* gf_coeff =
  + dynamic_cast<GridFunctionCoefficient*>(Q))
  {
  - GridCoefficient *ceedCoeff = new GridCoefficient(*coeff->GetGridFunction());
  + GridCoefficient *ceedCoeff =
  + new GridCoefficient(*gf_coeff->GetGridFunction());
  coeff_ptr = ceedCoeff;
  }
  else if (QuadratureFunctionCoefficient *cQ =
  @@ -147,11 +149,11 @@ void InitCoefficient(mfem::VectorCoefficient *VQ, mfem::Mesh &mesh,
  const mfem::IntegrationRule &ir,
  Coefficient *&coeff_ptr, Context &ctx)
  {
  - VectorConstantCoefficient *coeff;
  - if (coeff = dynamic_cast<VectorConstantCoefficient*>(VQ))
  + if (VectorConstantCoefficient *const_coeff =
  + dynamic_cast<VectorConstantCoefficient*>(VQ))
  {
  - const int vdim = coeff->GetVDim();
  - const mfem::Vector &val = coeff->GetVec();
  + const int vdim = const_coeff->GetVDim();
  + const mfem::Vector &val = const_coeff->GetVec();
  Coefficient *ceedCoeff = new Coefficient(vdim);
  for (int i = 0; i < vdim; i++)
  {
  @@ -159,9 +161,11 @@ void InitCoefficient(mfem::VectorCoefficient *VQ, mfem::Mesh &mesh,
  }
  coeff_ptr = ceedCoeff;
  }
  - else if (coeff = dynamic_cast<VectorGridFunctionCoefficient*>(VQ))
  + else if (VectorGridFunctionCoefficient* gf_coeff
  + dynamic_cast<VectorGridFunctionCoefficient*>(VQ))
  {
  - GridCoefficient *ceedCoeff = new GridCoefficient(*coeff->GetGridFunction());
  + GridCoefficient *ceedCoeff =
  + new GridCoefficient(*gf_coeff->GetGridFunction());
  coeff_ptr = ceedCoeff;
  }
  else if (VectorQuadratureFunctionCoefficient *cQ =
  