Skip to content

Commit

Permalink
(WIP) making ex18 to conform with the latest
Browse files Browse the repository at this point in the history
  • Loading branch information
sshiraiwa committed Aug 3, 2024
1 parent 604ec99 commit f50f76d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
9 changes: 6 additions & 3 deletions examples/ex18.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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,
Expand All @@ -215,13 +216,15 @@ def run(problem=1,

parser.print_options(args)

visualization = not args.no_visualization

run(problem=args.problem,
ref_levels=args.refine,
order=args.order,
ode_solver_type=args.ode_solver,
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)
4 changes: 4 additions & 0 deletions mfem/common/bilininteg_ext.i
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,10 @@ namespace mfem {
self._coeff = args
%}

%pythonappend ElasticityComponentIntegrator::ElasticityComponentIntegrator %{
self._coeff = parent_
%}

%pythonappend DGTraceIntegrator::DGTraceIntegrator %{
self._coeff = args
%}
Expand Down

0 comments on commit f50f76d

Please sign in to comment.