← Back to team overview

dolfin team mailing list archive

Re: PETScVector

 

> I've compiled dolfin using PETSc. After some work, everything finally
> compiles, but there was no way to make those working inside PETScVector:
>
> /// Return value of maximum component of vector
> real max() const;
>
> /// Return value of minimum component of vector
> real min() const;
>
> I thought you wanted to know it, just in case you want to dump them (max
> is just the linf norm so it's not even necessary).
>
> I have also another question: why is uBlas necessary for compiling?
> Wouldn'it be (at least in theory) possible to use just PETSc?
>
> Alessio

I'd also like to add that in order to use PETSc functions with dolfin
matrices the call Mat() should not be constant (I guess it would be
pointless to derive a child class because I'd lose all the private
attributes and thus I'd have to copy and paste a lot of code, which is a
bad habit).

Alessio



Follow ups

References