File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 731
731
... input("No-flux - steady-state failure. \
732
732
... Press <return> to proceed...")
733
733
734
- >>> print(numerix.allclose(phi, 0.2, atol=1e-5))
734
+ >>> print(numerix.allclose(phi, 0.2, atol=1e-5)) # doctest: +NOT_TRILINOS_SOLVER
735
735
False
736
736
737
737
.. image:: /figures/examples/diffusion/mesh1D-noflux_steady_fail.*
742
742
Depending on the solver, we find that the value may be uniformly zero,
743
743
infinity, or NaN, or the solver may just fail!
744
744
What happened to our no-flux boundary conditions?
745
+ Trilinos actually manages to get the correct solution, but this should not
746
+ be relied on; this problem has an infinite number of solutions.
745
747
746
748
The problem is that in the implicit discretization of :math:`\nabla\cdot(D\nabla\phi) = 0`,
747
749
Original file line number Diff line number Diff line change @@ -190,6 +190,12 @@ def _import_mesh_matrices(suite):
190
190
test = lambda : solver_suite != 'pyamgx' ,
191
191
why = "the PyAMGX solver is being used." ,
192
192
skipWarning = True )
193
+
194
+ register_skipper (flag = 'NOT_TRILINOS_SOLVER' ,
195
+ test = lambda : solver_suite not in ['trilinos' , 'no-pysparse' ],
196
+ why = "the Trilinos solvers are being used." ,
197
+ skipWarning = True )
198
+
193
199
del register_skipper
194
200
195
201
_log .info ("Solver suite is %s" , solver_suite )
You can’t perform that action at this time.
0 commit comments