Advance V5 core capabilities and planning
This commit is contained in:
@@ -214,10 +214,14 @@ fem_contact_output.f90 contact CSV 字段辅助
|
||||
求解器核心文件:
|
||||
|
||||
- `fem_assembly_csr.f90`:DOF 获取、CSR 图案和装配。
|
||||
- `fem_linear_solver_cg.f90`:线性求解器分发层、Jacobi/none 预条件、CG、BiCGSTAB、GMRES 和外部第三方库预留入口。
|
||||
- `fem_linear_solver_dispatch.f90`:线性求解器统一入口、配置、统计和 method 分发。
|
||||
- `fem_linear_solver_iterative.f90`:CG、BiCGSTAB、GMRES 和 none/Jacobi 预条件。
|
||||
- `fem_linear_solver_external*.f90`:外部 backend registry、能力查询、request/direct/file-exchange adapter、CSR/MatrixMarket handoff、命令模板展开和 residual audit。
|
||||
- `fem_solver_implicit.f90`:静力、隐式 Newmark、非线性 Newton。
|
||||
|
||||
V4.6 起,隐式求解器内部不再直调 CG,而是通过 `linear_solver_solve` 分发。当前内部支持 CG、BiCGSTAB 和 GMRES;新增线性求解器时应先在该分发层注册 method 常量、预条件支持、统计状态和模块测试,再接入 Fortran API / C ABI。外部第三方稀疏库后端仍作为后续适配项,不计入当前阶段完成项。
|
||||
V4.6 起,隐式求解器内部不再直调 CG,而是通过 `linear_solver_solve` 分发。当前内部支持 CG、BiCGSTAB 和 GMRES;V5 外部路径支持 request 诊断、参考 direct 后端和 file-exchange 后端。新增线性求解器时应先在 `fem_linsol_ext_registry` 登记 backend id、名称、可用性、能力位和不可用原因,再在 adapter 层实现求解,并补充 registry、request、dispatch 和 C ABI 测试。file-exchange 命令模板由 `fem_linsol_ext_file_cmd` 展开,测试或适配工具放在 `tools/`,不要放入 `src/`。
|
||||
|
||||
强度折减相关模块分层如下:`fem_strength_reduction` 保存参数折减、bracket 更新和失稳指标;`fem_strength_reduction_driver` 保存 trial 搜索状态、上下界、收敛系数和历史记录;`fem_strength_reduction_report` 只负责 CSV/summary 输出。结构求解器接入边坡强度折减时,应把结构 trial 的残差、位移范数、塑性区比例和收敛失败标志传给 driver,不要在材料更新内部直接控制全局安全系数搜索。
|
||||
|
||||
新增求解路径时应明确:
|
||||
|
||||
@@ -328,7 +332,7 @@ ctest --test-dir build-win-gcc-16 -R "^(contact|contact_omp1|contact_omp4|restar
|
||||
`source_size` CTest 调用:
|
||||
|
||||
```powershell
|
||||
python tests\scripts\check_source_size.py . --warn-file-lines 1500 --max-file-lines 2000 --warn-routine-lines 100 --max-routine-lines 128 --exceptions tests\source_size_exceptions.txt
|
||||
python tools\testing\check_source_size.py . --warn-file-lines 1500 --max-file-lines 2000 --warn-routine-lines 100 --max-routine-lines 128 --exceptions tests\source_size_exceptions.txt
|
||||
```
|
||||
|
||||
规则:
|
||||
|
||||
Reference in New Issue
Block a user