Changeset 2990


Ignore:
Timestamp:
Jul 6, 2023, 10:28:41 AM (18 months ago)
Author:
emillour
Message:

Mars PCM:
Minor fix in utility "expandstartfi": correctly handle the case of
polar mesh areas.
EM

Location:
trunk/LMDZ.MARS
Files:
2 edited

Legend:

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

    r2988 r2990  
    40864086(ngrid,nlay) where conducted within big (ngrid,nlay) loop. Two occurrences :
    40874087initialization of zq0 and preventing negative tracers.
     4088
     4089== 06/07/2023 == EM
     4090Minor fix in utility "expandstartfi": correctly handle the case of
     4091polar mesh areas.
  • trunk/LMDZ.MARS/util/expandstartfi.F90

    r2975 r2990  
    486486   
    487487    ! "convert" from surf_field(:) to out_surf_field(:,:)
    488     do i=1,lonlen
     488    if (trim(varname)=="area") then
     489     ! Very specific handling of mesh area at the poles
     490     ! which need to be split along all longitudes
     491     do i=1,lonlen
     492      out_surf_field(i,1)=surf_field(1)/(lonlen-1)
     493      out_surf_field(i,latlen)=surf_field(physical_points)/(lonlen-1)
     494     enddo   
     495    else ! All other variables
     496     do i=1,lonlen
    489497      out_surf_field(i,1)=surf_field(1) ! North Pole
    490498      out_surf_field(i,latlen)=surf_field(physical_points) ! South Pole
    491     enddo
     499     enddo
     500    endif ! of if (trim(varname)=="area")
    492501    do j=2,latlen-1
    493502      ig0=1+(j-2)*(lonlen-1)
Note: See TracChangeset for help on using the changeset viewer.