fortranspire.agent.cli

Functions

gt4py_file(filepath)

GT4Py — Fortran → gt4py.next field operators (issue #42).

main()

agent-pipeline — Master dispatcher

profile_file(filepath)

run_analyze()

agent-analyze — Loki-only static analysis, no LLM, SARIF/JSON/text.

run_doc()

agent-doc — LLM-driven Fortran documentation (inline + Sphinx site).

run_explain()

agent-explain — pre-flight cost + risk estimate (no LLM, no tokens).

run_format()

agent-format — fprettify-based Fortran source formatter.

run_port_batch()

agent-port-batch — parallel Fortran → GPU port across many files.

run_profile()

agent-profile — Performance benchmarking (legacy alias).

run_translate()

agent-translate — Phase 2 : Fortran → JAX (legacy alias).

run_translate_gpu()

agent-gpu — Phase 1 : Fortran → Fortran GPU + Cython (legacy alias).

translate_file(filepath, *[, smoothing, ...])

Phase 2 — Fortran → functional refactoring → JAX (issue #73).

translate_file_gpu(filepath, *[, gpu_pragma])

Phase 1 — pipeline Fortran GPU + Cython.