Skip to content

Commit 114ed0c

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 6635f52 commit 114ed0c

2 files changed

Lines changed: 17 additions & 21 deletions

File tree

source/LAndI2Lstar.f

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20513,7 +20513,6 @@ SUBROUTINE LAndI2Lstar1(ntime,kext,options,sysaxes,iyearsat,
2051320513
c
2051420514
IMPLICIT NONE
2051520515
INCLUDE 'variables.inc'
20516-
INCLUDE 'ntime_max.inc'
2051720516
c
2051820517
c declare inputs
2051920518
INTEGER*4 kext,k_ext,k_l,options(5)
@@ -20602,12 +20601,12 @@ SUBROUTINE LAndI2Lstar_shell_splitting1(ntime,Nipa,kext,options,
2060220601
INTEGER*4 kext,k_ext,k_l,options(5),Nalp,Nipa
2060320602
PARAMETER (Nalp=25)
2060420603
INTEGER*4 ntime,sysaxes
20605-
INTEGER*4 iyearsat(ntime)
20606-
integer*4 idoy(ntime)
20607-
real*8 UT(ntime)
20608-
real*8 xIN1(ntime),xIN2(ntime),xIN3(ntime)
20604+
INTEGER*4 iyearsat(ntime_max)
20605+
integer*4 idoy(ntime_max)
20606+
real*8 UT(ntime_max)
20607+
real*8 xIN1(ntime_max),xIN2(ntime_max),xIN3(ntime_max)
2060920608
real*8 alpha(Nalp)
20610-
real*8 maginput(25,ntime)
20609+
real*8 maginput(25,ntime_max)
2061120610
c 1: Kp
2061220611
c 2: Dst
2061320612
c 3: dens
@@ -20621,16 +20620,16 @@ SUBROUTINE LAndI2Lstar_shell_splitting1(ntime,Nipa,kext,options,
2062120620
c
2062220621
c Declare internal variables
2062320622
INTEGER*4 option1,isat,IPA,ntime_tmp,sysaxesOUT,sysaxesIN
20624-
REAL*8 BLOCAL_tmp(ntime),BMIN_tmp(ntime)
20625-
REAL*8 XJ_tmp(ntime),MLT_tmp(ntime)
20626-
REAL*8 Lm_tmp(ntime),Lstar_tmp(ntime)
20623+
REAL*8 BLOCAL_tmp(ntime_max),BMIN_tmp(ntime_max)
20624+
REAL*8 XJ_tmp(ntime_max),MLT_tmp(ntime_max)
20625+
REAL*8 Lm_tmp(ntime_max),Lstar_tmp(ntime_max)
2062720626
REAL*8 xIN(3),xOUT(3),BL,BMIR,xGEO(3)
2062820627
REAL*8 maginput_tmp(25)
2062920628
INTEGER*4 imagin
2063020629
c
2063120630
c Declare output variables
20632-
REAL*8 BLOCAL(ntime_max,Nalp),BMIN(ntime)
20633-
REAL*8 XJ(ntime_max,Nalp),MLT(ntime)
20631+
REAL*8 BLOCAL(ntime_max,Nalp),BMIN(ntime_max)
20632+
REAL*8 XJ(ntime_max,Nalp),MLT(ntime_max)
2063420633
REAL*8 Lm(ntime_max,Nalp),Lstar(ntime_max,Nalp)
2063520634
C
2063620635
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
@@ -114,7 +114,6 @@ SUBROUTINE make_lstar1(ntime,kext,options,sysaxes,iyearsat,
114114
c
115115
IMPLICIT NONE
116116
INCLUDE 'variables.inc'
117-
INCLUDE 'ntime_max.inc'
118117
C
119118
c declare inputs
120119
INTEGER*4 kext,k_ext,k_l,options(5)
@@ -260,12 +259,12 @@ SUBROUTINE make_lstar_shell_splitting1(ntime,Nipa,kext,options,
260259
INTEGER*4 kext,k_ext,k_l,options(5),Nalp,Nipa
261260
PARAMETER (Nalp=25)
262261
INTEGER*4 ntime,sysaxes
263-
INTEGER*4 iyearsat(ntime)
264-
integer*4 idoy(ntime)
265-
real*8 UT(ntime)
266-
real*8 xIN1(ntime),xIN2(ntime),xIN3(ntime)
262+
INTEGER*4 iyearsat(ntime_max)
263+
integer*4 idoy(ntime_max)
264+
real*8 UT(ntime_max)
265+
real*8 xIN1(ntime_max),xIN2(ntime_max),xIN3(ntime_max)
267266
real*8 alpha(Nalp)
268-
real*8 maginput(25,ntime)
267+
real*8 maginput(25,ntime_max)
269268
c
270269
c
271270
c Declare internal variables
@@ -277,8 +276,8 @@ SUBROUTINE make_lstar_shell_splitting1(ntime,Nipa,kext,options,
277276
real*8 alti,lati,longi
278277
c
279278
c Declare output variables
280-
REAL*8 BLOCAL(ntime_max,Nalp),BMIN(ntime)
281-
REAL*8 XJ(ntime_max,Nalp),MLT(ntime)
279+
REAL*8 BLOCAL(ntime_max,Nalp),BMIN(ntime_max)
280+
REAL*8 XJ(ntime_max,Nalp),MLT(ntime_max)
282281
REAL*8 Lm(ntime_max,Nalp),Lstar(ntime_max,Nalp)
283282
C
284283
COMMON /magmod/k_ext,k_l,kint
@@ -392,7 +391,6 @@ SUBROUTINE Lstar_Phi1(ntime,whichinv,options,iyearsat,
392391
c
393392
IMPLICIT NONE
394393
INCLUDE 'variables.inc'
395-
INCLUDE 'ntime_max.inc'
396394
C
397395
c declare inputs
398396
INTEGER*4 whichinv,options(5)
@@ -1044,7 +1042,6 @@ SUBROUTINE GET_FIELD_MULTI(ntime,kext,options,sysaxes,iyearsat,
10441042
c
10451043
IMPLICIT NONE
10461044
INCLUDE 'variables.inc'
1047-
INCLUDE 'ntime_max.inc' ! include file created by make, defines ntime_max
10481045
C
10491046
c declare inputs
10501047
INTEGER*4 ntime

0 commit comments

Comments
 (0)