From e23fafcbe17c69ef53cbf1a649b3b4fd48ba8e06 Mon Sep 17 00:00:00 2001 From: guptaarth87 <72153219+guptaarth87@users.noreply.github.com> Date: Fri, 2 Oct 2020 22:16:59 +0530 Subject: [PATCH] Update dmet.py --- src/dmet.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dmet.py b/src/dmet.py index 14761c1..e38cf7c 100644 --- a/src/dmet.py +++ b/src/dmet.py @@ -16,7 +16,7 @@ with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. ''' - +#importing required libraries import localintegrals import qcdmethelper import numpy as np @@ -493,7 +493,7 @@ def rdm_differences_derivative( self, newumatflat ): thesize += self.imp_size[ count ] * self.imp_size[ count ] gradient = [] - for countgr in range( len( newumatflat ) ): + for countgr in range( len( newumatflat ) ): #range will be 0 to one less than newumatflat (stop value),with step value one error_deriv = np.zeros( [ thesize ], dtype=float ) jump = 0 jumpsquare = 0