Changeset 1571 for XIOS/dev/dev_olga/src/node/domain.cpp
- Timestamp:
- 09/06/18 18:55:44 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_olga/src/node/domain.cpp
r1570 r1571 1848 1848 // Even if a client has no index, it must connect to at least one server and 1849 1849 // send an "empty" data to this server 1850 // if (connectedServerRank_[nbServer].empty()) 1851 // connectedServerRank_[nbServer].push_back(client->clientRank % client->serverSize); 1852 1853 // Trying instead: send empty data to all servers 1850 1854 if (connectedServerRank_[nbServer].empty()) 1851 connectedServerRank_[nbServer].push_back(client->clientRank % client->serverSize); 1855 for (int i = 0; i < client->serverSize; ++i) 1856 connectedServerRank_[nbServer].push_back(i); 1857 1852 1858 1853 1859 nbSenders[nbServer] = clientServerMap->computeConnectedClients(client->serverSize, client->clientSize, client->intraComm, connectedServerRank_[nbServer]); … … 1904 1910 { 1905 1911 localIndexToWriteOnServer(nbWritten) = globalLocalIndexMap_[indGlo]; 1906 ++nbWritten;1907 1912 } 1908 1913 else 1909 1914 { 1910 localIndexToWriteOnServer(nbWritten) = 0;1911 ++nbWritten;1912 }1915 localIndexToWriteOnServer(nbWritten) = -1; 1916 } 1917 ++nbWritten; 1913 1918 } 1914 1919 … … 2512 2517 nbIndLoc = iIndex + ni * jIndex; 2513 2518 // if (nbIndLoc < nbIndexGlobMax) // THIS CONDITION IMPEDES THE CASE OF A HOLE 2514 {2515 i_index(nbIndLoc) = index % ni_glo;2516 j_index(nbIndLoc) = index / ni_glo;2517 globalLocalIndexMap_[index] = nbIndLoc; 2518 ++nbIndGlob;2519 }2520 //i_index(nbIndGlob) = index % ni_glo;2521 //j_index(nbIndGlob) = index / ni_glo;2522 // globalLocalIndexMap_[index] = nbIndGlob;2523 //++nbIndGlob;2519 // { 2520 // i_index(nbIndLoc) = index % ni_glo; 2521 // j_index(nbIndLoc) = index / ni_glo; 2522 // globalLocalIndexMap_[index] = nbIndLoc; 2523 // ++nbIndGlob; 2524 // } 2525 i_index(nbIndGlob) = index % ni_glo; 2526 j_index(nbIndGlob) = index / ni_glo; 2527 globalLocalIndexMap_[index] = nbIndGlob; 2528 ++nbIndGlob; 2524 2529 } 2525 2530 }
Note: See TracChangeset
for help on using the changeset viewer.