Fortran good first issues

51 open Fortran issues currently match the default 10+ star filter. Scored difficulty: 5,932 at 1/5, 8,714 at 2/5, 12,645 at 3/5, 12,063 at 4/5, 855 at 5/5. This hub uses the same feed as the homepage, limited to repositories whose GitHub language is Fortran.

All languages · Browse projects · How to find good first issues · Hacktoberfest 2026

Active projects

Unique repos with open help-wanted issues updated in the last 30 days

Showing 30 of ~51 matching filters (Fortran · 10+ stars)

List
MFlowCode/MFC

Remove test --only case sensitivity

AI summary

This issue proposes making the `--only` flag for running tests case-insensitive. Currently, users must remember the exact capitalization of test labels, which is inconvenient due to inconsistent naming conventions. Implementing this change would improve the user experience by allowing flexible input for test selection.

good first issue
381
Difficulty
2/5
MFlowCode/MFC

post_process: lift the bubble-moment block out of the ~580-line s_save_data

AI summary

This issue proposes refactoring a large Fortran routine (`s_save_data`) by extracting a self-contained block related to bubble moments into a separate helper function. This aims to improve code readability and maintainability. The FFT energy-spectrum block is explicitly excluded due to a lack of test coverage.

enhancementgood first issue
381
Difficulty
2/5
MFlowCode/MFC

test toolchain dedup: duplicate is_uuid, repeated trace-truncation, twin error ladders, 3 axis branches

AI summary

This issue identifies four instances of duplicated code within the test toolchain, including a repeated `is_uuid` function, a common trace-truncation idiom, twin error-classification ladders, and similar axis branches in `get_dimensions`. The proposed solution is to extract these repeated code segments into reusable functions to improve maintainability and reduce potential errors.

enhancementgood first issue
381
Difficulty
2/5
MFlowCode/MFC

viz/interactive.py: dedup repeated status Div, log-transform closure, and 3D mesh cache key (+ first unit tests)

AI summary

This issue proposes refactoring the `interactive.py` module to eliminate code duplication. It involves extracting three distinct, repeated logic blocks into separate helper functions: one for creating status HTML Divs, another for log/identity data transformations, and a third for generating cache keys for 3D meshes. The refactoring will also include adding the first unit tests for these extracted functions.

enhancementgood first issue
381
Difficulty
2/5
MFlowCode/MFC

snake_case sweep: rename camelCase/Hungarian leftovers in test toolchain

AI summary

This issue requests a mechanical renaming of variables and function parameters within the Python test toolchain to adhere to the repository's snake_case convention. The changes involve replacing camelCase and Hungarian notation leftovers with their snake_case equivalents, affecting local variables and function parameters with no expected impact on public APIs or golden files.

enhancementgood first issue
381
Difficulty
1/5
MFlowCode/MFC

Naming cleanup: misnamed MPI gather routine, stutter type names, builtin-shadowing locals

AI summary

This issue addresses several minor naming inconsistencies and errors within the codebase. It includes correcting a misnamed MPI routine, fixing stuttering type names, renaming local variables that shadow built-in functions, and suggesting more descriptive module names for clarity. These changes are low-risk and do not affect generated output.

documentationgood first issue
381
Difficulty
1/5
MFlowCode/MFC

Rename misleading WP_MOK in post_process MPI-IO (holds storage-precision byte count)

AI summary

The variable `WP_MOK` in `m_data_input.f90` is misleadingly named as it is calculated using storage precision (`stp`) rather than working precision (`wp`). The issue proposes renaming it to `STP_MOK` to accurately reflect its origin and ensure clarity, especially in mixed-precision scenarios. This change is purely cosmetic and will not affect the program's behavior.

documentationgood first issue
381
Difficulty
1/5
MFlowCode/MFC

pre_process: 22x repeated patch_id_fp declaration + duplicated QBMM moment block

AI summary

This issue identifies two areas of code duplication within the `src/pre_process/` directory. The first involves a repeated 5-line conditional declaration for `patch_id_fp` across multiple files, which can be consolidated into a single Fypp macro. The second involves duplicated physics initialization blocks for QBMM moments and void-fraction rescaling within the `s_assign_patch_species_primitive_variables` subroutine, which can be extracted into helper functions or macros.

enhancementgood first issue
381
Difficulty
2/5
MFlowCode/MFC

Add keep-in-sync comments to near-identical twin routines (viscous/conversion/rhs)

