Roy,

I have a question related to this. Since PetscVector does not provide
a const version of vec(), what do you do when all you have is a const
PetscVector, for example in the residual/assembly but want to access
the vec() explicitly ? Petsc does not have any "const" qualifiers and
so this needs a hack like const_cast. Is there a good suggestion to
get around this ?

Vijay

On Thu, Jun 2, 2011 at 2:04 PM, Roy Stogner <[email protected]> wrote:
>
> On Thu, 2 Jun 2011, Ataollah Mesgarnejad wrote:
>
>> I was wondering if it is possible to use Libmesh along with Tao to
>> do a constrained minimization? What I think is needed a way to use
>> Libmesh to make PETSc Mat and Vec.
>
> PetscMatrix::mat()
> PetscVector::vec()
> ---
> Roy
>
> ------------------------------------------------------------------------------
> Simplify data backup and recovery for your virtual environment with vRanger.
> Installation's a snap, and flexible recovery options mean your data is safe,
> secure and there when you need it. Discover what all the cheering's about.
> Get your free trial download today.
> http://p.sf.net/sfu/quest-dev2dev2
> _______________________________________________
> Libmesh-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/libmesh-users
>

------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today. 
http://p.sf.net/sfu/quest-dev2dev2 
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to