Skip to content

Commit 048ea4f

Browse files
Merge remote-tracking branch 'origin/master'
2 parents 46c2c9b + 29cba43 commit 048ea4f

6 files changed

Lines changed: 88 additions & 40 deletions

File tree

‎.github/workflows/main.yml‎

Lines changed: 52 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,12 @@ on:
1616

1717
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1818
jobs:
19-
2019
ubuntu:
21-
runs-on: ubuntu-20.04
20+
runs-on: ${{ matrix.os }}
2221
strategy:
2322
fail-fast: false
23+
matrix:
24+
os: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04]
2425

2526
steps:
2627

@@ -46,35 +47,62 @@ jobs:
4647
run: |
4748
cd ./src
4849
mpiexec -n 1 ./parallel_md.exe
50+
51+
# build-Windows-GUI:
52+
53+
# runs-on: ubuntu-latest
54+
55+
# steps:
56+
# - uses: actions/checkout@v2
57+
58+
# - name: Clone pyDataView and SimWrapPy packages
59+
# working-directory: src/
60+
# run: |
61+
# git clone https://github.com/edwardsmith999/pyDataView.git pyDataView
62+
# mv ./pyDataView/postproclib ./postproclib
63+
# mv ./pyDataView/misclib ./misclib
64+
# git clone https://github.com/edwardsmith999/SimWrapPy.git SimWrapPy
65+
# mv ./SimWrapPy/simwraplib ./simwraplib
66+
67+
# - name: Package Application for Windows
68+
# uses: JackMcKew/pyinstaller-action-windows@main
69+
# with:
70+
# path: ./src/
71+
72+
# - uses: actions/upload-artifact@v2
73+
# with:
74+
# name: flowmol_input.exe
75+
# path: ./src/dist/windows
76+
4977

5078
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
51-
windows:
52-
runs-on: windows-2019
53-
strategy:
54-
fail-fast: false
79+
# windows:
80+
# runs-on: windows-2019
81+
# strategy:
82+
# fail-fast: false
5583

56-
steps:
84+
# steps:
5785

58-
- name: Add msbuild to PATH
59-
uses: microsoft/setup-msbuild@v1.1
86+
# - name: Add msbuild to PATH
87+
# uses: microsoft/setup-msbuild@v1.1
6088

61-
- name: Setup Intel Fortran
62-
uses: modflowpy/install-intelfortran-action@v1
89+
# - name: Setup Intel Fortran
90+
# uses: modflowpy/install-intelfortran-action@v1
6391

6492
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
65-
- uses: actions/checkout@v3
93+
# - uses: actions/checkout@v3
6694

67-
- name: Build using visual studio for release
68-
run: |
69-
msbuild .\platforms\flowmol_windows_build.sln -t:rebuild -verbosity:diag -property:Configuration=Release
95+
# - name: Build using visual studio for release
96+
# run: |
97+
# msbuild .\platforms\flowmol_windows_build.sln -t:rebuild -verbosity:diag -property:Configuration=Release
7098

71-
- name: Run Flowmol
72-
run: |
73-
cp .\src\default.in .\x64\Release\
74-
cd .\x64\Release\
75-
mpiexec.exe -n 1 .\flowmol_windows_build.exe
99+
# - name: Run Flowmol
100+
# run: |
101+
# cp .\src\default.in .\x64\Release\
102+
# cd .\x64\Release\
103+
# mpiexec.exe -n 1 .\flowmol_windows_build.exe
76104

77-
- uses: actions/checkout@v2
78-
- name: Setup tmate session
79-
if: ${{ failure() }}
80-
uses: mxschmitt/action-tmate@v3
105+
#- uses: actions/checkout@v2
106+
#- name: Setup tmate session
107+
# if: ${{ failure() }}
108+
# uses: mxschmitt/action-tmate@v3

‎README.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
# flowmol
1+
<img src="out-1.webp" alt="Flowmol Logo" width="200"/>
2+
23
A molecular dynamics solver for molecular fluid dynamics simulation.
34

