Last change
on this file since 619 was
619,
checked in by mhnguyen, 9 years ago
|
Implementing the first prototype of filter
+) Create new class filter
+) Implement class for specific algorithm
+) Implement inversing algorithm
Test
+) On Curie
+) Grid with one axis: passed
|
File size:
701 bytes
|
Line | |
---|
1 | #include "axis_filter.hpp" |
---|
2 | #include "context.hpp" |
---|
3 | #include "context_client.hpp" |
---|
4 | |
---|
5 | namespace xios { |
---|
6 | |
---|
7 | CAxisFilter::CAxisFilter(CGrid* gridInput, CGrid* gridOutput) |
---|
8 | : CGenericFilter(gridInput, gridOutput), isGridTransformed_(false) |
---|
9 | { |
---|
10 | CContext* context = CContext::getCurrent(); |
---|
11 | CContextClient* client = context->client; |
---|
12 | this->distributionClient_ = new CDistributionClient(client->clientRank, gridInput); |
---|
13 | } |
---|
14 | |
---|
15 | void CAxisFilter::setGridTransformed() |
---|
16 | { |
---|
17 | isGridTransformed_ = true; |
---|
18 | } |
---|
19 | |
---|
20 | bool CAxisFilter::isGridTransformed() |
---|
21 | { |
---|
22 | return isGridTransformed_; |
---|
23 | } |
---|
24 | |
---|
25 | const CArray<size_t,1>& CAxisFilter::getGlobalDataIndexInput() const |
---|
26 | { |
---|
27 | return this->distributionClient_->getGlobalDataIndexSendToServer(); |
---|
28 | } |
---|
29 | |
---|
30 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.