Skip to content

set: module content default private - #120

Merged
GeorgGrassler merged 3 commits into
itpplasma:mainfrom
gg-codebot:main
Aug 23, 2026
Merged

set: module content default private#120
GeorgGrassler merged 3 commits into
itpplasma:mainfrom
gg-codebot:main

Conversation

@GeorgGrassler

Copy link
Copy Markdown
Collaborator

Public interfaces for user and tests are specified explicitly - cleans up the docs generation of FORD.

Bot and others added 3 commits August 23, 2026 16:41
Every module under src/ now declares `private` after `implicit none` and
lists its API explicitly with `public ::`. Only entities actually used by
other modules, app/main.f90, or the tests are exported; everything else
(internal helpers, abstract interfaces for callbacks, module state used
only inside the module) becomes private.

Newly private, i.e. previously public but never used outside their module:

- constants: eps
- utils: not_same_scalar/_array/_matrix, contains_nan
- integrate: quadkind, quadkind_integrand, convert_to_quadkind, convert_to_dp
- find_extrema: func1d, negative_func, cannot_resolve, cannot_resolve_at_edge
- fourier_field: next_power_of_two, fft_1d, the compute_* bindings
- fieldline_mod: get_theta_scalar, get_theta_array
- fieldline_labels: calc_iota, is_multiple_of_2pi
- make_fieldline: check_if_valid_input, estimate_symmetry_violation,
  pick_maximum, nudge_maxima_inward
- deviation: has_sin_modes
- fit_functions: eps
- field_base: the deferred-binding interfaces
- shaing_callen_mod: calc_avg_lambda_over_B_squared
- read_file: ds_dr, check_if_valid_namelist, the rabe_config namelist group

error_handling additionally gains the default `private` it was missing and
exports reset_failed_check_counter, which app/main.f90 and the unit test
already used implicitly.

No behaviour or interface changes; `make test` (36/36) passes.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Sry29kVN4WeR9ozM1PaYeg
refactor: make module entities private by default
@GeorgGrassler
GeorgGrassler merged commit 94d0bae into itpplasma:main Aug 23, 2026
3 checks passed
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.

1 participant