Changeset 1689 for XIOS/dev/dev_trunk_omp/src/node/field.cpp
- Timestamp:
- 08/06/19 13:00:08 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_trunk_omp/src/node/field.cpp
r1685 r1689 77 77 78 78 //---------------------------------------------------------------- 79 80 81 82 79 83 80 void CField::setVirtualVariableGroup(CVariableGroup* newVVariableGroup) … … 688 685 689 686 //---------------------------------------------------------------- 690 687 691 688 StdString CField::GetName(void) { return StdString("field"); } 692 689 StdString CField::GetDefName(void) { return CField::GetName(); } … … 920 917 TRY 921 918 { 922 923 919 CContext* context = CContext::getCurrent(); 924 920 bool hasClient = context->hasClient; … … 1223 1219 { 1224 1220 fileWriterFilter = std::shared_ptr<CFileWriterFilter>(new CFileWriterFilter(gc, this)); 1225 instantDataFilter->connectOutput(fileWriterFilter, 0); 1221 instantDataFilter->connectOutput(fileWriterFilter, 0); 1226 1222 } 1227 1223 } … … 1241 1237 if (!field_ref.isEmpty()) 1242 1238 { 1243 CField* fieldRef = CField::get(field_ref); 1244 CGrid* gridRef = fieldRef->grid; 1239 CGrid* gridRef = CField::get(field_ref)->grid; 1245 1240 1246 1241 if (grid && grid != gridRef && grid->hasTransform()) 1247 1242 { 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); 1250 1244 1251 1245 filter->connectOutput(filters.first, 0); 1252 1253 1254 1246 filter = filters.second; 1255 1256 1247 } 1257 1248 } … … 1354 1345 TRY 1355 1346 { 1356 1357 1358 1359 1347 if (instantDataFilter || field_ref.isEmpty()) 1360 1348 ERROR("COutputPin* CField::getFieldReference(CGarbageCollector& gc)", … … 1510 1498 1511 1499 selfReferenceFilter = clientSourceFilter; 1512 } 1500 } 1513 1501 } 1514 1502 … … 1536 1524 CContext* context = CContext::getCurrent(); 1537 1525 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;1552 1526 1553 1527 if (it == temporalDataFilters.end()) … … 1614 1588 std::shared_ptr<CTemporalFilter> temporalFilter(new CTemporalFilter(gc, operation, 1615 1589 CContext::getCurrent()->getCalendar()->getInitDate(), 1616 freq_op, freq_offset, outFreq, 1617 detectMissingValues)); 1590 freq_op, freq_offset, outFreq, detectMissingValues)); 1618 1591 1619 1592 selfReferenceFilter->connectOutput(temporalFilter, 0);
Note: See TracChangeset
for help on using the changeset viewer.