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
71dff04f
Commit
71dff04f
authored
12 years ago
by
Dave Whipp
Browse files
Options
Downloads
Patches
Plain Diff
Added new code for resolving ties using past element number and renamed subroutine
parent
884c0103
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/get_elem_mat_number_from_cloud.f90
+21
-4
21 additions, 4 deletions
src/get_elem_mat_number_from_cloud.f90
with
21 additions
and
4 deletions
src/get_elem
ent
_mat_number_from_cloud.f90
→
src/get_elem_mat_number_from_cloud.f90
+
21
−
4
View file @
71dff04f
...
...
@@ -16,7 +16,7 @@
!------------------------------------------------------------------------------|
!------------------------------------------------------------------------------|
subroutine
get_elem_mat_number_from_cloud
(
params
,
ileaves
,
leaf_mat_bin
,
matel
)
subroutine
get_elem_mat_number_from_cloud
(
params
,
ileaves
,
leaf_mat_bin
,
ematnump
,
matel
)
use
definitions
...
...
@@ -35,7 +35,7 @@ implicit none
!include 'mpif.h'
type
(
parameters
)
params
integer
::
leaf_mat_bin
(
0
:
params
%
nmat
),
matel
,
ileaves
integer
::
leaf_mat_bin
(
0
:
params
%
nmat
),
matel
,
ileaves
,
ematnump
!------------------------------------------------------------------------------|
!(((((((((((((((( declaration of the subroutine internal variables )))))))))))))
...
...
@@ -69,6 +69,18 @@ enddo
! write (*,*) ''
! endif
! WE SHOULD HANDLE THE CASE WHERE AN ELEMENT HAS A TIE AND PREVIOUSLY WAS USING DIVFEM
! IF SO, ASSIGN FIRST MATERIAL IN TIE????
if
(
mat_max_tie
)
then
! Currently, we don't have a good record between iterations/time steps of the
! elemental material numbers. Ideally, in cases where an element existed in
...
...
@@ -84,7 +96,7 @@ if (mat_max_tie) then
!write (*,'(a)') 'particles. DOUAR will continue, but the material number for this element will be'
!write (*,'(a)') 'will be that of the first maximum. In the future, this conflict should be resolved.'
!write (*,'(a)') ''
write
(
*
,
'(a,i7,a)'
)
'WARNING: Element '
,
ileaves
,
' has multiple max cloud materials. Assigning first max.'
!
write (*,'(a,i7,a)') 'WARNING: Element ',ileaves,' has multiple max cloud materials. Assigning first max.'
!endif
! if (ileaves == 1673) then
! write (*,*) 'element: ',ileaves
...
...
@@ -93,7 +105,12 @@ if (mat_max_tie) then
! write (*,*) 'leaf_mat_bin: ',leaf_mat_bin
! !write (*,*) ''
! endif
matel
=
mat_maxi
if
(
ematnump
<
1
.or.
ematnump
>
params
%
nmat
)
then
write
(
*
,
'(a,i7,a)'
)
'WARNING: Element '
,
ileaves
,
' has multiple max cloud materials. Assigning first max.'
matel
=
mat_maxi
else
matel
=
ematnump
endif
else
matel
=
mat_maxi
endif
...
...
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