FEniCS/dolfinx

Introduce enum `FileMode` for I/O file mode

開放

#4,366 建立於 2026年8月5日

 (1 則留言) (0 個反應) (0 位負責人)C++ (255 個分叉)auto 404
good first issueio

倉庫指標

星標
 (1,158 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

Currently the file mode in which an output file is opened is specified by a string.

with XDMFFile(mesh.comm, filename, "w", encoding=encoding) as file:
        file.write_mesh(mesh)

This should be altered to be enum based and back end independent, ref. https://github.com/FEniCS/dolfinx/pull/4177#discussion_r3608425522.

貢獻者指南