diff --git a/opm/autodiff/StandardWell_impl.hpp b/opm/autodiff/StandardWell_impl.hpp index a99451e4a..c3f50c022 100644 --- a/opm/autodiff/StandardWell_impl.hpp +++ b/opm/autodiff/StandardWell_impl.hpp @@ -331,7 +331,7 @@ namespace Opm return primary_variables_evaluation_[GFrac]; } - if (has_solvent && compIdx == contiSolventEqIdx) { + if (has_solvent && compIdx == (unsigned)contiSolventEqIdx) { return primary_variables_evaluation_[SFrac]; } diff --git a/tutorials/sim_tutorial1.cpp b/tutorials/sim_tutorial1.cpp index 193826403..eabd41e26 100644 --- a/tutorials/sim_tutorial1.cpp +++ b/tutorials/sim_tutorial1.cpp @@ -87,7 +87,9 @@ try /// We open an output file stream for the output /// \snippet tutorial1.cpp output stream /// \internal [output stream] +#ifdef DISABLE_OUTPUT std::ofstream vtkfile("tutorial1.vtu"); +#endif /// \internal [output stream] /// \endinternal /// \page tutorial1