Ignore:
Timestamp:
05/29/19 13:58:48 (5 years ago)
Author:
yushan
Message:

MARK: branch merged with trunk @1663. Generate one static graph for each output file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_trunk_omp/src/filter/file_writer_filter.cpp

    r1668 r1670  
    1616    if (buildWorkflowGraph) 
    1717    { 
    18       filterId = InvalidableObject::count; 
    19       InvalidableObject::count++; 
     18      if(InvalidableObject::count_ptr == 0) InvalidableObject::count_ptr = new std::map< StdString, int>; 
     19      if(InvalidableObject::count_ptr->find(CWorkflowGraph::my_filename) == InvalidableObject::count_ptr->end()) 
     20      { 
     21        (*InvalidableObject::count_ptr)[CWorkflowGraph::my_filename] = 0;  
     22      } 
     23      //filterId = InvalidableObject::count; 
     24      filterId = (*InvalidableObject::count_ptr)[CWorkflowGraph::my_filename]; 
     25      printf("file_writer_filter ================ filterId = %d\n", (*InvalidableObject::count_ptr)[CWorkflowGraph::my_filename]); 
     26      (*InvalidableObject::count_ptr)[CWorkflowGraph::my_filename]++; 
     27      //InvalidableObject::count++; 
    2028    } 
    2129  } 
Note: See TracChangeset for help on using the changeset viewer.