Ignore:
Timestamp:
01/03/21 18:00:43 (3 years ago)
Author:
ymipsl
Message:

Adapt transformation algorithm to new infrastructure (on going...)

YM

Location:
XIOS/dev/dev_ym/XIOS_COUPLING/src/filter
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/filter/transform_filter.cpp

    r1984 r1999  
    11#include "transform_filter.hpp" 
     2#include "grid_algorithm.hpp" 
    23 
    34namespace xios 
    45{ 
    56   
    6   CTransformFilter::CTransformFilter( CGarbageCollector& gc, CGenericAlgorithmTransformation* algo, int dimBefore, int dimAfter,  
    7                                       bool detectMissingValues, double defaultValue)  
    8                                     : CFilter(gc, 1, this), algorithm_(algo), dimBefore_(dimBefore), dimAfter_(dimAfter),  
     7  CTransformFilter::CTransformFilter( CGarbageCollector& gc, CGridAlgorithm* algo, bool detectMissingValues, double defaultValue)  
     8                                    : CFilter(gc, 1, this), algorithm_(algo),  
    99                                      detectMissingValues_(detectMissingValues), defaultValue_(defaultValue) 
    1010  { 
     
    2020    packet->status = data[0]->status; 
    2121 
    22     if (packet->status == CDataPacket::NO_ERROR) algorithm_->apply(dimBefore_, dimAfter_, data[0]->data, packet->data); 
     22    if (packet->status == CDataPacket::NO_ERROR) algorithm_->apply(data[0]->data, packet->data); 
    2323    return packet; 
    2424  } 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/filter/transform_filter.hpp

    r1984 r1999  
    33 
    44#include "filter.hpp" 
    5 #include "generic_algorithm_transformation.hpp" 
     5#include "grid_algorithm.hpp" 
    66 
    77namespace xios 
     
    1515    public: 
    1616 
    17       CTransformFilter(CGarbageCollector& gc, CGenericAlgorithmTransformation* algo, int dimBefore, int dimAfter,  
    18                               bool detectMissingValues, double defaultValue) ; 
     17      CTransformFilter(CGarbageCollector& gc, CGridAlgorithm* algo, bool detectMissingValues, double defaultValue) ; 
    1918 
    2019    protected: 
     
    2726    private : 
    2827      
    29      CGenericAlgorithmTransformation* algorithm_ ; 
    30      int dimBefore_ ; 
    31      int dimAfter_ ; 
     28     CGridAlgorithm* algorithm_ ; 
    3229     bool detectMissingValues_ ; 
    3330     bool defaultValue_ ; 
Note: See TracChangeset for help on using the changeset viewer.