1 // -*- C++ -*- 2 // 3 // AsapNamespace.h: Define a different C++ namespace for OpenKIM use. 4 // 5 // Copyright (C) 2012-2013 Jakob Schiotz and the Department of Physics, 6 // Technical 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 32 33 // When Asap is compiled for OpenKIM, a different C++ namespace is used. 34 // That should allow reimporting the OpenKIM potential into Asap under 35 // the general OpenKIM interface. 36 37 #ifndef ASAPSPACE 38 #define ASAPSPACE AsapOpenKIM_EMT 39 #endif 40 41 // We can also place macros here that will be defined if and only if 42 // the model is being compiled in the OpenKIM system. 43 #define ASAP_FOR_KIM 44