00001 /* 00002 # <<BEGIN-copyright>> 00003 # Copyright (c) 2010, Lawrence Livermore National Security, LLC. 00004 # Produced at the Lawrence Livermore National Laboratory 00005 # Written by Bret R. Beck, beck6@llnl.gov. 00006 # CODE-461393 00007 # All rights reserved. 00008 # 00009 # This file is part of GIDI. For details, see nuclear.llnl.gov. 00010 # Please also read the "Additional BSD Notice" at nuclear.llnl.gov. 00011 # 00012 # Redistribution and use in source and binary forms, with or without modification, 00013 # are permitted provided that the following conditions are met: 00014 # 00015 # 1) Redistributions of source code must retain the above copyright notice, 00016 # this list of conditions and the disclaimer below. 00017 # 2) Redistributions in binary form must reproduce the above copyright notice, 00018 # this list of conditions and the disclaimer (as noted below) in the 00019 # documentation and/or other materials provided with the distribution. 00020 # 3) Neither the name of the LLNS/LLNL nor the names of its contributors may be 00021 # used to endorse or promote products derived from this software without 00022 # specific prior written permission. 00023 # 00024 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 00025 # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 00026 # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 00027 # SHALL LAWRENCE LIVERMORE NATIONAL SECURITY, LLC, THE U.S. DEPARTMENT OF ENERGY OR 00028 # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 00029 # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 00030 # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 00031 # AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 00032 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 00033 # EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00034 # <<END-copyright>> 00035 */ 00036 #include "string.h" 00037 #include "tpia_target.h" 00038 00039 #if defined __cplusplus 00040 namespace GIDI { 00041 using namespace GIDI; 00042 #endif 00043 00044 //Need to here beacaus these values used in MACRO //this comment is out of date 00045 const char * tpia_samplingMethods_constant = "constant"; 00046 const char * tpia_samplingMethods_linear = "linear"; 00047 //110527 TK edited the macro (include/tpia_target.hh) see the file. 00048 00049 /* 00050 ************************************************************ 00051 */ 00052 //int tpia_samplingMethods_initialize( statusMessageReporting *smr, tpia_samplingMethods *samplingMethods ) { 00053 int tpia_samplingMethods_initialize( statusMessageReporting *, tpia_samplingMethods *samplingMethods ) { 00054 00055 memset( samplingMethods, 0, sizeof( tpia_samplingMethods ) ); 00056 samplingMethods->angular_equalProbableBinMethod = tpia_samplingMethods_linear; 00057 return( 0 ); 00058 } 00059 #if defined __cplusplus 00060 } 00061 #endif