-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'development' into plot_max_level
- Loading branch information
Showing
451 changed files
with
153,314 additions
and
56,717 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Dependabot configuration | ||
# ref: https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
target-branch: "development" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: check makefiles | ||
|
||
on: | ||
push: | ||
branches: | ||
- development | ||
- main | ||
pull_request: | ||
branches: | ||
- development | ||
|
||
jobs: | ||
check-ifdefs: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11' | ||
|
||
- name: Run check-ifdefs | ||
run: | | ||
python .github/workflows/check_makefiles.py | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import re | ||
import sys | ||
from pathlib import Path | ||
|
||
correct_params = { | ||
"DEBUG": "FALSE", | ||
"USE_MPI": "TRUE", | ||
"USE_OMP": "FALSE", | ||
"COMP": "gnu", | ||
"USE_CUDA": "FALSE", | ||
"USE_HIP": "FALSE", | ||
"PRECISION": "DOUBLE", | ||
"PROFILE": "FALSE"} | ||
|
||
|
||
def find_source_files(): | ||
p = Path("./Exec") | ||
files = list(p.glob(r"**/GNUmakefile")) | ||
return files | ||
|
||
def check_makefile(makefile): | ||
|
||
with open(makefile) as mf: | ||
for _line in mf: | ||
if idx := _line.find("#") >= 0: | ||
line = _line[:idx] | ||
else: | ||
line = _line | ||
|
||
for key in correct_params: | ||
if key in line: | ||
try: | ||
k, v = re.split(":=|\?=|=", line) | ||
except ValueError: | ||
sys.exit(f"invalid line: {line}") | ||
|
||
if not v.strip() == correct_params[key]: | ||
sys.exit(f"invalid param {key} in {makefile}") | ||
|
||
if __name__ == "__main__": | ||
|
||
for f in find_source_files(): | ||
check_makefile(f) | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: check PR branch | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
- reopened | ||
- edited | ||
|
||
jobs: | ||
check-PR-branch: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: PRs should not target main | ||
run: | | ||
if [[ "${{ github.base_ref }}" == "main" ]]; then | ||
echo 'Pull requests must not be made against main. Please target development instead.' | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: "clang-tidy" | ||
|
||
on: [pull_request] | ||
|
||
concurrency: | ||
group: ${{ github.ref }}-${{ github.head_ref }}-${{ github.workflow }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
clang_tidy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Get submodules | ||
run: | | ||
git submodule update --init | ||
cd external/Microphysics | ||
git fetch; git checkout development | ||
echo "MICROPHYSICS_HOME=$(pwd)" >> $GITHUB_ENV | ||
cd ../amrex | ||
git fetch; git checkout development | ||
echo "AMREX_HOME=$(pwd)" >> $GITHUB_ENV | ||
cd ../.. | ||
- name: Install dependencies | ||
run: | | ||
.github/workflows/dependencies_clang-tidy-apt-llvm.sh 17 | ||
- name: Compile flame_wave | ||
run: | | ||
echo $AMREX_HOME | ||
echo $MICROPHYSICS_HOME | ||
cd Exec/science/subchandra | ||
make USE_MPI=FALSE USE_CLANG_TIDY=TRUE CLANG_TIDY=clang-tidy-17 CLANG_TIDY_WARN_ERROR=TRUE -j 4 | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -eu -o pipefail | ||
|
||
# `man apt.conf`: | ||
# Number of retries to perform. If this is non-zero APT will retry | ||
# failed files the given number of times. | ||
echo 'Acquire::Retries "3";' | sudo tee /etc/apt/apt.conf.d/80-retries | ||
|
||
if [[ ! -f /etc/apt/trusted.gpg.d/apt.llvm.org.asc ]]; then | ||
wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | sudo tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc | ||
fi | ||
|
||
source /etc/os-release # set UBUNTU_CODENAME | ||
|
||
sudo add-apt-repository "deb http://apt.llvm.org/${UBUNTU_CODENAME}/ llvm-toolchain-${UBUNTU_CODENAME} main" | ||
sudo add-apt-repository "deb http://apt.llvm.org/${UBUNTU_CODENAME}/ llvm-toolchain-${UBUNTU_CODENAME}-$1 main" | ||
|
||
sudo apt-get update | ||
|
||
sudo apt-get install -y --no-install-recommends \ | ||
clang-tidy-$1 libomp-$1-dev |
Oops, something went wrong.