Ignore:
Timestamp:
Sep 23, 2025, 4:32:02 PM (2 months ago)
Author:
rkazeroni
Message:

For GPU porting of call_cloud_optics_prop routine:

  • Add "horizontal" comment to specify possible names of horizontal variables
  • Put routine into module (speeds up source-to-source transformation)
  • Move declaration of variable with SAVE attribute outside of the compute routine to the module
  • Record event with a 2D "first" array instead of a scalar to enable GPU porting
  • Perform reduction on this "first" array and print (once) outside of the compute routine since this cannot be done on GPU in the current form
File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/phylmdiso/physiq_mod.F90

    r5827 r5828  
    5252    USE netcdf95, only: nf95_close
    5353    USE netcdf, only: nf90_fill_real     ! IM for NMC files
     54    USE nuage_mod, ONLY: nuage, diagcld1, diagcld2
    5455    USE open_climoz_m, only: open_climoz ! ozone climatology from a file
    5556    USE orografi_mod, ONLY: drag_noro, lift_noro, sugwd
     
    930931    EXTERNAL conema3  ! convect4.3
    931932    EXTERNAL hgardfou  ! verifier les temperatures
    932     EXTERNAL nuage     ! calculer les proprietes radiatives
     933    ! EXTERNAL nuage     ! calculer les proprietes radiatives
    933934    !C      EXTERNAL o3cm      ! initialiser l'ozone
    934935    EXTERNAL orbite    ! calculer l'orbite terrestre
     
    20272028          ENDIF
    20282029       ENDIF   
    2029        CALL cloud_optics_prop_ini(klon, prt_level, lunout, flag_aerosol, &
     2030       CALL cloud_optics_prop_ini(klon, klev, prt_level, lunout, flag_aerosol, &
    20302031                                  & ok_cdnc, bl95_b0, &
    20312032                                  & bl95_b1, latitude_deg, rpi, rg, rd, &
Note: See TracChangeset for help on using the changeset viewer.