Skip to content
Snippets Groups Projects
Commit 22952a6f authored by AlQuemist's avatar AlQuemist Committed by Wuttke, Joachim
Browse files

rm SampleValidator::validateInterferences

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

Resolves issue #160
parent b1743c5b
No related branches found
No related tags found
No related merge requests found
......@@ -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.");
......
......@@ -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);
......
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