17.11.2012 Views

Numerical recipes

Numerical recipes

Numerical recipes

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

880 Chapter 19. Partial Differential Equations<br />

void rstrct(double **uc, double **uf, int nc)<br />

Half-weighting restriction. nc is the coarse-grid dimension. The fine-grid solution is input in<br />

uf[1..2*nc-1][1..2*nc-1], the coarse-grid solution is returned in uc[1..nc][1..nc].<br />

{<br />

int ic,iif,jc,jf,ncc=2*nc-1;<br />

}<br />

for (jf=3,jc=2;jc

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

Saved successfully!

Ooh no, something went wrong!