mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
add missing includes and propery tag definitions, remove init function from the component base class
This commit is contained in:
committed by
Andreas Lauser
parent
e836bee2bd
commit
6a577ed3b9
@@ -21,6 +21,8 @@
|
||||
#ifndef DUMUX_COMPONENT_HH
|
||||
#define DUMUX_COMPONENT_HH
|
||||
|
||||
#include <dune/common/exceptions.hh>
|
||||
|
||||
namespace Dumux
|
||||
{
|
||||
|
||||
@@ -31,10 +33,6 @@ template <class Scalar, class Implementation>
|
||||
class Component
|
||||
{
|
||||
public:
|
||||
static void init(Scalar tempMin, Scalar tempMax, unsigned nTemp,
|
||||
Scalar pressMin, Scalar pressMax, unsigned nPress)
|
||||
{ Dune::dwarn << "No init routine defined - make shure that this is not necessary!" << std::endl; }
|
||||
|
||||
/*!
|
||||
* \brief A human readable name for the compoent.
|
||||
*/
|
||||
|
||||
@@ -33,6 +33,8 @@
|
||||
#include <dumux/material/components/brine.hh>
|
||||
#include <dumux/material/components/tabulatedcomponent.hh>
|
||||
|
||||
#include <dune/common/stdstreams.hh>
|
||||
|
||||
namespace Dumux
|
||||
{
|
||||
namespace Properties
|
||||
@@ -45,6 +47,8 @@ NEW_PROP_TAG(DefaultComponents);
|
||||
//! system
|
||||
NEW_PROP_TAG(Components);
|
||||
|
||||
NEW_PROP_TAG(Scalar);
|
||||
|
||||
SET_PROP_DEFAULT(DefaultComponents)
|
||||
{ private:
|
||||
typedef typename GET_PROP_TYPE(TypeTag, PTAG(Scalar)) Scalar;
|
||||
|
||||
@@ -605,7 +605,7 @@ private:
|
||||
}
|
||||
#endif
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
} // end namepace
|
||||
|
||||
|
||||
Reference in New Issue
Block a user