Commit 39b1fd79 authored by Vít Hanousek's avatar Vít Hanousek
Browse files

Fix build without mpi

parent f21974bd
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -2,6 +2,8 @@
#include <TNL/Meshes/DistributedMeshes/DistributedMesh.h>
#include <TNL/Functions/MeshFunction.h>

#ifdef HAVE_MPI

#define MPIIO
#include <TNL/Meshes/DistributedMeshes/DistributedGridIO.h>

@@ -92,3 +94,9 @@ int main(int argc, char **argv)
        CommunicatorType::Finalize();

}

#else

main(){}
#endif
+8 −0
Original line number Diff line number Diff line
@@ -2,6 +2,8 @@
#include <TNL/Meshes/DistributedMeshes/DistributedMesh.h>
#include <TNL/Functions/MeshFunction.h>

#ifdef HAVE_MPI

#define MPIIO
#include <TNL/Meshes/DistributedMeshes/DistributedGridIO.h>

@@ -81,3 +83,9 @@ int main(int argc, char **argv)
        CommunicatorType::Finalize();

}

#else

main(){}

#endif