Changeset 616
- Timestamp:
- 06/11/15 15:25:47 (10 years ago)
- Location:
- XIOS
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/branchs/xios-1.0/src/output/nc4_data_output.cpp
r615 r616 92 92 dimXid = StdString("lon").append(appendDomid); 93 93 dimYid = StdString("lat").append(appendDomid); 94 break;95 case CDomain::type_attr::unstructured :96 dimXid = StdString("cell").append(appendDomid);97 94 break; 98 95 } … … 136 133 dim1.push_back(dimXid); 137 134 break; 138 case CDomain::type_attr::unstructured : 139 lonid = StdString("lon").append(appendDomid); 140 latid = StdString("lat").append(appendDomid); 141 bounds_lonid=string("bounds_lon").append(appendDomid); 142 bounds_latid=string("bounds_lat").append(appendDomid); 143 dim0.push_back(dimXid); 144 break; 145 } 146 147 if (domain->type == CDomain::type_attr::unstructured) 148 { 149 SuperClassWriter::addDimension(dimXid, domain->nj_glo); 150 } 151 else 152 { 153 SuperClassWriter::addDimension(dimXid, domain->zoom_ni_srv); 154 SuperClassWriter::addDimension(dimYid, domain->zoom_nj_srv); 155 } 135 } 136 137 SuperClassWriter::addDimension(dimXid, domain->zoom_ni_srv); 138 SuperClassWriter::addDimension(dimYid, domain->zoom_nj_srv); 156 139 157 140 if (server->intraCommSize > 1) 158 141 { 159 if (domain->type != CDomain::type_attr::unstructured) 160 { 161 this->writeLocalAttributes(domain->zoom_ibegin_srv, 162 domain->zoom_ni_srv, 163 domain->zoom_jbegin_srv, 164 domain->zoom_nj_srv, 165 appendDomid); 166 167 if (singleDomain) this->writeLocalAttributes_IOIPSL(domain->zoom_ibegin_srv, 142 this->writeLocalAttributes(domain->zoom_ibegin_srv, 143 domain->zoom_ni_srv, 144 domain->zoom_jbegin_srv, 145 domain->zoom_nj_srv, 146 appendDomid); 147 148 if (singleDomain) this->writeLocalAttributes_IOIPSL(domain->zoom_ibegin_srv, 168 149 domain->zoom_ni_srv, 169 150 domain->zoom_jbegin_srv, … … 171 152 domain->ni_glo,domain->nj_glo, 172 153 server->intraCommRank,server->intraCommSize); 173 }174 154 } 175 155 … … 184 164 SuperClassWriter::addVariable(lonid, NC_FLOAT, dim1); 185 165 break ; 186 case CDomain::type_attr::unstructured :187 SuperClassWriter::addVariable(latid, NC_FLOAT, dim0);188 SuperClassWriter::addVariable(lonid, NC_FLOAT, dim0);189 166 } 190 167 … … 193 170 194 171 dim0.clear(); 195 if (domain->type != CDomain::type_attr::unstructured)dim0.push_back(dimYid);172 dim0.push_back(dimYid); 196 173 dim0.push_back(dimXid); 197 174 -
XIOS/trunk/src/output/nc4_data_output.cpp
r615 r616 93 93 dimXid = StdString("lon").append(appendDomid); 94 94 dimYid = StdString("lat").append(appendDomid); 95 break;96 case CDomain::type_attr::unstructured :97 dimXid = StdString("cell").append(appendDomid);98 95 break; 99 96 } … … 137 134 dim1.push_back(dimXid); 138 135 break; 139 case CDomain::type_attr::unstructured :140 lonid = StdString("lon").append(appendDomid);141 latid = StdString("lat").append(appendDomid);142 bounds_lonid=string("bounds_lon").append(appendDomid);143 bounds_latid=string("bounds_lat").append(appendDomid);144 dim0.push_back(dimXid);145 break;146 136 } 147 137 148 if (domain->type == CDomain::type_attr::unstructured) 149 { 150 SuperClassWriter::addDimension(dimXid, domain->nj_glo); 151 } 152 else 153 { 154 SuperClassWriter::addDimension(dimXid, domain->zoom_ni_srv); 155 SuperClassWriter::addDimension(dimYid, domain->zoom_nj_srv); 156 } 138 SuperClassWriter::addDimension(dimXid, domain->zoom_ni_srv); 139 SuperClassWriter::addDimension(dimYid, domain->zoom_nj_srv); 157 140 158 141 if (server->intraCommSize > 1) 159 142 { 160 if (domain->type != CDomain::type_attr::unstructured) 161 { 162 this->writeLocalAttributes(domain->zoom_ibegin_srv, 163 domain->zoom_ni_srv, 164 domain->zoom_jbegin_srv, 165 domain->zoom_nj_srv, 166 appendDomid); 167 168 if (singleDomain) this->writeLocalAttributes_IOIPSL(domain->zoom_ibegin_srv, 169 domain->zoom_ni_srv, 170 domain->zoom_jbegin_srv, 171 domain->zoom_nj_srv, 172 domain->ni_glo,domain->nj_glo, 173 server->intraCommRank,server->intraCommSize); 174 } 143 this->writeLocalAttributes(domain->zoom_ibegin_srv, 144 domain->zoom_ni_srv, 145 domain->zoom_jbegin_srv, 146 domain->zoom_nj_srv, 147 appendDomid); 148 149 if (singleDomain) this->writeLocalAttributes_IOIPSL(domain->zoom_ibegin_srv, 150 domain->zoom_ni_srv, 151 domain->zoom_jbegin_srv, 152 domain->zoom_nj_srv, 153 domain->ni_glo,domain->nj_glo, 154 server->intraCommRank,server->intraCommSize); 175 155 } 176 156 … … 185 165 SuperClassWriter::addVariable(lonid, NC_FLOAT, dim1); 186 166 break ; 187 case CDomain::type_attr::unstructured :188 SuperClassWriter::addVariable(latid, NC_FLOAT, dim0);189 SuperClassWriter::addVariable(lonid, NC_FLOAT, dim0);190 167 } 191 168 … … 194 171 195 172 dim0.clear(); 196 if (domain->type != CDomain::type_attr::unstructured)dim0.push_back(dimYid);173 dim0.push_back(dimYid); 197 174 dim0.push_back(dimXid); 198 175
Note: See TracChangeset
for help on using the changeset viewer.