1Copyright (c) 2003, The Regents of the University of California, through 2Lawrence Berkeley National Laboratory (subject to receipt of any required 3approvals from the U.S. Dept. of Energy). All rights reserved. Redistribution 4and use in source and binary forms, with or without modification, are 5permitted provided that the following conditions are met: 6 7(1) Redistributions of source code must retain the above copyright notice, 8this list of conditions and the following disclaimer. 9 10(2) Redistributions in binary form must reproduce the above copyright notice, 11this list of conditions and the following disclaimer in the documentation 12and/or other materials provided with the distribution. 13 14(3) Neither the name of the University of California, Lawrence Berkeley 15National Laboratory, U.S. Dept. of Energy nor the names of its contributors 16may be used to endorse or promote products derived from this software without 17specific prior written permission. 18 19THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 20AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 21IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 22DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE 23FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 24DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 25SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 26CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27 28LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 29OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH 30DAMAGE. 31 32You are under no obligation whatsoever to provide any bug fixes, patches, or 33upgrades to the features, functionality or performance of the source code 34("Enhancements") to anyone; however, if you choose to make your Enhancements 35available either publicly, or directly to Lawrence Berkeley National 36Laboratory, without imposing a separate written license agreement for such 37Enhancements, then you hereby grant the following license: a non-exclusive, 38royalty-free perpetual license to install, use, modify, prepare derivative 39works, incorporate into other computer software, distribute, and sublicense 40such Enhancements or derivative works thereof, in binary and source code form. 41 42