Ignore:
Timestamp:
11/18/16 15:04:40 (6 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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.