add missing includes and propery tag definitions, remove init function from the component base class

This commit is contained in:
Andreas Lauser
2010-07-13 13:30:02 +00:00
committed by Andreas Lauser
parent e836bee2bd
commit 6a577ed3b9
3 changed files with 7 additions and 5 deletions

View File

@@ -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.
*/

View File

@@ -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;

View File

@@ -605,7 +605,7 @@ private:
}
#endif
}
};
};
} // end namepace