AI summary

This issue proposes adding "keep-in-sync" comments to near-identical routines that are manually maintained. This is to prevent silent divergence when logic is updated in one routine but not its twin. The fix involves adding cross-reference comments to specific pairs of routines identified as having shared logic that needs to remain consistent.

enhancementgood first issue
381
Difficulty
2/5
MFlowCode/MFC

Resolve or delete stale TODO / edit-marker comments in simulation/

AI summary

This issue tracks several stale TODO comments and leftover edit markers within the simulation code. Developers need to either implement the suggested changes, verify their necessity, or remove the comments entirely to improve code cleanliness and maintainability.

documentationgood first issue
381
Difficulty
2/5
MFlowCode/MFC

Assorted magic literals: downsample factor 3, repeated 1e-300 log floor, p0/j<177 in s_perturb_primitive

AI summary

This issue identifies three instances of 'magic literals' (unexplained hardcoded numbers) in the codebase. These include a hardcoded downsample factor of 3, repeated use of 1e-300 for log flooring, and physics-coupled magic numbers related to atmospheric pressure and mesh resolution. The goal is to replace these literals with named constants and add documentation to improve code clarity and prevent potential errors, without changing the actual numerical values.

documentationenhancementgood first issue
381
Difficulty
2/5
MFlowCode/MFC

Fix several misleading/incorrect code comments across src/

AI summary

This issue addresses several incorrect or misleading code comments within the `src/` directory. The identified issues include factual inaccuracies about data types, incorrect module descriptions, swapped terms (maximum/minimum), and duplicated words. All proposed fixes are comment-only and do not alter the code's behavior.

documentationgood first issue
381
Difficulty
1/5
MFlowCode/MFC

AMD-workaround static array dims (3/10/20) are unexplained magic numbers

AI summary

This issue identifies "magic numbers" (hardcoded array dimensions like 3, 10, 20) used in specific AMD compiler workaround branches. These numbers lack clear explanations and could lead to bugs if underlying limits change, as they are not backed by named constants. The fix involves introducing new constants and using them with explanatory comments.

enhancementgood first issue
381
Difficulty
2/5
MFlowCode/MFC

Hardcoded Fortran file-unit numbers where newunit= is already used elsewhere

AI summary

This issue identifies instances of hardcoded file unit numbers in Fortran code that should be replaced with the `newunit=` keyword. The codebase already uses `newunit=` elsewhere, making this a consistent and safe refactoring to prevent file opening collisions and improve code robustness.

enhancementgood first issue
381
Difficulty
2/5
MFlowCode/MFC

Replace magic CBC boundary-condition codes (-5 to -13) with existing named constants in m_cbc.fpp

AI summary

This issue proposes replacing hardcoded integer ranges for characteristic boundary conditions (CBCs) with existing named constants in the `m_cbc.fpp` file. This change aims to improve code readability and maintainability by eliminating magic numbers and ensuring consistency with how these constants are already used elsewhere in the same file.

enhancementgood first issue
381
Difficulty
1/5
MFlowCode/MFC

Remove dead *_MOK MPI-offset assignments in file_per_process I/O branches (and fix n_MOK/p_MOK typo)

AI summary

This issue proposes removing unused MPI offset assignments (`*_MOK` variables) in the sequential `file_per_process` I/O branches of the code. These variables are computed but never utilized in these specific paths, and a typo in the `m_start_up.fpp` file where `n_MOK` and `p_MOK` are incorrectly derived from `m_glb_read` instead of their intended sources is also identified and will be fixed.

buggood first issue
381
Difficulty
2/5
MFlowCode/MFC

Drop dead control flow: empty conditionals, redundant zero-init, identical arg-parse branches

AI summary

This issue proposes several independent cleanups of dead or redundant code across different parts of the project. These include removing empty conditional statements and preprocessor blocks, eliminating redundant variable initializations, simplifying argument parsing logic, and addressing unused plumbing for a visualization feature. Most of these are straightforward code removals, with one item requiring a maintainer decision on whether to implement or remove a feature.

good first issue
381
Difficulty
2/5
MFlowCode/MFC

Collapse byte-identical if/else and #ifdef/#else branches

AI summary

