-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
regression in build_pc_ilu in ex09 #469
Comments
|
As is 1.2.0, but 2.0.0 introduces the failure. That's in terms of releases; I haven't tried git bisect yet. |
This is running with |
Diff between 1.2.0 and 2.0.0 in utils.py:
Doesn't seem to touch the preconditioner part? Maybe there is another bug somewhere? |
Sounds like a good idea. |
According to
|
Maybe the local reimplementation of |
Yep; ex09 runs fine in master if the MeshTet is build with from meshzoo import cube
# p = np.linspace(0, 1, 16)
# m = MeshTet.init_tensor(*(p,) * 3)
points, cells = cube(nx=16, ny=16, nz=16)
m = MeshTet(points.T, cells.T) |
I say fine, though it does fail the test (
but then 8d6446d did move the goalposts too. -self.assertAlmostEqual(np.max(ex09.x), 0.055596791644282988)
+self.assertAlmostEqual(np.max(ex09.x), 0.05528520791811886) |
The example also runs fine with a refined
This isn't exactly the same size but quite close: 20480 tets, cf. 20250 in the current example. |
Default parameters of build_pc_ilu may not be the best ones for all scenarios. But now it seems to converge. |
ex09 is running differently to how I remember. I remember the second solve with
solver_iter_pcg
, usingM=build_pc_ilu(Aint), as being faster than the first, with
M=None`. (That was presumably the point of the example.) However now, it seems that the second solve is failing withThis doesn't fail
tests.test_examples
because there there is a third preconditioner, based onpyamg.smoothed_aggregation_solver
, which overwrites the solution and it's only the last value ofex09.x
that is assessed.I've tested this on Ubuntu 18.04.5 LTS, 20.04.1 LTS, and Microsoft Windows 10.
Perhaps
tests.test_examples.TextEx09
should be strengthened to test all preconditioners present?I note that
build_pc_ilu
is also exercised in ex30 (Uzawa) and it is still working fine.The text was updated successfully, but these errors were encountered: