Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jan Hönig
waLBerla
Commits
4ab50563
Commit
4ab50563
authored
Apr 03, 2017
by
Matthias Markl
Committed by
Christian Godenschwager
Apr 26, 2017
Browse files
bugfixes python and advection-diffusion
parent
ecd38f06
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/lbm/srt/AdvectionDiffusionSweep.impl.h
View file @
4ab50563
...
...
@@ -42,6 +42,13 @@
namespace
walberla
{
namespace
lbm
{
template
<
typename
LM_AdvDiff
,
typename
VelocityAdapter_T
,
typename
FlagField_T
,
typename
VectorField_T
,
class
Enable
=
void
>
class
AdvectionDiffusionSweep
{
static_assert
(
never_true
<
LM_AdvDiff
>::
value
,
"Instantiating 'lbm::AdvectionDiffusionSweep' failed"
);
};
template
<
typename
LM_AdvDiff
,
typename
VelocityAdapter_T
,
typename
FlagField_T
,
typename
VectorField_T
>
class
AdvectionDiffusionSweep
<
LM_AdvDiff
,
VelocityAdapter_T
,
FlagField_T
,
VectorField_T
,
...
...
tests/python_coupling/FieldExportTest.cpp
View file @
4ab50563
...
...
@@ -95,18 +95,18 @@ int main( int argc, char ** argv )
auto
vec3Field
=
blockIt
->
getData
<
GhostLayerField
<
Vector3
<
int
>
,
1
>
>
(
vec3FieldID
);
{
forAllCells2
(
scaIt
,
sca2Field
,
vecIt
,
vec2Field
)
{
WALBERLA_FOR_ALL_CELLS
(
scaIt
,
sca2Field
,
vecIt
,
vec2Field
,
WALBERLA_ASSERT_EQUAL
(
scaIt
[
0
],
(
*
vecIt
)[
0
]);
WALBERLA_ASSERT_EQUAL
(
scaIt
[
1
],
(
*
vecIt
)[
1
]);
}
)
}
{
forAllCells2
(
scaIt
,
sca3Field
,
vecIt
,
vec3Field
)
{
WALBERLA_FOR_ALL_CELLS
(
scaIt
,
sca3Field
,
vecIt
,
vec3Field
,
WALBERLA_ASSERT_EQUAL
(
scaIt
[
0
],
(
*
vecIt
)[
0
]);
WALBERLA_ASSERT_EQUAL
(
scaIt
[
1
],
(
*
vecIt
)[
1
]);
WALBERLA_ASSERT_EQUAL
(
scaIt
[
2
],
(
*
vecIt
)[
2
]);
}
)
}
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment