Last change
on this file since 2178 was
1999,
checked in by ymipsl, 3 years ago
|
Adapt transformation algorithm to new infrastructure (on going...)
YM
|
-
Property svn:executable set to
*
|
File size:
987 bytes
|
Rev | Line | |
---|
[1918] | 1 | #ifndef __GRID_REMOTE_CONNECTOR_HPP__ |
---|
| 2 | #define __GRID_REMOTE_CONNECTOR_HPP__ |
---|
| 3 | |
---|
| 4 | #include "xios_spl.hpp" |
---|
| 5 | #include "array_new.hpp" |
---|
| 6 | #include "mpi.hpp" |
---|
| 7 | #include "local_view.hpp" |
---|
| 8 | #include "distributed_view.hpp" |
---|
| 9 | #include "context_client.hpp" |
---|
| 10 | |
---|
| 11 | |
---|
| 12 | namespace xios |
---|
| 13 | { |
---|
| 14 | |
---|
| 15 | class CGridRemoteConnector |
---|
| 16 | { |
---|
| 17 | |
---|
| 18 | public: |
---|
| 19 | |
---|
[1938] | 20 | CGridRemoteConnector(vector<CLocalView*>& srcView, vector<CDistributedView*>& dstView, MPI_Comm localComm, int remoteSize) ; |
---|
[1999] | 21 | CGridRemoteConnector(vector<CLocalView*>& srcView, vector<CLocalView*>& dstView, MPI_Comm localComm, int remoteSize) ; |
---|
[1918] | 22 | void computeConnector(void) ; |
---|
| 23 | void computeGenericMethod(void) ; |
---|
| 24 | std::map<int, CArray<size_t,1>>& getDistributedGlobalIndex(int pos) { return elements_[pos] ;} |
---|
| 25 | |
---|
| 26 | private: |
---|
| 27 | vector<map<int, CArray<size_t,1>>> elements_ ; |
---|
| 28 | vector<CLocalView*> srcView_ ; |
---|
| 29 | vector<CDistributedView*> dstView_ ; |
---|
| 30 | MPI_Comm localComm_ ; |
---|
[1938] | 31 | int remoteSize_ ; |
---|
[1918] | 32 | |
---|
| 33 | } ; |
---|
| 34 | |
---|
| 35 | } |
---|
| 36 | |
---|
| 37 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.