[Trilinos-Users] evalModel, dfdp with several parameters

Nico Schlömer nico.schloemer at ua.ac.be
Thu May 27 11:06:03 MDT 2010


*//*  */
/*
>
> */This just means that if p(0) has five components, then if you say
> that you support dfdp(0), that means that you have to support the
> computation of the derivatives for all five of the scalar parameters
> in p(0)./*
>
-- and I still have to explicitly set them by

outArgs.setSupports( OUT_ARG_DfDp, 0, DerivativeSupport(DERIV_MV_BY_COL) );
outArgs.setSupports( OUT_ARG_DfDp, 1, DerivativeSupport(DERIV_MV_BY_COL) );
outArgs.setSupports( OUT_ARG_DfDp, 2, DerivativeSupport(DERIV_MV_BY_COL) );
outArgs.setSupports( OUT_ARG_DfDp, 3, DerivativeSupport(DERIV_MV_BY_COL) );
outArgs.setSupports( OUT_ARG_DfDp, 4, DerivativeSupport(DERIV_MV_BY_COL) );

and fetch them with

RCP<Epetra_MultiVector> dfdp0_out = outArgs.get_DfDp(0).getMultiVector();
RCP<Epetra_MultiVector> dfdp1_out = outArgs.get_DfDp(1).getMultiVector();
RCP<Epetra_MultiVector> dfdp2_out = outArgs.get_DfDp(2).getMultiVector();
RCP<Epetra_MultiVector> dfdp3_out = outArgs.get_DfDp(3).getMultiVector();
RCP<Epetra_MultiVector> dfdp4_out = outArgs.get_DfDp(4).getMultiVector();

unless I want Thyra to complain. Right?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://software.sandia.gov/pipermail/trilinos-users/attachments/20100527/253679bf/attachment-0001.html 


More information about the Trilinos-Users mailing list