Skip to content

Commit e521a8a

Browse files
authored
Upstream fixes and tools from Chemfc (#376)
1 parent 1573fdc commit e521a8a

File tree

24 files changed

+115
-129
lines changed

24 files changed

+115
-129
lines changed

.github/workflows/docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v4
1717

1818
- name: Login to Docker Hub
1919
uses: docker/login-action@v2

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
cancel-in-progress: true
1919

2020
steps:
21-
- uses: actions/checkout@v3
21+
- uses: actions/checkout@v4
2222

2323
# We build doxygen from source because of
2424
# https://github.com/doxygen/doxygen/issues/9016

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v4
1717

1818
- name: Lint the toolchain
1919
run: ./mfc.sh lint

.github/workflows/pretty.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v4
1717

1818
- name: Check formatting
1919
run: |
20-
./mfc.sh format
20+
./mfc.sh format -j $(nproc)
2121
git diff --exit-code

.github/workflows/spelling.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Checkout
12-
uses: actions/checkout@v3
12+
uses: actions/checkout@v4
1313

1414
- name: Spell Check
1515
uses: crate-ci/typos@master

.github/workflows/test.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
runs-on: ${{ matrix.os }}-latest
3434
steps:
3535
- name: Clone
36-
uses: actions/checkout@v3
36+
uses: actions/checkout@v4
3737

3838
- name: Setup MacOS
3939
if: matrix.os == 'macos'
@@ -46,10 +46,7 @@ jobs:
4646
- name: (MacOS) Build OpenMPI
4747
if: matrix.os == 'macos' && matrix.mpi == 'mpi'
4848
run: |
49-
echo "OMPI_FC=gfortran-13" >> $GITHUB_ENV
50-
echo "OMPI_CXX=g++-13" >> $GITHUB_ENV
51-
echo "OMPI_MPICC=gcc-13" >> $GITHUB_ENV
52-
HOMEBREW_MAKE_JOBS=$(nproc) brew install --cc=gcc-13 --verbose --build-from-source open-mpi
49+
brew install mpich
5350
5451
- name: Setup Ubuntu
5552
if: matrix.os == 'ubuntu' && matrix.intel == false
@@ -96,7 +93,7 @@ jobs:
9693
runs-on: ubuntu-latest
9794
steps:
9895
- name: Clone
99-
uses: actions/checkout@v3
96+
uses: actions/checkout@v4
10097

10198
- name: Test
10299
run: sudo ./mfc.sh docker ./mfc.sh test -j $(nproc) -a

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,9 @@ examples/*/viz/
5353
examples/*.jpg
5454
examples/*.png
5555
*.mod
56+
57+
# Video Files
58+
*.mp4
59+
*.mov
60+
*.mkv
61+
*.avi

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111

1212
"cmake.configureOnOpen": false,
1313

14+
"python.defaultInterpreterPath": "${workspaceFolder}/build/venv/bin/python3",
15+
1416
"fortran.preferredCase": "lowercase",
1517
"fortran.linter.includePaths": [ "${workspacefolder}/src/**" ],
16-
"fortran.linter.fypp.enabled": true
1718
}

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ if (CMAKE_Fortran_COMPILER_ID STREQUAL "GNU")
112112
-fcheck=all,no-array-temps
113113
-fbacktrace
114114
-fimplicit-none
115-
)
115+
#-ffpe-trap=invalid,zero,denormal,overflow
116+
)
116117
endif()
117118

118119
if (CMAKE_Fortran_COMPILER_VERSION VERSION_GREATER 10)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ It's rather straightforward.
5454
We'll give a brief intro. here for MacOS.
5555
Using [brew](https://brew.sh), install MFC's modest set of dependencies:
5656
```console
57-
brew install wget make python make cmake coreutils gcc openmpi
57+
brew install wget make python make cmake coreutils gcc mpich
5858
```
5959
You're now ready to build and test MFC!
6060
Clone it to a convenient directory via

0 commit comments

Comments
 (0)