Teuchos - Trilinos Tools Package
Version of the Day
Loading...
Searching...
No Matches
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::Comm::EReductionType
EReductionType
Predefined reduction operations that Teuchos::Comm understands.
Definition
Teuchos_EReductionType.hpp:40
Details
Namespace of implementation details.
Teuchos
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos,...
Teuchos::REDUCE_MIN
@ REDUCE_MIN
Min.
Definition
Teuchos_EReductionType.hpp:42
Teuchos::REDUCE_MAX
@ REDUCE_MAX
Max.
Definition
Teuchos_EReductionType.hpp:43
Teuchos::REDUCE_AND
@ REDUCE_AND
Logical AND.
Definition
Teuchos_EReductionType.hpp:44
Teuchos::REDUCE_BOR
@ REDUCE_BOR
Bitwise OR.
Definition
Teuchos_EReductionType.hpp:45
Teuchos::REDUCE_SUM
@ REDUCE_SUM
Sum.
Definition
Teuchos_EReductionType.hpp:41
Generated on Thu Oct 9 2025 20:59:53 for Teuchos - Trilinos Tools Package by
1.9.8