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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

4 Supporting modules<br />

This section describes two additional modules in <strong>sundialsTB</strong>, nvec<strong>to</strong>r and putils. The functions<br />

in nvec<strong>to</strong>r perform various operations on vec<strong>to</strong>rs. For serial vec<strong>to</strong>rs, all of these operations default<br />

<strong>to</strong> the corresponding matlab functions. For parallel vec<strong>to</strong>rs, they can be used either on the local<br />

portion of the distributed vec<strong>to</strong>r or on the global vec<strong>to</strong>r (in which case they will trigger an MPI<br />

Allreduce operation). The functions in putils are used <strong>to</strong> run parallel <strong>sundialsTB</strong> applications.<br />

The user should only call the function mpirun <strong>to</strong> launch a parallel matlab application. See one of<br />

the paralel <strong>sundialsTB</strong> examples for usage.<br />

The functions in these two additional modules are listed in Table 3 and described in detail in<br />

the remainder of this section.<br />

nvec<strong>to</strong>r<br />

putils<br />

Table 3: The nvec<strong>to</strong>r and putils functions<br />

N VMax returns the largest element of x<br />

N VMaxNorm returns the maximum norm of x<br />

N VMin returns the smallest element of x<br />

N VDotProd returns the dot product of two vec<strong>to</strong>rs<br />

N VWrmsNorm returns the weighted root mean square norm of x<br />

N VWL2Norm returns the weighted Euclidean L2 norm of x<br />

N VL1Norm returns the L1 norm of x<br />

mpirun runs parallel examples<br />

mpiruns runs the parallel example on a child matlab process<br />

LAM Start lamboot and MPI Init master (if required)<br />

LAM Finish clean mpiTB mex files from memory<br />

50

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

Saved successfully!

Ooh no, something went wrong!