![]() |
Blitz Support : |
From: Andy Maloney (schrodiscat_at_[hidden])
Date: 2004-07-07 16:10:19
I am writing a code that utilizes a finite difference time domain scheme for
solving 6 partial differential equations. The PDEs are Maxwell's equations.
Right now, I am trying to set up a grid in 3 dimensions (i,j,k) that has
assigned to each (i,j,k) 6 values. They are respectively the x-component of
the electric(E) and magnetic(M) field, the y-component of the E and M field,
and the z-component of the E and M field. Now the equations that I need to
model are coupled in the sense that to solve say the electric field in the
x-direction (ex), I need it to look at the equations for the magnetic field
in the y and z directions (hy, hz respectively). However, hy and hz also
call other components of the E and M field. I do not know how to set up the
Arrays in Blitz so that ex can look at hy and hz to find their values, loop
over all (i,j,k) values, dump the information to a file, and then loop all
over again for another time step. If any one can help in regards to setting
up the Arrays, I would greatly appreciate it. I have code written, however,
I cannot get it to work without getting a segmentation fault. If you have
anything to help, please post a reply. Thanks.
Andy_
_________________________________________________________________
Get fast, reliable Internet access with MSN 9 Dial-up – now 2 months FREE!
http://join.msn.click-url.com/go/onm00200361ave/direct/01/