Skip to content

Commit b0939fd

Browse files
committed
lint fixes
1 parent 375256f commit b0939fd

4 files changed

Lines changed: 8 additions & 9 deletions

File tree

src/common/m_mpi_common.fpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ module m_mpi_common
4343
$:GPU_DECLARE(create='[comm_coords, comm_size]')
4444
!! Variables for EL bubbles communication
4545
46-
4746
#ifndef __NVCOMPILER_GPU_UNIFIED_MEM
4847
$:GPU_DECLARE(create='[buff_send, buff_recv]')
4948
#endif

src/simulation/m_bubbles_EL_kernels.fpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -242,11 +242,11 @@ contains
242242
func = dzp/lag_params%charwidth*exp(-0.5_wp*(distance/stddsv)**2._wp)/(sqrt(2._wp*pi)*stddsv)**3._wp
243243

244244
!do while (Nr_count < Nr - 1._wp + ((mapCells - 1)*1._wp))
245-
!Nr_count = Nr_count + 1._wp
246-
!Lz2 = (center(3) - (dzp*(0.5_wp + Nr_count) - lag_params%charwidth/2._wp))**2._wp
247-
!distance = sqrt((center(1) - nodecoord(1))**2._wp + (center(2) - nodecoord(2))**2._wp + Lz2)
248-
!func = func + &
249-
!dzp/lag_params%charwidth*exp(-0.5_wp*(distance/stddsv)**2._wp)/(sqrt(2._wp*pi)*stddsv)**(3._wp*(strength_idx + 1._wp))
245+
!Nr_count = Nr_count + 1._wp
246+
!Lz2 = (center(3) - (dzp*(0.5_wp + Nr_count) - lag_params%charwidth/2._wp))**2._wp
247+
!distance = sqrt((center(1) - nodecoord(1))**2._wp + (center(2) - nodecoord(2))**2._wp + Lz2)
248+
!func = func + &
249+
!dzp/lag_params%charwidth*exp(-0.5_wp*(distance/stddsv)**2._wp)/(sqrt(2._wp*pi)*stddsv)**(3._wp*(strength_idx + 1._wp))
250250
!end do
251251
end if
252252
end if

toolchain/mfc/lint_docs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
}
6161

6262
# Match @ref page_id patterns
63-
REF_RE = re.compile(r"@ref\s+(\w+)")
63+
REF_RE = re.compile(r"@ref\s+([\w-]+)")
6464

6565

6666
def check_docs(repo_root: Path) -> list[str]:
@@ -373,7 +373,7 @@ def check_page_refs(repo_root: Path) -> list[str]:
373373
page_ids = {"citelist", "parameters", "case_constraints", "physics_constraints", "examples", "cli-reference"}
374374
for md_file in doc_dir.glob("*.md"):
375375
text = md_file.read_text(encoding="utf-8")
376-
m = re.search(r"^\s*@page\s+(\w+)", text, flags=re.MULTILINE)
376+
m = re.search(r"^\s*@page\s+([\w-]+)", text, flags=re.MULTILINE)
377377
if m:
378378
page_ids.add(m.group(1))
379379

toolchain/mfc/params/definitions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ def get_value_label(param_name: str, value: int) -> str:
639639

640640
# Bubbles
641641
"bubble_model": {
642-
"choices": [1, 2, 3],
642+
"choices": [0, 1, 2, 3],
643643
"value_labels": {0: "Particle", 1: "Gilmore", 2: "Keller-Miksis", 3: "Rayleigh-Plesset"},
644644
},
645645

0 commit comments

Comments
 (0)