Skip to content

Commit 6e685b4

Browse files
authored
Merge pull request #230 from PrincetonUniversity/make_improvements
Make improvements
2 parents b8c9c22 + e0a42ef commit 6e685b4

File tree

39 files changed

+1403
-1592
lines changed

39 files changed

+1403
-1592
lines changed

.github/workflows/make_test.yml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ jobs:
2626
- name: Install dependencies
2727
if: steps.netcdf-cache.outputs.cache-hit != 'true'
2828
run: |
29-
sudo rm /var/lib/man-db/auto-update
3029
sudo apt update
3130
sudo apt install -y build-essential gfortran m4 curl libhdf5-dev libnetcdf-dev
3231
@@ -85,7 +84,6 @@ jobs:
8584
- name: Install Intel oneAPI + deps
8685
if: steps.netcdf-cache.outputs.cache-hit != 'true'
8786
run: |
88-
sudo rm /var/lib/man-db/auto-update
8987
wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | gpg --dearmor | sudo tee /usr/share/keyrings/oneapi-archive-keyring.gpg > /dev/null
9088
echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list
9189
sudo apt update
@@ -154,13 +152,16 @@ jobs:
154152

155153
- name: Rewrite .gitmodules to use HTTPS
156154
run: |
157-
git config --file .gitmodules submodule.harvest.url https://github.com/gafusion/harvest_client.git
155+
git config --file .gitmodules submodule."deps/src/harvest".url https://github.com/gafusion/harvest_client.git
156+
git config --file .gitmodules submodule."deps/src/netcdf-c".url https://github.com/Unidata/netcdf-c.git
157+
git config --file .gitmodules submodule."deps/src/netcdf-fortran".url https://github.com/Unidata/netcdf-fortran.git
158+
git config --file .gitmodules submodule."deps/src/hdf5".url https://github.com/HDFGroup/hdf5.git
159+
git config --file .gitmodules submodule."deps/src/OpenBLAS".url https://github.com/OpenMathLib/OpenBLAS.git
158160
git submodule sync
159-
git submodule update --init --recursive
161+
git submodule update --init --recursive "deps/src/harvest"
160162
161163
- name: Install Dependencies
162164
run: |
163-
sudo rm /var/lib/man-db/auto-update
164165
sudo apt update
165166
sudo apt install -y gfortran libopenblas-dev libx11-dev libnetcdf-dev
166167
@@ -173,7 +174,7 @@ jobs:
173174
export FC=/usr/bin/gfortran
174175
export CC=/usr/bin/gcc
175176
export FFLAGS='-fallow-argument-mismatch -O0 -Wall -Wextra -fcheck=all,no-array-temps -fbacktrace -finit-real=snan -finit-integer=-9999 -fstack-protector-all -fsanitize=bounds -Wno-array-temporaries -Wno-unused-variable -Wno-unused-dummy-argument -Wno-compare-reals -Wno-unused-parameter -Wno-unused-label -fno-omit-frame-pointer -frecord-marker=4 -gdwarf-4 -ffloat-store -fbounds-check'
176-
make
177+
make -j$(nproc)
177178
178179
- name: Run Soloviev ideal example
179180
run: |
@@ -217,7 +218,6 @@ jobs:
217218

218219
- name: Install Intel oneAPI + deps
219220
run: |
220-
sudo rm /var/lib/man-db/auto-update
221221
wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | gpg --dearmor | sudo tee /usr/share/keyrings/oneapi-archive-keyring.gpg > /dev/null
222222
echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list
223223
sudo apt update
@@ -233,9 +233,12 @@ jobs:
233233
234234
- name: Rewrite .gitmodules to use HTTPS
235235
run: |
236-
git config --file .gitmodules submodule.harvest.url https://github.com/gafusion/harvest_client.git
237-
git submodule sync
238-
git submodule update --init --recursive
236+
git config --file .gitmodules submodule."deps/src/harvest".url https://github.com/gafusion/harvest_client.git
237+
git config --file .gitmodules submodule."deps/src/netcdf-c".url https://github.com/Unidata/netcdf-c.git
238+
git config --file .gitmodules submodule."deps/src/netcdf-fortran".url https://github.com/Unidata/netcdf-fortran.git
239+
git config --file .gitmodules submodule."deps/src/hdf5".url https://github.com/HDFGroup/hdf5.git
240+
git config --file .gitmodules submodule."deps/src/OpenBLAS".url https://github.com/OpenMathLib/OpenBLAS.git
241+
git submodule update --init --recursive "deps/src/harvest"
239242
240243
- name: Compile
241244
run: |
@@ -247,7 +250,7 @@ jobs:
247250
export FC=/opt/intel/oneapi/compiler/2022.2.1/linux/bin/intel64/ifort
248251
export CC=/usr/bin/gcc
249252
export FFLAGS='-O0 -warn all -check all -check noarg_temp_created -traceback -fpe3 -fstack-protector -fopenmp'
250-
make
253+
make -j$(nproc)
251254
252255
- name: Run Soloviev ideal example
253256
run: |

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
*.mod
1010
*.pyc
1111
*~
12+
*.i
1213
*.out
1314
*.bin
1415
*.nc
@@ -31,6 +32,12 @@ docs/examples/*/gal_solution.dat
3132
docs/examples/*/delta_gw.dat
3233
docs/examples/*/gal_solution_cut.dat
3334

35+
deps/bin/*
36+
deps/hdf5
37+
deps/include/*
38+
deps/lib/*
39+
deps/share/*
40+
3441
*version.inc
3542

3643
dcon/dcon

.gitmodules

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1-
[submodule "harvest"]
2-
path = harvest
3-
url = git@github.com:gafusion/harvest_client.git
1+
[submodule "deps/src/harvest"]
2+
path = deps/src/harvest
3+
url = https://github.com/gafusion/harvest_client.git
4+
[submodule "deps/src/OpenBLAS"]
5+
path = deps/src/OpenBLAS
6+
url = https://github.com/OpenMathLib/OpenBLAS.git
7+
[submodule "deps/src/netcdf-c"]
8+
path = deps/src/netcdf-c
9+
url = https://github.com/Unidata/netcdf-c.git
10+
[submodule "deps/src/netcdf-fortran"]
11+
path = deps/src/netcdf-fortran
12+
url = https://github.com/Unidata/netcdf-fortran.git
13+
[submodule "deps/src/hdf5"]
14+
path = deps/src/hdf5
15+
url = https://github.com/HDFGroup/hdf5.git

coil/makefile

Lines changed: 0 additions & 51 deletions
This file was deleted.

dcon/makefile

Lines changed: 0 additions & 87 deletions
This file was deleted.

deps/src/OpenBLAS

Submodule OpenBLAS added at 993fad6

deps/src/hdf5

Submodule hdf5 added at 7bf3404

deps/src/netcdf-c

Submodule netcdf-c added at 3a6b1de

deps/src/netcdf-fortran

Submodule netcdf-fortran added at 3f61a32

0 commit comments

Comments
 (0)