C内核按库功能拆解,编译结果缓存区构建,编译过程与已有缓存结果对照功能实现

This commit is contained in:
lujingze committed 2026-09-12 05:24:48 +00:00
1 parent aa4951b14e
commit 151e6e4b97
30 files changed
+4856 -604

No files matched your search

+7 -2
View File
@@ -69,6 +69,11 @@ SimulationProgressEmitter = Callable[
]
SIMULATION_PHASE_MESSAGES = {
"initializing": "正在初始化状态与方程",
"native-generation": "正在生成原生模型代码",
"native-cache-check": "正在检查已编译模型缓存",
"native-cache-hit": "已复用模型缓存,正在启动求解器",
"native-compilation": "正在编译模型与缺失的原生模块",
"native-linking": "正在链接模型可执行文件",
"integrating": "正在进行时间积分与压力流量求解",
"postprocessing": "正在整理采样结果",
"cancelled": "正在整理已终止仿真的部分结果",
@@ -746,9 +751,9 @@ def _run_system_xml_simulation_profiled(
emit(0, "validation", "正在校验 System XML")
report = validate_system_xml_document(xml_bytes)
document = _validated_xml_document_or_422(report)
emit(0, "compilation", "正在编译组件与连接关系")
emit(0, "compilation", "正在解析组件与连接关系")
network = _compile_xml_document_or_422(document)
emit(0, "initialization", "模型编译完成,正在准备求解器")
emit(0, "initialization", "连接关系已解析,正在准备原生模型")
def report_system_progress(progress: float, phase: str) -> None:
bounded_progress = min(1.0, max(0.0, progress))