diff --git a/examples/ex18.py b/examples/ex18.py index b54cf9c2..6c584a4c 100644 --- a/examples/ex18.py +++ b/examples/ex18.py @@ -97,6 +97,7 @@ def run(problem=1, sol.ProjectCoefficient(u0) mesh.Print("euler-mesh.mesh", 8) + for k in range(num_equation): uk = mfem.GridFunction(fes, u_block.GetBlock(k).GetData()) sol_name = "euler-" + str(k) + "-init.gf" @@ -204,8 +205,8 @@ def run(problem=1, parser.add_argument('-c', '--cfl_number', action='store', default=0.3, type=float, help="CFL number for timestep calculation.") - parser.add_argument('-vis', '--visualization', - action='store_true', + parser.add_argument('-novis', '--no_visualization', + action='store_true', default=False, help='Enable GLVis visualization') parser.add_argument('-vs', '--visualization-steps', action='store', default=50, type=float, @@ -215,6 +216,8 @@ def run(problem=1, parser.print_options(args) + visualization = not args.no_visualization + run(problem=args.problem, ref_levels=args.refine, order=args.order, @@ -222,6 +225,6 @@ def run(problem=1, t_final=args.t_final, dt=args.time_step, cfl=args.cfl_number, - visualization=args.visualization, + visualization=visualization, vis_steps=args.visualization_steps, meshfile=args.mesh) diff --git a/mfem/common/bilininteg_ext.i b/mfem/common/bilininteg_ext.i index b22c7f79..99821135 100644 --- a/mfem/common/bilininteg_ext.i +++ b/mfem/common/bilininteg_ext.i @@ -255,6 +255,10 @@ namespace mfem { self._coeff = args %} +%pythonappend ElasticityComponentIntegrator::ElasticityComponentIntegrator %{ + self._coeff = parent_ +%} + %pythonappend DGTraceIntegrator::DGTraceIntegrator %{ self._coeff = args %}