KQUAD fringe bug

Moderators: michael_borland, soliday

Post Reply
michael_borland
Posts: 1927
Joined: 19 May 2008, 09:33
Location: Argonne National Laboratory
Contact:

KQUAD fringe bug

Post by michael_borland » 14 Nov 2011, 17:59

There's a bug in the new fringe-field feature for KQUAD that occurs when EDGE1_EFFECTS=1 or EDGE2_EFFECTS=1. In particular, the path-length isn't correct, due to failure to initialize a variable.

For those who build from source, the corrected code is attached. Otherwise, a workaround is to set EDGE1_EFFECTS=EDGE2_EFFECTS=2. This has the side effect of turning on nonlinear fringe effects.

--Michael
Attachments
fringe.c
(9.75 KiB) Downloaded 357 times

petrenko
Posts: 43
Joined: 09 Jun 2008, 02:53
Contact:

Re: KQUAD fringe bug

Post by petrenko » 14 Nov 2011, 18:13

Michael, thanks a lot for this new option in KQUAD!

Post Reply