Last change
on this file since 2370 was
2291,
checked in by ymipsl, 3 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
|
-
Property svn:eol-style set to
native
-
Property svn:executable set to
*
|
File size:
359 bytes
|
Line | |
---|
1 | #include "grid_algorithm_reduce.hpp" |
---|
2 | #include "algo_types.hpp" |
---|
3 | |
---|
4 | namespace xios |
---|
5 | { |
---|
6 | |
---|
7 | void CGridAlgorithmReduce::apply(const CArray<double,1>& dataIn, CArray<double,1>& dataOut) |
---|
8 | { |
---|
9 | CArray<double,1> dataOutTmp ; |
---|
10 | gridTransformConnector_->transfer(dataIn, dataOutTmp, operator_) ; |
---|
11 | algorithm_->apply(dimBefore_, dimAfter_, dataOutTmp, dataOut) ; |
---|
12 | } |
---|
13 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.