Skip to content

style: apply ffmt v0.4.0 formatting#1429

Closed
sbryngelson wants to merge 6 commits into
masterfrom
format/ffmt-v0.4.0
Closed

style: apply ffmt v0.4.0 formatting#1429
sbryngelson wants to merge 6 commits into
masterfrom
format/ffmt-v0.4.0

Conversation

@sbryngelson
Copy link
Copy Markdown
Member

Summary

  • Applies formatting from the newly released ffmt v0.4.0 to all Fortran source files
  • ffmt is an unpinned dependency, so CI would start failing on these 15 files once v0.4.0 is picked up
  • Changes are purely cosmetic: mid-continuation inline comments hoisted to standalone lines, continuation line break-point improvements, and minor blank-line cleanup

Test plan

  • `./mfc.sh precheck` passes (all 6 checks)
  • CI green

@qodo-code-review
Copy link
Copy Markdown
Contributor

ⓘ You've reached your Qodo monthly free-tier limit. Reviews pause until next month — upgrade your plan to continue now, or link your paid account if you already have one.

Replace flat allocatable arrays x_cb/y_cb/z_cb, x_cc/y_cc/z_cc,
and dx/dy/dz with a derived type having .cb, .cc, and .spacing
components. All three executables (pre_process, simulation,
post_process) updated across 47 files.

Key design decisions:
- pre_process keeps scalar dx/dy/dz as minimum cell-width scalars;
  only x_cb and x_cc are folded into x%cb and x%cc
- OpenMP GPU target uses whole-struct declare target (x, y, z) since
  component-level declare target is invalid; OpenACC uses component-level
- 2dHardcodedIC.fpp wraps dx*dy in #ifdef MFC_PRE_PROCESS for the
  scalar vs per-cell context difference

Special variable collisions fixed:
- m_chemistry.fpp: local integer x/y/z -> cx/cy/cz
- m_weno.fpp: local real y(1:4) scratch -> ys
- m_viscous.fpp: local real dx(1:3) scratch -> ds
- m_ibm.fpp: local scalar dx/dy/dz -> dx_loc/dy_loc/dz_loc
- m_cbc.fpp: Fypp template d${XYZ}$ -> ${XYZ}$%spacing
@codecov
Copy link
Copy Markdown

codecov Bot commented May 12, 2026

Codecov Report

❌ Patch coverage is 67.03297% with 210 lines in your changes missing coverage. Please review.
✅ Project coverage is 64.95%. Comparing base (f1fd862) to head (be79d1b).

Files with missing lines Patch % Lines
src/pre_process/m_icpp_patches.fpp 37.50% 29 Missing and 1 partial ⚠️
src/post_process/m_data_output.fpp 0.00% 23 Missing ⚠️
src/pre_process/m_start_up.fpp 39.39% 16 Missing and 4 partials ⚠️
src/simulation/m_bubbles_EL.fpp 37.50% 14 Missing and 1 partial ⚠️
src/simulation/m_data_output.fpp 46.42% 15 Missing ⚠️
src/simulation/m_ibm.fpp 68.29% 13 Missing ⚠️
src/common/m_chemistry.fpp 52.38% 10 Missing ⚠️
src/post_process/m_mpi_proxy.fpp 0.00% 9 Missing ⚠️
src/common/m_mpi_common.fpp 33.33% 8 Missing ⚠️
src/pre_process/m_boundary_conditions.fpp 0.00% 8 Missing ⚠️
... and 20 more
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1429   +/-   ##
=======================================
  Coverage   64.95%   64.95%           
=======================================
  Files          72       72           
  Lines       18880    18880           
  Branches     1573     1572    -1     
=======================================
  Hits        12263    12263           
+ Misses       5641     5640    -1     
- Partials      976      977    +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Implements items 7 and 5 from issue #1427:
- x_a/x_b/y_a/y_b/z_a/z_b -> type(bounds_info) :: x_stretch, y_stretch, z_stretch
- bf_x/bf_y/bf_z + k_x/w_x/p_x/g_x (and y/z) -> type(body_force_axis) :: bf_x, bf_y, bf_z
@sbryngelson sbryngelson deleted the format/ffmt-v0.4.0 branch May 12, 2026 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant