Changeset 335 for XIOS/trunk/src/node/file.cpp
- Timestamp:
- 03/30/12 15:37:54 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/node/file.cpp
r321 r335 15 15 16 16 17 namespace x mlioserver{17 namespace xios { 18 18 namespace tree { 19 19 … … 244 244 245 245 if (isOpen) data_out->closeFile() ; 246 247 data_out=shared_ptr<io::CDataOutput>(new io::CNc4DataOutput(oss.str(), false,server->intraComm,multifile)); 246 bool isCollective=true ; 247 if (!par_access.isEmpty()) 248 { 249 if (par_access.getValue()=="independent") isCollective=false ; 250 else if (par_access.getValue()=="collective") isCollective=true ; 251 else 252 { 253 ERROR("void Context::createDataOutput(void)", 254 "incorrect file <par_access> attribut : must be <collective> or <indepedent>, " 255 <<"having : <"<<type.getValue()<<">") ; 256 } 257 } 258 data_out=shared_ptr<io::CDataOutput>(new io::CNc4DataOutput(oss.str(), false,server->intraComm,multifile, isCollective)); 248 259 isOpen=true ; 249 260 … … 491 502 492 503 } // namespace tree 493 } // namespace x mlioserver504 } // namespace xios
Note: See TracChangeset
for help on using the changeset viewer.