Skip to content
Snippets Groups Projects
Commit edd85e0d authored by WAUTELET Philippe's avatar WAUTELET Philippe
Browse files

Philippe 19/07/2023: small optimisation for INTERPOL_STATION_2D

parent 4c2dd8e9
No related branches found
No related tags found
No related merge requests found
!MNH_LIC Copyright 1994-2014 CNRS, Meteo-France and Universite Paul Sabatier !MNH_LIC Copyright 2008-2023 CNRS, Meteo-France and Universite Paul Sabatier
!MNH_LIC This is part of the Meso-NH software governed by the CeCILL-C licence !MNH_LIC This is part of the Meso-NH software governed by the CeCILL-C licence
!MNH_LIC version 1. See LICENSE, CeCILL-C_V1-en.txt and CeCILL-C_V1-fr.txt !MNH_LIC version 1. See LICENSE, CeCILL-C_V1-en.txt and CeCILL-C_V1-fr.txt
!MNH_LIC for details. version 1. !MNH_LIC for details. version 1.
!----------------------------------------------------------------- !-----------------------------------------------------------------
!--------------- special set of characters for RCS information ! Modifications:
!----------------------------------------------------------------- ! P. Wautelet 19/07/2023: INTERPOL_STATION_2D: small optimisation
! $Source$ $Revision$ $Date$
!----------------------------------------------------------------- !-----------------------------------------------------------------
!########################### !###########################
MODULE MODI_INTERPOL_STATION MODULE MODI_INTERPOL_STATION
...@@ -114,12 +113,11 @@ INTEGER, INTENT(IN) :: KJ ! the closest south-west grid point ...@@ -114,12 +113,11 @@ INTEGER, INTENT(IN) :: KJ ! the closest south-west grid point
REAL, INTENT(IN) :: PXHAT_GPS ! x positions of the GPS station REAL, INTENT(IN) :: PXHAT_GPS ! x positions of the GPS station
REAL, INTENT(IN) :: PYHAT_GPS ! y positions of the GPS station REAL, INTENT(IN) :: PYHAT_GPS ! y positions of the GPS station
REAL, INTENT(OUT) :: PSTAT_GPS ! value of the GPS parameter at the station REAL, INTENT(OUT) :: PSTAT_GPS ! value of the GPS parameter at the station
REAL, DIMENSION(SIZE(PGPS,1), SIZE(PGPS,2),1) :: ZFIELD1
REAL, DIMENSION(1) :: ZFIELD2 REAL, DIMENSION(1) :: ZFIELD2
! !
!-------------------------------------------------------------------------------! !-------------------------------------------------------------------------------!
ZFIELD1(:,:,1)=PGPS(:,:) CALL INTERPOL_STATION_3D( RESHAPE( PGPS,[ SIZE(PGPS,1), SIZE(PGPS,2), 1 ] ), PXHAT, PYHAT, KI, KJ, PXHAT_GPS, PYHAT_GPS, ZFIELD2 )
CALL INTERPOL_STATION_3D(ZFIELD1,PXHAT,PYHAT,KI,KJ,PXHAT_GPS,PYHAT_GPS,ZFIELD2) PSTAT_GPS = ZFIELD2(1)
PSTAT_GPS=ZFIELD2(1)
! !
END SUBROUTINE INTERPOL_STATION_2D END SUBROUTINE INTERPOL_STATION_2D
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment