1310490ScyCopyright (c) 1997-2014 Erez Zadok 238494SobrienCopyright (c) 1989 Jan-Simon Pendry 338494SobrienCopyright (c) 1989 Imperial College of Science, Technology & Medicine 438494SobrienCopyright (c) 1989 The Regents of the University of California. 538494SobrienAll rights reserved. 638494Sobrien 738494SobrienThis code is derived from software contributed to Berkeley by 838494SobrienJan-Simon Pendry at Imperial College, London. 938494Sobrien 1038494SobrienRedistribution and use in source and binary forms, with or without 1138494Sobrienmodification, are permitted provided that the following conditions 1238494Sobrienare met: 1338494Sobrien1. Redistributions of source code must retain the above copyright 1438494Sobrien notice, this list of conditions and the following disclaimer. 1538494Sobrien2. Redistributions in binary form must reproduce the above copyright 1638494Sobrien notice, this list of conditions and the following disclaimer in the 1738494Sobrien documentation and/or other materials provided with the distribution. 18310490Scy3. Neither the name of the University nor the names of its contributors 1938494Sobrien may be used to endorse or promote products derived from this software 2038494Sobrien without specific prior written permission. 2138494Sobrien 2238494SobrienTHIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 2338494SobrienANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2438494SobrienIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2538494SobrienARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2638494SobrienFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2738494SobrienDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2838494SobrienOR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2938494SobrienHOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 3038494SobrienLIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 3138494SobrienOUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3238494SobrienSUCH DAMAGE. 33