Skip to content

Commit

Permalink
Adding a FakeCommunicator class
Browse files Browse the repository at this point in the history
  • Loading branch information
roystgnr authored and benkirk committed Apr 8, 2013
1 parent f30618f commit 90368c8
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,7 @@ include_HEADERS = \
numerics/vector_value.h \
numerics/wrapped_function.h \
numerics/zero_function.h \
parallel/fake_communicator.h \
parallel/parallel.h \
parallel/parallel_algebra.h \
parallel/parallel_bin_sorter.h \
Expand Down
1 change: 1 addition & 0 deletions include/include_HEADERS
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ include_HEADERS = \
numerics/vector_value.h \
numerics/wrapped_function.h \
numerics/zero_function.h \
parallel/fake_communicator.h \
parallel/parallel.h \
parallel/parallel_algebra.h \
parallel/parallel_bin_sorter.h \
Expand Down
26 changes: 26 additions & 0 deletions include/parallel/fake_communicator.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@

#ifndef LIBMESH_FAKE_COMMUNICATOR_H
#define LIBMESH_FAKE_COMMUNICATOR_H

#include "parallel.h"

namespace libMesh
{

class FakeCommunicator
{
operator const Communicator& () {
libmesh_error();
return libMesh::CommWorld;
}

operator Communicator& () {
libmesh_error();
return libMesh::CommWorld;
}

};

} // namespace libMesh

#endif // LIBMESH_FAKE_COMMUNICATOR_H

0 comments on commit 90368c8

Please sign in to comment.