Skip to content

Commit ca2a3c3

Browse files
committed
make this thing work and steal from henry while im at it
1 parent 5fe721c commit ca2a3c3

File tree

2 files changed

+186
-0
lines changed

2 files changed

+186
-0
lines changed

tmp.txt

Lines changed: 185 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,185 @@
1+
mfc: OK > Created a Python virtual environment (venv).
2+
mfc: OK > (venv) Entered the Python 3.13.0 virtual environment (>= 3.9).
3+
mfc: (venv) (Re)Installing mfc.sh's Python dependencies (via Pip).
4+
Processing ./toolchain
5+
Installing build dependencies: started
6+
Installing build dependencies: finished with status 'done'
7+
Getting requirements to build wheel: started
8+
Getting requirements to build wheel: finished with status 'done'
9+
Preparing metadata (pyproject.toml): started
10+
Preparing metadata (pyproject.toml): finished with status 'done'
11+
Collecting argparse (from mfc==4.9.6)
12+
Using cached argparse-1.4.0-py2.py3-none-any.whl.metadata (2.8 kB)
13+
Collecting cantera (from mfc==4.9.6)
14+
Using cached Cantera-3.0.1-cp313-cp313-macosx_15_0_arm64.whl
15+
Collecting dataclasses (from mfc==4.9.6)
16+
Using cached dataclasses-0.6-py3-none-any.whl.metadata (3.0 kB)
17+
Collecting fastjsonschema (from mfc==4.9.6)
18+
Using cached fastjsonschema-2.20.0-py3-none-any.whl.metadata (2.1 kB)
19+
Collecting fprettify (from mfc==4.9.6)
20+
Using cached fprettify-0.3.7-py3-none-any.whl.metadata (5.7 kB)
21+
Collecting fypp (from mfc==4.9.6)
22+
Using cached fypp-3.2-py3-none-any.whl.metadata (7.9 kB)
23+
Collecting mako (from mfc==4.9.6)
24+
Using cached Mako-1.3.6-py3-none-any.whl.metadata (2.9 kB)
25+
Collecting matplotlib (from mfc==4.9.6)
26+
Using cached matplotlib-3.9.2-cp313-cp313-macosx_11_0_arm64.whl.metadata (11 kB)
27+
Collecting numpy (from mfc==4.9.6)
28+
Using cached numpy-2.1.3-cp313-cp313-macosx_14_0_arm64.whl.metadata (62 kB)
29+
Collecting pandas (from mfc==4.9.6)
30+
Using cached pandas-2.2.3-cp313-cp313-macosx_11_0_arm64.whl.metadata (89 kB)
31+
Collecting pylint (from mfc==4.9.6)
32+
Using cached pylint-3.3.1-py3-none-any.whl.metadata (12 kB)
33+
Collecting pyrometheus==1.0.2 (from mfc==4.9.6)
34+
Using cached pyrometheus-1.0.2-py3-none-any.whl.metadata (2.9 kB)
35+
Collecting pyyaml (from mfc==4.9.6)
36+
Using cached PyYAML-6.0.2-cp313-cp313-macosx_11_0_arm64.whl.metadata (2.1 kB)
37+
Collecting rich (from mfc==4.9.6)
38+
Using cached rich-13.9.4-py3-none-any.whl.metadata (18 kB)
39+
Collecting seaborn (from mfc==4.9.6)
40+
Using cached seaborn-0.13.2-py3-none-any.whl.metadata (5.4 kB)
41+
Collecting typing (from mfc==4.9.6)
42+
Using cached typing-3.7.4.3-py3-none-any.whl
43+
Collecting typos (from mfc==4.9.6)
44+
Using cached typos-1.28.0-py3-none-macosx_11_0_arm64.whl.metadata (6.3 kB)
45+
Collecting wheel (from mfc==4.9.6)
46+
Using cached wheel-0.45.1-py3-none-any.whl.metadata (2.3 kB)
47+
Collecting pymbolic (from pyrometheus==1.0.2->mfc==4.9.6)
48+
Using cached pymbolic-2024.2-py3-none-any.whl.metadata (3.2 kB)
49+
Collecting ruamel.yaml>=0.15.34 (from cantera->mfc==4.9.6)
50+
Using cached ruamel.yaml-0.18.6-py3-none-any.whl.metadata (23 kB)
51+
Collecting configargparse (from fprettify->mfc==4.9.6)
52+
Using cached ConfigArgParse-1.7-py3-none-any.whl.metadata (23 kB)
53+
Collecting MarkupSafe>=0.9.2 (from mako->mfc==4.9.6)
54+
Using cached MarkupSafe-3.0.2-cp313-cp313-macosx_11_0_arm64.whl.metadata (4.0 kB)
55+
Collecting contourpy>=1.0.1 (from matplotlib->mfc==4.9.6)
56+
Using cached contourpy-1.3.1-cp313-cp313-macosx_11_0_arm64.whl.metadata (5.4 kB)
57+
Collecting cycler>=0.10 (from matplotlib->mfc==4.9.6)
58+
Using cached cycler-0.12.1-py3-none-any.whl.metadata (3.8 kB)
59+
Collecting fonttools>=4.22.0 (from matplotlib->mfc==4.9.6)
60+
Using cached fonttools-4.55.0-cp313-cp313-macosx_10_13_universal2.whl.metadata (164 kB)
61+
Collecting kiwisolver>=1.3.1 (from matplotlib->mfc==4.9.6)
62+
Using cached kiwisolver-1.4.7-cp313-cp313-macosx_11_0_arm64.whl.metadata (6.3 kB)
63+
Collecting packaging>=20.0 (from matplotlib->mfc==4.9.6)
64+
Using cached packaging-24.2-py3-none-any.whl.metadata (3.2 kB)
65+
Collecting pillow>=8 (from matplotlib->mfc==4.9.6)
66+
Using cached pillow-11.0.0-cp313-cp313-macosx_11_0_arm64.whl.metadata (9.1 kB)
67+
Collecting pyparsing>=2.3.1 (from matplotlib->mfc==4.9.6)
68+
Using cached pyparsing-3.2.0-py3-none-any.whl.metadata (5.0 kB)
69+
Collecting python-dateutil>=2.7 (from matplotlib->mfc==4.9.6)
70+
Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl.metadata (8.4 kB)
71+
Collecting pytz>=2020.1 (from pandas->mfc==4.9.6)
72+
Using cached pytz-2024.2-py2.py3-none-any.whl.metadata (22 kB)
73+
Collecting tzdata>=2022.7 (from pandas->mfc==4.9.6)
74+
Using cached tzdata-2024.2-py2.py3-none-any.whl.metadata (1.4 kB)
75+
Collecting platformdirs>=2.2.0 (from pylint->mfc==4.9.6)
76+
Using cached platformdirs-4.3.6-py3-none-any.whl.metadata (11 kB)
77+
Collecting astroid<=3.4.0-dev0,>=3.3.4 (from pylint->mfc==4.9.6)
78+
Using cached astroid-3.3.5-py3-none-any.whl.metadata (4.5 kB)
79+
Collecting isort!=5.13.0,<6,>=4.2.5 (from pylint->mfc==4.9.6)
80+
Using cached isort-5.13.2-py3-none-any.whl.metadata (12 kB)
81+
Collecting mccabe<0.8,>=0.6 (from pylint->mfc==4.9.6)
82+
Using cached mccabe-0.7.0-py2.py3-none-any.whl.metadata (5.0 kB)
83+
Collecting tomlkit>=0.10.1 (from pylint->mfc==4.9.6)
84+
Using cached tomlkit-0.13.2-py3-none-any.whl.metadata (2.7 kB)
85+
Collecting dill>=0.3.6 (from pylint->mfc==4.9.6)
86+
Using cached dill-0.3.9-py3-none-any.whl.metadata (10 kB)
87+
Collecting markdown-it-py>=2.2.0 (from rich->mfc==4.9.6)
88+
Using cached markdown_it_py-3.0.0-py3-none-any.whl.metadata (6.9 kB)
89+
Collecting pygments<3.0.0,>=2.13.0 (from rich->mfc==4.9.6)
90+
Using cached pygments-2.18.0-py3-none-any.whl.metadata (2.5 kB)
91+
Collecting mdurl~=0.1 (from markdown-it-py>=2.2.0->rich->mfc==4.9.6)
92+
Using cached mdurl-0.1.2-py3-none-any.whl.metadata (1.6 kB)
93+
Collecting six>=1.5 (from python-dateutil>=2.7->matplotlib->mfc==4.9.6)
94+
Using cached six-1.16.0-py2.py3-none-any.whl.metadata (1.8 kB)
95+
Collecting immutabledict (from pymbolic->pyrometheus==1.0.2->mfc==4.9.6)
96+
Using cached immutabledict-4.2.1-py3-none-any.whl.metadata (3.5 kB)
97+
Collecting pytools>=2024.1.16 (from pymbolic->pyrometheus==1.0.2->mfc==4.9.6)
98+
Using cached pytools-2024.1.16-py3-none-any.whl.metadata (2.9 kB)
99+
Collecting typing-extensions>=4.5 (from pymbolic->pyrometheus==1.0.2->mfc==4.9.6)
100+
Using cached typing_extensions-4.12.2-py3-none-any.whl.metadata (3.0 kB)
101+
Collecting useful-types (from pymbolic->pyrometheus==1.0.2->mfc==4.9.6)
102+
Using cached useful_types-0.2.1-py3-none-any.whl.metadata (975 bytes)
103+
Using cached pyrometheus-1.0.2-py3-none-any.whl (21 kB)
104+
Using cached argparse-1.4.0-py2.py3-none-any.whl (23 kB)
105+
Using cached numpy-2.1.3-cp313-cp313-macosx_14_0_arm64.whl (5.1 MB)
106+
Using cached dataclasses-0.6-py3-none-any.whl (14 kB)
107+
Using cached fastjsonschema-2.20.0-py3-none-any.whl (23 kB)
108+
Using cached fprettify-0.3.7-py3-none-any.whl (28 kB)
109+
Using cached fypp-3.2-py3-none-any.whl (29 kB)
110+
Using cached Mako-1.3.6-py3-none-any.whl (78 kB)
111+
Using cached matplotlib-3.9.2-cp313-cp313-macosx_11_0_arm64.whl (7.8 MB)
112+
Using cached pandas-2.2.3-cp313-cp313-macosx_11_0_arm64.whl (11.3 MB)
113+
Using cached pylint-3.3.1-py3-none-any.whl (521 kB)
114+
Using cached PyYAML-6.0.2-cp313-cp313-macosx_11_0_arm64.whl (171 kB)
115+
Using cached rich-13.9.4-py3-none-any.whl (242 kB)
116+
Using cached seaborn-0.13.2-py3-none-any.whl (294 kB)
117+
Using cached typos-1.28.0-py3-none-macosx_11_0_arm64.whl (2.9 MB)
118+
Using cached wheel-0.45.1-py3-none-any.whl (72 kB)
119+
Using cached astroid-3.3.5-py3-none-any.whl (274 kB)
120+
Using cached contourpy-1.3.1-cp313-cp313-macosx_11_0_arm64.whl (255 kB)
121+
Using cached cycler-0.12.1-py3-none-any.whl (8.3 kB)
122+
Using cached dill-0.3.9-py3-none-any.whl (119 kB)
123+
Using cached fonttools-4.55.0-cp313-cp313-macosx_10_13_universal2.whl (2.8 MB)
124+
Using cached isort-5.13.2-py3-none-any.whl (92 kB)
125+
Using cached kiwisolver-1.4.7-cp313-cp313-macosx_11_0_arm64.whl (63 kB)
126+
Using cached markdown_it_py-3.0.0-py3-none-any.whl (87 kB)
127+
Using cached MarkupSafe-3.0.2-cp313-cp313-macosx_11_0_arm64.whl (12 kB)
128+
Using cached mccabe-0.7.0-py2.py3-none-any.whl (7.3 kB)
129+
Using cached packaging-24.2-py3-none-any.whl (65 kB)
130+
Using cached pillow-11.0.0-cp313-cp313-macosx_11_0_arm64.whl (3.0 MB)
131+
Using cached platformdirs-4.3.6-py3-none-any.whl (18 kB)
132+
Using cached pygments-2.18.0-py3-none-any.whl (1.2 MB)
133+
Using cached pyparsing-3.2.0-py3-none-any.whl (106 kB)
134+
Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl (229 kB)
135+
Using cached pytz-2024.2-py2.py3-none-any.whl (508 kB)
136+
Using cached ruamel.yaml-0.18.6-py3-none-any.whl (117 kB)
137+
Using cached tomlkit-0.13.2-py3-none-any.whl (37 kB)
138+
Using cached tzdata-2024.2-py2.py3-none-any.whl (346 kB)
139+
Using cached ConfigArgParse-1.7-py3-none-any.whl (25 kB)
140+
Using cached pymbolic-2024.2-py3-none-any.whl (135 kB)
141+
Using cached mdurl-0.1.2-py3-none-any.whl (10.0 kB)
142+
Using cached pytools-2024.1.16-py3-none-any.whl (88 kB)
143+
Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
144+
Using cached typing_extensions-4.12.2-py3-none-any.whl (37 kB)
145+
Using cached immutabledict-4.2.1-py3-none-any.whl (4.7 kB)
146+
Using cached useful_types-0.2.1-py3-none-any.whl (5.4 kB)
147+
Building wheels for collected packages: mfc
148+
Building wheel for mfc (pyproject.toml): started
149+
Building wheel for mfc (pyproject.toml): finished with status 'done'
150+
Created wheel for mfc: filename=mfc-4.9.6-py2.py3-none-any.whl size=48835 sha256=88f0c16bc4e72749fdddde96e3733ff06f68cab2ceed04b300447e259e350ca3
151+
Stored in directory: /private/var/folders/m0/m86tdy4s6h35s_80rvpykfr80000gn/T/pip-ephem-wheel-cache-xl6nfsmf/wheels/82/bf/97/dd2f006e8544bcca95a70f5624d35bb155d8124d33626ff6dc
152+
Successfully built mfc
153+
Installing collected packages: pytz, fypp, fastjsonschema, dataclasses, argparse, wheel, tzdata, typos, typing-extensions, typing, tomlkit, six, ruamel.yaml, pyyaml, pyparsing, pygments, platformdirs, pillow, packaging, numpy, mdurl, mccabe, MarkupSafe, kiwisolver, isort, immutabledict, fonttools, dill, cycler, configargparse, astroid, useful-types, pytools, python-dateutil, pylint, markdown-it-py, mako, fprettify, contourpy, cantera, rich, pymbolic, pandas, matplotlib, seaborn, pyrometheus, mfc
154+
Successfully installed MarkupSafe-3.0.2 argparse-1.4.0 astroid-3.3.5 cantera-3.0.1 configargparse-1.7 contourpy-1.3.1 cycler-0.12.1 dataclasses-0.6 dill-0.3.9 fastjsonschema-2.20.0 fonttools-4.55.0 fprettify-0.3.7 fypp-3.2 immutabledict-4.2.1 isort-5.13.2 kiwisolver-1.4.7 mako-1.3.6 markdown-it-py-3.0.0 matplotlib-3.9.2 mccabe-0.7.0 mdurl-0.1.2 mfc-4.9.6 numpy-2.1.3 packaging-24.2 pandas-2.2.3 pillow-11.0.0 platformdirs-4.3.6 pygments-2.18.0 pylint-3.3.1 pymbolic-2024.2 pyparsing-3.2.0 pyrometheus-1.0.2 python-dateutil-2.9.0.post0 pytools-2024.1.16 pytz-2024.2 pyyaml-6.0.2 rich-13.9.4 ruamel.yaml-0.18.6 seaborn-0.13.2 six-1.16.0 tomlkit-0.13.2 typing-3.7.4.3 typing-extensions-4.12.2 typos-1.28.0 tzdata-2024.2 useful-types-0.2.1 wheel-0.45.1
155+
mfc: OK > (venv) Installation succeeded.
156+
157+
usage: ./mfc.sh count_diff [-h] [-t TARGET [TARGET ...]] [--mpi] [--no-mpi]
158+
[--gpu] [--no-gpu] [--debug] [--no-debug] [--gcov]
159+
[--no-gcov] [--unified] [--no-unified] [-j JOBS]
160+
[-v]
161+
162+
options:
163+
-h, --help show this help message and exit
164+
-t, --targets TARGET [TARGET ...]
165+
Space separated list of targets to act upon. Allowed
166+
values are: silo, pre_process, documentation, hipfort,
167+
post_process, hdf5, syscheck, fftw, and simulation.
168+
(default: ['pre_process', 'simulation',
169+
'post_process'])
170+
--mpi Turn the mpi option ON. (default: True)
171+
--no-mpi Turn the mpi option OFF. (default: True)
172+
--gpu Turn the gpu option ON. (default: False)
173+
--no-gpu Turn the gpu option OFF. (default: False)
174+
--debug Turn the debug option ON. (default: False)
175+
--no-debug Turn the debug option OFF. (default: False)
176+
--gcov Turn the gcov option ON. (default: False)
177+
--no-gcov Turn the gcov option OFF. (default: False)
178+
--unified Turn the unified option ON. (default: False)
179+
--no-unified Turn the unified option OFF. (default: False)
180+
-j, --jobs JOBS Allows for JOBS concurrent jobs. (default: 1)
181+
-v, --verbose Enables verbose compiler & linker output. (default:
182+
False)
183+
184+
mfc: ERROR > main.py finished with a 255 exit code.
185+
mfc: (venv) Exiting the Python virtual environment.

toolchain/mfc/args.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ def add_common_arguments(p, mask = None):
8282
test.add_argument("-m", "--max-attempts", type=int, default=1, help="Maximum number of attempts to run a test.")
8383
test.add_argument( "--no-build", action="store_true", default=False, help="(Testing) Do not rebuild MFC.")
8484
test.add_argument("--case-optimization", action="store_true", default=False, help="(GPU Optimization) Compile MFC targets with some case parameters hard-coded.")
85+
test.add_argument( "--dry-run", action="store_true", default=False, help="Build and generate case files but do not run tests.")
8586
test_meg = test.add_mutually_exclusive_group()
8687
test_meg.add_argument("--generate", action="store_true", default=False, help="(Test Generation) Generate golden files.")
8788
test_meg.add_argument("--add-new-variables", action="store_true", default=False, help="(Test Generation) If new variables are found in D/ when running tests, add them to the golden files.")

0 commit comments

Comments
 (0)