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
614a6100
Commit
614a6100
authored
1 year ago
by
Antoine Cyril David Hoffmann
Browse files
Options
Downloads
Patches
Plain Diff
Apply and update ExBs
parent
452a5723
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/stepon.F90
+12
-0
12 additions, 0 deletions
src/stepon.F90
with
12 additions
and
0 deletions
src/stepon.F90
+
12
−
0
View file @
614a6100
...
@@ -8,6 +8,7 @@ SUBROUTINE stepon
...
@@ -8,6 +8,7 @@ SUBROUTINE stepon
use
mpi
,
ONLY
:
MPI_COMM_WORLD
use
mpi
,
ONLY
:
MPI_COMM_WORLD
USE
time_integration
,
ONLY
:
ntimelevel
USE
time_integration
,
ONLY
:
ntimelevel
USE
prec_const
,
ONLY
:
xp
USE
prec_const
,
ONLY
:
xp
USE
ExB_shear_flow
,
ONLY
:
Apply_ExB_shear_flow
,
Update_ExB_shear_flow
#ifdef TEST_SVD
#ifdef TEST_SVD
USE
CLA
,
ONLY
:
test_svd
,
filter_sv_moments_ky_pj
USE
CLA
,
ONLY
:
test_svd
,
filter_sv_moments_ky_pj
#endif
#endif
...
@@ -16,6 +17,14 @@ SUBROUTINE stepon
...
@@ -16,6 +17,14 @@ SUBROUTINE stepon
INTEGER
::
num_step
,
ierr
INTEGER
::
num_step
,
ierr
LOGICAL
::
mlend
LOGICAL
::
mlend
! Update the ExB backg. shear flow before the step
! This call includes :
! - the kx grid update
! - the kernel, poisson op. and ampere op update
! - kx-shift of the fields at required ky values
! - the ExB shear value (s(ky)) update for the next time step
CALL
Apply_ExB_shear_flow
DO
num_step
=
1
,
ntimelevel
! eg RK4 compute successively k1, k2, k3, k4
DO
num_step
=
1
,
ntimelevel
! eg RK4 compute successively k1, k2, k3, k4
!----- BEFORE: All fields+ghosts are updated for step = n
!----- BEFORE: All fields+ghosts are updated for step = n
! Compute right hand side from current fields
! Compute right hand side from current fields
...
@@ -70,6 +79,9 @@ SUBROUTINE stepon
...
@@ -70,6 +79,9 @@ SUBROUTINE stepon
END
DO
END
DO
! Update the ExB shear flow for the next step
CALL
Update_ExB_shear_flow
CONTAINS
CONTAINS
!!!! Basic structure to simplify stepon
!!!! Basic structure to simplify stepon
SUBROUTINE
assemble_RHS
SUBROUTINE
assemble_RHS
...
...
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