Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
DOUAR WSMP
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
Container 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
HUGG
DOUAR WSMP
Commits
13fc516b
Commit
13fc516b
authored
10 years ago
by
Matthias Schmiddunser
Browse files
Options
Downloads
Patches
Plain Diff
Removing Compiling Errors of previous commit
parent
c9448461
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/update_tracking_cloud.f90
+9
-9
9 additions, 9 deletions
src/update_tracking_cloud.f90
with
9 additions
and
9 deletions
src/update_tracking_cloud.f90
+
9
−
9
View file @
13fc516b
...
...
@@ -49,9 +49,9 @@ double precision dt,current_time
!------------------------------------------------------------------------------|
integer
iproc
,
nproc
,
ierr
,
err
,
iter
integer
i
,
j
,
k
,
tgridshape
,
gridstep
,
tracksi
,
ie
integer
i
,
j
,
k
,
t
r
gridshape
,
gridstep
,
tracksi
,
ie
integer
trstep
,
ntrpx
,
ntrpy
,
ntrpz
integer
nsurfd
,
neset
,
leaf
,
level
,
locc
integer
nsurfd
,
n
r
eset
,
leaf
,
level
,
locc
integer
,
dimension
(:),
allocatable
::
trdensloss
integer
,
dimension
(:,:),
allocatable
::
trackswap
double precision
u
,
v
,
w
,
rat
...
...
@@ -74,7 +74,7 @@ call mpi_comm_rank (mpi_comm_world,iproc,ierr)
!------------------------------------------------------------------------------|
! Creating Tracking Cloud at first timestep
!------------------------------------------------------------------------------|
if
(
trcl
%
np
==
0
)
if
(
trcl
%
np
==
0
)
then
!if not loading from restart file, create tracking particles according to
!specifications in input file
...
...
@@ -105,7 +105,7 @@ if (trcl%np == 0)
end
do
else
reggrid
!tgridshape=3, bcc-type gric
!t
r
gridshape=3, bcc-type gric
dx
=
2.d0
*
(
params
%
trboxxmax
-
params
%
trboxxmin
)/(
ntrpx
+1
)
dy
=
2.d0
*
(
params
%
trboxymax
-
params
%
trboxymin
)/(
ntrpy
+1
)
dz
=
2.d0
*
(
params
%
trboxzmax
-
params
%
trboxzmin
)/(
ntrpz
+1
)
...
...
@@ -406,15 +406,15 @@ reset: if (iproc==0) then
trcl
%
lsf0
(
i
)
>
0.d0
.OR.
trcl
%
z
(
i
)
<
0.d0
)
then
!find leaf with hightes loss of particles
ie
=
maxloc
(
trdensloss
)
ie
=
maxloc
(
trdensloss
,
DIM
=
1
)
!adjust loss number in leaf
trdensloss
(
ie
)
=
trdensloss
(
ie
)
-1
!inject randomly in this leaf
call
random_number
(
pos
)
pos
(
1
)
=
os
%
x
(
os
%
icon
(
1
,
ie
))
+
pos
(
1
)
*
(
os
%
x
(
os
%
icon
(
2
,
ie
))
-
os
%
x
(
os
%
icon
(
1
,
ie
)))
pos
(
2
)
=
os
%
y
(
os
%
icon
(
1
,
ie
))
+
pos
(
2
)
*
(
os
%
y
(
os
%
icon
(
3
,
ie
))
-
os
%
y
(
os
%
icon
(
1
,
ie
)))
pos
(
3
)
=
os
%
z
(
os
%
icon
(
1
,
ie
))
+
pos
(
3
)
*
(
os
%
z
(
os
%
icon
(
5
,
ie
))
-
os
%
z
(
os
%
icon
(
1
,
ie
)))
pos
(
1
)
=
os
olve
%
x
(
os
olve
%
icon
(
1
,
ie
))
+
pos
(
1
)
*
(
os
olve
%
x
(
os
olve
%
icon
(
2
,
ie
))
-
os
olve
%
x
(
os
olve
%
icon
(
1
,
ie
)))
pos
(
2
)
=
os
olve
%
y
(
os
olve
%
icon
(
1
,
ie
))
+
pos
(
2
)
*
(
os
olve
%
y
(
os
olve
%
icon
(
3
,
ie
))
-
os
olve
%
y
(
os
olve
%
icon
(
1
,
ie
)))
pos
(
3
)
=
os
olve
%
z
(
os
olve
%
icon
(
1
,
ie
))
+
pos
(
3
)
*
(
os
olve
%
z
(
os
olve
%
icon
(
5
,
ie
))
-
os
olve
%
z
(
os
olve
%
icon
(
1
,
ie
)))
trcl
%
x
(
i
)
=
pos
(
1
)
trcl
%
y
(
i
)
=
pos
(
2
)
...
...
@@ -434,7 +434,7 @@ reset: if (iproc==0) then
!send end signal to other processors
call
mpi_bcast
(
0
,
1
,
mpi_integer
,
0
,
mpi_comm_world
,
ierr
)
write
(
*
,
*
)
'update_trcloud: '
,
nsurf
ace
d
,
'particles surfaced and in total '
,
nreset
,
'particles reset'
write
(
*
,
*
)
'update_trcloud: '
,
nsurfd
,
'particles surfaced and in total '
,
nreset
,
'particles reset'
deallocate
(
trdensloss
)
else
reset
...
...
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