dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #24763
Re: [Branch ~dolfin-core/dolfin/main] Rev 6355: Add "default" as option for LU solver for uBLAS and MTL4 backends
On 20 Oct 2011, at 20:32, noreply@xxxxxxxxxxxxx wrote:
> ------------------------------------------------------------
> revno: 6355
> committer: Anders Logg <logg@xxxxxxxxx>
> branch nick: work
> timestamp: Thu 2011-10-20 21:24:07 +0200
> message:
> Add "default" as option for LU solver for uBLAS and MTL4 backends
> and fix illegal use of Cholesky as an LU method in one demo.
What does illegal use mean?
Garth
> modified:
> demo/undocumented/sym-dirichlet-bc/cpp/main.cpp
> dolfin/la/MTL4Factory.h
> dolfin/la/uBLASFactory.h
> test/unit/book/python/chapter_10.py
>
>
> --
> lp:dolfin
> https://code.launchpad.net/~dolfin-core/dolfin/main
>
> Your team DOLFIN Core Team is subscribed to branch lp:dolfin.
> To unsubscribe from this branch go to https://code.launchpad.net/~dolfin-core/dolfin/main/+edit-subscription
> === modified file 'demo/undocumented/sym-dirichlet-bc/cpp/main.cpp' --- demo/undocumented/sym-dirichlet-bc/cpp/main.cpp 2011-06-02 19:26:59 +0000 +++ demo/undocumented/sym-dirichlet-bc/cpp/main.cpp 2011-10-20 19:24:07 +0000 @@ -128,7 +128,7 @@ // Solve system GenericVector& x = u.vector(); - LUSolver solver("cholesky"); + LUSolver solver; solver.solve(A, x, b); // Plot solution === modified file 'dolfin/la/MTL4Factory.h' --- dolfin/la/MTL4Factory.h 2011-10-19 19:13:52 +0000 +++ dolfin/la/MTL4Factory.h 2011-10-20 19:24:07 +0000 @@ -75,6 +75,7 @@ lu_solver_methods() const { return boost::assign::pair_list_of + ("default", "default LU solver") ("umfpack", "UMFPACK (Unsymmetric MultiFrontal sparse LU factorization)"); } === modified file 'dolfin/la/uBLASFactory.h' --- dolfin/la/uBLASFactory.h 2011-10-19 19:13:52 +0000 +++ dolfin/la/uBLASFactory.h 2011-10-20 19:24:07 +0000 @@ -77,6 +77,7 @@ lu_solver_methods() const { return boost::assign::pair_list_of + ("default", "default LU solver") ("umfpack", "UMFPACK (Unsymmetric MultiFrontal sparse LU factorization)"); } === modified file 'test/unit/book/python/chapter_10.py' --- test/unit/book/python/chapter_10.py 2011-10-20 18:56:05 +0000 +++ test/unit/book/python/chapter_10.py 2011-10-20 19:24:07 +0000 @@ -900,13 +900,18 @@ u = TrialFunction(V) v = TestFunction(V) a = u*v*dx - A = assemble(a) # FIXME: Enable + #parameters["linear_algebra_backend"] = "uBLAS" + #A = assemble(a) + #from scipy.sparse import csr_matrix #rows, columns, values = A.data() #csr = csr_matrix(values, rows, columns) + # Reset linear algebra backend so that other tests work + parameters["linear_algebra_backend"] = "PETSc" + def test_box_2(self): b = Vector(10) c = Vector(10)
Follow ups