Compiler warning unused variable
/data/dumux/dumux/porousmediumflow/fluxvariablescachefiller.hh:621:40: warning: lambda capture 'phaseIdx' is not used [-Wunused-lambda-capture]
const auto getD = [phaseIdx, compIdx] (const auto& volVars)
^
/data/dumux/dumux/porousmediumflow/fluxvariablescachefiller.hh:543:17: note: in instantiation of function template specialization 'Dumux::PorousMediumFluxVariablesCacheFillerImplementation<Dumux::Properties::TTag::TracerTestMpfa, Dumux::DiscretizationMethod::ccmpfa>::prepareDiffusionHandles_<Dumux::CCMpfaOInteractionVolume<Dumux::CCMpfaODefaultInteractionVolumeTraits<Dumux::CCMpfaDualGridNodalIndexSet<Dumux::NodalIndexSetDefaultTraits<Dune::GridView<Dune::DefaultLeafGridViewTraits<const Dune::YaspGrid<2, Dune::EquidistantCoordinates<double, 2> > > > > >, double> >, Dumux::InteractionVolumeDataHandle<Dumux::CCMpfaODefaultInteractionVolumeTraits<Dumux::CCMpfaDualGridNodalIndexSet<Dumux::NodalIndexSetDefaultTraits<Dune::GridView<Dune::DefaultLeafGridViewTraits<const Dune::YaspGrid<2, Dune::EquidistantCoordinates<double, 2> > > > > >, double>::MVTraits, Dumux::IvDataHandlePhysicsTraits<Dumux::TracerModelTraits<2, false> > > >' requested here
prepareDiffusionHandles_(iv, handle, forceUpdate);
^
/data/dumux/dumux/porousmediumflow/fluxvariablescachefiller.hh:277:17: note: in instantiation of function template specialization 'Dumux::PorousMediumFluxVariablesCacheFillerImplementation<Dumux::Properties::TTag::TracerTestMpfa, Dumux::DiscretizationMethod::ccmpfa>::prepareDataHandle_<Dumux::CCMpfaOInteractionVolume<Dumux::CCMpfaODefaultInteractionVolumeTraits<Dumux::CCMpfaDualGridNodalIndexSet<Dumux::NodalIndexSetDefaultTraits<Dune::GridView<Dune::DefaultLeafGridViewTraits<const Dune::YaspGrid<2, Dune::EquidistantCoordinates<double, 2> > > > > >, double> >, Dumux::InteractionVolumeDataHandle<Dumux::CCMpfaODefaultInteractionVolumeTraits<Dumux::CCMpfaDualGridNodalIndexSet<Dumux::NodalIndexSetDefaultTraits<Dune::GridView<Dune::DefaultLeafGridViewTraits<const Dune::YaspGrid<2, Dune::EquidistantCoordinates<double, 2> > > > > >, double>::MVTraits, Dumux::IvDataHandlePhysicsTraits<Dumux::TracerModelTraits<2, false> > > >' requested here
prepareDataHandle_(*secondaryIv_, *secondaryIvDataHandle_, forceUpdateAll);
^
/data/dumux/dumux/discretization/cellcentered/mpfa/gridfluxvariablescache.hh:173:32: note: in instantiation of function template specialization 'Dumux::PorousMediumFluxVariablesCacheFillerImplementation<Dumux::Properties::TTag::TracerTestMpfa, Dumux::DiscretizationMethod::ccmpfa>::fill<Dumux::CCMpfaGridFluxVariablesCache<Dumux::CCMpfaDefaultGridFluxVariablesCacheTraits<Dumux::TracerTest<Dumux::Properties::TTag::TracerTestMpfa>, Dumux::PorousMediumFluxVariablesCacheImplementation<Dumux::Properties::TTag::TracerTestMpfa, Dumux::DiscretizationMethod::ccmpfa>, Dumux::PorousMediumFluxVariablesCacheFillerImplementation<Dumux::Properties::TTag::TracerTestMpfa, Dumux::DiscretizationMethod::ccmpfa>, Dumux::CCMpfaOInteractionVolume<Dumux::CCMpfaODefaultInteractionVolumeTraits<Dumux::CCMpfaDualGridNodalIndexSet<Dumux::NodalIndexSetDefaultTraits<Dune::GridView<Dune::DefaultLeafGridViewTraits<const Dune::YaspGrid<2, Dune::EquidistantCoordinates<double, 2> > > > > >, double> >, Dumux::CCMpfaOInteractionVolume<Dumux::CCMpfaODefaultInteractionVolumeTraits<Dumux::CCMpfaDualGridNodalIndexSet<Dumux::NodalIndexSetDefaultTraits<Dune::GridView<Dune::DefaultLeafGridViewTraits<const Dune::YaspGrid<2, Dune::EquidistantCoordinates<double, 2> > > > > >, double> >, Dumux::InteractionVolumeDataHandle<Dumux::CCMpfaODefaultInteractionVolumeTraits<Dumux::CCMpfaDualGridNodalIndexSet<Dumux::NodalIndexSetDefaultTraits<Dune::GridView<Dune::DefaultLeafGridViewTraits<const Dune::YaspGrid<2, Dune::EquidistantCoordinates<double, 2> > > > > >, double>::MVTraits, Dumux::IvDataHandlePhysicsTraits<Dumux::TracerModelTraits<2, false> > >, Dumux::InteractionVolumeDataHandle<Dumux::CCMpfaODefaultInteractionVolumeTraits<Dumux::CCMpfaDualGridNodalIndexSet<Dumux::NodalIndexSetDefaultTraits<Dune::GridView<Dune::DefaultLeafGridViewTraits<const Dune::YaspGrid<2, Dune::EquidistantCoordinates<double, 2> > > > > >, double>::MVTraits, Dumux::IvDataHandlePhysicsTraits<Dumux::TracerModelTraits<2, false> > > >, true>, Dumux::PorousMediumFluxVariablesCacheImplementation<Dumux::Properties::TTag::TracerTestMpfa, Dumux::DiscretizationMethod::ccmpfa>, Dumux::InteractionVolumeDataStorage<Dumux::CCMpfaOInteractionVolume<Dumux::CCMpfaODefaultInteractionVolumeTraits<Dumux::CCMpfaDualGridNodalIndexSet<Dumux::NodalIndexSetDefaultTraits<Dune::GridView<Dune::DefaultLeafGridViewTraits<const Dune::YaspGrid<2, Dune::EquidistantCoordinates<double, 2> > > > > >, double> >, Dumux::InteractionVolumeDataHandle<Dumux::CCMpfaODefaultInteractionVolumeTraits<Dumux::CCMpfaDualGridNodalIndexSet<Dumux::NodalIndexSetDefaultTraits<Dune::GridView<Dune::DefaultLeafGridViewTraits<const Dune::YaspGrid<2, Dune::EquidistantCoordinates<double, 2> > > > > >, double>::MVTraits, Dumux::IvDataHandlePhysicsTraits<Dumux::TracerModelTraits<2, false> > >, Dumux::CCMpfaOInteractionVolume<Dumux::CCMpfaODefaultInteractionVolumeTraits<Dumux::CCMpfaDualGridNodalIndexSet<Dumux::NodalIndexSetDefaultTraits<Dune::GridView<Dune::DefaultLeafGridViewTraits<const Dune::YaspGrid<2, Dune::EquidistantCoordinates<double, 2> > > > > >, double> >, Dumux::InteractionVolumeDataHandle<Dumux::CCMpfaODefaultInteractionVolumeTraits<Dumux::CCMpfaDualGridNodalIndexSet<Dumux::NodalIndexSetDefaultTraits<Dune::GridView<Dune::DefaultLeafGridViewTraits<const Dune::YaspGrid<2, Dune::EquidistantCoordinates<double, 2> > > > > >, double>::MVTraits, Dumux::IvDataHandlePhysicsTraits<Dumux::TracerModelTraits<2, false> > > > >' requested here
filler.fill(*this, fluxVarsCache_[scvf.index()], ivDataStorage_, element, fvGeometry, elemVolVars, scvf, forceUpdate);
^
/data/dumux/dumux/discretization/fvgridvariables.hh:79:28: note: in instantiation of function template specialization 'Dumux::CCMpfaGridFluxVariablesCache<Dumux::CCMpfaDefaultGridFluxVariablesCacheTraits<Dumux::TracerTest<Dumux::Properties::TTag::TracerTestMpfa>, Dumux::PorousMediumFluxVariablesCacheImplementation<Dumux::Properties::TTag::TracerTestMpfa, Dumux::DiscretizationMethod::ccmpfa>, Dumux::PorousMediumFluxVariablesCacheFillerImplementation<Dumux::Properties::TTag::TracerTestMpfa, Dumux::DiscretizationMethod::ccmpfa>, Dumux::CCMpfaOInteractionVolume<Dumux::CCMpfaODefaultInteractionVolumeTraits<Dumux::CCMpfaDualGridNodalIndexSet<Dumux::NodalIndexSetDefaultTraits<Dune::GridView<Dune::DefaultLeafGridViewTraits<const Dune::YaspGrid<2, Dune::EquidistantCoordinates<double, 2> > > > > >, double> >, Dumux::CCMpfaOInteractionVolume<Dumux::CCMpfaODefaultInteractionVolumeTraits<Dumux::CCMpfaDualGridNodalIndexSet<Dumux::NodalIndexSetDefaultTraits<Dune::GridView<Dune::DefaultLeafGridViewTraits<const Dune::YaspGrid<2, Dune::EquidistantCoordinates<double, 2> > > > > >, double> >, Dumux::InteractionVolumeDataHandle<Dumux::CCMpfaODefaultInteractionVolumeTraits<Dumux::CCMpfaDualGridNodalIndexSet<Dumux::NodalIndexSetDefaultTraits<Dune::GridView<Dune::DefaultLeafGridViewTraits<const Dune::YaspGrid<2, Dune::EquidistantCoordinates<double, 2> > > > > >, double>::MVTraits, Dumux::IvDataHandlePhysicsTraits<Dumux::TracerModelTraits<2, false> > >, Dumux::InteractionVolumeDataHandle<Dumux::CCMpfaODefaultInteractionVolumeTraits<Dumux::CCMpfaDualGridNodalIndexSet<Dumux::NodalIndexSetDefaultTraits<Dune::GridView<Dune::DefaultLeafGridViewTraits<const Dune::YaspGrid<2, Dune::EquidistantCoordinates<double, 2> > > > > >, double>::MVTraits, Dumux::IvDataHandlePhysicsTraits<Dumux::TracerModelTraits<2, false> > > >, true>::update<Dumux::CCMpfaFVGridGeometry<Dune::GridView<Dune::DefaultLeafGridViewTraits<const Dune::YaspGrid<2, Dune::EquidistantCoordinates<double, 2> > > >, Dumux::CCMpfaFVGridGeometryTraits<Dune::GridView<Dune::DefaultLeafGridViewTraits<const Dune::YaspGrid<2, Dune::EquidistantCoordinates<double, 2> > > >, Dumux::CCMpfaDualGridNodalIndexSet<Dumux::NodalIndexSetDefaultTraits<Dune::GridView<Dune::DefaultLeafGridViewTraits<const Dune::YaspGrid<2, Dune::EquidistantCoordinates<double, 2> > > > > >, Dumux::CCMpfaOInteractionVolume<Dumux::CCMpfaODefaultInteractionVolumeTraits<Dumux::CCMpfaDualGridNodalIndexSet<Dumux::NodalIndexSetDefaultTraits<Dune::GridView<Dune::DefaultLeafGridViewTraits<const Dune::YaspGrid<2, Dune::EquidistantCoordinates<double, 2> > > > > >, double> >, Dumux::CCMpfaOInteractionVolume<Dumux::CCMpfaODefaultInteractionVolumeTraits<Dumux::CCMpfaDualGridNodalIndexSet<Dumux::NodalIndexSetDefaultTraits<Dune::GridView<Dune::DefaultLeafGridViewTraits<const Dune::YaspGrid<2, Dune::EquidistantCoordinates<double, 2> > > > > >, double> > >, true>, Dumux::CCMpfaGridVolumeVariables<Dumux::TracerTest<Dumux::Properties::TTag::TracerTestMpfa>, Dumux::TracerVolumeVariables<Dumux::TracerVolumeVariablesTraits<Dune::FieldVector<double, 2>, Dumux::FluidSystems::TracerTest<double>, Dumux::SolidSystems::OneCSolid<double, Dumux::Components::Constant<1, double>, true>, Dumux::InertSolidState<double, Dumux::SolidSystems::OneCSolid<double, Dumux::Components::Constant<1, double>, true> >, Dumux::TracerModelTraits<2, false>, Dumux::FicksLawImplementation<Dumux::Properties::TTag::TracerTestMpfa, Dumux::DiscretizationMethod::ccmpfa, Dumux::ReferenceSystemFormulation::massAveraged>, Dumux::DiffusivityConstantTortuosity<double> > >, true, Dumux::CCMpfaDefaultGridVolumeVariablesTraits<Dumux::TracerTest<Dumux::Properties::TTag::TracerTestMpfa>, Dumux::TracerVolumeVariables<Dumux::TracerVolumeVariablesTraits<Dune::FieldVector<double, 2>, Dumux::FluidSystems::TracerTest<double>, Dumux::SolidSystems::OneCSolid<double, Dumux::Components::Constant<1, double>, true>, Dumux::InertSolidState<double, Dumux::SolidSystems::OneCSolid<double, Dumux::Components::Constant<1, double>, true> >, Dumux::TracerModelTraits<2, false>, Dumux::FicksLawImplementation<Dumux::Properties::TTag::TracerTestMpfa, Dumux::DiscretizationMethod::ccmpfa, Dumux::ReferenceSystemFormulation::massAveraged>, Dumux::DiffusivityConstantTortuosity<double> > > > >, Dune::BlockVector<Dune::FieldVector<double, 2>, std::allocator<Dune::FieldVector<double, 2> > > >' requested here
gridFluxVarsCache_.update(*gridGeometry_, curGridVolVars_, curSol, true);
^
/data/dumux/test/porousmediumflow/tracer/multiphase/main.cc:94:20: note: in instantiation of function template specialization 'Dumux::FVGridVariables<Dumux::CCMpfaFVGridGeometry<Dune::GridView<Dune::DefaultLeafGridViewTraits<const Dune::YaspGrid<2, Dune::EquidistantCoordinates<double, 2> > > >, Dumux::CCMpfaFVGridGeometryTraits<Dune::GridView<Dune::DefaultLeafGridViewTraits<const Dune::YaspGrid<2, Dune::EquidistantCoordinates<double, 2> > > >, Dumux::CCMpfaDualGridNodalIndexSet<Dumux::NodalIndexSetDefaultTraits<Dune::GridView<Dune::DefaultLeafGridViewTraits<const Dune::YaspGrid<2, Dune::EquidistantCoordinates<double, 2> > > > > >, Dumux::CCMpfaOInteractionVolume<Dumux::CCMpfaODefaultInteractionVolumeTraits<Dumux::CCMpfaDualGridNodalIndexSet<Dumux::NodalIndexSetDefaultTraits<Dune::GridView<Dune::DefaultLeafGridViewTraits<const Dune::YaspGrid<2, Dune::EquidistantCoordinates<double, 2> > > > > >, double> >, Dumux::CCMpfaOInteractionVolume<Dumux::CCMpfaODefaultInteractionVolumeTraits<Dumux::CCMpfaDualGridNodalIndexSet<Dumux::NodalIndexSetDefaultTraits<Dune::GridView<Dune::DefaultLeafGridViewTraits<const Dune::YaspGrid<2, Dune::EquidistantCoordinates<double, 2> > > > > >, double> > >, true>, Dumux::CCMpfaGridVolumeVariables<Dumux::TracerTest<Dumux::Properties::TTag::TracerTestMpfa>, Dumux::TracerVolumeVariables<Dumux::TracerVolumeVariablesTraits<Dune::FieldVector<double, 2>, Dumux::FluidSystems::TracerTest<double>, Dumux::SolidSystems::OneCSolid<double, Dumux::Components::Constant<1, double>, true>, Dumux::InertSolidState<double, Dumux::SolidSystems::OneCSolid<double, Dumux::Components::Constant<1, double>, true> >, Dumux::TracerModelTraits<2, false>, Dumux::FicksLawImplementation<Dumux::Properties::TTag::TracerTestMpfa, Dumux::DiscretizationMethod::ccmpfa, Dumux::ReferenceSystemFormulation::massAveraged>, Dumux::DiffusivityConstantTortuosity<double> > >, true, Dumux::CCMpfaDefaultGridVolumeVariablesTraits<Dumux::TracerTest<Dumux::Properties::TTag::TracerTestMpfa>, Dumux::TracerVolumeVariables<Dumux::TracerVolumeVariablesTraits<Dune::FieldVector<double, 2>, Dumux::FluidSystems::TracerTest<double>, Dumux::SolidSystems::OneCSolid<double, Dumux::Components::Constant<1, double>, true>, Dumux::InertSolidState<double, Dumux::SolidSystems::OneCSolid<double, Dumux::Components::Constant<1, double>, true> >, Dumux::TracerModelTraits<2, false>, Dumux::FicksLawImplementation<Dumux::Properties::TTag::TracerTestMpfa, Dumux::DiscretizationMethod::ccmpfa, Dumux::ReferenceSystemFormulation::massAveraged>, Dumux::DiffusivityConstantTortuosity<double> > > > >, Dumux::CCMpfaGridFluxVariablesCache<Dumux::CCMpfaDefaultGridFluxVariablesCacheTraits<Dumux::TracerTest<Dumux::Properties::TTag::TracerTestMpfa>, Dumux::PorousMediumFluxVariablesCacheImplementation<Dumux::Properties::TTag::TracerTestMpfa, Dumux::DiscretizationMethod::ccmpfa>, Dumux::PorousMediumFluxVariablesCacheFillerImplementation<Dumux::Properties::TTag::TracerTestMpfa, Dumux::DiscretizationMethod::ccmpfa>, Dumux::CCMpfaOInteractionVolume<Dumux::CCMpfaODefaultInteractionVolumeTraits<Dumux::CCMpfaDualGridNodalIndexSet<Dumux::NodalIndexSetDefaultTraits<Dune::GridView<Dune::DefaultLeafGridViewTraits<const Dune::YaspGrid<2, Dune::EquidistantCoordinates<double, 2> > > > > >, double> >, Dumux::CCMpfaOInteractionVolume<Dumux::CCMpfaODefaultInteractionVolumeTraits<Dumux::CCMpfaDualGridNodalIndexSet<Dumux::NodalIndexSetDefaultTraits<Dune::GridView<Dune::DefaultLeafGridViewTraits<const Dune::YaspGrid<2, Dune::EquidistantCoordinates<double, 2> > > > > >, double> >, Dumux::InteractionVolumeDataHandle<Dumux::CCMpfaODefaultInteractionVolumeTraits<Dumux::CCMpfaDualGridNodalIndexSet<Dumux::NodalIndexSetDefaultTraits<Dune::GridView<Dune::DefaultLeafGridViewTraits<const Dune::YaspGrid<2, Dune::EquidistantCoordinates<double, 2> > > > > >, double>::MVTraits, Dumux::IvDataHandlePhysicsTraits<Dumux::TracerModelTraits<2, false> > >, Dumux::InteractionVolumeDataHandle<Dumux::CCMpfaODefaultInteractionVolumeTraits<Dumux::CCMpfaDualGridNodalIndexSet<Dumux::NodalIndexSetDefaultTraits<Dune::GridView<Dune::DefaultLeafGridViewTraits<const Dune::YaspGrid<2, Dune::EquidistantCoordinates<double, 2> > > > > >, double>::MVTraits, Dumux::IvDataHandlePhysicsTraits<Dumux::TracerModelTraits<2, false> > > >, true> >::init<Dune::BlockVector<Dune::FieldVector<double, 2>, std::allocator<Dune::FieldVector<double, 2> > > >' requested here
gridVariables->init(x);
^
phaseIdx
is unused for tracer fluid systems (guarded by constexpr if
). Maybe adding a [[maybe_unused]]
helps. Not sure if this is allowed in the lambda capture. Replacing constexpr if
by if
might also work.