Changeset 1876 for XIOS/trunk/src/node
- Timestamp:
- 05/12/20 16:36:29 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/node/field.cpp
r1768 r1876 26 26 #include "workflow_graph.hpp" 27 27 28 #include "yacc_var.hpp" 28 29 namespace xios{ 29 30 … … 1142 1143 if(this->field_graph_end==-2) this->field_graph_end = filter_end; // init 1143 1144 1144 // if(CXios::isClient) std::cout<<"****************** buildFilterGraph : field_id = "<<this->getId()<<" BEFORE: this->field_graph_start = "<<this->field_graph_start<<" this->field_graph_end = "<<this->field_graph_end<<std::endl;1145 1145 1146 1146 if(start_graph == -1) 1147 1147 { 1148 1148 //nothing 1149 // if(CXios::isClient) std::cout<<"buildFilterGraph field_id = "<<this->getId()<<" case1: this->field_graph_start = "<<this->field_graph_start<<std::endl;1150 1149 } 1151 1150 else //if(start_graph != -1) … … 1153 1152 if(this->field_graph_start == -1) this->field_graph_start = start_graph; 1154 1153 else this->field_graph_start = min(this->field_graph_start, start_graph); 1155 1156 // if(CXios::isClient) std::cout<<"buildFilterGraph field_id = "<<this->getId()<<" case2: this->field_graph_start = "<<this->field_graph_start<<std::endl;1157 1154 } 1158 1155 … … 1161 1158 { 1162 1159 //nothing 1163 // if(CXios::isClient) std::cout<<"buildFilterGraph field_id = "<<this->getId()<<" case1: this->field_graph_end = "<<this->field_graph_end<<std::endl;1164 1160 } 1165 1161 else … … 1168 1164 else this->field_graph_end = max(this->field_graph_end, end_graph); 1169 1165 1170 // if(CXios::isClient) std::cout<<"buildFilterGraph field_id = "<<this->getId()<<" case2: this->field_graph_end = "<<this->field_graph_end<<std::endl;1171 1166 } 1172 1167 … … 1175 1170 filter_end = this->field_graph_end; 1176 1171 1177 1178 // if(CXios::isClient) std::cout<<"****************** buildFilterGraph : field_id = "<<this->getId()<<" AFTER: this->field_graph_start = "<<this->field_graph_start<<" this->field_graph_end = "<<this->field_graph_end<<std::endl;1179 1180 1181 1182 1172 1183 1173 … … 1282 1272 instantDataFilter->end_graph = filter_end; 1283 1273 instantDataFilter->field = this; 1284 // if(CXios::isClient) std::cout<<"***********************buildFilterGraph init source filter : field_id = "<<this->getId()<<" sourcefilter->start_graph = "<<clientSourceFilter->start_graph<<" sourcefilter->end_graph = "<<clientSourceFilter->end_graph<<std::endl;1285 1274 } 1286 1275 } … … 1320 1309 fileWriterFilter->distance = getTemporalDataFilter(gc, file->output_freq)->distance+1; 1321 1310 1322 // std::cout<<"CFileWriterFilter filter start = "<<filter_start<<" end = "<<filter_end<<" field = "<<this->getId()<<std::endl;1323 1311 1324 1312 } … … 1361 1349 if(this->field_graph_end==-2) this->field_graph_end = filter_end; // init 1362 1350 1363 // if(CXios::isClient) std::cout<<"getFieldReference field_id = "<<this->getId()<<" BEFORE: this->field_graph_start = "<<this->field_graph_start<<" this->field_graph_end = "<<this->field_graph_end<<std::endl;1364 1351 1365 1352 if(start_graph == -1) 1366 1353 { 1367 1354 //nothing 1368 // if(CXios::isClient) std::cout<<"getFieldReference field_id = "<<this->getId()<<" case1: this->field_graph_start = "<<this->field_graph_start<<std::endl;1369 1355 } 1370 1356 else //if(start_graph != -1) … … 1372 1358 if(this->field_graph_start == -1) this->field_graph_start = start_graph; 1373 1359 else this->field_graph_start = min(this->field_graph_start, start_graph); 1374 1375 // if(CXios::isClient) std::cout<<"getFieldReference field_id = "<<this->getId()<<" case2: this->field_graph_start = "<<this->field_graph_start<<std::endl;1376 1360 } 1377 1361 … … 1379 1363 { 1380 1364 //nothing 1381 // if(CXios::isClient) std::cout<<"getFieldReference field_id = "<<this->getId()<<" case1: this->field_graph_end = "<<this->field_graph_end<<std::endl;1382 1365 } 1383 1366 else … … 1385 1368 if(this->field_graph_end == -1) this->field_graph_end = end_graph; 1386 1369 else this->field_graph_end = max(this->field_graph_end, end_graph); 1387 1388 // if(CXios::isClient) std::cout<<"getFieldReference field_id = "<<this->getId()<<" case2: this->field_graph_end = "<<this->field_graph_end<<std::endl;1389 1370 } 1390 1371 1391 1372 filter_start = this->field_graph_start; 1392 1373 filter_end = this->field_graph_end; 1393 1394 // if(CXios::isClient) std::cout<<"getFieldReference field_id = "<<this->getId()<<" AFTER: this->field_graph_start = "<<this->field_graph_start<<" this->field_graph_end = "<<this->field_graph_end<<std::endl;1395 1374 1396 1375 … … 1451 1430 TRY 1452 1431 { 1453 //if(CXios::isClient) std::cout<<"getSelfReference field_id = "<<this->getId()<<" start_graph = "<<start_graph<<" end_graph = "<<end_graph<<std::endl;1454 1432 1455 1433 if (instantDataFilter || !hasExpression()) … … 1532 1510 1533 1511 instantDataFilter->connectOutput(temporalFilter, 0); 1534 //temporalFilter->tag = buildWorkflowGraph;1535 1512 1536 1513 temporalFilter->parent_filters.resize(1); … … 1538 1515 1539 1516 1540 //if(temporalFilter->parent_filters[0]->tag) temporalFilter->tag=true;1541 1517 temporalFilter->tag = temporalFilter->parent_filters[0]->tag; 1542 1518 temporalFilter->start_graph = temporalFilter->parent_filters[0]->start_graph; 1543 1519 temporalFilter->end_graph = temporalFilter->parent_filters[0]->end_graph; 1544 1520 1545 // temporalFilter->start_graph = filter_start;1546 // temporalFilter->end_graph = filter_end;1547 1521 temporalFilter->field = this; 1548 1522
Note: See TracChangeset
for help on using the changeset viewer.