Skip to content

Commit

Permalink
Fix input values for 64-bit integer support
Browse files Browse the repository at this point in the history
  • Loading branch information
aeslaughter committed Nov 27, 2019
1 parent 1192c91 commit b1bc07c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions test/tests/samplers/base/tests
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
type = RunException
input = errors.i
expect_err = "The number of entries in the DenseMatrix \(3705032704\) exceeds the allowed limit of 429496729."
cli_args = "Samplers/sample/num_rows=1e9"
cli_args = "Samplers/sample/num_rows=1000000000"

detail = "if the number of entries in the global sample matrix exceeds the maximum allowed,"
[]
Expand All @@ -151,15 +151,15 @@
input = errors.i
max_parallel = 1 # the number of local samples changes with number of cores
expect_err = "The number of entries in the DenseMatrix \(1115098112\) exceeds the allowed limit of 429496729."
cli_args = "Samplers/sample/num_cols=1e9 UserObjects/test/test_type=getLocalSamples"
cli_args = "Samplers/sample/num_cols=1000000000 UserObjects/test/test_type=getLocalSamples"

detail = "if the number of entries in the local sample matrix exceeds the maximum allowed, and"
[]
[getNextLocalRow_max]
type = RunException
input = errors.i
expect_err = "The number of entries in the std::vector \(1000000000\) exceeds the allowed limit of 429496729."
cli_args = "Samplers/sample/num_cols=1e9 UserObjects/test/test_type=getNextLocalRow"
cli_args = "Samplers/sample/num_cols=1000000000 UserObjects/test/test_type=getNextLocalRow"

detail = "if the number of entries in the local sample matrix row exceeds the maximum allowed."
[]
Expand Down
2 changes: 1 addition & 1 deletion test/tests/samplers/distribute/execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def execute(infile, outfile, n_samples, processors, test_type):
exe_args = ['-i', infile,
'Outputs/file_base={}'.format(file_base),
'UserObjects/test/test_type={}'.format(test_type),
'Samplers/sampler/num_rows={}'.format(n_samples)]
'Samplers/sampler/num_rows={}'.format(int(n_samples))]

print('mpiexec -n {} {} {}'.format(n_procs, exe, ' '.join(exe_args)))
t = time.time()
Expand Down

0 comments on commit b1bc07c

Please sign in to comment.