FEniCS/dolfinx

Introduce enum `FileMode` for I/O file mode

Aberta

#4.366 aberto em 5 de ago. de 2026

 (1 comentário) (0 reação) (0 responsável)C++ (255 forks)auto 404
good first issueio

Métricas do repositório

Stars
 (1.158 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

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.

Guia do colaborador