diff --git a/GUI/Model/Sample/SampleValidator.cpp b/GUI/Model/Sample/SampleValidator.cpp index 5232b490f5eab7043108f22c5b5728f23919ebed..cf9842e817df673efc090b74e3c64f7921a345b6 100644 --- a/GUI/Model/Sample/SampleValidator.cpp +++ b/GUI/Model/Sample/SampleValidator.cpp @@ -33,29 +33,6 @@ void SampleValidator::validateItem(const ItemWithParticles* item) addMessage("Particle composition doesn't have any particles."); } -void SampleValidator::validateInterferences(const LayerItem* layer) -{ - ASSERT(layer); -#ifdef WIN32 - - int iLayout = 0; - for (const auto* layout : layer->layoutItems()) { - iLayout++; - if (const auto* c = dynamic_cast<const Interference2DAbstractLatticeItem*>( - layout->interferenceSelection().currentItem())) - if (c->xiIntegration()) { - const QString message = - QString("Interference function of layer '%1', Particle layout %2: " - "Integration over Xi is currently not supported " - "under Windows") - .arg(layer->layerName()) - .arg(iLayout); - addMessage(message); - } - } -#endif -} - void SampleValidator::addMessage(const QString& m) { m_messages += QString("* ") + m + "\n"; @@ -74,7 +51,6 @@ bool SampleValidator::isValidSample(const SampleItem* sample) addMessage("The single layer in your MultiLayer should contain a particle layout."); for (const auto* layer : layers) { - validateInterferences(layer); for (const auto* layout : layer->layoutItems()) { if (layout->itemsWithParticles().isEmpty()) addMessage("Particle layout doesn't contain any particles."); diff --git a/GUI/Model/Sample/SampleValidator.h b/GUI/Model/Sample/SampleValidator.h index 87f2c273695cd3ed157648cbca03675533a3817c..a70b32ac2627d09748e4eca299c6de1b3b1359a6 100644 --- a/GUI/Model/Sample/SampleValidator.h +++ b/GUI/Model/Sample/SampleValidator.h @@ -31,8 +31,6 @@ public: private: void validateItem(const ItemWithParticles* item); - void validateInterferences(const LayerItem* item); - //! Adds this message to the report. void addMessage(const QString& m); diff --git a/Tests/Examples/CMakeLists.txt b/Tests/Examples/CMakeLists.txt index db8782798d76ad4861bf9d22058b13d143c91e0f..e9a751f965ab30c77eec116fd3dfd883b69bd0dc 100644 --- a/Tests/Examples/CMakeLists.txt +++ b/Tests/Examples/CMakeLists.txt @@ -146,9 +146,7 @@ test_example(scatter2d/HexagonalLatticesWithBasis 2e-10) test_example(scatter2d/Interference1DLattice 1.5) test_example(scatter2d/Interference1DRadialParacrystal 2e-10) test_example(scatter2d/Interference2DCenteredSquareLattice 2e-10) -if(NOT WIN32) # https://jugit.fz-juelich.de/mlz/bornagain/-/issues/21 - test_example(scatter2d/Interference2DParacrystal 2e-10) -endif() +test_example(scatter2d/Interference2DParacrystal 2e-10) test_example(scatter2d/Interference2DRotatedSquareLattice 2e-10) test_example(scatter2d/Interference2DSquareFiniteLattice 2e-10) test_example(scatter2d/LatticeOrientationDistribution 2e-10)