Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix rotation in set_coupler_type_data
`rotate_array` in `set_coupler_type_data` was trying to rotate an array to another of different size when idim and jdim are present. Some compilers seemed to let this through, but it raised a double-deallocation error in GCC. I'm guessing it's because the rotation was allocating to a new implicit array which was automatically deallocated. But I did not confirm this. This was modified to rotate onto a new array of the same size. The idim and jdim are passed to CT_set_data, which (hopefully) sorts out the indexing.
- Loading branch information