Last change
on this file since 2291 was
2291,
checked in by ymipsl, 2 years ago
|
Improve reduction transformation
- make the difference between reduction over geometry or reduction between process.
domain -> axis
axis -> scalar
domain -> scalar
- reduction across processes for redondant geometrical cell :
axis -> axis
scalar -> scalar
Reduction can be local (only for the geometrical cell owned by current process) or global, using the "local" attribute (bool) over the reduction.
YM
|
File size:
580 bytes
|
Rev | Line | |
---|
[888] | 1 | /*! |
---|
| 2 | \file reduction_types.hpp |
---|
| 3 | \author Ha NGUYEN |
---|
| 4 | \since 27 June 2016 |
---|
| 5 | \date 27 June 2016 |
---|
| 6 | |
---|
| 7 | \brief Different reduction types |
---|
| 8 | */ |
---|
| 9 | #ifndef __XIOS_REDUCTION_TYPES_HPP__ |
---|
| 10 | #define __XIOS_REDUCTION_TYPES_HPP__ |
---|
| 11 | |
---|
[1999] | 12 | namespace xios |
---|
| 13 | { |
---|
[888] | 14 | |
---|
[2291] | 15 | typedef enum reduction_algorithm_type |
---|
[888] | 16 | { |
---|
[2291] | 17 | TRANS_REDUCE_NONE = 0, |
---|
| 18 | TRANS_REDUCE_SUM = 1, |
---|
| 19 | TRANS_REDUCE_MIN = 2, |
---|
| 20 | TRANS_REDUCE_MAX = 3, |
---|
| 21 | TRANS_REDUCE_EXTRACT = 4, |
---|
| 22 | TRANS_REDUCE_AVERAGE = 5 |
---|
[888] | 23 | } EReductionType; |
---|
| 24 | |
---|
[1999] | 25 | enum class EReduction |
---|
| 26 | { |
---|
[2291] | 27 | none, sum, min, max, extract, average |
---|
[1999] | 28 | } ; |
---|
[888] | 29 | } |
---|
| 30 | #endif // __XIOS_REDUCTION_TYPES_HPP__ |
---|
Note: See
TracBrowser
for help on using the repository browser.