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
d04b05b6
Commit
d04b05b6
authored
1 year ago
by
Antoine Cyril David Hoffmann
Browse files
Options
Downloads
Patches
Plain Diff
added explicit euler
parent
cd2596f3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/time_integration_mod.F90
+19
-0
19 additions, 0 deletions
src/time_integration_mod.F90
with
19 additions
and
0 deletions
src/time_integration_mod.F90
+
19
−
0
View file @
d04b05b6
...
...
@@ -70,6 +70,9 @@ CONTAINS
use
parallel
,
ONLY
:
my_id
IMPLICIT
NONE
SELECT
CASE
(
numerical_scheme
)
! Order 1 method
CASE
(
'EE'
)
CALL
EE
! Order 2 methods
CASE
(
'RK2'
)
CALL
RK2
...
...
@@ -95,6 +98,22 @@ CONTAINS
IF
(
my_id
.EQ.
0
)
WRITE
(
*
,
*
)
" Time integration with "
,
numerical_scheme
END
SUBROUTINE
set_numerical_scheme
!!! first order time schemes
SUBROUTINE
EE
! Butcher coeff for Euler Explicit scheme
USE
basic
USE
prec_const
IMPLICIT
NONE
INTEGER
,
PARAMETER
::
nbstep
=
1
CALL
allocate_array
(
c_E
,
1
,
nbstep
)
CALL
allocate_array
(
b_E
,
1
,
nbstep
,
1
,
1
)
CALL
allocate_array
(
A_E
,
1
,
nbstep
,
1
,
nbstep
)
ntimelevel
=
1
c_E
(
1
)
=
0._xp
b_E
(
1
,
1
)
=
1._xp
A_E
(
1
,
1
)
=
0._xp
END
SUBROUTINE
EE
!!! second order time schemes
SUBROUTINE
RK2
! Butcher coeff for clasical RK2 (Heun's)
...
...
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