Ignore:
Timestamp:
06/14/17 15:24:43 (7 years ago)
Author:
oabramkina
Message:

Two server levels: merging registries of secondary server pools into one and then writing the merged one.

Tested on curie with toy_cmip6.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_olga/src/server.cpp

    r1167 r1168  
    8484        map<unsigned long, int>::iterator it ; 
    8585 
    86         int nbSrv = 0; 
    8786        int srvNodeSize = 1, srvNodeLeader = 0; 
    8887 
     
    134133        { 
    135134          MPI_Allgather(&serverLevel, 1, MPI_LONG, hashAll, 1, MPI_LONG, CXios::globalComm) ; 
     135 
    136136          for (i=0; i<size; i++) 
    137137            if (hashAll[i] == 2) 
     
    188188            interCommRight.push_back(newComm) ; 
    189189          } 
    190         } // primary server 
     190        } 
    191191        else 
    192192        { 
     
    201201          MPI_Intercomm_create(intraComm, 0, CXios::globalComm, clientLeader, 1, &newComm) ; 
    202202          interCommLeft.push_back(newComm) ; 
    203         } // secondary server 
     203        } 
    204204 
    205205        delete [] hashAll ; 
     
    667667     } 
    668668 
     669     vector<int>& CServer::getSecondaryServerGlobalRanks() 
     670     { 
     671       return sndServerGlobalRanks; 
     672     } 
     673 
    669674    /*! 
    670675    * Open a file specified by a suffix and an extension and use it for the given file buffer. 
Note: See TracChangeset for help on using the changeset viewer.