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

Philippe 01/04/2022: bugfix: YAEROLONGNAMES allocation was made in a loop

parent 0289e2b3
No related branches found
No related tags found
No related merge requests found
...@@ -460,6 +460,8 @@ IF (LORILAM.AND.(NEQ .GT. 0)) THEN ...@@ -460,6 +460,8 @@ IF (LORILAM.AND.(NEQ .GT. 0)) THEN
NSV_AEREND_A(KMI)= ISV+NSV_AER_A(KMI) NSV_AEREND_A(KMI)= ISV+NSV_AER_A(KMI)
ISV = NSV_AEREND_A(KMI) ISV = NSV_AEREND_A(KMI)
NSV_CHEM_LIST_A(KMI) = NSV_CHEM_LIST_A(KMI) + NSV_AER_A(KMI) NSV_CHEM_LIST_A(KMI) = NSV_CHEM_LIST_A(KMI) + NSV_AER_A(KMI)
ALLOCATE( YAEROLONGNAMES(NSV_AER_A(KMI)) )
ELSE ELSE
NSV_AER_A(KMI) = 0 NSV_AER_A(KMI) = 0
! force First index to be superior to last index ! force First index to be superior to last index
...@@ -1069,8 +1071,6 @@ DO JSV = NSV_AERBEG_A(KMI), NSV_AEREND_A(KMI) ...@@ -1069,8 +1071,6 @@ DO JSV = NSV_AERBEG_A(KMI), NSV_AEREND_A(KMI)
WRITE( YNUM3, '( I3.3 )' ) JSV WRITE( YNUM3, '( I3.3 )' ) JSV
ALLOCATE( YAEROLONGNAMES(NSV_AER_A(KMI)) )
!Determine moment to add meaning of the ppv unit !Determine moment to add meaning of the ppv unit
JAER = JSV - NSV_AERBEG_A(KMI) + 1 JAER = JSV - NSV_AERBEG_A(KMI) + 1
IF ( ANY( JAER == [JP_CH_M0i, JP_CH_M0j] ) ) THEN IF ( ANY( JAER == [JP_CH_M0i, JP_CH_M0j] ) ) THEN
......
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