Changeset 2126


Ignore:
Timestamp:
04/08/21 09:34:19 (3 years ago)
Author:
ymipsl
Message:

Bug fix in axis interpolation with pressure coordinate
YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/transformation/axis_algorithm/axis_algorithm_interpolate_coordinate.cpp

    r2122 r2126  
    291291            for(int j=lastj; j<nsrc; j++) 
    292292            {  
    293               if (x >= srcCoordinate[srcIndex[j]] && x<srcCoordinate[srcIndex[j+1]]) ; 
    294293              lastj=j ; 
    295               break ; 
     294              if (x >= srcCoordinate[srcIndex[j]] && x<srcCoordinate[srcIndex[j+1]]) break ; 
    296295            }   
    297296          } 
     
    320319          for(int j=lastj; j<nsrc; j++) 
    321320          {  
    322             if (x >= srcCoordinate[srcIndex[j]] && x<srcCoordinate[srcIndex[j+1]]) ; 
    323              
    324321            lastj=j ; 
    325             break ; 
     322            if (x >= srcCoordinate[srcIndex[j]] && x<srcCoordinate[srcIndex[j+1]])  break ; 
    326323          }   
    327324        } 
Note: See TracChangeset for help on using the changeset viewer.