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
0b558065
Commit
0b558065
authored
2 years ago
by
Antoine Cyril David Hoffmann
Browse files
Options
Downloads
Patches
Plain Diff
better USE, ONLY
parent
cd641add
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/inital.F90
+24
-22
24 additions, 22 deletions
src/inital.F90
with
24 additions
and
22 deletions
src/inital.F90
+
24
−
22
View file @
0b558065
...
...
@@ -3,20 +3,18 @@
!******************************************************************************!
SUBROUTINE
inital
USE
basic
USE
initial_par
USE
prec_const
USE
time_integration
USE
array
,
ONLY
:
moments_e_ZF
,
moments_i_ZF
,
phi_ZF
USE
fields
USE
collision
USE
closure
USE
ghosts
USE
restarts
USE
numerics
,
ONLY
:
play_with_modes
,
save_EM_ZF_modes
USE
processing
,
ONLY
:
compute_fluid_moments
USE
model
,
ONLY
:
KIN_E
,
LINEARITY
USE
nonlinear
,
ONLY
:
compute_Sapj
,
nonlinear_init
USE
basic
,
ONLY
:
my_id
USE
initial_par
,
ONLY
:
INIT_OPT
USE
time_integration
,
ONLY
:
set_updatetlevel
USE
collision
,
ONLY
:
load_COSOlver_mat
,
cosolver_coll
USE
closure
,
ONLY
:
apply_closure_model
USE
ghosts
,
ONLY
:
update_ghosts_z_moments
,
update_ghosts_p_moments
,
&
update_ghosts_z_phi
USE
restarts
,
ONLY
:
load_moments
,
job2load
USE
numerics
,
ONLY
:
play_with_modes
,
save_EM_ZF_modes
USE
processing
,
ONLY
:
compute_fluid_moments
USE
model
,
ONLY
:
KIN_E
,
LINEARITY
USE
nonlinear
,
ONLY
:
compute_Sapj
,
nonlinear_init
IMPLICIT
NONE
CALL
set_updatetlevel
(
1
)
...
...
@@ -100,15 +98,14 @@ END SUBROUTINE inital
SUBROUTINE
init_moments
USE
basic
USE
grid
USE
fields
USE
prec_const
USE
utility
,
ONLY
:
checkfield
USE
initial_par
USE
model
,
ONLY
:
LINEARITY
,
KIN_E
USE
initial_par
,
ONLY
:
iseed
,
init_noiselvl
,
init_background
USE
fields
,
ONLY
:
moments_e
,
moments_i
USE
prec_const
,
ONLY
:
dp
USE
utility
,
ONLY
:
checkfield
USE
model
,
ONLY
:
LINEARITY
,
KIN_E
IMPLICIT
NONE
REAL
(
dp
)
::
noise
REAL
(
dp
)
::
kx
,
ky
,
sigma
,
gain
,
ky_shift
INTEGER
,
DIMENSION
(
12
)
::
iseedarr
! Seed random number generator
...
...
@@ -418,7 +415,7 @@ SUBROUTINE init_ppj
IF
(
ky
.EQ.
0
)
THEN
moments_e
(
ip
,
ij
,
iky
,
ikx
,
iz
,:)
=
0._dp
ELSE
moments_e
(
ip
,
ij
,
iky
,
ikx
,
iz
,:)
=
0.5_dp
*
ky_min
/(
ABS
(
ky
)
+
ky_min
)
moments_e
(
ip
,
ij
,
iky
,
ikx
,
iz
,:)
=
0._dp
!
0.5_dp * ky_min/(ABS(ky)+ky_min)
ENDIF
ELSE
IF
(
ky
.GT.
0
)
THEN
...
...
@@ -461,7 +458,7 @@ SUBROUTINE init_ppj
IF
(
ky
.EQ.
0
)
THEN
moments_i
(
ip
,
ij
,
iky
,
ikx
,
iz
,:)
=
0._dp
ELSE
moments_i
(
ip
,
ij
,
iky
,
ikx
,
iz
,:)
=
0.5_dp
*
ky_min
/(
ABS
(
ky
)
+
ky_min
)
moments_i
(
ip
,
ij
,
iky
,
ikx
,
iz
,:)
=
0._dp
!
0.5_dp * ky_min/(ABS(ky)+ky_min)
ENDIF
ELSE
IF
(
ky
.GT.
0
)
THEN
...
...
@@ -508,5 +505,10 @@ SUBROUTINE init_ppj
ENDDO
ENDDO
ENDIF
! Adjust the scaling to trigger faster NL saturation
IF
(
KIN_E
)
&
moments_e
=
1e3
*
moments_e
moments_i
=
1e3
*
moments_i
END
SUBROUTINE
init_ppj
!******************************************************************************!
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