From f6c1ef152d2ec619f15b9a3aebbae01636481648 Mon Sep 17 00:00:00 2001 From: Sandro Elsweijer Date: Wed, 1 Apr 2026 15:44:52 +0200 Subject: [PATCH 1/2] remove not allowed operations from geometry hash --- src/t8_geometry/t8_geometry_hash.hxx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/t8_geometry/t8_geometry_hash.hxx b/src/t8_geometry/t8_geometry_hash.hxx index 4fc3201f64..ab0eaa5392 100644 --- a/src/t8_geometry/t8_geometry_hash.hxx +++ b/src/t8_geometry/t8_geometry_hash.hxx @@ -21,7 +21,7 @@ */ /** \file t8_geometry_hash.hxx - * Defines data types and functions for handling hash values of + * Defines data types and functions for handling hash values of * geometries. */ @@ -40,16 +40,15 @@ struct t8_geometry_hash_tag T8_EXTERN_C_BEGIN (); /** Data type used for storing hash values of geometries. */ -using t8_geometry_hash = T8Type; +using t8_geometry_hash = T8Type; /** Constant that we use for hashes of non-existing geometries. */ static const t8_geometry_hash t8_geometry_empty_hash (std::hash {}("")); /** * Compute the hash value of a geometry's name. - * - * \param [in] name The name of a geometry. + * + * \param [in] name The name of a geoemetry. * \return The hash value of \a name. * \note \a name being empty here is explicitly allowed and used as hash values for non-existing geometries. */ @@ -63,7 +62,7 @@ t8_geometry_compute_hash (const std::string &name) /** * Query whether a given hash value corresponds to an empty string and hence * a non-existing geometry. - * + * * \param [in] hash A hash value of a geometry. * \return true If \a hash corresponds to a non-existing geometry,i.e. if \a hash == \a t8_geometry_empty_hash. * \return false If \a hash corresponds to an existing geometry. From 3860f6373cfb0499f21d977f9133a5ca80a0e615 Mon Sep 17 00:00:00 2001 From: Sandro Elsweijer Date: Wed, 1 Apr 2026 16:11:22 +0200 Subject: [PATCH 2/2] fix typo --- src/t8_geometry/t8_geometry_hash.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/t8_geometry/t8_geometry_hash.hxx b/src/t8_geometry/t8_geometry_hash.hxx index ab0eaa5392..b1bfe09f0e 100644 --- a/src/t8_geometry/t8_geometry_hash.hxx +++ b/src/t8_geometry/t8_geometry_hash.hxx @@ -48,8 +48,8 @@ static const t8_geometry_hash t8_geometry_empty_hash (std::hash {}( /** * Compute the hash value of a geometry's name. * - * \param [in] name The name of a geoemetry. - * \return The hash value of \a name. + * \param [in] name The name of a geometry. + * \return The hash value of \a name. * \note \a name being empty here is explicitly allowed and used as hash values for non-existing geometries. */ inline t8_geometry_hash