Implement CCLite 0.1.7 real worker audit

This commit is contained in:
Codex
2026-07-05 17:18:01 +08:00
parent 731e27df67
commit 3bb03bb66a
7 changed files with 215 additions and 17 deletions
+3 -3
View File
@@ -96,7 +96,7 @@ contains
print '(a)', "Usage:"
print '(a)', " " // trim(worker_name) // " --help"
print '(a)', " " // trim(worker_name) // " --version"
print '(a)', " " // trim(worker_name) // " --cclite-worker --solver-id <SPH|FEM> --ipc-prefix <name>"
print '(a)', " " // trim(worker_name) // " --cclite-worker --solver-id <SPH|FEM> --case <file> --ipc-name <name>"
end subroutine print_worker_help
subroutine parse_worker_args(default_solver_id, config)
@@ -123,7 +123,7 @@ contains
call get_command_argument(i, config%solver_name)
config%solver_name = adjustl(config%solver_name)
end if
case ("--ipc-prefix")
case ("--ipc-name", "--ipc-prefix")
if (i < argc) then
i = i + 1
call get_command_argument(i, config%prefix)
@@ -136,7 +136,7 @@ contains
read(arg, *, iostat=ios) config%timeout_ms
if (ios /= 0) config%timeout_ms = 5000
end if
case ("--solver-input")
case ("--case", "--solver-input")
if (i < argc) then
i = i + 1
call get_command_argument(i, config%input_file)