00001 // -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- 00002 // vi: set et ts=4 sw=4 sts=4: 00003 /* 00004 This file is part of the Open Porous Media project (OPM). 00005 00006 OPM is free software: you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License as published by 00008 the Free Software Foundation, either version 2 of the License, or 00009 (at your option) any later version. 00010 00011 OPM is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with OPM. If not, see <http://www.gnu.org/licenses/>. 00018 00019 Consult the COPYING file in the top-level source directory of this 00020 module for the precise wording of the license and the list of 00021 copyright holders. 00022 */ 00027 #ifndef OPM_DUMMY_HEATCONDUCTION_LAW_HPP 00028 #define OPM_DUMMY_HEATCONDUCTION_LAW_HPP 00029 00030 #include <opm/common/Unused.hpp> 00031 #include <opm/common/Exceptions.hpp> 00032 #include <opm/common/ErrorMacros.hpp> 00033 00034 namespace Opm 00035 { 00044 template <class ScalarT> 00045 class DummyHeatConductionLaw 00046 { 00047 public: 00048 typedef int Params; 00049 typedef ScalarT Scalar; 00050 00057 template <class FluidState, class Evaluation = Scalar> 00058 static Scalar heatConductivity(const Params& params OPM_UNUSED, 00059 const FluidState& fluidState OPM_UNUSED) 00060 { 00061 OPM_THROW(std::logic_error, 00062 "No heat conduction law specified!"); 00063 } 00064 }; 00065 } // namespace Opm 00066 00067 #endif