Changeset 2867 for trunk/LMDZ.GENERIC


Ignore:
Timestamp:
Jan 16, 2023, 4:47:07 PM (23 months ago)
Author:
jleconte
Message:

Small fixes to iniaerosol and physiq_mod

Location:
trunk/LMDZ.GENERIC/libf/phystd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.GENERIC/libf/phystd/iniaerosol.F

    r2831 r2867  
    3535     & allocate(i_rgcs_ice(aerogeneric))
    3636      ! Init of i_rgcs_ice
    37       i_rgcs_ice(:) =0.0
     37      i_rgcs_ice(:) =0
    3838      ia = 1
    3939      do iq=1,nqtot
  • trunk/LMDZ.GENERIC/libf/phystd/physiq_mod.F90

    r2865 r2867  
    478478! --------------------------------
    479479      if (firstcall) then
    480         call getin_p("check_physics_inputs", check_physics_inputs)
    481         call getin_p("check_physics_outputs", check_physics_outputs)
    482 
    483         ! Allocate saved arrays (except for 1D model, where this has already
    484         ! been done)
     480         call getin_p("check_physics_inputs", check_physics_inputs)
     481         call getin_p("check_physics_outputs", check_physics_outputs)
     482
     483         ! Allocate saved arrays (except for 1D model, where this has already
     484         ! been done)
    485485#ifndef MESOSCALE
    486         if (ngrid>1) call phys_state_var_init(nq)
     486         if (ngrid>1) call phys_state_var_init(nq)
    487487#endif
    488488
     
    511511
    512512#ifdef CPP_XIOS
    513         ! Initialize XIOS context
    514         write(*,*) "physiq: call wxios_context_init"
    515         CALL wxios_context_init
     513         ! Initialize XIOS context
     514         write(*,*) "physiq: call wxios_context_init"
     515         CALL wxios_context_init
    516516#endif
    517517
     
    525525                       rnat,pctsrf_sic,tslab, tsea_ice,sea_ice)
    526526#else
    527       emis(:)=0.0
    528       q2(:,:)=0.0
    529       qsurf(:,:)=0.0
    530       day_ini = pday
     527         day_ini = pday
    531528#endif
    532529
     
    557554!        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    558555         albedo(:,:)=0.0
    559           albedo_bareground(:)=0.0
    560           albedo_snow_SPECTV(:)=0.0
    561           albedo_co2_ice_SPECTV(:)=0.0
     556         albedo_bareground(:)=0.0
     557         albedo_snow_SPECTV(:)=0.0
     558         albedo_co2_ice_SPECTV(:)=0.0
    562559         call surfini(ngrid,nq,qsurf,albedo,albedo_bareground,albedo_snow_SPECTV,albedo_co2_ice_SPECTV)
    563560         
     
    25962593   comm_HR_DYN(1:ngrid,1:nlayer) = zdtdyn(1:ngrid,1:nlayer)
    25972594
    2598       if (turb_resolved) then
    2599         open(17,file='lsf.txt',form='formatted',status='old')
    2600         rewind(17)
    2601         DO l=1,nlayer
    2602           read(17,*) lsf_dt(l),lsf_dq(l)
    2603         ENDDO
    2604         close(17)
    2605         do ig=1,ngrid
    2606           if ((tracer).and.(water)) then
    2607            pdq(ig,:,igcm_h2o_vap) = pdq(ig,:,igcm_h2o_vap) + lsf_dq(:)
    2608           endif
    2609           pdt(ig,:) = pdt(ig,:) + lsf_dt(:)
    2610           comm_HR_DYN(ig,:) = lsf_dt(:)
    2611         enddo
    2612       endif
     2595!      if (turb_resolved) then
     2596!        open(17,file='lsf.txt',form='formatted',status='old')
     2597!        rewind(17)
     2598!        DO l=1,nlayer
     2599!          read(17,*) lsf_dt(l),lsf_dq(l)
     2600!        ENDDO
     2601!        close(17)
     2602!        do ig=1,ngrid
     2603!          if ((tracer).and.(water)) then
     2604!           pdq(ig,:,igcm_h2o_vap) = pdq(ig,:,igcm_h2o_vap) + lsf_dq(:)
     2605!          endif
     2606!          pdt(ig,:) = pdt(ig,:) + lsf_dt(:)
     2607!          comm_HR_DYN(ig,:) = lsf_dt(:)
     2608!        enddo
     2609!      endif
    26132610#endif
    26142611
Note: See TracChangeset for help on using the changeset viewer.