Ignore:
Timestamp:
04/21/17 13:53:33 (7 years ago)
Author:
yushan
Message:

From ADA, test_omp (test_client + openmp) OK. Todo: add field_C

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/branch_yushan/src/group_factory_impl.hpp

    r591 r1101  
    7070      CObjectFactory::SetCurrentContextId 
    7171      (CGroupFactory::GetCurrentContextId()); 
     72      printf("SetCurrentContextId OK %d , %d, %s\n", id.size(), CGroupFactory::HasChild(group, id), id); 
    7273      if (id.size() == 0) 
    7374      { 
    74          boost::shared_ptr<typename U::RelChild> value = 
    75                CObjectFactory::CreateObject<typename U::RelChild>(); 
     75         boost::shared_ptr<typename U::RelChild> value = CObjectFactory::CreateObject<typename U::RelChild>(); 
     76         printf("boost::shared_ptr<typename U::RelChild> value OK\n"); 
    7677         group->childList.insert(group->childList.end(), value.get()); 
     78         printf("group->childList.insert OK\n"); 
    7779         group->childMap.insert(std::make_pair(value->getId(), value.get())); 
     80         printf("group->childMap.insert OK\n"); 
    7881         return (value); 
    7982      } 
    8083      else if (CGroupFactory::HasChild(group, id)) 
     84      { 
     85         printf("has child\n"); 
    8186         return (CGroupFactory::GetChild(group, id)); 
     87      } 
    8288      else 
    8389      { 
    84          boost::shared_ptr<typename U::RelChild> value = 
    85                CObjectFactory::CreateObject<typename U::RelChild>(id); 
     90         boost::shared_ptr<typename U::RelChild> value = CObjectFactory::CreateObject<typename U::RelChild>(id); 
     91         printf("shared_ptr OK\n"); 
    8692         group->childList.insert(group->childList.end(), value.get()); 
     93         printf("childList.insert OK\n"); 
    8794         group->childMap.insert(std::make_pair(id, value.get())); 
     95         printf("childMap.insert OK\n"); 
    8896         return (value); 
    8997      } 
Note: See TracChangeset for help on using the changeset viewer.