Skip to content

Explicitly list public statements#28

Merged
zarethrex merged 9 commits into
zarethrex:mainfrom
yanjen:default_private
Jun 18, 2026
Merged

Explicitly list public statements#28
zarethrex merged 9 commits into
zarethrex:mainfrom
yanjen:default_private

Conversation

@yanjen

@yanjen yanjen commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Hello again,

Without specifying private/public, all statements are public by default. However, with certain compiler flags (eg, -fmodule-private in gfortran), all statements become private by default and would break the code.

Using default private and explicitly listing public statements will make it clearer which statements the users should use. This style is also recommended in the Fortran best practices documentation

With this fix, the code should be consistent with or without the flag.

@zarethrex zarethrex merged commit 8be42d1 into zarethrex:main Jun 18, 2026
4 checks passed
@yanjen yanjen mentioned this pull request Jun 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants