MFEM  v3.3.2
Finite element discretization library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
globals.cpp
Go to the documentation of this file.
1 // Copyright (c) 2010, Lawrence Livermore National Security, LLC. Produced at
2 // the Lawrence Livermore National Laboratory. LLNL-CODE-443211. All Rights
3 // reserved. See file COPYRIGHT for details.
4 //
5 // This file is part of the MFEM library. For more information and source code
6 // availability see http://mfem.org.
7 //
8 // MFEM is free software; you can redistribute it and/or modify it under the
9 // terms of the GNU Lesser General Public License (as published by the Free
10 // Software Foundation) version 2.1 dated February 1999.
11 
12 
13 #include "../config/config.hpp"
14 #include "globals.hpp"
15 #include <iostream>
16 
17 namespace mfem
18 {
19 
20 OutStream out(std::cout);
21 OutStream err(std::cerr);
22 
23 #ifdef MFEM_USE_MPI
24 
25 MPI_Comm MFEM_COMM_WORLD = MPI_COMM_WORLD;
26 
28 {
29  return MFEM_COMM_WORLD;
30 }
31 
32 void SetGlobalMPI_Comm(MPI_Comm comm)
33 {
34  MFEM_COMM_WORLD = comm;
35 }
36 
37 #endif
38 
39 }
MPI_Comm MFEM_COMM_WORLD
Definition: globals.cpp:25
OutStream err(std::cerr)
Global stream used by the library for standard error output. Initially it uses the same std::streambu...
Definition: globals.hpp:69
OutStream out(std::cout)
Global stream used by the library for standard output. Initially it uses the same std::streambuf as s...
Definition: globals.hpp:64
void SetGlobalMPI_Comm(MPI_Comm comm)
Set MFEM&#39;s &quot;global&quot; MPI communicator.
Definition: globals.cpp:32
MPI_Comm GetGlobalMPI_Comm()
Get MFEM&#39;s &quot;global&quot; MPI communicator.
Definition: globals.cpp:27