Changeset 995 for XIOS/trunk


Ignore:
Timestamp:
11/18/16 15:04:40 (7 years ago)
Author:
mhnguyen
Message:

Fixing a problem of indexed grid with only one process

+) Checking condition of non-distribution for extreme case

Test
+) On Curie
+) Work

Location:
XIOS/trunk/src/node
Files:
2 edited

Legend:

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

    r970 r995  
    264264      isDistributed_ = (!this->begin.isEmpty() && !this->n.isEmpty() && (this->begin + this->n < this->n_glo)) || 
    265265                       (!this->n.isEmpty() && (this->n != this->n_glo)); 
     266 
     267      // A same stupid condition to make sure that if there is only one client, axis 
     268      // should be considered to be distributed. This should be a temporary solution      
     269      isDistributed_ |= (1 == CContext::getCurrent()->client->clientSize); 
    266270   } 
    267271 
  • XIOS/trunk/src/node/domain.cpp

    r975 r995  
    698698     computeNGlobDomain(); 
    699699     checkZoom(); 
    700  
     700      
    701701     isDistributed_ = !((!ni.isEmpty() && (ni == ni_glo) && !nj.isEmpty() && (nj == nj_glo)) || 
    702702                        (!i_index.isEmpty() && i_index.numElements() == ni_glo*nj_glo)); 
     703 
     704     // A stupid condition to make sure that if there is only one client, domain 
     705     // should be considered to be distributed. This should be a temporary solution      
     706     isDistributed_ |= (1 == CContext::getCurrent()->client->clientSize); 
    703707   } 
    704708 
Note: See TracChangeset for help on using the changeset viewer.