Changeset 375


Ignore:
Timestamp:
10/16/12 15:58:02 (9 years ago)
Author:
ymipsl
Message:

output file in mutiple file option are now indexed by digit with a width equal to the width of the server communicator size.

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/node/file.cpp

    r369 r375  
    239239         if (multifile)  
    240240         { 
    241             if (server->intraCommSize > 1) oss << "_" << server->intraCommRank; 
     241            if (server->intraCommSize > 1)  
     242            { 
     243              oss << "_"  ; 
     244              int width=0 ; int n=server->intraCommSize-1 ; 
     245              while(n != 0) { n=n/10 ; width++ ;} 
     246              oss.width(width) ; 
     247              oss.fill('0') ; 
     248              oss<<right<< server->intraCommRank; 
     249            } 
    242250         } 
    243251         oss << ".nc"; 
Note: See TracChangeset for help on using the changeset viewer.