![]() |
Blitz Support : |
From: Winfried Bilgic (4Winne_at_[hidden])
Date: 2003-05-14 09:57:35
Hello to Blitz Support,
i'm new to Blitz and want to test few things out, to evaluate the behavior of the postulated
performance bursts. My test framework is the FDTD Scheme for simulating electromagnetic
Fielddevelopments.
First i need selfdefined stencils, like...
BZ_DECLARE_STENCIL3(dohx(),hx,ey,ez)
hx+=hx + dtmudz*(ey(1,0,1) - ey(1,0,0)) - dtmudy*(ez(1,1,0) - ez(1,0,0));
BZ_END_STENCIL
Second i need to implant this in for loops
for(i=0; i<(nx-1); i++)
for(j=0; j<(ny-1); j++)
for(k=0; k<(nz-1); k++)
{
hx(i,j,k) += (dtmudz*(ey(i+1,j,k+1) - ey(i+1,j,k)) - dtmudy*(ez(i+1,j+1,k) - ez(i+1,j,k)));
}
Using the Blitz arrays was not a problem, but declaring selfdefined stencils gets me many errors from
gcc 3.1 Compiler. And how do i paste the location i,j,k to the stencil ?
What must be done ?
Winn
____________________________________________________________________________
Jetzt bei WEB.DE FreeMail anmelden = 1qm Regenwald schuetzen! Helfen
Sie mit! Nutzen Sie den Serien-Testsieger. http://user.web.de/Regenwald