FFTIndexer: reject number of directions == 1

This commit is contained in:
2026-04-29 13:40:04 +02:00
parent 88d3eda4db
commit b484beb35a
+2 -2
View File
@@ -23,8 +23,8 @@ FFTIndexer::FFTIndexer(const IndexingSettings &settings)
if (max_length_A <= settings.GetFFT_HighResolution_A())
throw std::invalid_argument("Largest unit cell cannot be smaller than resolution");
if (nDirections <= 0)
throw std::invalid_argument("FFTWIndexer: number of directions must be > 0");
if (nDirections <= 1)
throw std::invalid_argument("FFTWIndexer: number of directions must be > 1");
if (!(max_length_A > 0.f))
throw std::invalid_argument("FFTWIndexer: max_length_A must be > 0");
if (!(settings.GetFFT_HighResolution_A() > 0.f))