Commit 91a96ed9 authored by niklas.baumgarten's avatar niklas.baumgarten
Browse files

removed file check from Circulant Embedding

parent 457053d9
Pipeline #148261 passed with stages
in 48 minutes and 8 seconds
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment