Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Schruff
waLBerla
Commits
934a270b
Commit
934a270b
authored
Feb 20, 2018
by
Christoph Rettinger
Browse files
Added assert in reconstructor
parent
6ca875c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/pe_coupling/momentum_exchange_method/restoration/Reconstructor.h
View file @
934a270b
...
...
@@ -120,6 +120,8 @@ void EquilibriumReconstructor< LatticeModel_T, BoundaryHandling_T >
real_t
cx
,
cy
,
cz
;
blockStorage_
->
getBlockLocalCellCenter
(
*
block
,
Cell
(
x
,
y
,
z
),
cx
,
cy
,
cz
);
WALBERLA_ASSERT_NOT_NULLPTR
(
(
*
bodyField
)(
x
,
y
,
z
)
);
const
auto
velocity
=
(
*
bodyField
)(
x
,
y
,
z
)
->
velFromWF
(
cx
,
cy
,
cz
);
pdfField
->
setToEquilibrium
(
x
,
y
,
z
,
Vector3
<
real_t
>
(
velocity
[
0
],
velocity
[
1
],
velocity
[
2
]
),
averageDensity
);
...
...
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