Changeset 3762 for trunk


Ignore:
Timestamp:
May 14, 2025, 5:59:16 PM (7 weeks ago)
Author:
afalco
Message:

pluto start2archive: fix for previous commit. lat/lon dimensions off by one.
AF

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.PLUTO/libf/dynphy_lonlat/phypluto/start2archive.F

    r3761 r3762  
    450450        endif
    451451        if (naltold.ne.llm) then
    452           print*,"start.nc:          n_levels:", llm
     452          print*, "start.nc:         n_levels:", llm
    453453          print*, "start_archive.nc: n_levels:",naltold
    454454          call abort_gcm('start2archive: ',
    455455     &              'altitude dimension from start_archive.nc differ'//
    456      &              'from start/startfi.nc', 1)
     456     &              'from start/startfi.nc/executable', 1)
    457457        endif
    458458      endif
     
    465465     &              'Failed reading longitude length', 1)
    466466        endif
    467         if (nlonold.ne.iim) then
    468           print*,"start.nc:          n_lon:", iim
    469           print*, "start_archive.nc: n_lon:",nlonold
     467        if ((nlonold-1).ne.iim) then
     468          print*, "start.nc:          n_lon:", iim
     469          print*, "start_archive.nc: n_lon:",nlonold-1
    470470          call abort_gcm('start2archive: ',
    471471     &              'longitude dimension from start_archive.nc differ'//
    472      &              'from start/startfi.nc', 1)
     472     &              'from start/startfi.nc/executable', 1)
    473473        endif
    474474      endif
     
    482482     &              'Failed reading latitude length', 1)
    483483        endif
    484         if (nlatold.ne.jjm) then
    485           print*,"start.nc:          n_lat:", jjm
    486           print*, "start_archive.nc: n_lat:",nlatold
     484        if ((nlatold-1).ne.jjm) then
     485          print*, "start.nc:         n_lat:", jjm
     486          print*, "start_archive.nc: n_lat:",nlatold-1
    487487          call abort_gcm('start2archive: ',
    488488     &              'latitude dimension from start_archive.nc differ'//
    489      &              'from start/startfi.nc', 1)
     489     &              'from start/startfi.nc/executable', 1)
    490490        endif
    491491      endif
     
    499499        endif
    500500        if (nsoilold.ne.nsoilmx) then
    501           print*,"start.nc:          n_levels:", nsoilmx
     501          print*, "start.nc:         n_levels:", nsoilmx
    502502          print*, "start_archive.nc: n_levels:",nsoilold
    503503          call abort_gcm('start2archive: ',
    504504     &              'Soil dimension from start_archive.nc differ'//
    505      &              'from start/startfi.nc', 1)
     505     &              'from start/startfi.nc/executable', 1)
    506506        endif
    507507      endif
Note: See TracChangeset for help on using the changeset viewer.