Skip to content

Commit

Permalink
Update samples (#3791)
Browse files Browse the repository at this point in the history
Description of changes:
- Give hints for bulk concentrations in ReactionEnsemble-based samples
- Fix testcase for `lb_profile` (in 4.1.3 also backport 9ec9025)
- Remove infinite loop in the old checkpoint sample (only in 4.1.3, as 1cf4acf)
  • Loading branch information
kodiakhq[bot] authored Jul 5, 2020
2 parents e75c4ba + 579e69a commit 94261db
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions samples/grand_canonical.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@

parser = argparse.ArgumentParser(epilog=__doc__ + epilog)
parser.add_argument('cs_bulk', type=float,
help="bulk salt concentration [1/sigma^3]")
help="bulk salt concentration [1/sigma^3], e.g. 1e-3")
parser.add_argument('excess_chemical_potential', type=float,
help="excess chemical potential [kT] "
"(obtained from Widom's insertion method)")
help="excess chemical potential [kT] (obtained from "
"Widom's insertion method), e.g. -0.36")
args = parser.parse_args()

# System parameters
Expand Down
1 change: 0 additions & 1 deletion samples/lb_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@
system.integrator.run(n_steps)

lb_fluid_profile = accumulator.get_mean()
lb_fluid_profile = np.reshape(lb_fluid_profile, (100, 1, 1, 3))


def poiseuille_flow(r, R, ext_force_density):
Expand Down
2 changes: 1 addition & 1 deletion samples/widom_insertion.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

parser = argparse.ArgumentParser(epilog=__doc__)
parser.add_argument('cs_bulk', type=float,
help="bulk salt concentration [1/sigma^3]")
help="bulk salt concentration [1/sigma^3], e.g. 1e-3")
args = parser.parse_args()

# System parameters
Expand Down
2 changes: 1 addition & 1 deletion testsuite/scripts/samples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ if(HDF5_FOUND)
endif()
sample_test(FILE test_lbf.py SUFFIX cpu)
sample_test(FILE test_lbf.py SUFFIX gpu LABELS "gpu")
sample_test(FILE test_lb_profile.py)
sample_test(FILE test_lb_profile.py LABELS "gpu")
sample_test(FILE test_lj_liquid_distribution.py)
sample_test(FILE test_lj_liquid.py)
sample_test(FILE test_lj_liquid_structurefactor.py)
Expand Down

0 comments on commit 94261db

Please sign in to comment.