FEniCS/dolfinx

Introduce enum `FileMode` for I/O file mode

オープン

#4,366 opened on 2026/08/05

 (1 件のコメント) (0 件のリアクション) (0 人の担当者)C++ (255 件のフォーク)auto 404
good first issueio

Repository metrics

Stars
 (1,158 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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.

コントリビューターガイド