Changeset 3903


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

Location:
trunk/LMDZ.MARS
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/changelog.txt

    r3902 r3903  
    49554955More code tidying: turn geticecover, interp_line, orbite, simpleclouds, tabfi
    49564956and tcondco2 into modules.
     4957
     4958== 22/08/2025 == JBC
     4959Case '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  
    1919use surfdat_h,           only: phisfi, albedodat, z0, z0_default, zmea, zstd, &
    2020                               zsig, zgam, zthe, hmons, summit, base, watercaptag
     21use surfini_mod,         only: icelocationmode
    2122use iostart,             only: nid_start, open_startphy, close_startphy, &
    2223                               get_field, get_var, inquire_field,        &
     
    820821     write(*,*) "phyetat0: Failed loading <watercaptag> : ", &
    821822                          "<watercaptag> is set as defined by icelocationmode in surfini.F"
    822      watercaptag(:)=.false.
     823     icelocationmode = 4
    823824   else
    824825     do ig=1,ngrid
    825        if(watercaptag_tmp(ig).lt.0.5) then
    826           watercaptag(ig)=.false.
     826       if(watercaptag_tmp(ig) < 0.5) then
     827          watercaptag(ig) = .false.
    827828       else
    828           watercaptag(ig)=.true.
     829          watercaptag(ig) = .true.
    829830       endif
    830831     enddo
    831832   endif
    832 endif !startphy_file
     833else
     834    watercaptag(:) = .false.
     835endif ! of if (startphy_file)
    833836
    834837if (paleoclimate) then
  • 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.