Changeset 347 for XIOS/trunk/src/data_output.cpp
- Timestamp:
- 05/21/12 17:57:22 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/data_output.cpp
r346 r347 14 14 //---------------------------------------------------------------- 15 15 16 void CDataOutput::writeGrid 17 (const boost::shared_ptr<CGrid> grid) 16 void CDataOutput::writeGrid(CGrid* grid) 18 17 { 19 18 if (grid->domain_ref.isEmpty()) … … 34 33 //---------------------------------------------------------------- 35 34 36 void CDataOutput::writeFile 37 (const boost::shared_ptr<CFile> file) 35 void CDataOutput::writeFile(CFile* file) 38 36 { 39 37 this->writeFile_(file); … … 52 50 //---------------------------------------------------------------- 53 51 54 void CDataOutput::writeGrid 55 (const boost::shared_ptr<CDomain> domain, 56 const boost::shared_ptr<CAxis> axis) 52 void CDataOutput::writeGrid(CDomain* domain,CAxis* axis) 57 53 { 58 54 this->writeDomain_(domain); … … 62 58 //---------------------------------------------------------------- 63 59 64 void CDataOutput::writeGrid 65 (const boost::shared_ptr<CDomain> domain) 60 void CDataOutput::writeGrid(CDomain* domain) 66 61 { 67 62 this->writeDomain_(domain); … … 70 65 //---------------------------------------------------------------- 71 66 72 void CDataOutput::writeField 73 (const boost::shared_ptr<CField> field) 67 void CDataOutput::writeField(CField* field) 74 68 { 75 boost::shared_ptr<CContext>context = CContext::getCurrent() ;69 CContext* context = CContext::getCurrent() ; 76 70 boost::shared_ptr<CCalendar> calendar = context->getCalendar(); 77 71 … … 82 76 //---------------------------------------------------------------- 83 77 84 void CDataOutput::writeFieldGrid 85 (const boost::shared_ptr<CField> field) 78 void CDataOutput::writeFieldGrid(CField* field) 86 79 { 87 80 this->writeGrid(field->getRelGrid()); … … 90 83 //---------------------------------------------------------------- 91 84 92 void CDataOutput::writeFieldData( const boost::shared_ptr<CField>field)85 void CDataOutput::writeFieldData(CField* field) 93 86 { 94 boost::shared_ptr<CGrid>grid = CGrid::get(field->grid_ref.getValue());95 boost::shared_ptr<CDomain>domain = CDomain::get(grid->domain_ref.getValue());87 CGrid* grid = CGrid::get(field->grid_ref.getValue()); 88 CDomain* domain = CDomain::get(grid->domain_ref.getValue()); 96 89 97 90 // if (domain->isEmpty()) return;
Note: See TracChangeset
for help on using the changeset viewer.