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/object_factory_impl.hpp

    r1088 r1101  
    122122      if(U::AllVectObj == NULL) U::AllVectObj = new xios_map<StdString, std::vector<boost::shared_ptr<U> > >; 
    123123      if(U::AllMapObj  == NULL) U::AllMapObj  = new xios_map<StdString, xios_map<StdString, boost::shared_ptr<U> > >; 
     124 
     125      printf("so far so good : %d %d %d\n", CurrContext_ptr->empty(), CObjectFactory::HasObject<U>(id), id.empty()); 
    124126       
    125127      if (CurrContext_ptr->empty()) 
     
    134136      { 
    135137         boost::shared_ptr<U> value(new U(id.empty() ? CObjectFactory::GenUId<U>() : id)); 
    136  
     138         printf("in CreateObject, value OK\n");   
    137139         (* U::AllVectObj)[*CObjectFactory::CurrContext_ptr].insert((*U::AllVectObj)[*CObjectFactory::CurrContext_ptr].end(), value); 
     140         printf("AllVectObj insert OK\n"); 
    138141         (* U::AllMapObj) [*CObjectFactory::CurrContext_ptr].insert(std::make_pair(value->getId(), value)); 
     142         printf("AllMapObj insert OK\n"); 
    139143 
    140144         return value; 
Note: See TracChangeset for help on using the changeset viewer.