Ignore:
Timestamp:
Nov 24, 2023, 4:16:37 PM (13 months ago)
Author:
llange
Message:

Mars PCM
Bug fix in newstart, "perenial_co2ice" has been changed to "perennial_co2ice"
in -r3010 in the PCM without being changed in newstart. It is now corrected.
LL

Location:
trunk/LMDZ.MARS/libf/dynphy_lonlat/phymars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/dynphy_lonlat/phymars/newstart.F

    r3118 r3139  
    3131     &                     emis, hmons, summit, base, watercap,
    3232     &               ini_surfdat_h_slope_var,end_surfdat_h_slope_var,
    33      &               perenial_co2ice
     33     &               perennial_co2ice
    3434      use comsoil_h, only: inertiedat, inertiesoil,layer, mlayer,
    3535     & nsoilmx,tsoil,ini_comsoil_h_slope_var, end_comsoil_h_slope_var,
     
    198198      REAL,ALLOCATABLE :: qsurf_old_slope(:,:,:) ! tracer on surface (e.g. kg.m-2)
    199199      REAL,ALLOCATABLE :: watercap_old_slope(:,:) ! Surface water ice (kg.m-2)
    200       REAL,ALLOCATABLE :: perenial_co2_old_slope(:,:) ! Surface water ice (kg.m-2)
     200      REAL,ALLOCATABLE :: perennial_co2_old_slope(:,:) ! Surface water ice (kg.m-2)
    201201      REAL,ALLOCATABLE :: tsoil_old_slope(:,:,:)
    202202      REAL,ALLOCATABLE :: inertiesoil_old_slope(:,:,:)
     
    445445     &   date,tsurf,tsoil,inertiesoil,albedo,emis,q2,
    446446     &   t,ucov,vcov,ps,teta,phisold_newgrid,q,qsurf,
    447      &   tauscaling,totcloudfrac,surfith,nid,watercap,perenial_co2ice)
     447     &   tauscaling,totcloudfrac,surfith,nid,watercap,perennial_co2ice)
    448448        write(*,*) "OK, read start_archive file"
    449449        ! copy soil thermal inertia
     
    467467     &        nqsoil,day_ini,time,tsurf,tsoil,albedo,emis,
    468468     &        q2,qsurf,qsoil,tauscaling,totcloudfrac,
    469      &        wstar,watercap,perenial_co2ice,
     469     &        wstar,watercap,perennial_co2ice,
    470470     &        def_slope,def_slope_mean,subslope_dist)
    471471       
     
    18041804        allocate(emis_old_slope(ngridmx,nslope_old))   
    18051805        allocate(watercap_old_slope(ngridmx,nslope_old))
    1806         allocate(perenial_co2_old_slope(ngridmx,nslope_old))
     1806        allocate(perennial_co2_old_slope(ngridmx,nslope_old))
    18071807
    18081808
     
    18111811        emis_old_slope(:,:)=emis(:,:)
    18121812        watercap_old_slope(:,:)=watercap(:,:)
    1813         perenial_co2_old_slope(:,:) = perenial_co2ice(:,:)
     1813        perennial_co2_old_slope(:,:) = perennial_co2ice(:,:)
    18141814        call end_surfdat_h_slope_var
    18151815        call ini_surfdat_h_slope_var(ngridmx,nqtot,nslope_new)
     
    18421842             emis(:,islope)=emis_old_slope(:,1)
    18431843             watercap(:,islope)=watercap_old_slope(:,1)
    1844              perenial_co2ice(:,islope)= perenial_co2_old_slope(:,1)
     1844             perennial_co2ice(:,islope)= perennial_co2_old_slope(:,1)
    18451845             tsoil(:,:,islope)=tsoil_old_slope(:,:,1)
    18461846             albedo(:,:,islope)=albedo_old_slope(:,:,1)
     
    18531853             emis(:,1)=emis_old_slope(:,iflat)
    18541854             watercap(:,1)=watercap_old_slope(:,iflat)
    1855              perenial_co2ice(:,islope)= perenial_co2_old_slope(:,iflat)
     1855             perennial_co2ice(:,islope)=
     1856     &                 perennial_co2_old_slope(:,iflat)
    18561857             tsoil(:,:,1)=tsoil_old_slope(:,:,iflat)
    18571858             albedo(:,:,1)=albedo_old_slope(:,:,iflat)
     
    18641865             emis(:,islope)=emis_old_slope(:,iflat)
    18651866             watercap(:,islope)=watercap_old_slope(:,iflat)
    1866              perenial_co2ice(:,islope)= perenial_co2_old_slope(:,iflat)
     1867             perennial_co2ice(:,islope)=
     1868     &                 perennial_co2_old_slope(:,iflat)
    18671869             tsoil(:,:,islope)=tsoil_old_slope(:,:,iflat)
    18681870             albedo(:,:,islope)=albedo_old_slope(:,:,iflat)
     
    18761878             emis(:,islope)=emis_old_slope(:,iflat)
    18771879             watercap(:,islope)=watercap_old_slope(:,iflat)
    1878              perenial_co2ice(:,islope)= perenial_co2_old_slope(:,iflat)
     1880             perennial_co2ice(:,islope)=
     1881     &                 perennial_co2_old_slope(:,iflat)
    18791882             tsoil(:,:,islope)=tsoil_old_slope(:,:,iflat)
    18801883             albedo(:,:,islope)=albedo_old_slope(:,:,iflat)
     
    20122015     &              emis,q2,qsurf,qsoil,
    20132016     &              tauscaling,totcloudfrac,wstar,watercap,
    2014      &              perenial_co2ice)
     2017     &              perennial_co2ice)
    20152018
    20162019c=======================================================================
  • trunk/LMDZ.MARS/libf/dynphy_lonlat/phymars/start2archive.F

    r3118 r3139  
    6868      REAL,ALLOCATABLE :: tsoil(:,:,:) ! Soil temperature
    6969      REAL,ALLOCATABLE :: watercap(:,:)        ! h2o ice layer
    70       REAL,ALLOCATABLE :: perenial_co2ice(:,:) ! co2 ice layer
     70      REAL,ALLOCATABLE :: perennial_co2ice(:,:) ! co2 ice layer
    7171      REAL :: tauscaling(ngridmx) ! dust conversion factor
    7272      REAL:: totcloudfrac(ngridmx) ! sub-grid cloud fraction
     
    8888      REAL ithS(ip1jmp1,nsoilmx) ! Soil Thermal Inertia for inertie dat (present day climate)
    8989      REAL,ALLOCATABLE :: watercapS(:,:)
    90       REAL,ALLOCATABLE :: perenial_co2iceS(:,:)
     90      REAL,ALLOCATABLE :: perennial_co2iceS(:,:)
    9191      REAL,ALLOCATABLE :: watercaptag_tmp(:)
    9292      REAL,ALLOCATABLE :: watercaptagS(:)
     
    172172      allocate(tsoil(ngridmx,nsoilmx,nslope))
    173173      allocate(watercap(ngridmx,nslope))
    174       allocate(perenial_co2ice(ngridmx,nslope))
     174      allocate(perennial_co2ice(ngridmx,nslope))
    175175      allocate(emis(ngridmx,nslope))
    176176      allocate(albedo(ngridmx,2,nslope))
     
    181181      allocate(inertiesoilS(ip1jmp1,nsoilmx,nslope))
    182182      allocate(watercapS(ip1jmp1,nslope))
    183       allocate(perenial_co2iceS(ip1jmp1,nslope))
     183      allocate(perennial_co2iceS(ip1jmp1,nslope))
    184184      allocate(watercaptagS(ip1jmp1))
    185185      allocate(emisS(ip1jmp1,nslope))
     
    189189      CALL phyetat0(fichnom,0,Lmodif,nsoilmx,ngridmx,llm,nqtot,nqsoil,
    190190     &      day_ini_fi,timefi,tsurf,tsoil,albedo,emis,q2,qsurf,qsoil,
    191      &      tauscaling,totcloudfrac,wstar,watercap,perenial_co2ice,
     191     &      tauscaling,totcloudfrac,wstar,watercap,perennial_co2ice,
    192192     &      def_slope, def_slope_mean,subslope_dist)
    193193
     
    275275c tsurf --> tsurfS
    276276c watercap --> watercapS
    277 c perenial_co2ice --> perenial_co2iceS
     277c perennial_co2ice --> perennial_co2iceS
    278278c tsoil --> tsoilS
    279279c inertiesoil --> inertiesoilS
     
    293293      call gr_fi_dyn(1,ngridmx,iip1,jjp1,watercap(:,islope),
    294294     &    watercapS(:,islope))
    295       call gr_fi_dyn(1,ngridmx,iip1,jjp1,perenial_co2ice(:,islope),
    296      &    perenial_co2iceS(:,islope))
     295      call gr_fi_dyn(1,ngridmx,iip1,jjp1,perennial_co2ice(:,islope),
     296     &    perennial_co2iceS(:,islope))
    297297      call gr_fi_dyn(nsoilmx,ngridmx,iip1,jjp1,tsoil(:,:,islope),
    298298     &    tsoilS(:,:,islope))
     
    425425      call write_archive(nid,ntime,'watercap','couche de glace h2o',
    426426     &  'kg/m2',2,watercapS)
    427       call write_archive(nid,ntime,'perenial_co2ice',
    428      &'couche de glace co2','kg/m2',2,perenial_co2iceS)
     427      call write_archive(nid,ntime,'perennial_co2ice',
     428     &'couche de glace co2','kg/m2',2,perennial_co2iceS)
    429429      call write_archive(nid,ntime,'watercaptag','couche de glace h2o',
    430430     &  'kg/m2',2,watercaptagS)
  • trunk/LMDZ.MARS/libf/dynphy_lonlat/phymars/start2archive_SSO.F

    r2999 r3139  
    6969      REAL,ALLOCATABLE :: tsoil(:,:,:) ! Soil temperature
    7070      REAL,ALLOCATABLE :: watercap(:,:)        ! h2o ice layer
    71       REAL,ALLOCATABLE :: perenial_co2ice(:,:)        ! co2 ice layer
     71      REAL,ALLOCATABLE :: perennial_co2ice(:,:)        ! co2 ice layer
    7272      REAL tauscaling(ngridmx) ! dust conversion factor
    7373      REAL totcloudfrac(ngridmx) ! sub-grid cloud fraction
     
    9292      REAL ithS(ip1jmp1,nsoilmx) ! Soil Thermal Inertia for inertie dat (present day climate)
    9393      REAL,ALLOCATABLE :: watercapS(:,:)
    94       REAL,ALLOCATABLE :: perenial_co2iceS(:,:)        ! co2 ice layer
     94      REAL,ALLOCATABLE :: perennial_co2iceS(:,:)        ! co2 ice layer
    9595      REAL tauscalingS(ip1jmp1)
    9696      REAL totcloudfracS(ip1jmp1)
     
    186186      allocate(tsoil(ngridmx,nsoilmx,nslope))
    187187      allocate(watercap(ngridmx,nslope))
    188       allocate(perenial_co2ice(ngridmx,nslope))
     188      allocate(perennial_co2ice(ngridmx,nslope))
    189189      allocate(emis(ngridmx,nslope))
    190190      allocate(albedo(ngridmx,2,nslope))
     
    195195      allocate(inertiesoilS(ip1jmp1,nsoilmx,nslope))
    196196      allocate(watercapS(ip1jmp1,nslope))
    197       allocate(perenial_co2iceS(ngridmx,nslope))
     197      allocate(perennial_co2iceS(ngridmx,nslope))
    198198      allocate(emisS(ip1jmp1,nslope))
    199199      allocate(albedoS(ip1jmp1,nslope))
     
    202202      CALL phyetat0 (fichnom,0,Lmodif,nsoilmx,ngridmx,llm,nqtot,
    203203     &      day_ini_fi,timefi,tsurf,tsoil,albedo,emis,q2,qsurf,
    204      &      tauscaling,totcloudfrac,wstar,watercap,perenial_co2ice,
     204     &      tauscaling,totcloudfrac,wstar,watercap,perennial_co2ice,
    205205     &      def_slope,def_slope_mean,subslope_dist)
    206206
     
    300300      call gr_fi_dyn(1,ngridmx,iip1,jjp1,watercap(:,islope),
    301301     &    watercapS(:,islope))
    302       call gr_fi_dyn(1,ngridmx,iip1,jjp1,perenial_co2ice(:,islope),
    303      &    perenial_co2iceS(:,islope))
     302      call gr_fi_dyn(1,ngridmx,iip1,jjp1,perennial_co2ice(:,islope),
     303     &    perennial_co2iceS(:,islope))
    304304      call gr_fi_dyn(nsoilmx,ngridmx,iip1,jjp1,tsoil(:,:,islope),
    305305     &    tsoilS(:,:,islope))
     
    433433      call write_archive(nid,ntime,'watercap','couche de glace h2o',
    434434     &  'kg/m2',2,watercapS)
    435       call write_archive(nid,ntime,'perenial_co2ice','couche de glace co2',
    436      &  'kg/m2',2,perenial_co2iceS)
     435      call write_archive(nid,ntime,'perennial_co2ice','couche de glace co2',
     436     &  'kg/m2',2,perennial_co2iceS)
    437437      call write_archive(nid,ntime,'tauscaling',
    438438     &  'dust conversion factor',' ',2,tauscalingS)
Note: See TracChangeset for help on using the changeset viewer.