DFT-EFE
 
Loading...
Searching...
No Matches
MPIErrorCodeHandler.h
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright (c) 2021. *
3 * The Regents of the University of Michigan and DFT-EFE developers. *
4 * *
5 * This file is part of the DFT-EFE code. *
6 * *
7 * DFT-EFE is free software: you can redistribute it and/or modify *
8 * it under the terms of the Lesser GNU General Public License as *
9 * published by the Free Software Foundation, either version 3 of *
10 * the License, or (at your option) any later version. *
11 * *
12 * DFT-EFE is distributed in the hope that it will be useful, but *
13 * WITHOUT ANY WARRANTY; without even the implied warranty *
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
15 * See the Lesser GNU General Public License for more details. *
16 * *
17 * You should have received a copy of the GNU Lesser General Public *
18 * License at the top level of DFT-EFE distribution. If not, see *
19 * <https://www.gnu.org/licenses/>. *
20 ******************************************************************************/
21
22/*
23 * @author Bikash Kanungo
24 */
25
26#ifndef dftefeMPIErrorCodeHandler_h
27#define dftefeMPIErrorCodeHandler_h
28
29#ifdef DFTEFE_WITH_MPI
30# include <mpi.h>
31#endif // DFTEFE_WITH_MPI
32#include <string>
33namespace dftefe
34{
35 namespace utils
36 {
37 namespace mpi
38 {
40 {
41 public:
44 static bool
45 isSuccess(const int errCode);
46 static std::string
47 getErrMsg(const int errCode);
48 static std::pair<bool, std::string>
49 getIsSuccessAndMessage(const int errCode);
50 }; // end of MPIErrorCodeHandler
51 } // end of namespace mpi
52 } // end of namespace utils
53} // end of namespace dftefe
54#endif // dftefeMPIErrorCodeHandler_h
Definition: MPIErrorCodeHandler.h:40
static std::string getErrMsg(const int errCode)
Definition: MPIErrorCodeHandler.cpp:197
static std::pair< bool, std::string > getIsSuccessAndMessage(const int errCode)
Definition: MPIErrorCodeHandler.cpp:212
static bool isSuccess(const int errCode)
Definition: MPIErrorCodeHandler.cpp:191
dealii includes
Definition: AtomFieldDataSpherical.cpp:31