Ignore:
Timestamp:
Jan 23, 2025, 12:10:24 PM (7 hours ago)
Author:
jbclement
Message:

PEM:
Correction of typos and minor bugs.
JBC

Location:
trunk/LMDZ.COMMON/libf/evolution
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/libf/evolution/changelog.txt

    r3591 r3598  
    551551- Making allocation/deallocation systematically and more efficient in the main program.
    552552- Some cleanings (variables deletion, more adapted type/dimension, etc).
     553
     554== 23/01/2025 == JBC
     555Correction of typos and minor bugs.
  • trunk/LMDZ.COMMON/libf/evolution/comsoil_h_PEM.F90

    r3532 r3598  
    2222integer                             :: index_breccia      ! last index of the depth grid before having breccia
    2323integer                             :: index_bedrock      ! last index of the depth grid before having bedrock
    24 logical                             :: soil_pem           ! True by default, to run with the subsurface physic. Read in pem.def
     24logical                             :: soil_pem           ! True by default, to run with the subsurface physic. Read in run_PEM.def
    2525real                                :: ini_huge_h2oice    ! Initial value for huge reservoirs of H2O ice [kg/m^2]
    2626logical                             :: reg_thprop_dependp ! thermal properites of the regolith vary with the surface pressure
  • trunk/LMDZ.COMMON/libf/evolution/get_timelen_PCM_mod.F90

    r3591 r3598  
    4040call error_msg(NF90_OPEN(var,NF90_NOWRITE,fID),"open",var)
    4141
    42 ierr = nf90_inq_varid (fID, "temps", vID)
     42ierr = nf90_inq_varid(fID,"temps",vID)
    4343if (ierr /= nf90_noerr) then
    4444    write(*,*)"read_data_PCM: Le champ <temps> est absent"
    4545    write(*,*)"read_data_PCM: J essaie <time_counter>"
    46     ierr = nf90_inq_varid (fID, "time_counter", vID)
     46    ierr = nf90_inq_varid(fID,"time_counter",vID)
    4747    if (ierr /= nf90_noerr) then
    4848        write(*,*)"read_data_PCM: Le champ <time_counter> est absent"
    4949        write(*,*)"read_data_PCM: J essaie <Time>"
    50         ierr = nf90_inq_varid (fID,"Time",vID)
     50        ierr = nf90_inq_varid(fID,"Time",vID)
    5151        if (ierr /= nf90_noerr) then
    5252            write(*,*)"read_data_PCM: Le champ <Time> est absent"
    5353            write(*,*)trim(nf90_strerror(ierr))
    54             call abort_gcm("get_timelen_PCM", "", 1)
     54            call abort_gcm("get_timelen_PCM","",1)
    5555        endif
    5656        ! Get the length of the "Time" dimension
  • trunk/LMDZ.COMMON/libf/evolution/pem.F90

    r3591 r3598  
    204204! Variables for surface and soil
    205205real, dimension(:,:),     allocatable :: tsurf_avg                        ! Grid points x Slope field: Averaged surface temperature [K]
    206 real, dimension(:,:),     allocatable :: tsurf_dev                        ! ngrid x Slope x Times field: Surface temperature deviation [K]
     206real, dimension(:,:),     allocatable :: tsurf_dev                        ! Grid points x Slope field: Surface temperature deviation [K]
    207207real, dimension(:,:),     allocatable :: tsurf_avg_yr1                    ! Grid points x Slope field: Averaged surface temperature of first call of the PCM [K]
    208208real, dimension(:,:,:),   allocatable :: tsoil_avg                        ! Grid points x Soil x Slope field: Averaged Soil Temperature [K]
     
    990990enddo ! big time iteration loop of the pem
    991991deallocate(vmr_co2_PCM,q_co2_PEM_phys,q_h2o_PEM_phys,delta_co2_adsorbed)
    992 deallocate(watersoil_density_PEM_avg,watersurf_density_avg,)
     992deallocate(watersoil_density_PEM_avg,watersurf_density_avg)
    993993deallocate(ps_timeseries,tsoil_PEM_timeseries,watersoil_density_PEM_timeseries)
    994994deallocate(co2ice_disappeared,delta_h2o_adsorbed,delta_h2o_icetablesublim)
  • trunk/LMDZ.COMMON/libf/evolution/read_data_PCM_mod.F90

    r3591 r3598  
    8080call error_msg(NF90_OPEN(filename1,NF90_NOWRITE,fID),"open",filename1)
    8181
    82 ! Compute averages over the year for each point
    83 write(*,*) "Computing the average of tsurf..."
     82! Download the data from the file
    8483if (nslope == 1) then ! There is no slope
    8584    call get_var3("co2ice",co2_ice_slope_dyn(:,:,1,:))
     
    289288A = (1./m_co2 - 1./m_noco2)
    290289B = 1./m_noco2
    291 do i = 1,iim + 1
     290do i = 1,iim_input + 1
    292291    do j = 1,jjm_input + 1
    293292        do t = 1, timelen
Note: See TracChangeset for help on using the changeset viewer.