45
You only need a Fortran compiler and MPI (tested with [MPICH](https://www.mpich.org/)). Assuming you have gfortran installed (from gcc), build it by going to the src directory and calling
56

67
make PLATFORM=gfortran p
78

8-
The Intel compliers also work, and the code has been tested on a range of specialised supercomputer architectures are supported, check the platform file (and adding new ones is fairly straightforward). There is an assembly language version of the Heaviside function used for efficiency, which might cause problems on some platform. This can be disabled using
9+
The Intel compliers should also work, and the code has been tested on a range of specialised supercomputer architectures, check the platform file to see some examples of build flags (and adding new ones is fairly straightforward). There is an assembly language version of the Heaviside function used for efficiency, which might cause problems on some platform. This can be disabled using
910

1011
make NO_ASSMBLY_HEAVISIDES=1 p
1112

‎out-1.webp‎

99.9 KB
Loading

‎src/flowmol_inputs.spec‎

Lines changed: 25 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# -*- mode: python ; coding: utf-8 -*-
2-
2+
from PyInstaller.compat import is_win, is_darwin, is_linux
3+
from PyInstaller.utils.hooks import collect_submodules
34
import vispy.glsl
45
import vispy.io
56

@@ -8,6 +9,13 @@ block_cipher = None
89
data_files = [
910
(os.path.dirname(vispy.glsl.__file__), os.path.join("vispy", "glsl")),
1011
(os.path.join(os.path.dirname(vispy.io.__file__), "_data"), os.path.join("vispy", "io", "_data"))
12+
#"./setup_read_input.f90",
13+
#"./Boundary_Conditions.png",
14+
#"./Computational_Parameters.png",
15+
#"./Required.png",
16+
#"./Outputs.png",
17+
#"./Optional.png",
18+
#"./System_Setup.png"
1119
]
1220

1321
hidden_imports = [
@@ -22,7 +30,6 @@ a = Analysis(['flowmol_inputs.py'],
2230
datas=data_files,
2331
hiddenimports=hidden_imports,
2432
hookspath=[],
25-
hooksconfig={},
2633
runtime_hooks=[],
2734
excludes=[],
2835
win_no_prefer_redirects=False,
@@ -34,25 +41,29 @@ pyz = PYZ(a.pure, a.zipped_data,
3441
cipher=block_cipher)
3542

3643
exe = EXE(pyz,
37-
a.scripts,
44+
a.scripts,
45+
a.binaries,
46+
a.zipfiles,
47+
a.datas,
3848
[],
39-
exclude_binaries=True,
4049
name='flowmol_inputs',
41-
debug=False,
50+
debug=True,
4251
bootloader_ignore_signals=False,
4352
strip=False,
44-
upx=True,
53+
upx=True,
54+
upx_exclude=[],
55+
runtime_tmpdir=None,
4556
console=True,
4657
disable_windowed_traceback=False,
4758
target_arch=None,
4859
codesign_identity=None,
4960
entitlements_file=None )
5061

51-
coll = COLLECT(exe,
52-
a.binaries,
53-
a.zipfiles,
54-
a.datas,
55-
strip=False,
56-
upx=True,
57-
upx_exclude=[],
58-
name='flowmol_inputs')
62+
app = BUNDLE(exe,
63+
name='flowmol_input.app',
64+
icon='logo.icns',
65+
info_plist={
66+
'NSHighResolutionCapable': 'True',
67+
'NSRequiresAquaSystemAppearance': 'No'
68+
},
69+
bundle_identifier=None)

‎src/logo.icns‎

78.2 KB
Binary file not shown.

‎src/requirements.txt‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
h5py==2.10.0
2+
matplotlib==3.1.2
3+
numpy==1.21.6
4+
scipy==1.4.1
5+
setuptools==65.5.1
6+
vispy==0.9.6
7+
wxPython==4.0.7.post2
8+
psutil

0 commit comments

Comments
 (0)