Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
TracerTransportSoftware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Behrens, Prof. Dr. Jörn
TracerTransportSoftware
Commits
a36d4853
Commit
a36d4853
authored
3 years ago
by
Behrens, Prof. Dr. Jörn
Browse files
Options
Downloads
Patches
Plain Diff
minor changes in initialization
parent
bef1078b
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
flash2d/src/options-sphere/SLM_initial_stacked.f90
+15
-11
15 additions, 11 deletions
flash2d/src/options-sphere/SLM_initial_stacked.f90
with
15 additions
and
11 deletions
flash2d/src/options-sphere/SLM_initial_stacked.f90
+
15
−
11
View file @
a36d4853
...
...
@@ -203,10 +203,11 @@
REAL
(
KIND
=
GRID_SR
),
DIMENSION
(
GRID_dimension
)
::
r_tmp
INTEGER
::
i_count
,
i_num
,
i_alct
REAL
(
KIND
=
GRID_SR
),
DIMENSION
(:,:),
ALLOCATABLE
::
r_coo
REAL
(
KIND
=
GRID_SR
),
DIMENSION
(
GRID_dimspherical
)
::
r_spher
!---------- calculate center ! CAUTION: THIS IS NOT IMPLEMENTED YET !!!
r_centr
=
grid_geokart
(
r_sentr
)
!
r_centr= grid_geokart(r_sentr)
!---------- allocate workspace
...
...
@@ -232,7 +233,8 @@
!---------- loop over the nodes
node_loop
:
DO
i_count
=
1
,
i_num
r_array
(
i_count
)
=
coshill
(
r_coo
(:,
i_count
),
r_centr
)
r_spher
=
grid_kartgeo
(
r_coo
(:,
i_count
))
r_array
(
i_count
)
=
coshill
(
r_spher
,
r_sentr
)
END
DO
node_loop
!---------- deallocate workspace
...
...
@@ -259,10 +261,11 @@
REAL
(
KIND
=
GRID_SR
),
DIMENSION
(:,:),
ALLOCATABLE
::
r_aux
REAL
(
KIND
=
GRID_SR
),
DIMENSION
(:,:),
ALLOCATABLE
::
r_coo
INTEGER
(
KIND
=
GRID_SI
),
DIMENSION
(
1
)
::
i_valind
REAL
(
KIND
=
GRID_SR
),
DIMENSION
(
GRID_dimspherical
)
::
r_spher
!---------- get center
r_centr
=
grid_geokart
(
r_sentr
)
!
r_centr= grid_geokart(r_sentr)
!---------- allocate workspace
...
...
@@ -283,15 +286,16 @@
!---------- compute radii of initial ball-type cosine hill density...
!
i_ind = max(4 - abs(floor(0.5*i_stcnumlayers)-i_lay),0)
!
r_rds = (
GRID_RADIUS
/ 6.0)*i_ind/4
i_ind
=
max
(
4
-
abs
(
floor
(
0.5
*
i_stcnumlayers
)
-
i_lay
),
0
)
r_rds
=
(
1.0
/
6.0
)
*
i_ind
/
4
r_aux
=
0.
IF
((
i_lay
.GE.
2
)
.AND.
(
i_lay
.LE.
i_stcnumlayers
-2
))
then
!---------- loop over the nodes
node_loop
:
DO
i_count
=
1
,
i_num
r_aux
(
1
,
i_count
)
=
coshill
(
r_coo
(:,
i_count
),
r_centr
,
r_radius
=
r_rds
)
r_spher
=
grid_kartgeo
(
r_coo
(:,
i_count
))
r_aux
(
1
,
i_count
)
=
coshill
(
r_spher
,
r_sentr
,
r_radius
=
r_rds
)
END
DO
node_loop
END
IF
...
...
@@ -314,14 +318,14 @@
!---------- local declarations
IMPLICIT
NONE
REAL
(
KIND
=
GRID_SR
),
DIMENSION
(
GRID_dim
ension
)
::
r_coor
REAL
(
KIND
=
GRID_SR
),
DIMENSION
(
GRID_dim
ension
)
::
r_centr
REAL
(
KIND
=
GRID_SR
),
DIMENSION
(
GRID_dim
spherical
)
::
r_coor
REAL
(
KIND
=
GRID_SR
),
DIMENSION
(
GRID_dim
spherical
)
::
r_centr
REAL
(
KIND
=
GRID_SR
),
OPTIONAL
::
r_radius
REAL
(
KIND
=
GRID_SR
)
::
r_hill
REAL
(
KIND
=
GRID_SR
)
::
r_maxheight
=
1.0
REAL
(
KIND
=
GRID_SR
)
::
r_maxrad
REAL
(
KIND
=
GRID_SR
)
::
r_dist
,
r_tmp
REAL
(
KIND
=
GRID_SR
),
DIMENSION
(
GRID_dim
ension
)
::
r_xy
REAL
(
KIND
=
GRID_SR
),
DIMENSION
(
GRID_dim
spherical
)
::
r_xy
!---------- watch out for optional argument
...
...
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