Changeset 628
- Timestamp:
- 06/24/15 14:51:09 (9 years ago)
- Location:
- XIOS
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/branchs/xios-1.0/src/output/nc4_data_output.cpp
r618 r628 154 154 appendDomid); 155 155 156 if (singleDomain) this->writeLocalAttributes_IOIPSL(domain->zoom_ibegin_srv, 157 domain->zoom_ni_srv, 158 domain->zoom_jbegin_srv, 159 domain->zoom_nj_srv, 160 domain->ni_glo,domain->nj_glo, 161 server->intraCommRank,server->intraCommSize); 156 if (singleDomain) 157 this->writeLocalAttributes_IOIPSL(dimXid, dimYid, 158 domain->zoom_ibegin_srv, 159 domain->zoom_ni_srv, 160 domain->zoom_jbegin_srv, 161 domain->zoom_nj_srv, 162 domain->ni_glo,domain->nj_glo, 163 server->intraCommRank,server->intraCommSize); 162 164 } 163 165 … … 1430 1432 } 1431 1433 1432 void CNc4DataOutput::writeLocalAttributes_IOIPSL1433 (int ibegin, int ni, int jbegin, int nj, int ni_glo, int nj_glo, int rank, int size)1434 void CNc4DataOutput::writeLocalAttributes_IOIPSL(const StdString& dimXid, const StdString& dimYid, 1435 int ibegin, int ni, int jbegin, int nj, int ni_glo, int nj_glo, int rank, int size) 1434 1436 { 1435 1437 CArray<int,1> array(2) ; … … 1439 1441 SuperClassWriter::addAttribute("DOMAIN_number_total",size ) ; 1440 1442 SuperClassWriter::addAttribute("DOMAIN_number", rank) ; 1441 array= 1,2;1443 array=SuperClassWriter::getDimension(dimXid),SuperClassWriter::getDimension(dimYid); 1442 1444 SuperClassWriter::addAttribute("DOMAIN_dimensions_ids",array) ; 1443 1445 array=ni_glo,nj_glo ; … … 1462 1464 catch (CNetCdfException& e) 1463 1465 { 1464 StdString msg("On writing Local Attributes IOI 1466 StdString msg("On writing Local Attributes IOIPSL \n"); 1465 1467 msg.append("In the context : "); 1466 1468 CContext* context = CContext::getCurrent() ; -
XIOS/branchs/xios-1.0/src/output/nc4_data_output.hpp
r613 r628 56 56 void writeUnstructuredDomain (CDomain* domain); 57 57 void writeLocalAttributes(int ibegin, int ni, int jbegin, int nj, StdString domid); 58 void writeLocalAttributes_IOIPSL(int ibegin, int ni, int jbegin, int nj, int ni_glo, int nj_glo, int rank, int size) ; 58 void writeLocalAttributes_IOIPSL(const StdString& dimXid, const StdString& dimYid, 59 int ibegin, int ni, int jbegin, int nj, int ni_glo, int nj_glo, int rank, int size); 59 60 void writeTimeAxisAttributes(const StdString & axis_name, 60 61 const StdString & calendar, -
XIOS/trunk/src/output/nc4_data_output.cpp
r625 r628 155 155 appendDomid); 156 156 157 if (singleDomain) this->writeLocalAttributes_IOIPSL(domain->zoom_ibegin_srv, 158 domain->zoom_ni_srv, 159 domain->zoom_jbegin_srv, 160 domain->zoom_nj_srv, 161 domain->ni_glo,domain->nj_glo, 162 server->intraCommRank,server->intraCommSize); 157 if (singleDomain) 158 this->writeLocalAttributes_IOIPSL(dimXid, dimYid, 159 domain->zoom_ibegin_srv, 160 domain->zoom_ni_srv, 161 domain->zoom_jbegin_srv, 162 domain->zoom_nj_srv, 163 domain->ni_glo,domain->nj_glo, 164 server->intraCommRank,server->intraCommSize); 163 165 } 164 166 … … 1793 1795 } 1794 1796 1795 void CNc4DataOutput::writeLocalAttributes_IOIPSL1796 (int ibegin, int ni, int jbegin, int nj, int ni_glo, int nj_glo, int rank, int size)1797 void CNc4DataOutput::writeLocalAttributes_IOIPSL(const StdString& dimXid, const StdString& dimYid, 1798 int ibegin, int ni, int jbegin, int nj, int ni_glo, int nj_glo, int rank, int size) 1797 1799 { 1798 1800 CArray<int,1> array(2) ; … … 1802 1804 SuperClassWriter::addAttribute("DOMAIN_number_total",size ) ; 1803 1805 SuperClassWriter::addAttribute("DOMAIN_number", rank) ; 1804 array= 1,2;1806 array=SuperClassWriter::getDimension(dimXid),SuperClassWriter::getDimension(dimYid); 1805 1807 SuperClassWriter::addAttribute("DOMAIN_dimensions_ids",array) ; 1806 1808 array=ni_glo,nj_glo ; … … 1825 1827 catch (CNetCdfException& e) 1826 1828 { 1827 StdString msg("On writing Local Attributes IOI 1829 StdString msg("On writing Local Attributes IOIPSL \n"); 1828 1830 msg.append("In the context : "); 1829 1831 CContext* context = CContext::getCurrent() ; -
XIOS/trunk/src/output/nc4_data_output.hpp
r613 r628 57 57 void writeUnstructuredDomain (CDomain* domain); 58 58 void writeLocalAttributes(int ibegin, int ni, int jbegin, int nj, StdString domid); 59 void writeLocalAttributes_IOIPSL(int ibegin, int ni, int jbegin, int nj, int ni_glo, int nj_glo, int rank, int size) ; 59 void writeLocalAttributes_IOIPSL(const StdString& dimXid, const StdString& dimYid, 60 int ibegin, int ni, int jbegin, int nj, int ni_glo, int nj_glo, int rank, int size); 60 61 void writeTimeAxisAttributes(const StdString & axis_name, 61 62 const StdString & calendar,
Note: See TracChangeset
for help on using the changeset viewer.