Ignore:
Timestamp:
08/06/19 13:00:08 (5 years ago)
Author:
yushan
Message:

dev for graph. up to date with trunk at r1684

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_trunk_omp/src/node/field.cpp

    r1685 r1689  
    7777 
    7878  //---------------------------------------------------------------- 
    79  
    80  
    81     
    8279 
    8380   void CField::setVirtualVariableGroup(CVariableGroup* newVVariableGroup) 
     
    688685 
    689686   //---------------------------------------------------------------- 
    690     
     687 
    691688   StdString CField::GetName(void)    { return StdString("field"); } 
    692689   StdString CField::GetDefName(void) { return CField::GetName(); } 
     
    920917   TRY 
    921918   { 
    922  
    923919     CContext* context = CContext::getCurrent(); 
    924920     bool hasClient = context->hasClient; 
     
    12231219         { 
    12241220           fileWriterFilter = std::shared_ptr<CFileWriterFilter>(new CFileWriterFilter(gc, this)); 
    1225            instantDataFilter->connectOutput(fileWriterFilter, 0);         
     1221           instantDataFilter->connectOutput(fileWriterFilter, 0); 
    12261222         } 
    12271223       } 
     
    12411237           if (!field_ref.isEmpty()) 
    12421238           { 
    1243              CField* fieldRef = CField::get(field_ref); 
    1244              CGrid* gridRef = fieldRef->grid; 
     1239             CGrid* gridRef = CField::get(field_ref)->grid; 
    12451240 
    12461241             if (grid && grid != gridRef && grid->hasTransform()) 
    12471242             { 
    1248                std::pair<std::shared_ptr<CFilter>, std::shared_ptr<CFilter> > filters = CSpatialTransformFilter::buildFilterGraph(gc, gridRef, grid, 
    1249                                                                                          detectMissingValues, defaultValue); 
     1243               std::pair<std::shared_ptr<CFilter>, std::shared_ptr<CFilter> > filters = CSpatialTransformFilter::buildFilterGraph(gc, gridRef, grid, detectMissingValues, defaultValue); 
    12501244 
    12511245               filter->connectOutput(filters.first, 0); 
    1252  
    1253  
    12541246               filter = filters.second; 
    1255                 
    12561247             } 
    12571248           } 
     
    13541345   TRY 
    13551346   { 
    1356  
    1357        
    1358  
    13591347     if (instantDataFilter || field_ref.isEmpty()) 
    13601348       ERROR("COutputPin* CField::getFieldReference(CGarbageCollector& gc)", 
     
    15101498 
    15111499         selfReferenceFilter = clientSourceFilter; 
    1512        }     
     1500       } 
    15131501     } 
    15141502 
     
    15361524     CContext* context = CContext::getCurrent(); 
    15371525 
    1538      // Time filter_start; 
    1539      // if(!build_workflow_graph_start.isEmpty() && buildWorkflowGraph) filter_start = context->calendar->getInitDate()+build_workflow_graph_start; 
    1540      // else if(build_workflow_graph_start.isEmpty() && buildWorkflowGraph) filter_start = 0; 
    1541      // else filter_start = -1; 
    1542  
    1543      // Time filter_end; 
    1544      // if(!build_workflow_graph_end.isEmpty() && buildWorkflowGraph) filter_end = context->calendar->getInitDate()+build_workflow_graph_end; 
    1545      // else if(build_workflow_graph_end.isEmpty() && buildWorkflowGraph) filter_end = 9223372036854775807; 
    1546      // else filter_end = -1; 
    1547  
    1548      // filter_start = this->field_graph_start; 
    1549      // filter_end = this->field_graph_end; 
    1550  
    1551      // if(CXios::isClient) std::cout<<"getTemporalDataFilter field_id = "<<this->getId()<<" this->field_graph_start = "<<this->field_graph_start<<" this->field_graph_end = "<<this->field_graph_end<<std::endl; 
    15521526 
    15531527     if (it == temporalDataFilters.end()) 
     
    16141588       std::shared_ptr<CTemporalFilter> temporalFilter(new CTemporalFilter(gc, operation, 
    16151589                                                                           CContext::getCurrent()->getCalendar()->getInitDate(), 
    1616                                                                            freq_op, freq_offset, outFreq, 
    1617                                                                            detectMissingValues)); 
     1590                                                                           freq_op, freq_offset, outFreq, detectMissingValues)); 
    16181591 
    16191592       selfReferenceFilter->connectOutput(temporalFilter, 0); 
Note: See TracChangeset for help on using the changeset viewer.