diff --git a/src/MLIAP/mliap_so3.cpp b/src/MLIAP/mliap_so3.cpp index 2027119d86..97e6abb010 100644 --- a/src/MLIAP/mliap_so3.cpp +++ b/src/MLIAP/mliap_so3.cpp @@ -477,8 +477,14 @@ void MLIAP_SO3::compute_W(int nmax, double *arr) delete sqrtD; delete tempM; - delete temparr; - delete tempvl; + for (int iy=0; iy Jacobi_v2; int SO3Math::jacobin(int n, double const* const* mat, double *eval, double **evec) { int i,j; - double mat_cpy[n][n]; + double **mat_cpy; + + mat_cpy = new double* [n]; + for (int iy=0; iy