GPU update not supported with triangle constraints
Summary
Currently, the GPU update path will refuse to run if the system contains triangle constraints, i.e. three constraints forming a cycle among 3 atoms. This is because currently, the LINCS device kernels do not treat triangle-constraints accurately.
Triangle constraints have larger coupling‑matrix eigenvalues (~0.7) than ordinary bond constraints (~0.4), so the standard truncated matrix‑inversion expansion does not reach acceptable accuracy for those cases. In the CPU implementation, this is compensated for by simply doubling the number of expansion iterations for the constraints involved in a triangle (see lincs.cpp).
While this can be useful for general simulations, it's needed in particular as a preparatory change to allow for simulations with e.g. Martini to run on the GPU, once virtual sites are also implemented there (see #5613), as constructing atoms are often constrained in triangles (see discussion in #4918.
Possible fixes
Port the CPU LINCS triangle handling to the GPU LINCS kernels (i.e. running extra expansion iterations, gated by a per‑constraint triangle‑coupling bitmask), for all backends allowing GPU-resident update, and remove the check in decidegpuusage.cpp accordingly. Add a constraint test that specifically tests the triangle code path (should fail without extra iterations).