Changeset 2939 for trunk


Ignore:
Timestamp:
Apr 14, 2023, 11:36:06 AM (2 years ago)
Author:
llange
Message:

PEM
Fixing bug when reading the mass adsorded written in startfi_PEM (only the mass for islope = 1 was read)
I've cleaned some print * I've introduced in my last commit
LL

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

Legend:

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

    r2895 r2939  
    230230   m_h2o_completesoil(:,:,:) = dm_h2o_regolith_slope(:,:,:)
    231231
    232 
    233232 RETURN
    234233#endif
  • trunk/LMDZ.COMMON/libf/evolution/evol_h2o_ice_s_mod_slope.F90

    r2937 r2939  
    8080    print *, "Tendencies on ice increasing=", pos_tend
    8181    print *, "This can be due to the absence of water ice in the PCM run!!"
    82     print *,cell_area,qsurf(:,:),ngrid,STOPPING
    83       call criterion_waterice_stop(cell_area,1.,qsurf(:,:)*0.,STOPPING,ngrid,qsurf(:,:)*0.)
    84       do i=1,ngrid
    85          do islope=1,nslope
    86           new_tendencies(i,islope)=0
    87          enddo
    88       enddo
     82    call criterion_waterice_stop(cell_area,1.,qsurf(:,:)*0.,STOPPING,ngrid,qsurf(:,:)*0.)
     83    do i=1,ngrid
     84       do islope=1,nslope
     85         new_tendencies(i,islope)=0
     86       enddo
     87    enddo
    8988  endif
    9089
  • trunk/LMDZ.COMMON/libf/evolution/pem.F90

    r2937 r2939  
    749749! II.a.1. Compute updated global pressure
    750750     print *, "Recomputing the new pressure..."
     751
    751752     do i=1,ngrid
    752753       do islope=1,nslope
     
    754755      enddo
    755756     enddo
    756        print *, 'Global average pressure old time step',global_ave_press_old
     757     print *, 'Global average pressure old time step',global_ave_press_old
    757758
    758759     call WRITEDIAGFI(ngrid,'ps_ave','Global average pressure','Pa',0,global_ave_press_new)
  • trunk/LMDZ.COMMON/libf/evolution/pemetat0.F90

    r2937 r2939  
    9090
    9191write(*,*)'Is start PEM?',startpem_file
    92 startpem_file = .true.
    9392
    9493!1. Run
     
    275274
    276275!4. CO2 & H2O Adsorption
     276
    277277 if(adsorption_pem) then
    278278  DO islope=1,nslope
     
    281281    if((.not.found)) then
    282282       m_co2_regolith_phys(:,:,:) = 0.
     283       exit
    283284    endif
    284     exit
     285   
    285286  ENDDO
    286287
    287288  DO islope=1,nslope
    288289   write(num,fmt='(i2.2)') islope
    289    call get_field("mh2o_reg_ads_slope"//num,m_co2_regolith_phys(:,:,islope),found2)
     290   call get_field("mh2o_reg_ads_slope"//num,m_h2o_regolith_phys(:,:,islope),found2)
    290291    if((.not.found2)) then
    291292       m_h2o_regolith_phys(:,:,:) = 0.
     293      exit
    292294    endif
    293     exit
     295   
    294296  ENDDO
    295297
  • trunk/LMDZ.COMMON/libf/evolution/update_soil.F90

    r2937 r2939  
    4444   regolith_inertia(:,islope) = inertiedat_PEM(:,1)
    4545   do ig = 1,ngrid
    46       write(*,*) 'ig,islope',ig,islope,tendencies_waterice(ig,islope),waterice(ig,islope)
    4746      if((tendencies_waterice(ig,islope).lt.-1e-5).and.(waterice(ig,islope).eq.0)) then
    4847              regolith_inertia(ig,islope) = inertie_averaged
Note: See TracChangeset for help on using the changeset viewer.