Skip to content

Commit 10137c7

Browse files
committed
Updated documentation to reflect the possibility to use variable length arrays
1 parent 069eb73 commit 10137c7

6 files changed

Lines changed: 95 additions & 114 deletions

File tree

docs/frames/frames.html

Lines changed: 75 additions & 86 deletions
Large diffs are not rendered by default.

source/CoordTrans.f

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@
2323
! SUBROUTINE coord_trans1: Generic coordinate transformation from one Earth or Heliospheric coordinate
2424
! system to another one
2525
! SUBROUTINE coord_trans_vec1: Generic coordinate transformation from one Earth or Heliospheric coordinate
26-
! system to another one (handle up to
27-
! ntime_max positions)
26+
! system to another one
2827
!
2928
!***************************************************************************************************
3029
C+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
@@ -2706,8 +2705,6 @@ SUBROUTINE coord_trans1(sysaxesIN,sysaxesOUT,iyr,idoy,
27062705
C REAL*8 xINV(3,nmax), xOUTV(3,nmax)
27072706
C INTEGER*4 numpoints
27082707
C
2709-
C As with all (most?) onera library calls, the maximum array size
2710-
C is limited to ntime_max elements
27112708
C Contributed by Timothy Guild, 2.2.07
27122709
C+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
27132710
C
@@ -2716,7 +2713,6 @@ SUBROUTINE coord_trans_vec1(ntime,sysaxesIN,sysaxesOUT,
27162713
& iyear,idoy,secs,xINV,xOUTV)
27172714

27182715
IMPLICIT NONE
2719-
INCLUDE 'ntime_max.inc'
27202716
INCLUDE 'variables.inc'
27212717

27222718
INTEGER*4 nmax,i,ntime, sysaxesIN, sysaxesOUT

source/LAndI2Lstar.f

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20669,7 +20669,6 @@ SUBROUTINE EmpiricalLstar1(ntime,kext,options,iyearsat,idoy,
2066920669
c
2067020670
IMPLICIT NONE
2067120671
INCLUDE 'variables.inc'
20672-
INCLUDE 'ntime_max.inc'
2067320672
c
2067420673
c declare inputs
2067520674
INTEGER*4 kext,options(5)

source/get_bderivs.f

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ SUBROUTINE GET_Bderivs(ntime,kext,options,sysaxes,dX,
3030
C diffB(i,j,t) = dB_i/dx_j for point t (t=1 to ntime)
3131
3232
IMPLICIT NONE
33-
INCLUDE 'ntime_max.inc' ! include file created by make, defines ntime_max
3433
INCLUDE 'variables.inc'
3534
C
3635
COMMON /magmod/k_ext,k_l,kint
@@ -133,7 +132,6 @@ SUBROUTINE compute_grad_curv_curl(ntime,Bgeo,Bmag,gradBmag,diffB,
133132
C computes gradient factors, curvature factors, and curl of B
134133
135134
IMPLICIT NONE
136-
INCLUDE 'ntime_max.inc' ! include file created by make, defines ntime_max
137135
INCLUDE 'variables.inc'
138136
139137
C all coordinates are in GEO reference frame

source/get_hemi.f

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ SUBROUTINE GET_HEMI_MULTI(ntime,kext,options,sysaxes,iyearsat,
9494
c calls get_hemi1 multiple times (ntime, <= ntime)
9595
IMPLICIT NONE
9696
INCLUDE 'variables.inc'
97-
INCLUDE 'ntime_max.inc' ! include file created by make, defines ntime_max
9897
9998
c declare inputs
10099
INTEGER*4 ntime,kext,options(5)

source/onera_desp_lib.f

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -172,12 +172,12 @@ SUBROUTINE make_lstar_shell_splitting1(ntime,Nipa,kext,options,
172172
INTEGER*4 kext,k_ext,k_l,options(5),Nalp,Nipa
173173
PARAMETER (Nalp=25)
174174
INTEGER*4 ntime,sysaxes
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)
175+
INTEGER*4 iyearsat(ntime)
176+
integer*4 idoy(ntime)
177+
real*8 UT(ntime)
178+
real*8 xIN1(ntime),xIN2(ntime),xIN3(ntime)
179179
real*8 alpha(Nalp)
180-
real*8 maginput(25,ntime_max)
180+
real*8 maginput(25,ntime)
181181
c
182182
c
183183
c Declare internal variables
@@ -190,8 +190,8 @@ SUBROUTINE make_lstar_shell_splitting1(ntime,Nipa,kext,options,
190190
c
191191
c Declare output variables
192192
REAL*8 BLOCAL(ntime_max,Nalp),BMIN(ntime_max)
193-
REAL*8 XJ(ntime_max,Nalp),MLT(ntime_max)
194-
REAL*8 Lm(ntime_max,Nalp),Lstar(ntime_max,Nalp)
193+
REAL*8 XJ(ntime_max,Nipa),MLT(ntime_max)
194+
REAL*8 Lm(ntime_max,Nipa),Lstar(ntime_max,Nipa)
195195
C
196196
COMMON /magmod/k_ext,k_l,kint
197197
COMMON /flag_L/Ilflag
@@ -1561,11 +1561,11 @@ subroutine msis86(ntime,whichAp,DOY,UT,ALT,LAT,LONG,F107A,
15611561
&F107,AP,Dens,Temp)
15621562
c
15631563
IMPLICIT NONE
1564-
INTEGER*4 ISW,ntime,whichAp,DOY(100000),I,J
1564+
INTEGER*4 ISW,ntime,whichAp,DOY(ntime),I,J
15651565
REAL*8 SV(25),STL
1566-
REAL*8 UT(100000),ALT(100000),LAT(100000),LONG(100000)
1567-
REAL*8 F107A(100000),F107(100000),AP(7,100000)
1568-
REAL*8 Dens(8,100000),Temp(2,100000),APin(7),D(8),T(2)
1566+
REAL*8 UT(ntime),ALT(ntime),LAT(ntime),LONG(ntime)
1567+
REAL*8 F107A(ntime),F107(ntime),AP(7,ntime)
1568+
REAL*8 Dens(8,ntime),Temp(2,ntime),APin(7),D(8),T(2)
15691569
c
15701570
COMMON/CSWI/ISW
15711571
DO I=1,25
@@ -1605,11 +1605,11 @@ subroutine msise90(ntime,whichAp,DOY,UT,ALT,LAT,LONG,F107A,
16051605
&F107,AP,Dens,Temp)
16061606
c
16071607
IMPLICIT NONE
1608-
INTEGER*4 ISW,ntime,whichAp,DOY(100000),I,J
1608+
INTEGER*4 ISW,ntime,whichAp,DOY(ntime),I,J
16091609
REAL*8 SV(25),STL
1610-
REAL*8 UT(100000),ALT(100000),LAT(100000),LONG(100000)
1611-
REAL*8 F107A(100000),F107(100000),AP(7,100000)
1612-
REAL*8 Dens(8,100000),Temp(2,100000),APin(7),D(8),T(2)
1610+
REAL*8 UT(ntime),ALT(ntime),LAT(ntime),LONG(ntime)
1611+
REAL*8 F107A(ntime),F107(ntime),AP(7,ntime)
1612+
REAL*8 Dens(8,ntime),Temp(2,ntime),APin(7),D(8),T(2)
16131613
c
16141614
COMMON/CSWI/ISW
16151615
DO I=1,25
@@ -1639,11 +1639,11 @@ subroutine nrlmsise00(ntime,whichAp,DOY,UT,ALT,LAT,LONG,F107A,
16391639
&F107,AP,Dens,Temp)
16401640
c
16411641
IMPLICIT NONE
1642-
INTEGER*4 ISW,ntime,whichAp,DOY(100000),I,J
1642+
INTEGER*4 ISW,ntime,whichAp,DOY(ntime),I,J
16431643
REAL*8 SV(25),STL
1644-
REAL*8 UT(100000),ALT(100000),LAT(100000),LONG(100000)
1645-
REAL*8 F107A(100000),F107(100000),AP(7,100000)
1646-
REAL*8 Dens(9,100000),Temp(2,100000),APin(7),D(8),T(2)
1644+
REAL*8 UT(ntime),ALT(ntime),LAT(ntime),LONG(ntime)
1645+
REAL*8 F107A(ntime),F107(ntime),AP(7,ntime)
1646+
REAL*8 Dens(9,ntime),Temp(2,ntime),APin(7),D(8),T(2)
16471647
c
16481648
COMMON/CSWI/ISW
16491649
DO I=1,25

0 commit comments

Comments
 (0)