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
3d6853a0
Commit
3d6853a0
authored
4 years ago
by
Antoine Cyril David Hoffmann
Browse files
Options
Downloads
Patches
Plain Diff
Project of adaptative time step scheme
parent
222b08e4
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/advance_field_adapt.F90
+80
-0
80 additions, 0 deletions
src/advance_field_adapt.F90
with
80 additions
and
0 deletions
src/advance_field_adapt.F90
0 → 100644
+
80
−
0
View file @
3d6853a0
MODULE
advance_field_routine
USE
prec_const
implicit
none
CONTAINS
SUBROUTINE
advance_time_level
USE
basic
USE
time_integration
use
prec_const
IMPLICIT
NONE
call
set_updatetlevel
(
mod
(
updatetlevel
,
ntimelevel
)
+1
)
END
SUBROUTINE
advance_time_level
SUBROUTINE
advance_field
(
f
,
f_rhs
)
USE
basic
USE
time_integration
USE
array
USE
grid
use
prec_const
IMPLICIT
NONE
COMPLEX
(
dp
),
DIMENSION
(
ikrs
:
ikre
,
ikzs
:
ikze
,
ntimelevel
)
::
f
COMPLEX
(
dp
),
DIMENSION
(
ikrs
:
ikre
,
ikzs
:
ikze
,
ntimelevel
)
::
f_rhs
REAL
(
dp
)
::
error
INTEGER
::
istage
SELECT
CASE
(
updatetlevel
)
CASE
(
1
)
SELECT
CASE
(
numerical_scheme
)
CASE
(
'DOPRI5_ADAPT'
)
error
=
0._dp
DO
ikz
=
ikzs
,
ikze
DO
ikr
=
ikrs
,
ikre
fs
=
f
(
ikr
,
ikz
,
1
)
DO
istage
=
1
,
ntimelevel
f
(
ikr
,
ikz
,
1
)
=
f
(
ikr
,
ikz
,
1
)
+
dt
*
b_E
(
istage
)
*
f_rhs
(
ikr
,
ikz
,
istage
)
fs
=
fs
+
dt
*
b_Es
(
istage
)
*
f_rhs
(
ikr
,
ikz
,
istage
)
END
DO
IF
(
ABS
(
f
(
ikr
,
ikz
,
1
)
-
fs
)
.GT.
error
)
THEN
error
=
ABS
(
f
(
ikr
,
ikz
,
1
)
-
fs
)
ENDIF
END
DO
END
DO
IF
(
error
>
TOL
)
CASE
DEFAULT
DO
ikz
=
ikzs
,
ikze
DO
ikr
=
ikrs
,
ikre
fs
=
f
(
ikr
,
ikz
,
1
)
DO
istage
=
1
,
ntimelevel
f
(
ikr
,
ikz
,
1
)
=
f
(
ikr
,
ikz
,
1
)
+
dt
*
b_E
(
istage
)
*
f_rhs
(
ikr
,
ikz
,
istage
)
END
DO
END
DO
END
DO
END
SELECT
CASE
DEFAULT
DO
ikz
=
ikzs
,
ikze
DO
ikr
=
ikrs
,
ikre
f
(
ikr
,
ikz
,
updatetlevel
)
=
f
(
ikr
,
ikz
,
1
);
DO
istage
=
1
,
updatetlevel
-1
f
(
ikr
,
ikz
,
updatetlevel
)
=
f
(
ikr
,
ikz
,
updatetlevel
)
+
&
dt
*
A_E
(
updatetlevel
,
istage
)
*
f_rhs
(
ikr
,
ikz
,
istage
)
END
DO
END
DO
END
DO
END
SELECT
END
SUBROUTINE
advance_field
END
MODULE
advance_field_routine
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