Skip to content

Commit

Permalink
Merge pull request #89 from Libensemble/testing/test_travis
Browse files Browse the repository at this point in the history
Testing/test travis
  • Loading branch information
jmlarson1 committed Oct 16, 2018
2 parents d4ac8c8 + 8d162eb commit cfa45f8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@


# Tell libEnsemble when to stop
exit_criteria = {'sim_max': 400}
exit_criteria = {'sim_max': 1000}


alloc_specs = {'out':[('allocated',bool)], 'alloc_f':alloc_f}
Expand Down Expand Up @@ -135,8 +135,8 @@
tol = 1e-5
for m in minima:
print(np.min(np.sum((H[H['local_min']]['x']-m)**2,1)))
assert np.min(np.sum((H[H['local_min']]['x']-m)**2,1)) < tol
sys.stdout.flush()
if np.min(np.sum((H[H['local_min']]['x']-m)**2,1)) > tol:
MPI.COMM_WORLD.Abort(1)

print("\nlibEnsemble with APOSMM using a gradient-based localopt method has identified the " + str(np.shape(minima)[0]) + " minima within a tolerance " + str(tol))


2 changes: 1 addition & 1 deletion libensemble/tests/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ if [ "$root_found" = true ]; then
mpiexec -np $NPROCS $MPIEXEC_FLAGS $PYTHON_RUN -m pytest $TEST_SCRIPT >> $TEST_SCRIPT.$NPROCS'procs'.$REG_TEST_OUTPUT_EXT 2>test.err
test_code=$?
else
mpiexec -np $NPROCS $MPIEXEC_FLAGS $PYTHON_RUN $COV_LINE_PARALLEL $TEST_SCRIPT >> $TEST_SCRIPT.$NPROCS'procs'.$REG_TEST_OUTPUT_EXT 2>test.err
mpiexec -np $NPROCS $MPIEXEC_FLAGS $PYTHON_RUN $COV_LINE_PARALLEL $TEST_SCRIPT #>> $TEST_SCRIPT.$NPROCS'procs'.$REG_TEST_OUTPUT_EXT 2>test.err
test_code=$?
fi
reg_count_runs=$((reg_count_runs+1))
Expand Down

0 comments on commit cfa45f8

Please sign in to comment.