I wanted to say should “not” have any effect on your simulation.

> On 5. Jul 2019, at 10:39, Timo Koch <timo.k...@iws.uni-stuttgart.de> wrote:
> 
> Dear Joan,
> 
> It should have any effect on your simulation. However it would be nice to not 
> get a compiler warning.
> Would you please try to remove (only) line 203 (the if) in 
> dumux/dumux/discretization/evalsolution.hh and tell us if the warning 
> disappears? That would help a lot.
> 
> Thanks for reporting this issue
> Timo
> 
>> On 5. Jul 2019, at 10:11, Martin Schneider 
>> <martin.schnei...@iws.uni-stuttgart.de 
>> <mailto:martin.schnei...@iws.uni-stuttgart.de>> wrote:
>> 
>> Dear Joan,
>> 
>> I think you can ignore it. It tells you that the phase state might not be 
>> set for
>> the PrimaryVariable in the evalSolution function. 
>> 
>> However, after having a quick look at the function, it seems that the state 
>> is set (at least per default).
>> 
>> Best regards,
>> Martin
>> 
>> Am 04.07.19 um 15:05 schrieb Joan Delort Ylla:
>>> Dear DuMuX community,
>>> 
>>> I am running DuMuX release/3.0.
>>> I switched an app using the 2pncNIMin model from CCTpfa spatial 
>>> disctretization method to the Box discretization method.
>>> 
>>> The application runs fine, but I always get this warning at compile time : 
>>> Scanning dependencies of target ccs_biofilm
>>> [ 50%] Building CXX object 
>>> ccs_biofilm/CMakeFiles/ccs_biofilm.dir/ccs_biofilm.cc.o
>>> In file included from 
>>> /path/to/dumuxfolder/dumux/dumux/porousmediumflow/2pnc/model.hh:98:0,
>>>                  from  
>>> /path/to/dumuxfolder/dumux/dumux/porousmediumflow/2pncmin/model.hh:94,
>>>                  from  /path/to/dumuxfolder/mymodule/app/ccs_biofilm.hh:35,
>>>                  from  /path/to/dumuxfolder/mymodule/app/ccs_biofilm.cc:54 
>>> <http://ccs_biofilm.cc:54/>:
>>> path/to/dumuxfolder/dumux/dumux/porousmediumflow/compositional/switchableprimaryvariables.hh:
>>>  In function ‘PrimaryVariables Dumux::evalSolution(const Element&, const 
>>> typename Element::Geometry&, const 
>>> Dumux::BoxElementSolution<FVElementGeometry, PrimaryVariables>&, const 
>>> typename Element::Geometry::GlobalCoordinate&, bool) [with Element = 
>>> Dune::Entity<0, 3, const Dune::YaspGrid<3, 
>>> Dune::TensorProductCoordinates<double, 3> >, Dune::YaspEntity>; 
>>> FVElementGeometry = 
>>> Dumux::BoxFVElementGeometry<Dumux::BoxFVGridGeometry<double, 
>>> Dune::GridView<Dune::DefaultLeafGridViewTraits<const Dune::YaspGrid<3, 
>>> Dune::TensorProductCoordinates<double, 3> > > >, true, 
>>> Dumux::BoxDefaultGridGeometryTraits<Dune::GridView<Dune::DefaultLeafGridViewTraits<const
>>>  Dune::YaspGrid<3, Dune::TensorProductCoordinates<double, 3> > > >, 
>>> Dumux::DefaultMapperTraits<Dune::GridView<Dune::DefaultLeafGridViewTraits<const
>>>  Dune::YaspGrid<3, Dune::TensorProductCoordinates<double, 3> > > >, 
>>> Dune::MultipleCodimMultipleGeomTypeMapper<Dune::GridView<Dune::DefaultLeafGridViewTraits<const
>>>  Dune::YaspGrid<3, Dune::TensorProductCoordinates<double, 3> > > >, 
>>> Dune::Impl::MCMGFailLayout>, 
>>> Dune::MultipleCodimMultipleGeomTypeMapper<Dune::GridView<Dune::DefaultLeafGridViewTraits<const
>>>  Dune::YaspGrid<3, Dune::TensorProductCoordinates<double, 3> > > >, 
>>> Dune::Impl::MCMGFailLayout> > > >, true>; PrimaryVariables = 
>>> Dumux::SwitchablePrimaryVariables<Dune::FieldVector<double, 6>, int>]’:
>>> path/to/dumuxfolder/dumux/dumux/porousmediumflow/compositional/switchableprimaryvariables.hh:37:7:
>>>  warning: ‘*((void*)& result +48)’ may be used uninitialized in this 
>>> function [-Wmaybe-uninitialized]
>>>  class SwitchablePrimaryVariables : public PrimaryVariables
>>>        ^~~~~~~~~~~~~~~~~~~~~~~~~~
>>> In file included from /path/to/dumuxfolder/mymodule/app/ccs_biofilm.hh:41:0,
>>>                  from /path/to/dumuxfolder/mymodule/app/ccs_biofilm.cc:54 
>>> <http://ccs_biofilm.cc:54/>:
>>> /path/to/dumuxfolder/dumux/dumux/discretization/evalsolution.hh:193:26: 
>>> note: ‘*((void*)& result +48)’ was declared here
>>>          PrimaryVariables result(0.0);
>>>                           ^~~~~~
>>> [100%] Linking CXX executable ccs_biofilm
>>> [100%] Built target ccs_biofilm
>>> 
>>> Note that /path/to/dumuxfolder/mymodule/app/ccs_biofilm.cc:54 
>>> <http://ccs_biofilm.cc:54/> is :
>>> 
>>> #include "ccs_biofilm.hh"
>>> And /path/to/dumuxfolder/mymodule/app/ccs_biofilm.hh:35 is :
>>> 
>>> #include <dumux/porousmediumflow/2pncmin/model.hh>
>>> And /path/to/dumuxfolder/mymodule/app/ccs_biofilm.hh:41:0 is :
>>> 
>>> #include <dumux/discretization/evalsolution.hh>
>>> 
>>> I tried to look around in the files but this is probably too technical for 
>>> me. 
>>> Is this warning somehow familiar to you ? Can I ignore it without any 
>>> problem or should I try to solve that ? 
>>> Best regards,
>>> 
>>> Joan
>>> 
>>> 
>>> _______________________________________________
>>> Dumux mailing list
>>> Dumux@listserv.uni-stuttgart.de <mailto:Dumux@listserv.uni-stuttgart.de>
>>> https://listserv.uni-stuttgart.de/mailman/listinfo/dumux 
>>> <https://listserv.uni-stuttgart.de/mailman/listinfo/dumux>
>> 
>> 
>> _______________________________________________
>> Dumux mailing list
>> Dumux@listserv.uni-stuttgart.de <mailto:Dumux@listserv.uni-stuttgart.de>
>> https://listserv.uni-stuttgart.de/mailman/listinfo/dumux
> 
> _______________________________________________
> Dumux mailing list
> Dumux@listserv.uni-stuttgart.de
> https://listserv.uni-stuttgart.de/mailman/listinfo/dumux

_______________________________________________
Dumux mailing list
Dumux@listserv.uni-stuttgart.de
https://listserv.uni-stuttgart.de/mailman/listinfo/dumux

Reply via email to