1 // -*- C++ -*- 2 // KimParameterProvider.h: Get parameters from a string (for OpenKIM). 3 // 4 // Copyright (C) 2008-2012 Jakob Schiotz and Center for Individual 5 // Nanoparticle Functionality, Department of Physics, Technical 6 // University of Denmark. Email: schiotz@fysik.dtu.dk 7 // 8 // This file is part of Asap version 3. 9 // Asap is released under the GNU Lesser Public License (LGPL) version 3. 10 // However, the parts of Asap distributed within the OpenKIM project 11 // (including this file) are also released under the Common Development 12 // and Distribution License (CDDL) version 1.0. 13 // 14 // This program is free software: you can redistribute it and/or 15 // modify it under the terms of the GNU Lesser General Public License 16 // version 3 as published by the Free Software Foundation. Permission 17 // to use other versions of the GNU Lesser General Public License may 18 // granted by Jakob Schiotz or the head of department of the 19 // Department of Physics, Technical University of Denmark, as 20 // described in section 14 of the GNU General Public License. 21 // 22 // This program is distributed in the hope that it will be useful, 23 // but WITHOUT ANY WARRANTY; without even the implied warranty of 24 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 // GNU General Public License for more details. 26 // 27 // You should have received a copy of the GNU General Public License 28 // and the GNU Lesser Public License along with this program. If not, 29 // see <http://www.gnu.org/licenses/>. 30 31 #ifndef _EMTPYTHONPARAMETERPROVIDER_H 32 #define _EMTPYTHONPARAMETERPROVIDER_H 33 34 #include "EMTDefaultParameterProvider.h" 35 #include "KIM_ModelDriverHeaders.hpp" 36 37 namespace ASAPSPACE { 38 39 class KimParameterProvider : public EMTDefaultParameterProvider 40 { 41 public: 42 KimParameterProvider(KIM::ModelDriverCreate *const modelDriverCreate, 43 vector<string> ¶meter_filenames, 44 KIM::LengthUnit const requestedLengthUnit, 45 KIM::EnergyUnit const requestedEnergyUnit, 46 KIM::ChargeUnit const requestedChargeUnit, 47 KIM::TemperatureUnit const requestedTemperatureUnit, 48 KIM::TimeUnit const requestedTimeUnit); 49 //virtual ~EMTPythonParameterProvider() {}; // Not changed. 50 GetName()51 virtual string GetName() const {return "KimParameterProvider";} 52 53 protected: 54 virtual emt_parameters *GetNewParameters(int element); 55 }; 56 57 } // end namespace 58 59 #endif // _EMTPYTHONPARAMETERPROVIDER_H 60