Mercurial > fem-fenics-eugenio
comparison inst/linear_algebra_backend.m @ 254:2b51546a28f7
Change default linear algebra back-end
author | Eugenio Gianniti <eugenio.gianniti@mail.polimi.it> |
---|---|
date | Sat, 26 Jul 2014 19:38:23 +0200 |
parents | b1dc98050634 |
children | 61830a4f9ab9 |
comparison
equal
deleted
inserted
replaced
253:5e9b5bbdc56b | 254:2b51546a28f7 |
---|---|
16 ## -*- texinfo -*- | 16 ## -*- texinfo -*- |
17 ## @deftypefn {Function File} @var{val} = linear_algebra_backend () | 17 ## @deftypefn {Function File} @var{val} = linear_algebra_backend () |
18 ## @deftypefnx {Function File} @var{old_val} = linear_algebra_backend (@var{new_val}) | 18 ## @deftypefnx {Function File} @var{old_val} = linear_algebra_backend (@var{new_val}) |
19 ## | 19 ## |
20 ## Query or set the internal variable that specifies the linear algebra back-end | 20 ## Query or set the internal variable that specifies the linear algebra back-end |
21 ## to use when assembling systems, matrices or vectors. It defaults to "uBLAS". | 21 ## to use when assembling systems, matrices or vectors. It defaults to "PETSc". |
22 ## uBLAS and PETSc are currently available. | 22 ## uBLAS and PETSc are currently available. |
23 ## | 23 ## |
24 ## @end deftypefn | 24 ## @end deftypefn |
25 | 25 |
26 function output = linear_algebra_backend (varargin) | 26 function output = linear_algebra_backend (varargin) |
27 | 27 |
28 persistent backend = "uBLAS"; | 28 persistent backend = "PETSc"; |
29 persistent opts = {"uBLAS", | 29 persistent opts = {"uBLAS", |
30 "PETSc"}; | 30 "PETSc"}; |
31 | 31 |
32 if (nargin > 1) | 32 if (nargin > 1) |
33 print_usage (); | 33 print_usage (); |