Skip to content

Commit

Permalink
maintainer: Fix LB benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
jngrad committed Aug 22, 2023
1 parent 76d24f2 commit f5d9b1f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion maintainer/benchmarks/lb.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
parser.add_argument("--volume_fraction", metavar="FRAC", action="store",
type=float, default=0.03, required=False,
help="Fraction of the simulation box volume occupied by "
"particles (range: [0.01-0.74], default: 0.50)")
"particles (range: [0.01-0.74], default: 0.03)")
parser.add_argument("--single_precision", action="store_true", required=False,
help="Using single-precision floating point accuracy")
parser.add_argument("--gpu", action=argparse.BooleanOptionalAction,
Expand Down Expand Up @@ -139,6 +139,8 @@
lbf = lb_class(agrid=agrid, tau=system.time_step, kinematic_viscosity=1.,
density=1., single_precision=args.single_precision)
system.lb = lbf
if n_part:
system.thermostat.set_lb(LB_fluid=lbf, gamma=1., seed=42)


# time integration loop
Expand Down

0 comments on commit f5d9b1f

Please sign in to comment.