Ignore:
Timestamp:
11/13/15 11:45:12 (8 years ago)
Author:
mhnguyen
Message:

Changing name of attributes of zoom

Test
+) test_client and test_complete are correct

File:
1 edited

Legend:

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

    r680 r787  
    2929 
    3030    // Résolution et vérification des données globales de zoom. 
    31     if (!this->zoom_ni.isEmpty() || !this->zoom_nj.isEmpty() || 
    32         !this->zoom_ibegin.isEmpty() || !this->zoom_jbegin.isEmpty()) 
     31    if (!this->ni.isEmpty() || !this->nj.isEmpty() || 
     32        !this->ibegin.isEmpty() || !this->jbegin.isEmpty()) 
    3333    { 
    34        if (this->zoom_ni.isEmpty()     || this->zoom_nj.isEmpty() || 
    35            this->zoom_ibegin.isEmpty() || this->zoom_jbegin.isEmpty()) 
     34       if (this->ni.isEmpty()     || this->nj.isEmpty() || 
     35           this->ibegin.isEmpty() || this->jbegin.isEmpty()) 
    3636       { 
    3737         ERROR("CZoomDomain::checkValid(CDomain* domainSrc)", 
     
    4040       else 
    4141       { 
    42           int zoom_iend = zoom_ibegin + zoom_ni - 1; 
    43           int zoom_jend = zoom_jbegin + zoom_nj - 1; 
     42          int iend = ibegin + ni - 1; 
     43          int jend = jbegin + nj - 1; 
    4444 
    45           if (zoom_ibegin < 0  || zoom_jbegin < 0 || zoom_iend > ni_glo - 1 || zoom_jend > nj_glo - 1) 
     45          if (ibegin < 0  || jbegin < 0 || iend > ni_glo - 1 || jend > nj_glo - 1) 
    4646            ERROR("CZoomDomain::checkValid(CDomain* domainSrc)", 
    4747                  << "Zoom is wrongly defined, " 
    48                   << "please check the values : 'zoom_ni' (" << zoom_ni.getValue() << "), 'zoom_nj' (" << zoom_nj.getValue() << "), " 
    49                   << "'zoom_ibegin' (" << zoom_ibegin.getValue() << "), 'zoom_jbegin' (" << zoom_jbegin.getValue() << ")"); 
     48                  << "please check the values : 'ni' (" << ni.getValue() << "), 'nj' (" << nj.getValue() << "), " 
     49                  << "'ibegin' (" << ibegin.getValue() << "), 'jbegin' (" << jbegin.getValue() << ")"); 
    5050       } 
    5151    } 
    5252    else 
    5353    { 
    54        zoom_ni = ni_glo; 
    55        zoom_nj = nj_glo; 
    56        zoom_ibegin = 0; 
    57        zoom_jbegin = 0; 
     54       ni = ni_glo; 
     55       nj = nj_glo; 
     56       ibegin = 0; 
     57       jbegin = 0; 
    5858    } 
    5959  } 
Note: See TracChangeset for help on using the changeset viewer.