Changeset 321 for XIOS/trunk/src/node/context.cpp
- Timestamp:
- 02/23/12 14:57:50 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/node/context.cpp
r314 r321 544 544 for (it=enabledFiles.begin(); it != enabledFiles.end(); it++) 545 545 { 546 /* shared_ptr<CFile> file = *it; 547 StdString filename = (!file->name.isEmpty()) ? file->name.getValue() : file->getId(); 548 StdOStringStream oss; 549 if (! output_dir.isEmpty()) oss << output_dir.getValue(); 550 oss << filename; 551 if (!file->name_suffix.isEmpty()) oss << file->name_suffix.getValue(); 552 553 bool multifile=true ; 554 if (!file->type.isEmpty()) 555 { 556 StdString str=file->type.getValue() ; 557 if (str.compare("one_file")==0) multifile=false ; 558 else if (str.compare("multi_file")==0) multifile=true ; 559 else ERROR("void Context::createDataOutput(void)", 560 "incorrect file <type> attribut : must be <multi_file> or <one_file>, " 561 <<"having : <"<<str<<">") ; 562 } 563 if (multifile) 564 { 565 if (server->intraCommSize > 1) oss << "_" << server->intraCommRank; 566 } 567 oss << ".nc"; 568 569 shared_ptr<io::CDataOutput> dout(new T(oss.str(), false,server->intraComm,multifile)); 570 */ 571 (*it)->createHeader(); 546 (*it)->initFile(); 572 547 } 573 548 }
Note: See TracChangeset
for help on using the changeset viewer.