Go to the documentation of this file.
19 #ifndef LIBMESH_PARALLEL_ONLY_H
20 #define LIBMESH_PARALLEL_ONLY_H
31 #ifdef LIBMESH_ENABLE_DEPRECATED
34 #define parallel_only() do { \
35 libmesh_deprecated(); \
36 libmesh_assert(CommWorld.verify(std::string(__FILE__))); \
37 libmesh_assert(CommWorld.verify(std::to_string(__LINE__))); } while (0)
39 #define parallel_only() ((void) 0)
43 #undef libmesh_parallel_only
45 #define libmesh_parallel_only(comm_obj) do { \
46 libmesh_assert((comm_obj).verify(std::string(__FILE__))); \
47 libmesh_assert((comm_obj).verify(std::to_string(__LINE__))); } while (0)
49 #define libmesh_parallel_only(comm_obj) ((void) 0)
55 #ifdef LIBMESH_ENABLE_DEPRECATED
56 #undef parallel_only_on
58 #define parallel_only_on(comm_arg) do { \
59 libmesh_deprecated(); \
60 libmesh_assert(CommWorld.verify(std::string(__FILE__), comm_arg)); \
61 libmesh_assert(CommWorld.verify(std::to_string(__LINE__), comm_arg)); } while (0)
63 #define parallel_only_on(comm_arg) ((void) 0)
67 #undef libmesh_parallel_only_on
69 #define libmesh_parallel_only_on(comm_obj,comm_arg) do { \
70 libmesh_assert(comm_obj.verify(std::string(__FILE__), comm_arg)); \
71 libmesh_assert(comm_obj.verify(std::to_string(__LINE__), comm_arg)); } while (0)
73 #define libmesh_parallel_only_on(comm_obj,comm_arg) ((void) 0)
76 #endif // LIBMESH_PARALLEL_ONLY_H