13.01.2013 Views

sundialsTB, a Matlab Interface to SUNDIALS - Site Index Page ...

sundialsTB, a Matlab Interface to SUNDIALS - Site Index Page ...

sundialsTB, a Matlab Interface to SUNDIALS - Site Index Page ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Purpose<br />

CVDenseJacFn - type for user provided dense Jacobian function.<br />

Synopsis<br />

This is a script file.<br />

Description<br />

CVDenseJacFn - type for user provided dense Jacobian function.<br />

IVP Problem<br />

The function DJACFUN must be defined as<br />

FUNCTION J = DJACFUN(T,Y,FY)<br />

and must return a matrix J corresponding <strong>to</strong> the Jacobian of f(t,y).<br />

The input argument FY contains the current value of f(t,y).<br />

If a user data structure DATA was specified in CVodeMalloc, then<br />

DJACFUN must be defined as<br />

FUNCTION [J, NEW_DATA] = DJACFUN(T,Y,FY,DATA)<br />

If the local modifications <strong>to</strong> the user data structure are needed in<br />

other user-provided functions then, besides setting the matrix J,<br />

the DJACFUN function must also set NEW_DATA. Otherwise, it should<br />

set NEW_DATA=[] (do not set NEW_DATA = DATA as it would lead <strong>to</strong><br />

unnecessary copying).<br />

Adjoint Problem<br />

The function DJACFUNB must be defined either as<br />

FUNCTION JB = DJACFUNB(T,Y,YB,FYB)<br />

or as<br />

FUNCTION [JB, NEW_DATA] = DJACFUNB(T,Y,YB,FYB,DATA)<br />

depending on whether a user data structure DATA was specified in<br />

CVodeMalloc. In either case, it must return the matrix JB, the<br />

Jacobian of fB(t,y,yB), with respect <strong>to</strong> yB. The input argument<br />

FYB contains the current value of f(t,y,yB).<br />

See also CVodeSetOptions<br />

NOTE: DJACFUN and DJACFUNB are specified through the property<br />

JacobianFn <strong>to</strong> CVodeSetOptions and are used only if the property<br />

LinearSolver was set <strong>to</strong> ’Dense’.<br />

Purpose<br />

CVGcommFn<br />

CVGcommFn - type for user provided communication function (BBDPre).<br />

Synopsis<br />

This is a script file.<br />

Description<br />

27

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!