Skip to content

Conversation

@tkoskela
Copy link
Contributor

@tkoskela tkoskela commented Nov 30, 2023

This PR removes pointers to part_array in multiply_module and passes slices of part_array to subroutines instead. It also tries to clarify the indexing of part_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

@tkoskela tkoskela added area: main-source Relating to the src/ directory (main Conquest source code) improves: stability Fix or enhance issues with stability or robustness needs: confirmation Bug or issue needing confirmation priority: minor type: question Issue to be discussed by developers labels Dec 13, 2023
@ilectra
Copy link
Contributor

ilectra commented Dec 20, 2023

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....

@davidbowler
Copy link
Contributor

I want to think about this change some more, and discuss it with @tsuyoshi38 before we approve it

Copy link
Contributor

@davidbowler davidbowler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a better way to manage the access to part_array

@davidbowler davidbowler added type: maintenance Refactoring, updating etc and removed needs: confirmation Bug or issue needing confirmation type: question Issue to be discussed by developers labels Jan 16, 2024
@davidbowler davidbowler added this to the Release v1.4 milestone Jan 16, 2024
@tkoskela tkoskela changed the title Pointers in multiply module Remove pointers in multiply module Jan 16, 2024
@tkoskela tkoskela merged commit 398275f into develop Jun 27, 2024
@tkoskela tkoskela deleted the tk-refactor-multiply-module-pointers branch June 27, 2024 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: main-source Relating to the src/ directory (main Conquest source code) improves: stability Fix or enhance issues with stability or robustness priority: minor type: maintenance Refactoring, updating etc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants