Skip to content

Commit d94a586

Browse files
committed
Removed unnecessary 'ntime_max.inc' includes. Put back 'ntime_max' array sizes on drift_shell routines inputs to be coherent with outputs.
1 parent 5be6f8a commit d94a586

2 files changed

Lines changed: 14 additions & 18 deletions

File tree

source/LAndI2Lstar.f

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20443,7 +20443,6 @@ SUBROUTINE LAndI2Lstar1(ntime,kext,options,sysaxes,iyearsat,
2044320443
c
2044420444
IMPLICIT NONE
2044520445
INCLUDE 'variables.inc'
20446-
INCLUDE 'ntime_max.inc'
2044720446
c
2044820447
c declare inputs
2044920448
INTEGER*4 kext,k_ext,k_l,options(5)
@@ -20532,12 +20531,12 @@ SUBROUTINE LAndI2Lstar_shell_splitting1(ntime,Nipa,kext,options,
2053220531
INTEGER*4 kext,k_ext,k_l,options(5),Nalp,Nipa
2053320532
PARAMETER (Nalp=25)
2053420533
INTEGER*4 ntime,sysaxes
20535-
INTEGER*4 iyearsat(ntime)
20536-
integer*4 idoy(ntime)
20537-
real*8 UT(ntime)
20538-
real*8 xIN1(ntime),xIN2(ntime),xIN3(ntime)
20534+
INTEGER*4 iyearsat(ntime_max)
20535+
integer*4 idoy(ntime_max)
20536+
real*8 UT(ntime_max)
20537+
real*8 xIN1(ntime_max),xIN2(ntime_max),xIN3(ntime_max)
2053920538
real*8 alpha(Nalp)
20540-
real*8 maginput(25,ntime)
20539+
real*8 maginput(25,ntime_max)
2054120540
c 1: Kp
2054220541
c 2: Dst
2054320542
c 3: dens
@@ -20560,8 +20559,8 @@ SUBROUTINE LAndI2Lstar_shell_splitting1(ntime,Nipa,kext,options,
2056020559
INTEGER*4 imagin
2056120560
c
2056220561
c Declare output variables
20563-
REAL*8 BLOCAL(ntime_max,Nalp),BMIN(ntime)
20564-
REAL*8 XJ(ntime_max,Nalp),MLT(ntime)
20562+
REAL*8 BLOCAL(ntime_max,Nalp),BMIN(ntime_max)
20563+
REAL*8 XJ(ntime_max,Nalp),MLT(ntime_max)
2056520564
REAL*8 Lm(ntime_max,Nalp),Lstar(ntime_max,Nalp)
2056620565
C
2056720566
c This method to compute L* is only available for IGRF + Olson-Pfitzer quiet

source/onera_desp_lib.f

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ SUBROUTINE make_lstar1(ntime,kext,options,sysaxes,iyearsat,
5151
c
5252
IMPLICIT NONE
5353
INCLUDE 'variables.inc'
54-
INCLUDE 'ntime_max.inc'
5554
C
5655
c declare inputs
5756
INTEGER*4 kext,k_ext,k_l,options(5)
@@ -173,12 +172,12 @@ SUBROUTINE make_lstar_shell_splitting1(ntime,Nipa,kext,options,
173172
INTEGER*4 kext,k_ext,k_l,options(5),Nalp,Nipa
174173
PARAMETER (Nalp=25)
175174
INTEGER*4 ntime,sysaxes
176-
INTEGER*4 iyearsat(ntime)
177-
integer*4 idoy(ntime)
178-
real*8 UT(ntime)
179-
real*8 xIN1(ntime),xIN2(ntime),xIN3(ntime)
175+
INTEGER*4 iyearsat(ntime_max)
176+
integer*4 idoy(ntime_max)
177+
real*8 UT(ntime_max)
178+
real*8 xIN1(ntime_max),xIN2(ntime_max),xIN3(ntime_max)
180179
real*8 alpha(Nalp)
181-
real*8 maginput(25,ntime)
180+
real*8 maginput(25,ntime_max)
182181
c
183182
c
184183
c Declare internal variables
@@ -190,8 +189,8 @@ SUBROUTINE make_lstar_shell_splitting1(ntime,Nipa,kext,options,
190189
real*8 alti,lati,longi
191190
c
192191
c Declare output variables
193-
REAL*8 BLOCAL(ntime_max,Nalp),BMIN(ntime)
194-
REAL*8 XJ(ntime_max,Nalp),MLT(ntime)
192+
REAL*8 BLOCAL(ntime_max,Nalp),BMIN(ntime_max)
193+
REAL*8 XJ(ntime_max,Nalp),MLT(ntime_max)
195194
REAL*8 Lm(ntime_max,Nalp),Lstar(ntime_max,Nalp)
196195
C
197196
COMMON /magmod/k_ext,k_l,kint
@@ -285,7 +284,6 @@ SUBROUTINE Lstar_Phi1(ntime,whichinv,options,iyearsat,
285284
c
286285
IMPLICIT NONE
287286
INCLUDE 'variables.inc'
288-
INCLUDE 'ntime_max.inc'
289287
C
290288
c declare inputs
291289
INTEGER*4 whichinv,options(5)
@@ -752,7 +750,6 @@ SUBROUTINE GET_FIELD_MULTI(ntime,kext,options,sysaxes,iyearsat,
752750
c
753751
IMPLICIT NONE
754752
INCLUDE 'variables.inc'
755-
INCLUDE 'ntime_max.inc' ! include file created by make, defines ntime_max
756753
C
757754
c declare inputs
758755
INTEGER*4 ntime

0 commit comments

Comments
 (0)