重构: 采用模块化 src 布局

- 重组代码为模块化结构:lbm/, common/, cuda/
- LBM 相关代码移至 src/CelerisLab/lbm/
- 通用工具移至 src/CelerisLab/common/
- CUDA 编译器移至 src/CelerisLab/cuda/
- 更新所有导入路径以适配新结构
- 提供灵活的导入接口(直接导入/模块导入/命名空间风格)
- 为未来扩展(FEM, SPH, MPM 等)做好准备
This commit is contained in:
Frank14f
2026-02-20 15:02:24 +08:00
parent 1137e9a247
commit d3b32c8be3
22 changed files with 76 additions and 54 deletions
+1 -6
View File
@@ -14,7 +14,7 @@ setup(
packages=find_packages(where='src'),
package_dir={'': 'src'},
package_data={
'CelerisLab': [
'CelerisLab.lbm': [
'kernels/*.cu',
'kernels/*.h',
'configs/*.json',
@@ -37,9 +37,4 @@ setup(
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
],
entry_points={
'console_scripts': [
'celerislab=CelerisLab.driver:main',
],
},
)