Go to the documentation of this file. 19 #ifndef LIBMESH_PARALLEL_ONLY_H 20 #define LIBMESH_PARALLEL_ONLY_H 25 #ifdef LIBMESH_ENABLE_DEPRECATED 28 #define parallel_only() do { \ 29 libmesh_deprecated(); \ 30 libmesh_assert(CommWorld.verify(std::string(__FILE__).size())); \ 31 libmesh_assert(CommWorld.verify(std::string(__FILE__))); \ 32 libmesh_assert(CommWorld.verify(__LINE__)); } while (0) 34 #define parallel_only() ((void) 0) 38 #undef libmesh_parallel_only 40 #define libmesh_parallel_only(comm_obj) do { \ 41 libmesh_assert((comm_obj).verify(std::string(__FILE__).size())); \ 42 libmesh_assert((comm_obj).verify(std::string(__FILE__))); \ 43 libmesh_assert((comm_obj).verify(__LINE__)); } while (0) 45 #define libmesh_parallel_only(comm_obj) ((void) 0) 51 #ifdef LIBMESH_ENABLE_DEPRECATED 52 #undef parallel_only_on 54 #define parallel_only_on(comm_arg) do { \ 55 libmesh_deprecated(); \ 56 libmesh_assert(CommWorld.verify(std::string(__FILE__).size(), comm_arg)); \ 57 libmesh_assert(CommWorld.verify(std::string(__FILE__), comm_arg)); \ 58 libmesh_assert(CommWorld.verify(__LINE__), comm_arg); } while (0) 60 #define parallel_only_on(comm_arg) ((void) 0) 64 #undef libmesh_parallel_only_on 66 #define libmesh_parallel_only_on(comm_obj,comm_arg) do { \ 67 libmesh_assert(comm_obj.verify(std::string(__FILE__).size(), comm_arg)); \ 68 libmesh_assert(comm_obj.verify(std::string(__FILE__), comm_arg)); \ 69 libmesh_assert(comm_obj.verify(__LINE__), comm_arg); } while (0) 71 #define libmesh_parallel_only_on(comm_obj,comm_arg) ((void) 0) 74 #endif // LIBMESH_PARALLEL_ONLY_H