Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Mpp
MLUQ
Commits
91a96ed9
Commit
91a96ed9
authored
May 05, 2021
by
niklas.baumgarten
Browse files
removed file check from Circulant Embedding
parent
457053d9
Pipeline
#148261
passed with stages
in 48 minutes and 8 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
mlmc/tests/generators/TestCirculantEmbedding.cpp
View file @
91a96ed9
...
...
@@ -2,7 +2,6 @@
#include
"MeshesCreator.hpp"
#include
"TestEnvironment.hpp"
#include
<filesystem>
class
TestCirculantEmbedding
:
public
Test
{
...
...
@@ -11,10 +10,7 @@ protected:
int
samples
=
2
;
TestCirculantEmbedding
()
{
std
::
filesystem
::
remove_all
(
"data/vtu/"
);
std
::
filesystem
::
create_directory
(
"data/vtu/"
);
}
TestCirculantEmbedding
()
{}
void
TearDown
()
override
{
PPM
->
Barrier
(
0
);
...
...
@@ -40,16 +36,15 @@ TEST_F(TestCirculantEmbedding, TestDrawSample) {
SampleID
idFine
(
level
,
sample
,
0
,
"Kappa"
);
circEmb
.
DrawSample
(
idFine
);
PPM
->
Barrier
(
0
);
std
::
string
file
=
"data/vtu/"
+
idFine
.
IdString
()
+
".vtu"
;
EXPECT_TRUE
(
std
::
filesystem
::
exists
(
file
));
for
(
cell
c
=
meshes
->
fineMesh
().
cells
();
c
!=
meshes
->
fineMesh
().
cells_end
();
c
++
)
EXPECT_TRUE
(
circEmb
.
EvalSample
(
c
)[
0
][
0
]
>
0
);
SampleID
idCoarse
(
level
,
sample
,
1
,
"Kappa"
);
circEmb
.
DrawSample
(
idCoarse
);
PPM
->
Barrier
(
0
);
file
=
"data/vtu/"
+
idCoarse
.
IdString
()
+
".vtu"
;
EXPECT_TRUE
(
std
::
filesystem
::
exists
(
file
));
for
(
cell
c
=
meshes
->
coarseMesh
().
cells
();
c
!=
meshes
->
coarseMesh
().
cells_end
();
c
++
)
EXPECT_TRUE
(
circEmb
.
EvalSample
(
c
)[
0
][
0
]
>
0
)
;
}
delete
meshes
;
...
...
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