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
71102757
Commit
71102757
authored
4 years ago
by
Antoine Cyril David Hoffmann
Browse files
Options
Downloads
Patches
Plain Diff
Put all the advance fields in a routine for clarity in the time loop
parent
6ec191e5
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
+29
-19
29 additions, 19 deletions
src/stepon.F90
with
29 additions
and
19 deletions
src/stepon.F90
+
29
−
19
View file @
71102757
...
...
@@ -11,16 +11,21 @@ SUBROUTINE stepon
USE
closure
USE
utility
,
ONLY
:
checkfield
use
prec_const
USE
ghosts
IMPLICIT
NONE
INTEGER
::
num_step
LOGICAL
::
mlend
DO
num_step
=
1
,
ntimelevel
! eg RK4 compute successively k1, k2, k3, k4
! Closure enforcement
CALL
apply_closure_model
! Exchanges the ghosts values updated
CALL
update_ghosts
! Compute right hand side of moments hierarchy equation
CALL
moments_eq_rhs_e
CALL
moments_eq_rhs_i
...
...
@@ -29,23 +34,7 @@ SUBROUTINE stepon
CALL
advance_time_level
! Update the moments with the hierarchy RHS (step by step)
! Execution time start
CALL
cpu_time
(
t0_adv_field
)
DO
ip
=
ips_e
,
ipe_e
DO
ij
=
ijs_e
,
ije_e
CALL
advance_field
(
moments_e
(
ip
,
ij
,:,:,:),
moments_rhs_e
(
ip
,
ij
,:,:,:))
ENDDO
ENDDO
DO
ip
=
ips_i
,
ipe_i
DO
ij
=
ijs_i
,
ije_i
CALL
advance_field
(
moments_i
(
ip
,
ij
,:,:,:),
moments_rhs_i
(
ip
,
ij
,:,:,:))
ENDDO
ENDDO
! Execution time end
CALL
cpu_time
(
t1_adv_field
)
tc_adv_field
=
tc_adv_field
+
(
t1_adv_field
-
t0_adv_field
)
CALL
advance_moments
! Update electrostatic potential
CALL
poisson
...
...
@@ -63,6 +52,27 @@ SUBROUTINE stepon
CONTAINS
SUBROUTINE
advance_moments
! Execution time start
CALL
cpu_time
(
t0_adv_field
)
DO
ip
=
ips_e
,
ipe_e
DO
ij
=
ijs_e
,
ije_e
CALL
advance_field
(
moments_e
(
ip
,
ij
,:,:,:),
moments_rhs_e
(
ip
,
ij
,:,:,:))
ENDDO
ENDDO
DO
ip
=
ips_i
,
ipe_i
DO
ij
=
ijs_i
,
ije_i
CALL
advance_field
(
moments_i
(
ip
,
ij
,:,:,:),
moments_rhs_i
(
ip
,
ij
,:,:,:))
ENDDO
ENDDO
! Execution time end
CALL
cpu_time
(
t1_adv_field
)
tc_adv_field
=
tc_adv_field
+
(
t1_adv_field
-
t0_adv_field
)
END
SUBROUTINE
advance_moments
SUBROUTINE
checkfield_all
! Check all the fields for inf or nan
! Execution time start
CALL
cpu_time
(
t0_checkfield
)
...
...
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