Teuchos - Trilinos Tools Package Version of the Day
Loading...
Searching...
No Matches
Teuchos_EReductionType.hpp
Go to the documentation of this file.
1// @HEADER
2// *****************************************************************************
3// Teuchos: Common Tools Package
4//
5// Copyright 2004 NTESS and the Teuchos contributors.
6// SPDX-License-Identifier: BSD-3-Clause
7// *****************************************************************************
8// @HEADER
9
10#ifndef TEUCHOS_EREDUCTIONTYPE_HPP
11#define TEUCHOS_EREDUCTIONTYPE_HPP
12
15
16#include "Teuchos_config.h"
17#include "Teuchos_DLLExportMacro.h"
18#ifdef HAVE_TEUCHOS_MPI
19# include <mpi.h> // need this for MPI_Op (see below)
20#endif // HAVE_TEUCHOS_MPI
21
22namespace Teuchos {
23
47
50const char* toString (const EReductionType reductType);
51
52#ifdef HAVE_TEUCHOS_MPI
53namespace Details {
54
60TEUCHOSCOMM_LIB_DLL_EXPORT MPI_Op getMpiOpForEReductionType (const enum EReductionType reductionType);
61
62} // namespace Details
63#endif // HAVE_TEUCHOS_MPI
64
65} // namespace Teuchos
66
67#endif // TEUCHOS_EREDUCTIONTYPE_HPP
EReductionType
Predefined reduction operations that Teuchos::Comm understands.
Namespace of implementation details.
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos,...
@ REDUCE_AND
Logical AND.
@ REDUCE_BOR
Bitwise OR.