1 /* 2 * This source code is part of 3 * 4 * HelFEM 5 * - 6 * Finite element methods for electronic structure calculations on small systems 7 * 8 * Written by Susi Lehtola, 2018- 9 * Copyright (c) 2018- Susi Lehtola 10 * 11 * This program is free software; you can redistribute it and/or 12 * modify it under the terms of the GNU General Public License 13 * as published by the Free Software Foundation; either version 2 14 * of the License, or (at your option) any later version. 15 */ 16 #include <helfem/ModelPotential.h> 17 18 namespace helfem { 19 namespace modelpotential { ModelPotential()20 ModelPotential::ModelPotential() { 21 } 22 ~ModelPotential()23 ModelPotential::~ModelPotential() { 24 } 25 V(const arma::vec & r) const26 arma::vec ModelPotential::V(const arma::vec & r) const { 27 arma::vec pot(r.n_elem); 28 for(size_t i=0;i<r.n_elem;i++) 29 pot(i)=V(r(i)); 30 return pot; 31 } 32 } 33 } 34