New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 14120 for NEMO/trunk/tests – NEMO

Changeset 14120 for NEMO/trunk/tests


Ignore:
Timestamp:
2020-12-07T15:20:39+01:00 (3 years ago)
Author:
acc
Message:

trunk fix of AGRIF compilation issues with icedyn_rhg_eap.F90. This solution renames the module-contained subroutine: rhg_cvg to rhg_cvg_eap. This is necessary because otherwise there is match with a routine with the same name in icedyn_rhg_evp and AGRIF wrongly inserts the sub-loop code from this version during preprocessing. It seems AGRIF is scope-unaware and the contents of the preprocessed file will depend on which of the two, same-named routines was processed first. This may explain the inconsistent compilation success or failure during the previous testing of this routine.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/trunk/tests/ICE_RHEO/MY_SRC/icedyn_rhg_eap.F90

    r14117 r14120  
    782782 
    783783         ! convergence test 
    784          IF( nn_rhg_chkcvg == 2 )   CALL rhg_cvg( kt, jter, nn_nevp, u_ice, v_ice, zu_ice, zv_ice ) 
     784         IF( nn_rhg_chkcvg == 2 )   CALL rhg_cvg_eap( kt, jter, nn_nevp, u_ice, v_ice, zu_ice, zv_ice ) 
    785785         ! 
    786786         !                                                ! ==================== ! 
     
    10171017 
    10181018 
    1019    SUBROUTINE rhg_cvg( kt, kiter, kitermax, pu, pv, pub, pvb ) 
     1019   SUBROUTINE rhg_cvg_eap( kt, kiter, kitermax, pu, pv, pub, pvb ) 
    10201020      !!---------------------------------------------------------------------- 
    1021       !!                    ***  ROUTINE rhg_cvg  *** 
     1021      !!                    ***  ROUTINE rhg_cvg_eap  *** 
    10221022      !! 
    10231023      !! ** Purpose :   check convergence of oce rheology 
     
    10441044         IF( lwp ) THEN 
    10451045            WRITE(numout,*) 
    1046             WRITE(numout,*) 'rhg_cvg : ice rheology convergence control' 
     1046            WRITE(numout,*) 'rhg_cvg_eap : ice rheology convergence control' 
    10471047            WRITE(numout,*) '~~~~~~~' 
    10481048         ENDIF 
     
    10861086      ENDIF 
    10871087 
    1088    END SUBROUTINE rhg_cvg 
     1088   END SUBROUTINE rhg_cvg_eap 
    10891089 
    10901090 
Note: See TracChangeset for help on using the changeset viewer.