blitzdg
an open-source project aiming to implement parallel discontinuous Galerkin (dg) solvers for common partial differential equations systems using blitz++ for array and tensor manipulations and MPI for distributed parallelism.
noneoperator.h
1 
2 // Copyright Joakim Karlsson & Kim Gräsman 2010-2013.
3 // Distributed under the Boost Software License, Version 1.0.
4 // (See accompanying file LICENSE_1_0.txt or copy at
5 // http://www.boost.org/LICENSE_1_0.txt)
6 
7 #ifndef IGLOO_NONEOPERATOR_H
8 #define IGLOO_NONEOPERATOR_H
9 
10 namespace snowhouse {
11 
13  {
14  template <typename ConstraintListType, typename ActualType>
15  void Evaluate(ConstraintListType& list, ResultStack& result, OperatorStack& operators, const ActualType& actual)
16  {
17  unsigned int passed_elements = CollectionConstraintEvaluator<ConstraintListType, ActualType>::Evaluate(*this, list, result, operators, actual);
18  result.push(passed_elements == 0);
19  }
20  };
21 
22  template<>
24  {
25  static std::string ToString(const NoneOperator&)
26  {
27  return "none";
28  }
29  };
30 
31 }
32 
33 #endif
Definition: assert.h:13
Definition: stringize.h:71
Definition: collectionconstraintevaluator.h:17
Definition: collectionoperator.h:11
Definition: noneoperator.h:12