Changeset 676 for XIOS/trunk/src/data_output.cpp
- Timestamp:
- 08/25/15 16:52:45 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/data_output.cpp
r540 r676 14 14 //---------------------------------------------------------------- 15 15 16 void CDataOutput::writeGrid(CGrid* grid )16 void CDataOutput::writeGrid(CGrid* grid, bool allowCompressedOutput /*= false*/) 17 17 { 18 // if (grid->domain_ref.isEmpty())19 // ERROR("CDataOutput::writeGrid(grid)",20 // << " domain is not defined !");21 //22 // if (grid->axis_ref.isEmpty())23 // {24 // this->writeGrid(CDomain::get(grid->domain_ref.getValue()));25 // }26 // else27 // {28 // this->writeGrid(CDomain::get(grid->domain_ref.getValue()),29 // CAxis::get(grid->axis_ref.getValue()));30 // }31 // this->writeGrid(grid->domain, grid->axis);32 18 this->writeGrid(grid->getDomains(), grid->getAxis()); 19 20 if (allowCompressedOutput) 21 writeGridCompressed_(grid); 33 22 } 34 23 … … 57 46 //---------------------------------------------------------------- 58 47 59 void CDataOutput::writeGrid(CDomain* domain, CAxis* axis)48 void CDataOutput::writeGrid(CDomain* domain, CAxis* axis) 60 49 { 61 50 this->writeDomain_(domain); … … 98 87 void CDataOutput::writeFieldGrid(CField* field) 99 88 { 100 this->writeGrid(field->getRelGrid()); 89 this->writeGrid(field->getRelGrid(), 90 !field->indexed_output.isEmpty() && field->indexed_output); 101 91 } 102 92
Note: See TracChangeset
for help on using the changeset viewer.