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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.