Skip to content
Snippets Groups Projects
Commit 801dbdba authored by Simon Emmert's avatar Simon Emmert Committed by Timo Koch
Browse files

[components] Add isIon trait

parent 4cab041d
No related branches found
No related tags found
1 merge request!1094Introduce ions and test ions and solid components
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
#include <dumux/material/components/solid.hh> #include <dumux/material/components/solid.hh>
#include <dumux/material/components/liquid.hh> #include <dumux/material/components/liquid.hh>
#include <dumux/material/components/gas.hh> #include <dumux/material/components/gas.hh>
#include <dumux/material/components/ion.hh>
namespace Dumux { namespace Dumux {
...@@ -46,6 +47,9 @@ struct ComponentTraits ...@@ -46,6 +47,9 @@ struct ComponentTraits
//! if the component implements a gaseous state //! if the component implements a gaseous state
static constexpr bool hasGasState = std::is_base_of<Components::Gas<Scalar, Component>, Component>::value; static constexpr bool hasGasState = std::is_base_of<Components::Gas<Scalar, Component>, Component>::value;
//! if the component implements an ion
static constexpr bool isIon = std::is_base_of<Components::Ion<Scalar, Component>, Component>::value;
}; };
} // end namespace Dumux } // end namespace Dumux
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment