for (t = 1;t<=maxSamples;t++)
{
//Dx Field
for(x=1;x<xa;x++)
{
for(y=1;y<ySize;y++)
{
for (z=1;z<zSize;z++)
{
Type: Posts; User: Surrender
for (t = 1;t<=maxSamples;t++)
{
//Dx Field
for(x=1;x<xa;x++)
{
for(y=1;y<ySize;y++)
{
for (z=1;z<zSize;z++)
{
I just compared running a simple simulation with arrays allocated for 40*40*40 in Matlab and C and the difference is astounding
Matlab: 15 minutes
C: 19 seconds
I think I'll roll with the file...
Firstly, thanks for all the feedback folks.
I'm running an electromagnetic simulation. It's a 'leapfrog' algorithm, so each iteration of my code relies on the previous one and all arrays are...
Running this on Vista Ultimate 64 and with 4GB of Ram, I've also tried this on a Ubuntu 64 machine with the same, no dice on either machine.
I'm trying to allocate around 30 3d arrays of size 300*300*300.
I've tried allocating them statically, i.e.:
float dx[xSize][ySize][zSize];
With this method I get a crash (upon execution)...