[Trilinos-Users] evalModel, dfdp with several parameters

Nico Schlömer nico.schloemer at ua.ac.be
Thu May 27 10:52:48 MDT 2010


Thanks Ross for the clarification.

> If you want support for both dfdp0 and dfdp1, you have set that up in:
>
> createOutArgs() const
> {
>   ...  
>   outArgs.set_Np_Ng( 2, 0 );
>   outArgs.setSupports( OUT_ARG_DfDp, 0, DerivativeSupport(DERIV_MV_BY_COL) );
>   outArgs.setSupports( OUT_ARG_DfDp, 1, DerivativeSupport(DERIV_MV_BY_COL) );
>   ...
> }
>
>
> You then get at these with:
>
>    RCP<Epetra_MultiVector> dfdp0_out = outArgs.get_DfDp(0).getMultiVector();  
>    RCP<Epetra_MultiVector> dfdp1_out = outArgs.get_DfDp(1).getMultiVector();  
>   

Ah, I thought DfDp(0) would correspond the the 0th subvector in p, which
then had been an explanation for the return value to be a *multi* vector.

I also read in the documentation:
    > Parameters are grouped together into subvectors |p(l)| implies
that certain derivatives will be supplied for all the parameters in the
subvector or none.

How does that fit?

Cheers,
Nico
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://software.sandia.gov/pipermail/trilinos-users/attachments/20100527/77c4c602/attachment.html 


More information about the Trilinos-Users mailing list