Ignore:
Timestamp:
Dec 17, 2025, 7:33:39 PM (4 weeks ago)
Author:
yann meurdesoif
Message:

Separate pbl_surface into 3 subroutines for GPU port

pbl_surface_uncompress_pre : prepare computation for sub subsurface before compressing
pbl_surface_subsrf : each sub-surface is called one after other (horizontal = knon)
pbl_surface_uncompress_post : sub-surface are uncompressed, computation is done on whole domain (horizontal = klon)

pbl_surface_main becomes the driver, calling pbl_surface_uncompress_pre, and then looping under sub-surface (and calling pbl_surface_subsrf) and then calling pbl_surface_uncompress_post.

merge of commit r5868

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/phylmd/albedo.f90

    r5894 r5942  
    88CONTAINS
    99
    10   SUBROUTINE alboc(rjour, rlat, albedo)
    11     USE dimphy
     10  SUBROUTINE alboc(klon, rjour, rlat, albedo)
    1211    USE clesphys_mod_h
    1312    USE orbite_mod, ONLY: orbite
     
    2322    ! albedo (out,R): albedo obtenu (de 0 a 1)
    2423    ! ======================================================================
    25 
     24    INTEGER, INTENT(IN) :: klon
    2625    INTEGER npts ! il controle la precision de l'integration
    2726    PARAMETER (npts=120) ! 120 correspond a l'interval 6 minutes
     
    123122  END SUBROUTINE alboc
    124123  ! =====================================================================
    125   SUBROUTINE alboc_cd(rmu0, albedo)
    126     USE dimphy
     124  SUBROUTINE alboc_cd(klon, rmu0, albedo)
    127125
    128126    ! Auteur(s): Z.X. Li (LMD/CNRS)
     
    137135    ! albedo (out): albedo de surface de l'ocean
    138136    ! ======================================================================
     137    INTEGER, INTENT(IN) :: klon
    139138    REAL, intent(in):: rmu0(klon)
    140139    real, intent(out):: albedo(klon)
Note: See TracChangeset for help on using the changeset viewer.