Lawrence,
I tried following the syntax of what I see in utility_meshes.py but for some reason it seems the boundary_ids are not registering.
Attached is my code. Run it as:
python 2D_Darcy_Homo_Iso.py 600 150 0
Thanks,
Justin
PS - In the attached code, I could also pass in either -flow_ksp_monitor or -tran_ksp_monitor to view the ksp monitors for the Darcy or transport equations, respectively, but if I try to pass in both, i get this error:
Traceback (most recent call last):
File "2D_Darcy_Homo_Iso.py", line 197, in <module>
solver_parameters=flow_parameters)
File "/Users/jychang48/Software/firedrake/src/firedrake/firedrake/variational_solver.py", line 262, in __init__
super(LinearVariationalSolver, self).__init__(*args, **kwargs)
File "/Users/jychang48/Software/firedrake/src/firedrake/firedrake/variational_solver.py", line 165, in __init__
self.set_from_options(self.snes)
File "/Users/jychang48/Software/firedrake/src/firedrake/firedrake/solving_utils.py", line 102, in set_from_options
petsc_obj.setFromOptions()
File "PETSc/SNES.pyx", line 112, in petsc4py.PETSc.SNES.setFromOptions (src/petsc4py.PETSc.c:162247)
petsc4py.PETSc.Error: error code 56
[0] SNESSetFromOptions() line 983 in /private/var/folders/92/1kh0g4kn2z50fnwsmf8s269w0000gn/T/pip-S9HxIn-build/src/snes/interface/snes.c
[0] KSPSetFromOptions() line 499 in /private/var/folders/92/1kh0g4kn2z50fnwsmf8s269w0000gn/T/pip-S9HxIn-build/src/ksp/ksp/interface/itcl.c
[0] KSPMonitorSetFromOptions() line 321 in /private/var/folders/92/1kh0g4kn2z50fnwsmf8s269w0000gn/T/pip-S9HxIn-build/src/ksp/ksp/interface/itcl.c
[0] PetscOptionsGetViewer() line 241 in /private/var/folders/92/1kh0g4kn2z50fnwsmf8s269w0000gn/T/pip-S9HxIn-build/src/sys/classes/viewer/interface/viewreg.c
[0] No support for this operation for this object type
[0] Unsupported viewer -tran_ksp_monitor
I can't seem to pinpoint what might be causing this.