Changeset 2193 for XIOS/dev/dev_ym/XIOS_COUPLING/src/node
- Timestamp:
- 07/22/21 14:05:58 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_ym/XIOS_COUPLING/src/node/field.cpp
r2182 r2193 559 559 { 560 560 if (buildWorkflowGraphDone_) return true ; 561 561 562 562 563 const bool detectMissingValues = (!detect_missing_value.isEmpty() && !default_value.isEmpty() && detect_missing_value == true); 563 564 const double defaultValue = detectMissingValues ? default_value : (!default_value.isEmpty() ? default_value : 0.0); 564 565 bool buildGraph_ = !build_workflow_graph.isEmpty() && build_workflow_graph == true ; 565 info(100)<<"=== Workflow Graph === field id="<<this->getId()<<" build_workflow_graph="<<buildGraph_<<std::endl; 566 566 567 if (!inputFilter) inputFilter = std::shared_ptr<CPassThroughFilter>(new CPassThroughFilter(gc)); 567 568 568 569 if (hasDirectFieldReference()) 569 570 { 570 571 CField* fieldRef = getDirectFieldReference(); 571 info(100)<<"=== Workflow Graph === fieldRef id="<<fieldRef->getId()<<std::endl; 572 572 573 573 //------ build_workflow_graph start 574 574 if(buildGraph_) … … 580 580 this->build_workflow_graph.set(fieldRef->build_workflow_graph); 581 581 buildGraph_ = !build_workflow_graph.isEmpty() && build_workflow_graph == true ; 582 info(100)<<"=== Workflow Graph === field id="<<this->getId()<<" updated build_workflow_graph="<<buildGraph_<<std::endl;583 582 } 584 583 585 584 586 if(buildGraph_) this->build_workflow_graph.set(build_workflow_graph);585 // if(buildGraph_) this->build_workflow_graph.set(build_workflow_graph); 587 586 //------ build_workflow_graph end 588 587 … … 604 603 boost::scoped_ptr<IFilterExprNode> expr(parseExpr(getExpression() + '\0')); 605 604 filterExpr = expr->reduce(gc, *this); 605 606 606 607 if (!filterExpr) return false ; // workflow graph cannot be built at this stage 607 608 } … … 636 637 if(buildGraph_) 637 638 { 638 info(100)<<"=== Workflow Graph === field "<<this->getId()<<" calls a transformation filter 2 ============== "<<getDirectFieldReference()->getInstantDataFilter()<<" _ "<<inputFilter<<std::endl;639 639 inputFilter->graphEnabled=true; 640 640 inputFilter->graphPackage = new CGraphPackage; … … 648 648 if (hasExpression()) 649 649 { 650 if (filterExpr) lastFilter=filterExpr ; 650 if (filterExpr) 651 { 652 lastFilter=filterExpr ; 653 } 651 654 } 652 655 … … 716 719 if(buildGraph_) 717 720 { 718 info(100)<<"=== Workflow Graph === field "<<this->getId()<<" calls a connectToFileServer ============== "<<getTemporalDataFilter(gc, fileOut_->output_freq)<<" _ "<<clientToServerStoreFilter_<<std::endl;719 721 clientToServerStoreFilter_->graphPackage = new CGraphPackage; 720 722 clientToServerStoreFilter_->graphEnabled = true; … … 731 733 if(buildGraph_) 732 734 { 733 info(100)<<"=== Workflow Graph === field "<<this->getId()<<" calls a connectToCouplerOut ============== "<<instantDataFilter<<" _ "<<clientToServerStoreFilter_<<std::endl;734 735 clientToServerStoreFilter_->graphPackage = new CGraphPackage; 735 736 clientToServerStoreFilter_->graphEnabled = true; … … 753 754 if(buildGraph_ ) 754 755 { 755 info(100)<<"=== Workflow Graph === field "<<this->getId()<<" calls a connectToModelInput ============== "<<modelToClientSourceFilter_<<" _ "<<inputFilter<<" ***** "<<std::endl;756 756 modelToClientSourceFilter_->graphPackage = new CGraphPackage; 757 757 modelToClientSourceFilter_->graphEnabled = true; … … 770 770 if(buildGraph_) 771 771 { 772 info(100)<<"=== Workflow Graph === field "<<this->getId()<<" calls a connectToClientInput ============== "<<serverFromClientSourceFilter_ << " _ "<<inputFilter<<" ***** "<<std::endl;773 772 serverFromClientSourceFilter_->graphPackage = new CGraphPackage; 774 773 serverFromClientSourceFilter_->graphEnabled = true; … … 789 788 if(buildGraph_) 790 789 { 791 info(100)<<"=== Workflow Graph === field "<<this->getId()<<" calls a connectToServerInput ============== "<<clientFromServerSourceFilter_ << " _ "<<inputFilter<<std::endl;792 790 clientFromServerSourceFilter_->graphPackage = new CGraphPackage; 793 791 clientFromServerSourceFilter_->graphEnabled = true; … … 810 808 if(buildGraph_) 811 809 { 812 info(100)<<"=== Workflow Graph === field "<<this->getId()<<" calls a connectToCouplerIn ============== "<<clientFromClientSourceFilter_ << " _ "<<inputFilter<<std::endl;813 810 clientFromClientSourceFilter_->graphPackage = new CGraphPackage; 814 811 clientFromClientSourceFilter_->graphEnabled = true; … … 827 824 if(buildGraph_) 828 825 { 829 info(100)<<"=== Workflow Graph === field "<<this->getId()<<" calls a connectToFileWriter ============== "<<instantDataFilter << " _ "<<fileWriterStoreFilter_<<std::endl;830 826 fileWriterStoreFilter_->graphPackage = new CGraphPackage; 831 827 fileWriterStoreFilter_->graphEnabled = true; … … 844 840 if(buildGraph_) 845 841 { 846 info(100)<<"=== Workflow Graph === field "<<this->getId()<<" calls a connectToFileReader ============== "<<fileReaderSourceFilter_ << " _ "<<inputFilter<<std::endl;847 842 fileReaderSourceFilter_->graphPackage = new CGraphPackage; 848 843 fileReaderSourceFilter_->graphEnabled = true; … … 862 857 if(buildGraph_) 863 858 { 864 info(100)<<"=== Workflow Graph === field "<<this->getId()<<" calls a connectToModelOutput ============== "<<instantDataFilter << " _ "<<clientToModelStoreFilter_<<std::endl;865 859 clientToModelStoreFilter_->graphPackage = new CGraphPackage; 866 860 clientToModelStoreFilter_->graphEnabled = true; … … 878 872 if(buildGraph_) 879 873 { 880 info(100)<<"=== Workflow Graph === field "<<this->getId()<<" calls a connectToServerToClient ============== "<<instantDataFilter << " _ "<<serverToClientStoreFilter_<<std::endl;881 874 serverToClientStoreFilter_->graphPackage = new CGraphPackage; 882 875 serverToClientStoreFilter_->graphEnabled = true;
Note: See TracChangeset
for help on using the changeset viewer.