Skip to content
Snippets Groups Projects
Commit 825b43d0 authored by Mulas, Giacomo's avatar Mulas, Giacomo
Browse files

work around stupid g++11 implementation to allocate am_2[0]

parent 97f9b425
No related branches found
No related tags found
No related merge requests found
...@@ -501,9 +501,9 @@ void cluster(string config_file, string data_file, string output_path) { ...@@ -501,9 +501,9 @@ void cluster(string config_file, string data_file, string output_path) {
double vk_2 = vk; double vk_2 = vk;
np_int ndit_2 = ndit; np_int ndit_2 = ndit;
dcomplex **am_2 = new dcomplex*[ndit]; dcomplex **am_2 = new dcomplex*[ndit];
dcomplex am_2[0] = new dcomplex[ndit * ndit](); dcomplex *am_vector_2 = new dcomplex[ndit * ndit]();
for (int ai = 1; ai < ndit; ai++) { for (int ai = 0; ai < ndit; ai++) {
am_2[ai] = (am_2[0] + ai * ndit); am_2[ai] = (am_vector_2 + ai * ndit);
} }
int isq_2 = isq; int isq_2 = isq;
int ibf_2 = ibf; int ibf_2 = ibf;
...@@ -586,7 +586,7 @@ void cluster(string config_file, string data_file, string output_path) { ...@@ -586,7 +586,7 @@ void cluster(string config_file, string data_file, string output_path) {
delete[] unsmp_2; delete[] unsmp_2;
delete[] upmp_2; delete[] upmp_2;
delete[] upsmp_2; delete[] upsmp_2;
delete[] am_2[0]; delete[] am_vector_2;
delete[] am_2; delete[] am_2;
} // jxi488 loop } // jxi488 loop
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment