Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MMAtomType.cc
Go to the documentation of this file.
1 // -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
2 // vi: set ts=2 noet:
3 //
4 // (c) Copyright Rosetta Commons Member Institutions.
5 // (c) This file is part of the Rosetta software suite and is made available under license.
6 // (c) The Rosetta software is developed by the contributing members of the Rosetta Commons.
7 // (c) For more information, see http://www.rosettacommons.org. Questions about this can be
8 // (c) addressed to University of Washington UW TechTransfer, email: license@u.washington.edu.
9 
10 /// @file core/chemical/MMAtomType.cc
11 /// @brief Molecular mechanics atom type class
12 /// @author P. Douglas Renfrew (renfrew@unc.edu)
13 
14 // Project headers
16 
17 // Utility headers
18 #include <utility/exit.hh>
19 
20 namespace core {
21 namespace chemical {
22 
23 void
24 MMAtomType::set_parameter( std::string const & param, Real const setting )
25 {
26  if ( param == "LJ_RADIUS" ) {
27  lj_radius_ = setting;
28  } else if ( param == "LJ_WDEPTH" ) {
29  lj_wdepth_ = setting;
30  } else if ( param == "LJ_3B_RADIUS" ) {
31  lj_three_bond_radius_ = setting;
32  } else if ( param == "LJ_3B_WDEPTH" ) {
33  lj_three_bond_wdepth_ = setting;
34  } else {
35  utility_exit_with_message( "unrecognized atomtype parameter "+param );
36  }
37 }
38 
39 } // chemical
40 } // core
41