Ignore:
Timestamp:
Jan 20, 2026, 9:49:28 AM (38 hours ago)
Author:
tbertrand
Message:

PLUTO PCM:
Fix in newstart to allow topography to remain unchanged when using startarchive.nc
TB

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.PLUTO/libf/dynphy_lonlat/phypluto/newstart.F

    r3970 r4025  
    544544        write(*,*) 'Please choose the relevant file',
    545545     &  ' (e.g. "surface_pluto.nc")'
    546         write(*,*) ' or "none" to not use any (and set planetary'
    547         write(*,*) '  albedo and surface thermal inertia)'
     546        write(*,*) ' or "none" to not use any'
    548547        read(*,fmt='(a50)') surfacefile
    549548
     
    552551          CALL datareadnc(relief,surfacefile,phis,alb,surfith,
    553552     &          zmeaS,zstdS,zsigS,zgamS,ztheS)
     553
     554          CALL gr_dyn_fi(1,iip1,jjp1,ngridmx,phis,phisfi)
     555
    554556        else
    555         ! specific case when not using a "surface.nc" file
    556           phis(:,:)=0
     557          ! specific case when not using a "surface.nc" file
    557558          zmeaS(:,:)=0
    558559          zstdS(:,:)=0
     
    562563          n2fracfi(:)=1.
    563564
    564           write(*,*) "Enter value of albedo of the bare ground:"
    565           write(*,*) "Might not count"
    566           read(*,*) alb(1,1)
    567           alb(:,:)=alb(1,1)
    568 
    569           write(*,*) "Enter value of thermal inertia of soil:"
    570           write(*,*) "Might not count"
    571           read(*,*) surfith(1,1)
    572           surfith(:,:)=surfith(1,1)
     565          write(*,*)'OK : skipping topography change'
    573566
    574567        endif ! of if (surfacefile.ne."none")
    575568
    576         CALL gr_dyn_fi(1,iip1,jjp1,ngridmx,phis,phisfi)
    577         CALL gr_dyn_fi(1,iip1,jjp1,ngridmx,surfith,surfithfi)
    578         CALL gr_dyn_fi(1,iip1,jjp1,ngridmx,alb,albfi) ! erased at next step
     569        !CALL gr_dyn_fi(1,iip1,jjp1,ngridmx,surfith,surfithfi)
     570        !CALL gr_dyn_fi(1,iip1,jjp1,ngridmx,alb,albfi) ! erased at next step
    579571        CALL gr_dyn_fi(1,iip1,jjp1,ngridmx,zmeaS,zmea)
    580572        CALL gr_dyn_fi(1,iip1,jjp1,ngridmx,zstdS,zstd)
     
    598590
    599591        write(*,*) "OK, read start_archive file"
    600         ! copy soil thermal inertia
     592
     593        ! copy topography
     594        phis(:,:)=phisold_newgrid(:,:)
     595        CALL gr_dyn_fi(1,iip1,jjp1,ngridmx,phis,phisfi)
     596
     597        ! copy soil thermal inertia
    601598        ithfi(:,:)=inertiedat(:,:)
    602         ! copy topo
    603         ! CALL gr_dyn_fi(1,iip1,jjp1,ngridmx,phisold_newgrid,phisfi)
    604         ! Initialize n2frac
    605         n2fracfi(1:ngridmx)=1.
    606599
    607600        ierr= NF_CLOSE(nid)
Note: See TracChangeset for help on using the changeset viewer.