00001 // QMcBeaver 00002 // 00003 // Constructed by 00004 // 00005 // Michael Todd Feldmann 00006 // and 00007 // David Randall "Chip" Kent IV 00008 // 00009 // Copyright 2000. All rights reserved. 00010 // 00011 // drkent@users.sourceforge.net mtfeldmann@users.sourceforge.net 00012 00013 #include "QMCThreeBodyCorrelationFunctionFactory.h" 00014 #include "CambridgeThreeBodyCorrelationFunction.h" 00015 #include "ZeroThreeBodyCorrelationFunction.h" 00016 00017 QMCThreeBodyCorrelationFunction * 00018 QMCThreeBodyCorrelationFunctionFactory::threeBodyCorrelationFunctionFactory(string & Type) 00019 { 00020 QMCThreeBodyCorrelationFunction * ThreeBodyCorrelationFunction = 0; 00021 00022 if( Type == "None" ) 00023 ThreeBodyCorrelationFunction = new ZeroThreeBodyCorrelationFunction(); 00024 else if( Type == "Cambridge" ) 00025 ThreeBodyCorrelationFunction = new CambridgeThreeBodyCorrelationFunction(); 00026 else 00027 { 00028 cerr << "ERROR: Unknown correlation function type (" << Type 00029 << ") being assigned in QMCThreeBodyCorrelationFunctionFactory!" 00030 << endl; 00031 exit(0); 00032 } 00033 00034 return ThreeBodyCorrelationFunction; 00035 }