Ignore:
Timestamp:
Aug 22, 2025, 10:41:37 AM (4 months ago)
Author:
jbclement
Message:

Mars PCM:
Case 'icelocationmode = 5' (default) is corrected compared to r2884. Now it reads 'watercaptag' from "startfi.nc" in any circumstances, unless it is missing, in which case 'icelocationmode' is set to 4.
JBC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/phymars/surfini_mod.F90

    r3726 r3903  
    22
    33implicit none
     4
     5! There are 4 different modes for ice distribution:
     6! icelocationmode = 1 ---> based on data from surface.nc
     7! icelocationmode = 2 ---> directly predefined for GCM resolutions 32x24 or 64x48
     8! icelocationmode = 3 ---> based on logical relations for latitude and longitude
     9! icelocationmode = 4 ---> predefined 64x48 but usable with every
     10! resolution, and easily adaptable for dynamico
     11! For visualisation : > /u/tnalmd/bin/watercaps gcm_txt_output_file
     12integer :: icelocationmode = 5
     13
     14!$OMP THREADPRIVATE(icelocationmode)
    415
    516!=======================================================================
     
    4556      ! longwatercaptag is watercaptag. Trick for some compilers
    4657      LOGICAL, DIMENSION(100000) :: longwatercaptag
    47 
    48 ! There are 4 different modes for ice distribution:
    49 ! icelocationmode = 1 ---> based on data from surface.nc
    50 ! icelocationmode = 2 ---> directly predefined for GCM resolutions 32x24 or 64x48
    51 ! icelocationmode = 3 ---> based on logical relations for latitude and longitude
    52 ! icelocationmode = 4 ---> predefined 64x48 but usable with every
    53 ! resolution, and easily adaptable for dynamico
    54 ! For visualisation : > /u/tnalmd/bin/watercaps gcm_txt_output_file
    55       INTEGER,SAVE :: icelocationmode = 5
    56 
    57 !$OMP THREADPRIVATE(icelocationmode)
    58 
    5958
    6059      !in case icelocationmode == 1
     
    449448         write(*,*)'icelocationmode = 5'
    450449         write(*,*)'Surfini: ice caps defined using startfi.nc data'
    451          do ig=1,ngrid
    452            if(any(watercaptag_glo)) then
    453            else
    454               call locate_watercaptag(klon_glo,lati_glo,long_glo,watercaptag_glo)
    455            endif
    456          enddo
    457 
    458 !         write(*,*)'watercaptag_glo(:), ',watercaptag_glo(:)
    459450
    460451            case default
Note: See TracChangeset for help on using the changeset viewer.