Skip to content

Commit

Permalink
Refs #8508 declaring a statically sized array v2
Browse files Browse the repository at this point in the history
I had another one of those :(
  • Loading branch information
jmborr committed Dec 4, 2013
1 parent 47014c8 commit 8ca3319
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,15 +129,13 @@ void InelasticDiffRotDiscreteCircle::function1D( double *out, const double* xVal
const int N = getAttribute( "N" ).asInt();


//double sph[ N ];
double* sph = new double[ N ];
for ( int k = 1; k < N; k++ )
{
double x = 2 * Q * R * sin( M_PI * k / N );
sph[ k ] = sin( x ) / x; // spherical Besell function of order zero 'j0' is sin(x)/x
}

//double ratel[ N ];
double* ratel = new double[ N ];
for ( int l = 1; l < ( N - 1 ); l++)
{
Expand Down

0 comments on commit 8ca3319

Please sign in to comment.