FFTIndexer: reject number of directions == 1
This commit is contained in:
1 parent
88d3eda4db
commit
b484beb35a
1 file changed
+2
-2
@@ -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))
|
||||
|
||||
Reference in new issue
Block a user