Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
VirtualFluids
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
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
iRMB
VirtualFluids
Commits
2080f493
Commit
2080f493
authored
1 year ago
by
Anna Wellmann
Browse files
Options
Downloads
Patches
Plain Diff
Split and rename tests
parent
815ae0c7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!229
Add some more tests to GridScalingManager and BCKernelManager
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/gpu/VirtualFluids_GPU/KernelManager/BCKernelManagerTest.cpp
+43
-13
43 additions, 13 deletions
...u/VirtualFluids_GPU/KernelManager/BCKernelManagerTest.cpp
with
43 additions
and
13 deletions
src/gpu/VirtualFluids_GPU/KernelManager/BCKernelManagerTest.cpp
+
43
−
13
View file @
2080f493
...
...
@@ -19,55 +19,85 @@ protected:
}
};
TEST_F
(
BCKernelManagerTest_BCsNotSpecified
,
velocityBoundaryConditionPost_NotSpecified
)
TEST_F
(
BCKernelManagerTest_BCsNotSpecified
,
velocityBoundaryConditionPostNotSpecified_noBoundaryNodes_doesNotThrow
)
{
para
->
getParD
(
0
)
->
velocityBC
.
numberOfBCnodes
=
0
;
EXPECT_NO_THROW
(
BCKernelManager
(
para
,
&
bcFactory
));
}
TEST_F
(
BCKernelManagerTest_BCsNotSpecified
,
velocityBoundaryConditionPostNotSpecified_withBoundaryNodes_throws
)
{
para
->
getParD
(
0
)
->
velocityBC
.
numberOfBCnodes
=
1
;
EXPECT_THROW
(
BCKernelManager
(
para
,
&
bcFactory
),
std
::
runtime_error
);
para
->
getParD
(
0
)
->
velocityBC
.
numberOfBCnodes
=
0
;
}
TEST_F
(
BCKernelManagerTest_BCsNotSpecified
,
noSlipBoundaryConditionPostNotSpecified_noBoundaryNodes_doesNotThrow
)
{
para
->
getParD
(
0
)
->
noSlipBC
.
numberOfBCnodes
=
0
;
EXPECT_NO_THROW
(
BCKernelManager
(
para
,
&
bcFactory
));
}
TEST_F
(
BCKernelManagerTest_BCsNotSpecified
,
noSlipBoundaryConditionPost
_
NotSpecified
)
TEST_F
(
BCKernelManagerTest_BCsNotSpecified
,
noSlipBoundaryConditionPostNotSpecified
_withBoundaryNodes_doesNotThrow
)
{
para
->
getParD
(
0
)
->
noSlipBC
.
numberOfBCnodes
=
1
;
EXPECT_NO_THROW
(
BCKernelManager
(
para
,
&
bcFactory
));
// no throw, as a default is specified
para
->
getParD
(
0
)
->
noSlipBC
.
numberOfBCnodes
=
0
;
}
TEST_F
(
BCKernelManagerTest_BCsNotSpecified
,
slipBoundaryConditionPostNotSpecified_noBoundaryNodes_doesNotThrow
)
{
para
->
getParD
(
0
)
->
slipBC
.
numberOfBCnodes
=
0
;
EXPECT_NO_THROW
(
BCKernelManager
(
para
,
&
bcFactory
));
}
TEST_F
(
BCKernelManagerTest_BCsNotSpecified
,
slipBoundaryConditionPost
_
NotSpecified
)
TEST_F
(
BCKernelManagerTest_BCsNotSpecified
,
slipBoundaryConditionPostNotSpecified
_withBoundaryNodes_throws
)
{
para
->
getParD
(
0
)
->
slipBC
.
numberOfBCnodes
=
1
;
EXPECT_THROW
(
BCKernelManager
(
para
,
&
bcFactory
),
std
::
runtime_error
);
para
->
getParD
(
0
)
->
slipBC
.
numberOfBCnodes
=
0
;
}
TEST_F
(
BCKernelManagerTest_BCsNotSpecified
,
pressureBoundaryConditionPreNotSpecified_noBoundaryNodes_doesNotThrow
)
{
para
->
getParD
(
0
)
->
pressureBC
.
numberOfBCnodes
=
0
;
EXPECT_NO_THROW
(
BCKernelManager
(
para
,
&
bcFactory
));
}
TEST_F
(
BCKernelManagerTest_BCsNotSpecified
,
pressureBoundaryConditionPre
_
NotSpecified
)
TEST_F
(
BCKernelManagerTest_BCsNotSpecified
,
pressureBoundaryConditionPreNotSpecified
_withBoundaryNodes_throws
)
{
para
->
getParD
(
0
)
->
pressureBC
.
numberOfBCnodes
=
1
;
EXPECT_THROW
(
BCKernelManager
(
para
,
&
bcFactory
),
std
::
runtime_error
);
para
->
getParD
(
0
)
->
pressureBC
.
numberOfBCnodes
=
0
;
}
TEST_F
(
BCKernelManagerTest_BCsNotSpecified
,
geometryBoundaryConditionPostNotSpecified_noBoundaryNodes_doesNotThrow
)
{
para
->
getParD
(
0
)
->
geometryBC
.
numberOfBCnodes
=
0
;
EXPECT_NO_THROW
(
BCKernelManager
(
para
,
&
bcFactory
));
}
TEST_F
(
BCKernelManagerTest_BCsNotSpecified
,
geometryBoundaryConditionPost
_
NotSpecified
)
TEST_F
(
BCKernelManagerTest_BCsNotSpecified
,
geometryBoundaryConditionPostNotSpecified
_withBoundaryNodes_doesNotThrow
)
{
para
->
getParD
(
0
)
->
geometryBC
.
numberOfBCnodes
=
1
;
EXPECT_NO_THROW
(
BCKernelManager
(
para
,
&
bcFactory
));
// no throw, as a default is specified
para
->
getParD
(
0
)
->
geometryBC
.
numberOfBCnodes
=
0
;
}
TEST_F
(
BCKernelManagerTest_BCsNotSpecified
,
stressBoundaryConditionPostNotSpecified_noBoundaryNodes_doesNotThrow
)
{
para
->
getParD
(
0
)
->
stressBC
.
numberOfBCnodes
=
0
;
EXPECT_NO_THROW
(
BCKernelManager
(
para
,
&
bcFactory
));
}
TEST_F
(
BCKernelManagerTest_BCsNotSpecified
,
stressBoundaryConditionPost
_
NotSpecified
)
TEST_F
(
BCKernelManagerTest_BCsNotSpecified
,
stressBoundaryConditionPostNotSpecified
_withBoundaryNodes_throws
)
{
para
->
getParD
(
0
)
->
stressBC
.
numberOfBCnodes
=
1
;
EXPECT_THROW
(
BCKernelManager
(
para
,
&
bcFactory
),
std
::
runtime_error
);
para
->
getParD
(
0
)
->
stressBC
.
numberOfBCnodes
=
0
;
}
TEST_F
(
BCKernelManagerTest_BCsNotSpecified
,
precursorBoundaryConditionPostNotSpecified_noBoundaryNodes_doesNotThrow
)
{
para
->
getParD
(
0
)
->
precursorBC
.
numberOfBCnodes
=
0
;
EXPECT_NO_THROW
(
BCKernelManager
(
para
,
&
bcFactory
));
}
TEST_F
(
BCKernelManagerTest_BCsNotSpecified
,
precursorBoundaryConditionPost
_
NotSpecified
)
TEST_F
(
BCKernelManagerTest_BCsNotSpecified
,
precursorBoundaryConditionPostNotSpecified
_withBoundaryNodes_throws
)
{
para
->
getParD
(
0
)
->
precursorBC
.
numberOfBCnodes
=
1
;
EXPECT_THROW
(
BCKernelManager
(
para
,
&
bcFactory
),
std
::
runtime_error
);
...
...
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