Changeset 5815


Ignore:
Timestamp:
Sep 17, 2025, 10:43:22 AM (18 hours ago)
Author:
rkazeroni
Message:

For GPU porting of alpale routine:

  • Change SAVE attribute of constant variables to PARAMETER to avoid threads sync issues
  • Add "horizontal" comment to specify possible names of horizontal variables
File:
1 edited

Legend:

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

    r5390 r5815  
    11! Contains the alpale subroutine, as well as the old content from alpale.h
     2!$gpum horizontal klon
    23
    34MODULE alpale_mod
     
    7879    INTEGER :: i, k
    7980    REAL, DIMENSION(klon) :: www
    80     REAL, SAVE :: ale_max = 1000.
    81     REAL, SAVE :: alp_max = 2.
    82     CHARACTER*20 modname
    83     CHARACTER*80 abort_message
    84 
    85 
    86     !$OMP THREADPRIVATE(ale_max,alp_max)
     81    REAL, PARAMETER :: ale_max = 1000.
     82    REAL, PARAMETER :: alp_max = 2.
     83    CHARACTER (LEN=20), PARAMETER :: modname = 'alpale'
     84    CHARACTER (LEN=80) :: abort_message
    8785
    8886    ! Calcul de l'energie disponible ALE (J/kg) et de la puissance
Note: See TracChangeset for help on using the changeset viewer.