Skip to content
Snippets Groups Projects
Commit cbbf2c46 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

clang-format

parent 863dcbae
No related branches found
No related tags found
1 merge request!2195various things while testing GUI
......@@ -45,9 +45,9 @@ SpanPropertyForm::SpanPropertyForm(QWidget* parent, const QString& groupTitle,
connect(m_widthSpinBox, &DoubleSpinBox::baseValueChanged, [this](double v) {
ASSERT(v >= 0); // spin box should have got limits from property
if (m_spanProperty->width() != v) {
m_spanProperty->setWidth(v);
emit dataChanged();
}
m_spanProperty->setWidth(v);
emit dataChanged();
}
});
connect(m_centerSpinBox, &DoubleSpinBox::baseValueChanged, [this](double v) {
......
......@@ -243,10 +243,10 @@ ReLayout* makeReLayout(const ParticleLayout& layout, const SliceStack& slices, d
{
const double layout_abundance = layout.totalAbundance();
if (layout_abundance <= 0)
throw std::runtime_error("Particle layout has invalid total abundance <= 0");
throw std::runtime_error("Particle layout has invalid total abundance <= 0");
const double surface_density = layout.totalParticleSurfaceDensity();
if (surface_density <= 0)
throw std::runtime_error("Particle layout has invalid surface density <= 0");
throw std::runtime_error("Particle layout has invalid surface density <= 0");
OwningVector<const CoheringSubparticles> coherentParticles;
......
......@@ -197,6 +197,7 @@ run_example(scatter2d/PositionVariance) # TODO -> test
test_example(scatter2d/RectangularGrating 0.6)
test_example(scatter2d/Resolution 2e-8) # reduced accuracy on Win and Mac
test_example(scatter2d/RotatedPyramids 2e-10)
test_example(scatter2d/RoughAndSpeclar 2e-10)
test_example(scatter2d/SlicedLayer 2e-10)
test_example(scatter2d/SpheresAtHexLattice 2e-10)
test_example(scatter2d/TriangularRipple 2e-10)
......
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