Changeset 3143


Ignore:
Timestamp:
02/27/10 12:42:13 (15 years ago)
Author:
Eric.Larour
Message:

only on cpu 0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/io/pfclose.cpp

    r472 r3143  
    1818
    1919        /*Close file handle: */
    20         if(fclose(fid)!=0)throw ErrorException(__FUNCT__,exprintf("%s%s","could not close file ",filename));
     20        extern int my_rank;
     21        if(my_rank==0){
     22                if(fclose(fid)!=0)throw ErrorException(__FUNCT__,exprintf("%s%s","could not close file ",filename));
     23        }
    2124}
    2225
Note: See TracChangeset for help on using the changeset viewer.