TRIQS / triqs

a Toolbox for Research on Interacting Quantum Systems
https://triqs.github.io
GNU General Public License v3.0
139 stars 72 forks source link

Add dlr symmetrize accessor in c++ and Python #960

Closed HugoStrand closed 1 week ago

HugoStrand commented 3 weeks ago

Dear Triqs developers,

We have a need to detect whether a DLR mesh is symmetrized or not in TPRF. Currently we are doing an ugly workaround as shown here, https://github.com/TRIQS/tprf/commit/e3be3255daa94470677ceb3a280a47429bcc0fef#diff-78485b87de5ccec7d62189eee29d596341dd684b44a2d6b24038040225c1fe94R206

This pull request exposes the symmetrize mesh internal flag to the user in c++ and Python.

I would appreciate feedback and consideration to merge in unstable. If possible a backport to 3.3.x would be very much appreciated.

Best, Hugo