This issue identifies two instances in the codebase where conditional blocks (an if/else statement and an #ifdef/#else preprocessor directive) contain identical code in both branches. The proposed solution is to remove the redundant conditional and use the code directly, as the branching logic does not alter the program's behavior or output.

good first issue
381
Difficulty
1/5
MFlowCode/MFC

Remove commented-out GPU/CUDA directive and debug lines across src/ and toolchain/

AI summary

This issue requests the removal of various commented-out GPU/CUDA directives and debug lines across multiple files. These lines are no longer relevant and do not serve a purpose, as confirmed by the surrounding code context. The fix involves deleting these dead lines, with a specific note to preserve explanatory prose in one file.

good first issue
381
Difficulty
1/5
MFlowCode/MFC

Extend lint_source.py to catch stop/error stop, integer(wp), and signed d-exponent literals

AI summary

This issue proposes extending the `lint_source.py` script to enforce coding conventions by adding checks for `stop`/`error stop` statements, `integer(wp)` declarations, and a broader range of signed/multi-digit `d`-exponent literals. These additions aim to prevent common violations that are currently only caught during code reviews, making them CI-gated.

enhancementgood first issue
381
Difficulty
2/5
MFlowCode/MFC

Remove separator banners in toolchain Python (the rule the linter enforces on src/)

AI summary

This issue addresses the removal of separator banners (like '===' or '---') in the toolchain's Python code. The current linter rule is bypassed because these separators are either generated at runtime or use Unicode characters, making them invisible to the linter. The fix involves deleting these runtime-generated print statements and specific Unicode comment banners.

enhancementgood first issue
381
Difficulty
2/5
MFlowCode/MFC

Replace forbidden stop/error stop with s_mpi_abort in solver source

AI summary

This issue requires replacing instances of `stop` and `error stop` in the solver source code with `s_mpi_abort`. This change ensures that MPI is finalized cleanly when an error occurs, preventing potential issues in distributed computing environments. The fix involves modifying specific lines in several Fortran files.

buggood first issue
381
Difficulty
2/5

Match ICPP and IB Module Structures

AI summary

This issue proposes refactoring the ICPP patches to reduce code duplication, similar to a recent refactoring of IB patches. The goal is to unify common subroutines for setup and geometry checking, leading to a significant reduction in the codebase.

help wantedgood first issue
381
Difficulty
3/5

Moving IBM Case Optimization

AI summary

This issue proposes enhancing the `--case-optimization` flag to support new IBM case parameters introduced over the past year. The goal is to measure performance impacts on both GPU and CPU when these parameters are used with case optimization, ensuring only parameters with meaningful performance gains are included to avoid unnecessary recompilation.

enhancementgood first issue
381
Difficulty
3/5

IBM/IC patch geometry IDs (2-21) are bare integers across 4+ files with no named-constant set

AI summary

This issue identifies that integer IDs are used directly in multiple code files to represent different patch geometry types, such as spheres or circles. This makes the code harder to read and maintain, as the mapping between IDs and geometry types is only present in comments. The proposed fix is to introduce named constants for these IDs to create a single source of truth.

enhancementgood first issue
381
Difficulty
2/5

Cray Fortran Compatibility

AI summary

This issue addresses the loss of compatibility with the Cray Fortran compiler (`crayftn`) in ReMKiT1D since version 1.1.0. The goal is to restore this compatibility to allow for optimized production runs on HPE Cray supercomputers, which require stricter coding standards than compilers like `gfortran`. The issue outlines specific code restructuring tasks needed to achieve this.

bughelp wanted
17
Difficulty
3/5

TolElec hard coded value at 1e-6

AI summary

This issue identifies a hard-coded tolerance value (1e-6) in the TolElec parameter that is hindering convergence and consistency testing. The author intends to discuss the rationale behind this value and proposes making it a variable to improve flexibility for users with specific error tolerance requirements.

help wantedimproves: stabilitytime: daystype: question
130
Difficulty
2/5
ESCOMP/CTSM

CLM_NAMELIST_OPTS should not allow items changed to also be in user_nl_clm

AI summary

This issue proposes an enhancement to the CLM namelist system to prevent users from defining the same namelist option in both `CLM_NAMELIST_OPTS` and `user_nl_clm` files. Currently, the system allows this but prioritizes `CLM_NAMELIST_OPTS`, leading to user confusion as their changes in `user_nl_clm` are silently ignored. The suggested solution is to implement an error check that flags such duplicate definitions and instructs the user to resolve the conflict.

enhancementgood first issueb4b
353
Difficulty
2/5

Also browsing: Python , TypeScript , JavaScript