September 1st, 2010, 09:47 PM
I wrote code to calculate spherical harmonics years ago. The problem I had was rounding error. My guess is that rounding error is your problem as well. I am not going to post my code, because I...
September 1st, 2010, 09:22 PM
Thanks for your responses. I have done some tests.
I believe Paul suggested I run the following code.
# include <iostream>
# include <fstream>
# include <string>
September 1st, 2010, 10:56 AM
I have told you the program crashes. I am not the one killing the program. I am running this on a 32-bit linux machine with 1 GB of RAM. I am running this on a computer cluster and when I submit...
August 31st, 2010, 04:22 PM
August 31st, 2010, 01:01 PM
My apologies for posting code that does not work. The code I posted was in two source files, and I thought it would be more convenient to post them as one file, but I copied and pasted the wrong...
August 30th, 2010, 10:48 PM
I am trying to write a function which attempts to allocate memory 3d vectors and returns false if it is unable to allocate the memory. It is not working. I have pasted the code below.
#...
June 30th, 2010, 08:30 PM
Thanks. It worked. I tried bool SafeArrayAlloc(T&* array, int Size) previously but it did not work. You are probably right that this function is not very useful, but I also wanted to write a...
June 30th, 2010, 07:55 PM
I am trying to write a function to do dynamic memory allocation with a try catch block, so that I don't have to manually write a try catch block each time I want to allocate memory for an array. The...
January 14th, 2007, 04:56 PM
I am trying to take numbers from a text file and then do some math with them, but I am having some difficulty saving the numbers from the text to an array. Every time it saves a number from the...