Changeset 346 for XIOS/trunk/src/data_output.cpp
- Timestamp:
- 04/12/12 17:02:23 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/data_output.cpp
r345 r346 23 23 if (grid->axis_ref.isEmpty()) 24 24 { 25 this->writeGrid 26 (CObjectFactory::GetObject<CDomain>(grid->domain_ref.getValue())); 25 this->writeGrid(CDomain::get(grid->domain_ref.getValue())); 27 26 } 28 27 else 29 28 { 30 this->writeGrid 31 (CObjectFactory::GetObject<CDomain>(grid->domain_ref.getValue()), 32 CObjectFactory::GetObject<CAxis>(grid->axis_ref.getValue())); 29 this->writeGrid(CDomain::get(grid->domain_ref.getValue()), 30 CAxis::get(grid->axis_ref.getValue())); 33 31 } 34 32 } … … 75 73 (const boost::shared_ptr<CField> field) 76 74 { 77 boost::shared_ptr<CContext> context = 78 CObjectFactory::GetObject<CContext>(CObjectFactory::GetCurrentContextId()); 75 boost::shared_ptr<CContext> context = CContext::getCurrent() ; 79 76 boost::shared_ptr<CCalendar> calendar = context->getCalendar(); 80 77 … … 95 92 void CDataOutput::writeFieldData(const boost::shared_ptr<CField> field) 96 93 { 97 boost::shared_ptr<CGrid> grid = 98 CObjectFactory::GetObject<CGrid>(field->grid_ref.getValue()); 99 boost::shared_ptr<CDomain> domain = 100 CObjectFactory::GetObject<CDomain>(grid->domain_ref.getValue()); 94 boost::shared_ptr<CGrid> grid = CGrid::get(field->grid_ref.getValue()); 95 boost::shared_ptr<CDomain> domain = CDomain::get(grid->domain_ref.getValue()); 101 96 102 97 // if (domain->isEmpty()) return;
Note: See TracChangeset
for help on using the changeset viewer.