Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
William Xu
SPINS_main
Commits
b6bf6a41
Commit
b6bf6a41
authored
Oct 16, 2017
by
David Deepwell
Browse files
Fix bug in BPE calculation for unmapped grids
parent
1df50bf9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/Science.cpp
src/Science.cpp
+3
-1
No files found.
src/Science.cpp
View file @
b6bf6a41
...
...
@@ -369,8 +369,10 @@ void compute_Background_PE(double & BPE_tot, TArrayn::DTArray & rho,
while
(
(
sort_hill
[
LL
]
>
tmpH
)
&&
(
LL
>
0
)
)
{
LL
--
;
}
Area_star
=
Lx_partsum
[
LL
]
*
Ly
;
}
else
{
Area_star
=
Lx
*
Ly
;
}
Area_star
=
Lx_partsum
[
LL
]
*
Ly
;
// spread volume over domain and compute BPE for that cell
dH
=
sort_quad
(
II
,
JJ
,
KK
)
/
Area_star
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment