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.
defaultregistrationaliases.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_DEFAULTREGISTRATIONALIAS_H
8 #define IGLOO_DEFAULTREGISTRATIONALIAS_H
9 
10 #include <igloo/core/registration.h>
11 
12 // Default aliases
13 #define Context(contextName) \
14 IGLOO_CONTEXT_REGISTRATION(contextName)
15 
16 #define Context_Only(contextName) \
17 IGLOO_CONTEXT_REGISTRATION_ONLY(contextName)
18 
19 #define Context_Skip(contextName) \
20 IGLOO_CONTEXT_REGISTRATION_SKIP(contextName)
21 
22 #define ParentContext(contextName) \
23  IGLOO_PARENT_CONTEXT_REGISTRATION(contextName)
24 
25 #define SubContext(contextName, baseContextName) \
26 IGLOO_SUBCONTEXT_REGISTRATION(contextName, baseContextName)
27 
28 #define Spec(specName) \
29 IGLOO_SPEC_REGISTRATION(specName)
30 
31 #define Spec_Skip(specName) \
32 IGLOO_SPEC_REGISTRATION_SKIP(specName)
33 
34 #define Spec_Only(specName) \
35 IGLOO_SPEC_REGISTRATION_ONLY(specName)
36 
37 #define ContextAttribute(attributeName, attributeValue) \
38 IGLOO_CONTEXT_ATTRIBUTE_REGISTRATION(attributeName, attributeValue)
39 
40 // "Classic" aliases
41 #define TestFixture(fixtureName) \
42 IGLOO_CONTEXT_REGISTRATION(fixtureName)
43 
44 #define TestFixture_Only(contextName) \
45 IGLOO_CONTEXT_REGISTRATION_ONLY(contextName)
46 
47 #define TestFixture_Skip(contextName) \
48 IGLOO_CONTEXT_REGISTRATION_SKIP(contextName)
49 
50 #define DerivedFixture(fixtureName, baseFixtureName) \
51 IGLOO_SUBCONTEXT_REGISTRATION(fixtureName, baseFixtureName)
52 
53 #define TestMethod(methodName) \
54 IGLOO_SPEC_REGISTRATION(methodName)
55 
56 #define TestMethod_Skip(methodName) \
57 IGLOO_SPEC_REGISTRATION_SKIP(specName)
58 
59 #define TestMethod_Only(methodName) \
60 IGLOO_SPEC_REGISTRATION_ONLY(specName)
61 
62 #define TestAttribute(attributeName, attributeValue) \
63 IGLOO_CONTEXT_ATTRIBUTE_REGISTRATION(attributeName, attributeValue)
64 
65 #endif