-
-
Notifications
You must be signed in to change notification settings - Fork 162
Expand file tree
/
Copy pathcheck_components.py
More file actions
32 lines (26 loc) · 922 Bytes
/
check_components.py
File metadata and controls
32 lines (26 loc) · 922 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/env python3
"""Check components configuration for quickstart"""
import yaml
from paths import PRECICE_TESTS_DIR
print("=" * 60)
print("COMPONENT CONFIGURATION CHECK")
print("=" * 60)
with open(PRECICE_TESTS_DIR / "components.yaml", 'r') as f:
components = yaml.safe_load(f)
print("\nComponents Required for Quickstart:")
print("-" * 60)
# Quickstart uses openfoam-adapter and bare C++ compiler
required = ["openfoam-adapter", "bare"]
for comp_name in required:
if comp_name in components:
print(f"\n✓ {comp_name}")
comp = components[comp_name]
if 'repository' in comp:
print(f" Repository: {comp['repository']}")
if 'template' in comp:
print(f" Template: {comp['template']}")
else:
print(f"\n✗ {comp_name} NOT FOUND")
print("\n" + "=" * 60)
print("Component check complete")
print("=" * 60)