Skip to content

Commit efa85fb

Browse files
author
mohdsaid497566
committed
Merge branch 'rdma_mpi' of https://github.com/mohdsaid497566/MFC-mo2 into rdma_mpi
2 parents 6aac583 + 8a665b0 commit efa85fb

26 files changed

+1656
-5082
lines changed

.github/workflows/pmd.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Source DRYness
2+
3+
on: [push, pull_request, workflow_dispatch]
4+
5+
jobs:
6+
pmd:
7+
name: PMD
8+
runs-on: "ubuntu-latest"
9+
env:
10+
pr_everything: 0
11+
steps:
12+
- name: Clone - PR
13+
uses: actions/checkout@v4
14+
15+
- name: Set up Java
16+
uses: actions/setup-java@v4
17+
with:
18+
distribution: temurin
19+
java-version: '17'
20+
21+
- name: Run CPD for Fortran
22+
continue-on-error: true
23+
run: |
24+
# Get latest PMD version from GitHub API
25+
PMD_VERSION=$(curl -s https://api.github.com/repos/pmd/pmd/releases/latest | grep '"tag_name":' | cut -d'"' -f4 | sed 's/pmd_releases\///')
26+
echo "Using PMD version: $PMD_VERSION"
27+
28+
curl -sSL -o pmd.zip \
29+
"https://github.com/pmd/pmd/releases/download/pmd_releases/${PMD_VERSION}/pmd-dist-${PMD_VERSION}-bin.zip"
30+
unzip -q pmd.zip
31+
PMD_HOME="pmd-bin-${PMD_VERSION}"
32+
33+
"${PMD_HOME}/bin/pmd" cpd \
34+
--dir src \
35+
--language fortran \
36+
--minimum-tokens=40

src/common/include/macros.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818

1919
#:def DEALLOCATE(*args)
2020
@:LOG({'@:DEALLOCATE(${re.sub(' +', ' ', ', '.join(args))}$)'})
21-
deallocate (${', '.join(args)}$)
2221
!$acc exit data delete(${', '.join(args)}$)
22+
deallocate (${', '.join(args)}$)
2323
#:enddef DEALLOCATE
2424

2525
#:def ACC_SETUP_VFs(*args)

src/common/m_boundary_common.fpp

Lines changed: 581 additions & 118 deletions
Large diffs are not rendered by default.

src/common/m_mpi_common.fpp

Lines changed: 723 additions & 326 deletions
Large diffs are not rendered by default.

src/common/m_variables_conversion.fpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1138,6 +1138,10 @@ contains
11381138

11391139
if (cont_damage) qK_prim_vf(damage_idx)%sf(j, k, l) = qK_cons_vf(damage_idx)%sf(j, k, l)
11401140

1141+
#ifdef MFC_POST_PROCESS
1142+
if (bubbles_lagrange) qK_prim_vf(beta_idx)%sf(j, k, l) = qK_cons_vf(beta_idx)%sf(j, k, l)
1143+
#endif
1144+
11411145
end do
11421146
end do
11431147
end do

0 commit comments

Comments
 (0)