Skip to content
Snippets Groups Projects
Commit 85b42adc authored by Robert K's avatar Robert K
Browse files

also specialize the clear cases.

parent 233e28b2
No related branches found
No related tags found
No related merge requests found
...@@ -238,6 +238,7 @@ namespace Fem ...@@ -238,6 +238,7 @@ namespace Fem
// ImplExplOperatorSelector // ImplExplOperatorSelector
/////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////
// advection and diffusion or none
template< class Op, class AdvectionOp, class DiffusionOp, bool advection, bool diffusion > template< class Op, class AdvectionOp, class DiffusionOp, bool advection, bool diffusion >
struct ImplExplOperatorSelector struct ImplExplOperatorSelector
{ {
...@@ -245,15 +246,17 @@ namespace Fem ...@@ -245,15 +246,17 @@ namespace Fem
typedef DiffusionOp ImplicitOperatorType; typedef DiffusionOp ImplicitOperatorType;
typedef AdvectionOp ExplicitOperatorType; typedef AdvectionOp ExplicitOperatorType;
}; };
template< class Op, class AdvectionOp, class DiffusionOp, bool advection > // advection only
struct ImplExplOperatorSelector< Op, AdvectionOp, DiffusionOp, advection, false > template< class Op, class AdvectionOp, class DiffusionOp >
struct ImplExplOperatorSelector< Op, AdvectionOp, DiffusionOp, true, false >
{ {
typedef AdvectionOp FullOperatorType; typedef AdvectionOp FullOperatorType;
typedef FullOperatorType ImplicitOperatorType; typedef FullOperatorType ImplicitOperatorType;
typedef FullOperatorType ExplicitOperatorType; typedef FullOperatorType ExplicitOperatorType;
}; };
template<class Op, class AdvectionOp, class DiffusionOp, bool diffusion > // diffusion only
struct ImplExplOperatorSelector< Op, AdvectionOp, DiffusionOp, false, diffusion > template<class Op, class AdvectionOp, class DiffusionOp>
struct ImplExplOperatorSelector< Op, AdvectionOp, DiffusionOp, false, true >
{ {
typedef DiffusionOp FullOperatorType; typedef DiffusionOp FullOperatorType;
typedef FullOperatorType ImplicitOperatorType; typedef FullOperatorType ImplicitOperatorType;
......
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