Teuchos - Trilinos Tools Package
Version of the Day
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
comm
src
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
22
namespace
Teuchos {
23
40
enum
EReductionType
{
41
REDUCE_SUM
,
42
REDUCE_MIN
,
43
REDUCE_MAX
,
44
REDUCE_AND
,
45
REDUCE_BOR
46
};
47
50
const
char
* toString (
const
EReductionType reductType);
51
52
#ifdef HAVE_TEUCHOS_MPI
53
namespace
Details {
54
60
TEUCHOSCOMM_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
Teuchos::REDUCE_BOR
Bitwise OR.
Definition:
Teuchos_EReductionType.hpp:45
Teuchos::Comm< Ordinal >::EReductionType
EReductionType
Predefined reduction operations that Teuchos::Comm understands.
Definition:
Teuchos_EReductionType.hpp:40
Teuchos::REDUCE_MIN
Min.
Definition:
Teuchos_EReductionType.hpp:42
Teuchos::REDUCE_MAX
Max.
Definition:
Teuchos_EReductionType.hpp:43
Teuchos::REDUCE_AND
Logical AND.
Definition:
Teuchos_EReductionType.hpp:44
Teuchos::REDUCE_SUM
Sum.
Definition:
Teuchos_EReductionType.hpp:41
Generated on Fri Feb 14 2025 09:21:57 for Teuchos - Trilinos Tools Package by
1.8.5