Changeset 13606


Ignore:
Timestamp:
10/10/12 23:12:34 (12 years ago)
Author:
Eric.Larour
Message:

CHG: more changes to switch from my_rank and num_procs to IssmComm::GetSize and IssmComm::GetRank

Location:
issm/trunk-jpl/src/c/io/Disk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/io/Disk/WriteLockFile.cpp

    r13549 r13606  
    99
    1010        int i;
    11         extern int my_rank;
     11        int my_rank2;
     12
     13        /*recover my_rank2:*/
     14        my_rank2=IssmComm::GetRank();
    1215       
    1316        /* output: */
     
    1518
    1619        /* Open lock file and write 1 into it: */
    17         if(my_rank==0){
     20        if(my_rank2==0){
    1821                fid=fopen(filename,"w");
    1922                if(fid==NULL) _error_("error message: could not open lock file " << filename);
  • issm/trunk-jpl/src/c/io/Disk/pfclose.cpp

    r13056 r13606  
    1616
    1717        /*Close file handle: */
    18         extern int my_rank;
    1918        _assert_(fid);
    2019        if(fclose(fid)!=0)_error_("could not close file " << filename);
  • issm/trunk-jpl/src/c/io/Disk/pfopen.cpp

    r13056 r13606  
    1616
    1717        FILE* fid=NULL;
    18         extern int my_rank;
    1918       
    2019        /*Open handle to data on disk: */
Note: See TracChangeset for help on using the changeset viewer.