@@ -9,7 +9,7 @@ MODULE ModSceIono
99
1010 contains
1111! ==================================================================================================
12- subroutine ionosphere_fluxes (iModel )
12+ subroutine ionosphere_fluxes (iS , iModel )
1313
1414 ! \
1515 ! Combine the diffusive and discrete precipitating fluxes
@@ -26,7 +26,7 @@ subroutine ionosphere_fluxes(iModel)
2626
2727 implicit none
2828
29- integer , intent (in ) :: iModel
29+ integer , intent (in ) :: iS, iModel
3030 real (DP), allocatable :: discrete_ef(:,:), discrete_ae(:,:), &
3131 diffuse_ef(:,:), diffuse_ae(:,:)
3232 !- --------------------------------------------------------------------------
@@ -76,7 +76,7 @@ subroutine ionosphere_fluxes(iModel)
7676 end subroutine ionosphere_fluxes
7777
7878! ==================================================================================================
79- subroutine ionosphere_conductance (Sigma0 , SigmaH , SigmaP , SigmaThTh , SigmaThPs , &
79+ subroutine ionosphere_conductance (iS , Sigma0 , SigmaH , SigmaP , SigmaThTh , SigmaThPs , &
8080 SigmaPsPs , dSigmaThTh_dTheta , dSigmaThPs_dTheta , &
8181 dSigmaPsPs_dTheta , dSigmaThTh_dPsi , dSigmaThPs_dPsi , &
8282 dSigmaPsPs_dPsi , Eflux , Ave_E , Eflux_diff , Theta , Psi , nTheta , &
@@ -111,7 +111,7 @@ subroutine ionosphere_conductance(Sigma0, SigmaH, SigmaP, SigmaThTh, SigmaThPs,
111111
112112 implicit none
113113
114- integer , intent (in ) :: iModel
114+ integer , intent (in ) :: iS, iModel
115115 integer , intent (in ) :: nTheta, nPsi
116116 real (DP), intent (inout ) :: Sigma0(:,:), SigmaH(:,:), SigmaP(:,:), SigmaThTh(:,:), &
117117 SigmaThPs(:,:), SigmaPsPs(:,:), dSigmaThTh_dTheta(:,:), &
@@ -279,7 +279,7 @@ subroutine ionosphere_conductance(Sigma0, SigmaH, SigmaP, SigmaThTh, SigmaThPs,
279279 if (EFlux(i,j)* 1000 . > 0.001 .and. Ave_E(i,j)/ 2 .* 1000 . >1 )then
280280 call glow_aurora_conductance(idate, real (ut,DP), glat(i,j), glong(i,j), &
281281 SigmaP_Glow(i,j), SigmaH_Glow(i,j), &
282- EFlux(i,j)* 1000 ., Ave_E(i,j)/ 2 ., EFlux_Diff(i,j,:), EkeV(:), nE, &
282+ EFlux(i,j)* 1000 ., Ave_E(i,j)/ 2 ., EFlux_Diff(i,j,:), EkeV(iS, :), nE, &
283283 real (ap,DP), real (f107r,DP), real (f107p,DP),&
284284 real (f107a,DP), DoUseFullSpec, &
285285 zz(i,j,1 :nzGlow), ionrate(i,j,1 :nzGlow), eDen(i,j,1 :nzGlow), &
@@ -448,7 +448,7 @@ subroutine ionosphere_conductance(Sigma0, SigmaH, SigmaP, SigmaThTh, SigmaThPs,
448448 end subroutine ionosphere_conductance
449449
450450! ==================================================================================================
451- subroutine ionosphere_solver (Jr , SigmaThTh , SigmaThPs , SigmaPsPs , &
451+ subroutine ionosphere_solver (iS , Jr , SigmaThTh , SigmaThPs , SigmaPsPs , &
452452 dSigmaThTh_dTheta , dSigmaThPs_dTheta , &
453453 dSigmaPsPs_dTheta , dSigmaThTh_dPsi , &
454454 dSigmaThPs_dPsi , dSigmaPsPs_dPsi , &
@@ -516,6 +516,7 @@ subroutine ionosphere_solver(Jr, SigmaThTh, SigmaThPs, SigmaPsPs, &
516516
517517 implicit none
518518
519+ integer , intent (in ) :: iS
519520 real (DP), intent (inout ) :: Jr(:,:), SigmaThTh(:,:), SigmaThPs(:,:), SigmaPsPs(:,:), &
520521 dSigmaThTh_dTheta(:,:), dSigmaThPs_dTheta(:,:), &
521522 dSigmaPsPs_dTheta(:,:), dSigmaThTh_dPsi(:,:), &
0 commit comments