FEniCS / dolfinx

Next generation FEniCS problem solving environment
https://fenicsproject.org
GNU Lesser General Public License v3.0
794 stars 182 forks source link

Make read_meshtags a template function #3533

Open mleoni-pf opened 3 days ago

mleoni-pf commented 3 days ago

This PR leverages functionalities introduced some time ago by @jorgensd that makes xdmf_utils::distribute_entity_data process data of a generic type, not only std::int32_t. In this PR I make XDMFFile::read_meshtags a template so that we can read mesh tags of any type [esp. double] from file. This will be useful in an upcoming PR to read functions from file.