Skip to content

Commit a4e5fb0

Browse files
sbryngelsonclaude
andcommitted
Fix formatting, lint (path variable shadowing), and rebase cleanup
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent a883cd4 commit a4e5fb0

8 files changed

Lines changed: 1153 additions & 660 deletions

File tree

examples/2D_moving_lag_bubs/case.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#!/usr/bin/env python3
22
import argparse
3-
import math
43
import json
4+
import math
5+
56
import numpy as np
67

78
# Domain extents

examples/3D_moving_lag_particles/case.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#!/usr/bin/env python3
22
import argparse
3-
import math
43
import json
4+
import math
5+
56
import numpy as np
67

78
# Domain extents

src/post_process/m_global_parameters.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1068,7 +1068,7 @@ contains
10681068
if (ib) MPI_IO_IB_DATA%var%sf => null()
10691069
#endif
10701070

1071-
if (allocated(neighbor_ranks)) deallocate(neighbor_ranks)
1071+
if (allocated(neighbor_ranks)) deallocate (neighbor_ranks)
10721072

10731073
end subroutine s_finalize_global_parameters_module
10741074

src/pre_process/m_global_parameters.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1086,7 +1086,7 @@ contains
10861086
10871087
#endif
10881088
1089-
if (allocated(neighbor_ranks)) deallocate(neighbor_ranks)
1089+
if (allocated(neighbor_ranks)) deallocate (neighbor_ranks)
10901090
10911091
end subroutine s_finalize_global_parameters_module
10921092

src/simulation/m_global_parameters.fpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -714,8 +714,8 @@ contains
714714
bub_pp%gam_g = dflt_real; gam_g = dflt_real
715715
bub_pp%M_v = dflt_real; M_v = dflt_real
716716
bub_pp%M_g = dflt_real; M_g = dflt_real
717-
bub_pp%k_v = dflt_real;
718-
bub_pp%k_g = dflt_real;
717+
bub_pp%k_v = dflt_real;
718+
bub_pp%k_g = dflt_real;
719719
bub_pp%cp_v = dflt_real; cp_v = dflt_real
720720
bub_pp%cp_g = dflt_real; cp_g = dflt_real
721721
bub_pp%R_v = dflt_real; R_v = dflt_real
@@ -1379,15 +1379,15 @@ contains
13791379
@:PREFER_GPU(x_cc)
13801380
@:PREFER_GPU(dx)
13811381
1382-
if (n == 0) return;
1382+
if (n == 0) return;
13831383
@:ALLOCATE(y_cb(-1 - buff_size:n + buff_size))
13841384
@:ALLOCATE(y_cc(-buff_size:n + buff_size))
13851385
@:ALLOCATE(dy(-buff_size:n + buff_size))
13861386
@:PREFER_GPU(y_cb)
13871387
@:PREFER_GPU(y_cc)
13881388
@:PREFER_GPU(dy)
13891389
1390-
if (p == 0) return;
1390+
if (p == 0) return;
13911391
@:ALLOCATE(z_cb(-1 - buff_size:p + buff_size))
13921392
@:ALLOCATE(z_cc(-buff_size:p + buff_size))
13931393
@:ALLOCATE(dz(-buff_size:p + buff_size))
@@ -1478,10 +1478,10 @@ contains
14781478
! Deallocating grid variables for the x-, y- and z-directions
14791479
@:DEALLOCATE(x_cb, x_cc, dx)
14801480
1481-
if (n == 0) return;
1481+
if (n == 0) return;
14821482
@:DEALLOCATE(y_cb, y_cc, dy)
14831483
1484-
if (p == 0) return;
1484+
if (p == 0) return;
14851485
@:DEALLOCATE(z_cb, z_cc, dz)
14861486
14871487
if (allocated(neighbor_ranks)) then

src/simulation/m_time_steppers.fpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,6 @@ contains
470470
@:ALLOCATE(max_dt(0:m, 0:n, 0:p))
471471
end if
472472

473-
474473
! Allocating arrays to store the bc types
475474
@:ALLOCATE(bc_type(1:num_dims,1:2))
476475

toolchain/mfc/params/definitions.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1253,16 +1253,13 @@ def _load():
12531253
_r(f"simplex_params%perturb_vel_offset({d},{j})", REAL)
12541254

12551255
# --- lag_params (Lagrangian bubbles) ---
1256-
for a in ["heatTransfer_model", "massTransfer_model", "pressure_corrector",
1257-
"write_bubbles", "write_bubbles_stats", "pressure_force", "gravity_force",
1258-
"write_void_evol" ]:
1256+
for a in ["heatTransfer_model", "massTransfer_model", "pressure_corrector", "write_bubbles", "write_bubbles_stats", "pressure_force", "gravity_force", "write_void_evol"]:
12591257
_r(f"lag_params%{a}", LOG, {"bubbles"})
1260-
for a in ["solver_approach", "cluster_type", "smooth_type", "nBubs_glb", "drag_model",
1261-
"vel_model", "charNz"]:
1258+
for a in ["solver_approach", "cluster_type", "smooth_type", "nBubs_glb", "drag_model", "vel_model", "charNz"]:
12621259
_r(f"lag_params%{a}", INT, {"bubbles"})
12631260
for a in ["epsilonb", "valmaxvoid", "charwidth", "c0", "rho0", "T0", "x0", "Thost"]:
12641261
_r(f"lag_params%{a}", REAL, {"bubbles"})
1265-
_r(f"lag_params%input_path", STR, {"bubbles"})
1262+
_r("lag_params%input_path", STR, {"bubbles"})
12661263

12671264
# --- chem_params ---
12681265
for a in ["diffusion", "reactions"]:

0 commit comments

Comments
 (0)