bug-gsl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gsl] redundant checks in triangle_selection_fails


From: Håkan Johansson
Subject: [Bug-gsl] redundant checks in triangle_selection_fails
Date: Thu, 11 Jul 2013 16:30:35 +0200
User-agent: Alpine 2.00 (DEB 1167 2008-08-23)


In bzr trunk, the function triangle_selection_fails in specfunc/coupling.c has grown a number of redundant tests since v1.15. It is enough to check the triangle condition for one spin vs the other two. (See attached test program.) Perhaps put a comment to keep the function lean?

Cheers,
Håkan Johansson

Attachment: triangle.c
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]