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
29810769
Commit
29810769
authored
4 years ago
by
Antoine Cyril David Hoffmann
Browse files
Options
Downloads
Patches
Plain Diff
Bug solved on ghost PJ values
parent
8b8da7d1
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/grid_mod.F90
+15
-2
15 additions, 2 deletions
src/grid_mod.F90
with
15 additions
and
2 deletions
src/grid_mod.F90
+
15
−
2
View file @
29810769
...
@@ -12,6 +12,8 @@ MODULE grid
...
@@ -12,6 +12,8 @@ MODULE grid
INTEGER
,
PUBLIC
,
PROTECTED
::
pmaxi
=
1
! The maximal ion Hermite-moment computed
INTEGER
,
PUBLIC
,
PROTECTED
::
pmaxi
=
1
! The maximal ion Hermite-moment computed
INTEGER
,
PUBLIC
,
PROTECTED
::
jmaxi
=
1
! The maximal ion Laguerre-moment computed
INTEGER
,
PUBLIC
,
PROTECTED
::
jmaxi
=
1
! The maximal ion Laguerre-moment computed
INTEGER
,
PUBLIC
,
PROTECTED
::
maxj
=
1
! The maximal ion Laguerre-moment computed
INTEGER
,
PUBLIC
,
PROTECTED
::
maxj
=
1
! The maximal ion Laguerre-moment computed
INTEGER
,
PUBLIC
,
PROTECTED
::
p_damp
=
0
! Moments damping term -(p/pmax)^2r Napj
INTEGER
,
PUBLIC
,
PROTECTED
::
j_damp
=
0
! Moments damping term -(j/jmax)^2r Napj
INTEGER
,
PUBLIC
,
PROTECTED
::
Nr
=
16
! Number of total internal grid points in r
INTEGER
,
PUBLIC
,
PROTECTED
::
Nr
=
16
! Number of total internal grid points in r
REAL
(
dp
),
PUBLIC
,
PROTECTED
::
Lr
=
1._dp
! horizontal length of the spatial box
REAL
(
dp
),
PUBLIC
,
PROTECTED
::
Lr
=
1._dp
! horizontal length of the spatial box
INTEGER
,
PUBLIC
,
PROTECTED
::
Nz
=
16
! Number of total internal grid points in z
INTEGER
,
PUBLIC
,
PROTECTED
::
Nz
=
16
! Number of total internal grid points in z
...
@@ -54,12 +56,17 @@ MODULE grid
...
@@ -54,12 +56,17 @@ MODULE grid
INTEGER
,
PUBLIC
,
PROTECTED
::
ips_i
,
ipe_i
,
ijs_i
,
ije_i
INTEGER
,
PUBLIC
,
PROTECTED
::
ips_i
,
ipe_i
,
ijs_i
,
ije_i
INTEGER
,
PUBLIC
,
PROTECTED
::
ipsg_e
,
ipeg_e
,
ijsg_e
,
ijeg_e
! Ghosts start and end indices
INTEGER
,
PUBLIC
,
PROTECTED
::
ipsg_e
,
ipeg_e
,
ijsg_e
,
ijeg_e
! Ghosts start and end indices
INTEGER
,
PUBLIC
,
PROTECTED
::
ipsg_i
,
ipeg_i
,
ijsg_i
,
ijeg_i
INTEGER
,
PUBLIC
,
PROTECTED
::
ipsg_i
,
ipeg_i
,
ijsg_i
,
ijeg_i
! Public Functions
! Public Functions
PUBLIC
::
init_1Dgrid_distr
PUBLIC
::
init_1Dgrid_distr
PUBLIC
::
set_pgrid
,
set_jgrid
PUBLIC
::
set_pgrid
,
set_jgrid
PUBLIC
::
set_krgrid
,
set_kzgrid
PUBLIC
::
set_krgrid
,
set_kzgrid
PUBLIC
::
grid_readinputs
,
grid_outputinputs
PUBLIC
::
grid_readinputs
,
grid_outputinputs
PUBLIC
::
bare
,
bari
PUBLIC
::
bare
,
bari
! Precomputations
real
(
dp
),
PUBLIC
,
PROTECTED
::
pmaxe_dp
,
pmaxi_dp
,
jmaxe_dp
,
jmaxi_dp
CONTAINS
CONTAINS
SUBROUTINE
init_1Dgrid_distr
SUBROUTINE
init_1Dgrid_distr
...
@@ -88,7 +95,10 @@ CONTAINS
...
@@ -88,7 +95,10 @@ CONTAINS
! Ghosts boundaries
! Ghosts boundaries
ipsg_e
=
ips_e
-
2
;
ipeg_e
=
ipe_e
+
2
;
ipsg_e
=
ips_e
-
2
;
ipeg_e
=
ipe_e
+
2
;
ipsg_i
=
ips_i
-
2
;
ipeg_i
=
ipe_i
+
2
;
ipsg_i
=
ips_i
-
2
;
ipeg_i
=
ipe_i
+
2
;
! Precomputations
pmaxe_dp
=
real
(
pmaxe
,
dp
)
pmaxi_dp
=
real
(
pmaxi
,
dp
)
END
SUBROUTINE
set_pgrid
END
SUBROUTINE
set_pgrid
SUBROUTINE
set_jgrid
SUBROUTINE
set_jgrid
...
@@ -108,6 +118,9 @@ CONTAINS
...
@@ -108,6 +118,9 @@ CONTAINS
! Ghosts boundaries
! Ghosts boundaries
ijsg_e
=
ijs_e
-
1
;
ijeg_e
=
ije_e
+
1
;
ijsg_e
=
ijs_e
-
1
;
ijeg_e
=
ije_e
+
1
;
ijsg_i
=
ijs_i
-
1
;
ijeg_i
=
ije_i
+
1
;
ijsg_i
=
ijs_i
-
1
;
ijeg_i
=
ije_i
+
1
;
! Precomputations
jmaxe_dp
=
real
(
jmaxe
,
dp
)
jmaxi_dp
=
real
(
jmaxi
,
dp
)
END
SUBROUTINE
set_jgrid
END
SUBROUTINE
set_jgrid
...
@@ -191,7 +204,7 @@ CONTAINS
...
@@ -191,7 +204,7 @@ CONTAINS
IMPLICIT
NONE
IMPLICIT
NONE
INTEGER
::
lu_in
=
90
! File duplicated from STDIN
INTEGER
::
lu_in
=
90
! File duplicated from STDIN
NAMELIST
/
GRID
/
pmaxe
,
jmaxe
,
pmaxi
,
jmaxi
,
&
NAMELIST
/
GRID
/
pmaxe
,
jmaxe
,
pmaxi
,
jmaxi
,
p_damp
,
j_damp
,
&
Nr
,
Lr
,
Nz
,
Lz
,
kpar
Nr
,
Lr
,
Nz
,
Lz
,
kpar
READ
(
lu_in
,
grid
)
READ
(
lu_in
,
grid
)
...
...
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