Open tkoskela opened 5 months ago
Actually, can this PR please wait until we merge #290 @tkoskela ? The conflicts will be a much bigger pain if we do it the other way round....
I want to think about this change some more, and discuss it with @tsuyoshi38 before we approve it
This PR removes pointers to
part_array
inmultiply_module
and passes slices ofpart_array
to subroutines instead. It also tries to clarify the indexing ofpart_array
to make it clearer which slice is being passed.I'm open to opinions on whether or not this is a good idea. It's more of a style change than anything else, although it should make the code more robust against the kind of memory errors in #280. I would argue this is a more Fortran style use of arrays, compared to the C-style use of pointers. It does make the subroutine calls somewhat longer