Changeset 1609


Ignore:
Timestamp:
11/22/18 14:22:17 (21 months ago)
Author:
oabramkina
Message:

Bugfix for domain zoom.

Values of ibegin and jbegin were not set properly for the destination domain. This was causing an error later on in case of multiple transformations when the destination grid of a transformation becomes the source grid for the next transformation.

Location:
XIOS
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_olga/src/transformation/domain_algorithm_zoom.cpp

    r1583 r1609  
    9393  domainDest_->ni.setValue(niDest); 
    9494  domainDest_->nj.setValue(njDest); 
    95   domainDest_->ibegin.setValue(ibeginDest); 
    96   domainDest_->jbegin.setValue(jbeginDest); 
     95  if ( (niDest==0) || (njDest==0)) 
     96  { 
     97    domainDest_->ibegin.setValue(0); 
     98    domainDest_->jbegin.setValue(0); 
     99  } 
     100  else 
     101  { 
     102    domainDest_->ibegin.setValue(ibeginDest); 
     103    domainDest_->jbegin.setValue(jbeginDest); 
     104  } 
    97105  domainDest_->i_index.resize(niDest*njDest); 
    98106  domainDest_->j_index.resize(niDest*njDest); 
  • XIOS/trunk/src/transformation/domain_algorithm_zoom.cpp

    r1583 r1609  
    9393  domainDest_->ni.setValue(niDest); 
    9494  domainDest_->nj.setValue(njDest); 
    95   domainDest_->ibegin.setValue(ibeginDest); 
    96   domainDest_->jbegin.setValue(jbeginDest); 
     95  if ( (niDest==0) || (njDest==0)) 
     96  { 
     97    domainDest_->ibegin.setValue(0); 
     98    domainDest_->jbegin.setValue(0); 
     99  } 
     100  else 
     101  { 
     102    domainDest_->ibegin.setValue(ibeginDest); 
     103    domainDest_->jbegin.setValue(jbeginDest); 
     104  } 
    97105  domainDest_->i_index.resize(niDest*njDest); 
    98106  domainDest_->j_index.resize(niDest*njDest); 
Note: See TracChangeset for help on using the changeset viewer.