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
b44f5170
Commit
b44f5170
authored
2 years ago
by
Antoine Cyril David Hoffmann
Browse files
Options
Downloads
Patches
Plain Diff
compute dvpar4 coeff
parent
a4da873e
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/numerics_mod.F90
+22
-0
22 additions, 0 deletions
src/numerics_mod.F90
with
22 additions
and
0 deletions
src/numerics_mod.F90
+
22
−
0
View file @
b44f5170
...
@@ -45,6 +45,28 @@ SUBROUTINE build_dnjs_table
...
@@ -45,6 +45,28 @@ SUBROUTINE build_dnjs_table
ENDDO
ENDDO
ENDDO
ENDDO
END
SUBROUTINE
build_dnjs_table
END
SUBROUTINE
build_dnjs_table
!******************************************************************************!
!!!!!!! Build the fourth derivative Hermite coefficient table
!******************************************************************************!
SUBROUTINE
build_dv4Hp_table
USE
array
,
ONLY
:
dv4_Hp_coeff
USE
grid
,
ONLY
:
pmaxi
,
pmaxe
IMPLICIT
NONE
INTEGER
::
p_
,
pmax_
pmax_
=
MAX
(
pmaxi
,
pmaxe
)
DO
p_
=
-2
,
pmax_
if
(
p_
<
4
)
THEN
dv4_Hp_coeff
(
p_
)
=
0._dp
ELSE
dv4_Hp_coeff
(
p_
)
=
4_dp
*
SQRT
(
REAL
((
p_
-3
)
*
(
p_
-2
)
*
(
p_
-1
)
*
p_
,
dp
))
ENDIF
ENDDO
!we scale it w.r.t. to the max degree since
!D_4^{v}\sim (\Delta v/2)^4 and \Delta v \sim 2pi/kvpar = pi/\sqrt{2P}
! dv4_Hp_coeff = dv4_Hp_coeff*(1._dp/2._dp/SQRT(REAL(pmax_,dp)))**4
dv4_Hp_coeff
=
dv4_Hp_coeff
*
(
PI
/
2._dp
/
SQRT
(
2._dp
*
REAL
(
pmax_
,
dp
)))
**
4
END
SUBROUTINE
build_dv4Hp_table
!******************************************************************************!
!******************************************************************************!
!******************************************************************************!
!******************************************************************************!
...
...
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