Skip to content

Commit 6573aea

Browse files
committed
Increased number of sphere limit from 101 to 201
1 parent 4294c32 commit 6573aea

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/app/dialog/mainwindow.ui

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3522,7 +3522,7 @@
35223522
</font>
35233523
</property>
35243524
<property name="text">
3525-
<string>Num. sph. sizes (2-101)</string>
3525+
<string>Num. sph. sizes (2-201)</string>
35263526
</property>
35273527
<property name="buddy">
35283528
<cstring>lineEdit_NSphere</cstring>

src/app/parameters.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,10 +244,10 @@ ParameterValidationResult Parameters::CheckValidityDistributionParameters(int co
244244
result.errorMessage = "Discrete sphere size is 1! Use 'Mono Disperse'.";
245245
return result;
246246
}
247-
if ((nRadius < 2.0) ||(nRadius >101.0))
247+
if ((nRadius < 2.0) ||(nRadius >201.0))
248248
{
249249
result.isValid = false;
250-
result.errorMessage = "Number of sphere sizes is out of range! Enter a value between 2 and 101.";
250+
result.errorMessage = "Number of sphere sizes is out of range! Enter a value between 2 and 201.";
251251
return result;
252252
}
253253
if ((meanRadius < 0.0005) ||(meanRadius >25))

src/test/test_parameters.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -266,11 +266,11 @@ void TestParameters::test_CheckValidityDistributionParameters_invalidNRadiusOne(
266266

267267
// Test case: nRadius is out of range
268268
void TestParameters::test_CheckValidityDistributionParameters_invalidNRadiusRange()
269-
{
270-
mPara->nRadius = 102;
269+
{
270+
mPara->nRadius = 202;
271271
ParameterValidationResult result = mPara->CheckValidityDistributionParameters(0);
272272
QVERIFY(!result.isValid);
273-
QCOMPARE(result.errorMessage, QString("Number of sphere sizes is out of range! Enter a value between 2 and 101."));
273+
QCOMPARE(result.errorMessage, QString("Number of sphere sizes is out of range! Enter a value between 2 and 201."));
274274
}
275275

276276
// Test case: mean radius is too large for distribution check

0 commit comments

Comments
 (0)