Skip to content
Snippets Groups Projects
Commit 812fbed0 authored by AlQuemist's avatar AlQuemist
Browse files

SampleValidator::validateInterferences: remove the Windows-specific error for Xi integration

With GSL v2.7.1 the Xi integration can be performed under Windows.

Resolves issue #160
parent 8c6a7946
No related branches found
No related tags found
No related merge requests found
Pipeline #104716 passed
...@@ -36,24 +36,6 @@ void SampleValidator::validateItem(const ItemWithParticles* item) ...@@ -36,24 +36,6 @@ void SampleValidator::validateItem(const ItemWithParticles* item)
void SampleValidator::validateInterferences(const LayerItem* layer) void SampleValidator::validateInterferences(const LayerItem* layer)
{ {
ASSERT(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) void SampleValidator::addMessage(const QString& m)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment