Ignore:
Timestamp:
Dec 4, 2024, 4:04:54 PM (3 weeks ago)
Author:
jbclement
Message:

PEM:
Removing unecessary module/subroutine "interpol_TI_PEM2PCM.F90" + Few small corrections/cleanings.
JBC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/libf/evolution/pem.F90

    r3527 r3532  
    6262use compute_tend_mod,           only: compute_tend
    6363use info_PEM_mod,               only: info_PEM
    64 use interpol_TI_PEM2PCM_mod,    only: interpol_TI_PEM2PCM
    6564use nb_time_step_PCM_mod,       only: nb_time_step_PCM
    6665use pemetat0_mod,               only: pemetat0
     
    298297    call execute_command_line('squeue -j '//trim(job_id)//' -h --Format TimeLimit > tmp_cmdout.txt',cmdstat = cstat)
    299298    if (cstat /= 0) then
    300         call execute_command_line('qstat -f '//trim(job_id)//' | grep "Walltime" | awk ''{print $3}'' > tmp_cmdout.txt', cmdstat = cstat)
     299        call execute_command_line('qstat -f '//trim(job_id)//' | grep "Walltime" | awk ''{print $3}'' > tmp_cmdout.txt',cmdstat = cstat)
    301300        if (cstat > 0) then
    302301            error stop 'pem: command execution failed!'
     
    939938            do ig = 1,ngrid
    940939                do islope = 1,nslope
    941                     call dyn_ss_ice_m(icetable_depth(ig,islope),tsurf_avg(ig,islope),tsoil_PEM(ig,:,islope),nsoilmx_PEM,TI_PEM(ig,1,nslope),ps(ig),sum(q_h2o_PEM_phys(ig,:))/size(q_h2o_PEM_phys,2),ice_porefilling(ig,:,islope),porefill,ssi_depth)
     940                    call dyn_ss_ice_m(icetable_depth(ig,islope),tsurf_avg(ig,islope),tsoil_PEM(ig,:,islope),nsoilmx_PEM,TI_PEM(ig,1,nslope),ps(ig),(/sum(q_h2o_PEM_phys(ig,:))/size(q_h2o_PEM_phys,2)/),ice_porefilling(ig,:,islope),porefill,ssi_depth)
    942941                    icetable_depth(ig,islope) = ssi_depth
    943942                    ice_porefilling(ig,:,islope) = porefill
     
    961960            do ig = 1,ngrid
    962961                do islope = 1,nslope
    963                     do l = 1,nsoilmx_PEM 
     962                    do l = 1,nsoilmx_PEM
    964963                        if (l == 1) then
    965964                            totmassco2_adsorbded = totmassco2_adsorbded + co2_adsorbded_phys(ig,l,islope)*(layer_PEM(l))* &
     
    10081007                call writediagsoilpem(ngrid,'co2_ads_slope'//str2,'co2_ads','K',3,co2_adsorbded_phys(:,:,islope))
    10091008                call writediagsoilpem(ngrid,'h2o_ads_slope'//str2,'h2o_ads','K',3,h2o_adsorbded_phys(:,:,islope))
    1010             endif                       
     1009            endif
    10111010        endif
    10121011    enddo
     
    11011100! III_a.2 Tsoil update (for startfi)
    11021101if (soil_pem) then
    1103     call interpol_TI_PEM2PCM(ngrid,nslope,nsoilmx_PEM,nsoilmx,TI_PEM,inertiesoil)
     1102    inertiesoil = TI_PEM(:,:nsoilmx,:)
    11041103    tsoil = tsoil_PEM(:,1:nsoilmx,:) + tsoil_anom(:,:,:,timelen)
    11051104#ifndef CPP_STD
Note: See TracChangeset for help on using the changeset viewer.