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.

161<br />

162 i f NHL > 0 % a c c u r a t e l y account m u l t i p r o c e s s o r s<br />

163 NCL = 0 ; % number o f CPUs in lamnodes<br />

164 f o r i =1: s i z e (LNO, 1 ) % add the 2nd ”:”− separated<br />

165 f i e l d s=s p l i t (LNO( i , : ) , ’ : ’ ) ; % f i e l d , ie , #CPUs<br />

166 NCL = NCL + str2num ( f i e l d s ( 2 , : ) ) ;<br />

167 end<br />

168 i f NCL 0 % avoid lamhalt in weird c a s e s<br />

191 disp ( ’ LAM Init : h a l t i n g LAM’ )<br />

192 system ( ’ lamhalt ’ ) ; % won ’ t get caught on t h i s<br />

193 end<br />

194 end<br />

195 end<br />

196<br />

197 %−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−<br />

198 % LAMBOOT<br />

199 %−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−<br />

200 % r e a s o n s <strong>to</strong> lamboot : %<br />

201 % − not lambooted yet % s t a t ˜=0<br />

202 % − lamhalted above ( or weird ) % NHL < NSLAVES+1 (0 i s

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

Saved successfully!

Ooh no, something went wrong!