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.
alloperator.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_ALLOPERATOR_H
8 #define IGLOO_ALLOPERATOR_H
9 
10 #include "collectionoperator.h"
11 
12 namespace snowhouse {
13 
15  {
16  template <typename ConstraintListType, typename ActualType>
17  void Evaluate(ConstraintListType& list, ResultStack& result, OperatorStack& operators, const ActualType& actual)
18  {
19  unsigned int passed_elements = CollectionConstraintEvaluator<ConstraintListType, ActualType>::Evaluate(*this, list, result, operators, actual);
20 
21  result.push(passed_elements == actual.size());
22  }
23  };
24 
25  template<>
27  {
28  static std::string ToString(const AllOperator&)
29  {
30  return "all";
31  }
32  };
33 }
34 
35 #endif
Definition: assert.h:13
Definition: alloperator.h:14
Definition: stringize.h:71
Definition: collectionconstraintevaluator.h:17
Definition: collectionoperator.h:11