Changeset 3903
- Timestamp:
- Aug 22, 2025, 10:41:37 AM (4 months ago)
- Location:
- trunk/LMDZ.MARS
- Files:
-
- 3 edited
-
changelog.txt (modified) (1 diff)
-
libf/phymars/phyetat0_mod.F90 (modified) (2 diffs)
-
libf/phymars/surfini_mod.F90 (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/changelog.txt
r3902 r3903 4955 4955 More code tidying: turn geticecover, interp_line, orbite, simpleclouds, tabfi 4956 4956 and tcondco2 into modules. 4957 4958 == 22/08/2025 == JBC 4959 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. -
trunk/LMDZ.MARS/libf/phymars/phyetat0_mod.F90
r3902 r3903 19 19 use surfdat_h, only: phisfi, albedodat, z0, z0_default, zmea, zstd, & 20 20 zsig, zgam, zthe, hmons, summit, base, watercaptag 21 use surfini_mod, only: icelocationmode 21 22 use iostart, only: nid_start, open_startphy, close_startphy, & 22 23 get_field, get_var, inquire_field, & … … 820 821 write(*,*) "phyetat0: Failed loading <watercaptag> : ", & 821 822 "<watercaptag> is set as defined by icelocationmode in surfini.F" 822 watercaptag(:)=.false.823 icelocationmode = 4 823 824 else 824 825 do ig=1,ngrid 825 if(watercaptag_tmp(ig) .lt.0.5) then826 watercaptag(ig) =.false.826 if(watercaptag_tmp(ig) < 0.5) then 827 watercaptag(ig) = .false. 827 828 else 828 watercaptag(ig) =.true.829 watercaptag(ig) = .true. 829 830 endif 830 831 enddo 831 832 endif 832 endif !startphy_file 833 else 834 watercaptag(:) = .false. 835 endif ! of if (startphy_file) 833 836 834 837 if (paleoclimate) then -
trunk/LMDZ.MARS/libf/phymars/surfini_mod.F90
r3726 r3903 2 2 3 3 implicit 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 12 integer :: icelocationmode = 5 13 14 !$OMP THREADPRIVATE(icelocationmode) 4 15 5 16 !======================================================================= … … 45 56 ! longwatercaptag is watercaptag. Trick for some compilers 46 57 LOGICAL, DIMENSION(100000) :: longwatercaptag 47 48 ! There are 4 different modes for ice distribution:49 ! icelocationmode = 1 ---> based on data from surface.nc50 ! icelocationmode = 2 ---> directly predefined for GCM resolutions 32x24 or 64x4851 ! icelocationmode = 3 ---> based on logical relations for latitude and longitude52 ! icelocationmode = 4 ---> predefined 64x48 but usable with every53 ! resolution, and easily adaptable for dynamico54 ! For visualisation : > /u/tnalmd/bin/watercaps gcm_txt_output_file55 INTEGER,SAVE :: icelocationmode = 556 57 !$OMP THREADPRIVATE(icelocationmode)58 59 58 60 59 !in case icelocationmode == 1 … … 449 448 write(*,*)'icelocationmode = 5' 450 449 write(*,*)'Surfini: ice caps defined using startfi.nc data' 451 do ig=1,ngrid452 if(any(watercaptag_glo)) then453 else454 call locate_watercaptag(klon_glo,lati_glo,long_glo,watercaptag_glo)455 endif456 enddo457 458 ! write(*,*)'watercaptag_glo(:), ',watercaptag_glo(:)459 450 460 451 case default
Note: See TracChangeset
for help on using the changeset viewer.
