Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Gyacomo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Antoine Cyril David Hoffmann
Gyacomo
Commits
639726e2
Commit
639726e2
authored
1 year ago
by
Antoine Cyril David Hoffmann
Browse files
Options
Downloads
Patches
Plain Diff
remove the kernel_i (useless variable)
parent
1115f416
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/numerics_mod.F90
+2
-29
2 additions, 29 deletions
src/numerics_mod.F90
with
2 additions
and
29 deletions
src/numerics_mod.F90
+
2
−
29
View file @
639726e2
...
...
@@ -4,7 +4,6 @@
MODULE
numerics
USE
prec_const
,
ONLY
:
xp
implicit
none
REAL
(
xp
),
PUBLIC
,
PROTECTED
,
ALLOCATABLE
,
DIMENSION
(:,:,:,:,:)
::
kernel_i
PUBLIC
::
build_dnjs_table
,
evaluate_kernels
,
evaluate_EM_op
PUBLIC
::
compute_lin_coeff
,
build_dv4Hp_table
...
...
@@ -78,7 +77,6 @@ SUBROUTINE evaluate_kernels
USE
grid
,
ONLY
:
local_na
,
local_nj
,
ngj
,
local_nkx
,
local_nky
,
local_nz
,
ngz
,
jarray
,
kp2array
,&
nzgrid
USE
species
,
ONLY
:
sigma2_tau_o2
USE
model
,
ONLY
:
ADIAB_I
,
tau_i
IMPLICIT
NONE
INTEGER
::
j_int
,
ia
,
eo
,
ikx
,
iky
,
iz
,
ij
REAL
(
xp
)
::
j_xp
,
y_
,
factj
,
sigma_i
...
...
@@ -105,29 +103,6 @@ DO ia = 1,local_na
ENDDO
ENDDO
!! ion kernels if we use adiabatic ions
IF
(
ADIAB_I
)
THEN
ALLOCATE
(
kernel_i
(
local_nj
+
ngj
,
local_nky
,
local_nkx
,
local_nz
+
ngz
,
nzgrid
))
DO
eo
=
1
,
nzgrid
DO
ikx
=
1
,
local_nkx
DO
iky
=
1
,
local_nky
DO
iz
=
1
,
local_nz
+
ngz
DO
ij
=
1
,
local_nj
+
ngj
j_int
=
jarray
(
ij
)
j_xp
=
REAL
(
j_int
,
xp
)
y_
=
sigma_i
**
2
*
tau_i
/
2._xp
*
kp2array
(
iky
,
ikx
,
iz
,
eo
)
IF
(
j_int
.LT.
0
)
THEN
!ghosts values
kernel_i
(
ij
,
iky
,
ikx
,
iz
,
eo
)
=
0._xp
ELSE
factj
=
REAL
(
GAMMA
(
j_xp
+1._xp
),
xp
)
kernel_i
(
ij
,
iky
,
ikx
,
iz
,
eo
)
=
y_
**
j_int
*
EXP
(
-
y_
)/
factj
ENDIF
ENDDO
ENDDO
ENDDO
ENDDO
ENDDO
ENDIF
! !! Correction term for the evaluation of the heat flux
! HF_phi_correction_operator(:,:,:) = &
! 2._xp * Kernel(ia,1,:,:,:,1) &
...
...
@@ -237,10 +212,8 @@ SUBROUTINE evaluate_ampere_op
sum_jpol
=
sum_jpol
+
q
(
ia
)
**
2
/(
sigma
(
ia
)
**
2
)
*
kernel
(
ia
,
in
+
ngj
/
2
,
iky
,
ikx
,
iz
+
ngz
/
2
,
iodd
)
**
2
! ... sum recursively ...
END
DO
END
DO
a
IF
(
ADIAB_I
)
THEN
! Add ion contribution on the polarisation
DO
in
=
1
,
total_nj
sum_jpol
=
sum_jpol
+
0
*
q_i
**
2
/(
sigma_i
**
2
)
*
kernel_i
(
in
+
ngj
/
2
,
iky
,
ikx
,
iz
+
ngz
/
2
,
iodd
)
**
2
! ... sum recursively ...
END
DO
IF
(
ADIAB_I
)
THEN
! no ion contribution
ENDIF
operator
=
2._xp
*
kperp2
*
hatB
(
iz
+
ngz
/
2
,
iodd
)
**
2
+
beta
*
sum_jpol
inv_ampere_op
(
iky
,
ikx
,
iz
)
=
1._xp
/
operator
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment