From 55fe1f6b29cc3e11705e7b17e46e535e12634cd5 Mon Sep 17 00:00:00 2001 From: athomps Date: Mon, 22 Aug 2016 22:35:23 +0000 Subject: [PATCH] fixed integer division problem in python code snippet git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@15486 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- doc/src/compute_sna_atom.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/src/compute_sna_atom.txt b/doc/src/compute_sna_atom.txt index d614d870c5..b8e3f9b732 100644 --- a/doc/src/compute_sna_atom.txt +++ b/doc/src/compute_sna_atom.txt @@ -177,18 +177,18 @@ described by the following piece of python code: for j1 in range(0,twojmax+1): if(diagonal==2): - print j1/2,j1/2,j1/2 + print j1/2.,j1/2.,j1/2. elif(diagonal==1): for j in range(0,min(twojmax,2*j1)+1,2): - print j1/2,j1/2,j/2 + print j1/2.,j1/2.,j/2. elif(diagonal==0): for j2 in range(0,j1+1): for j in range(j1-j2,min(twojmax,j1+j2)+1,2): - print j1/2,j2/2,j/2 + print j1/2.,j2/2.,j/2. elif(diagonal==3): for j2 in range(0,j1+1): for j in range(j1-j2,min(twojmax,j1+j2)+1,2): - if (j>=j1): print j1/2,j2/2,j/2 :pre + if (j>=j1): print j1/2.,j2/2.,j/2. :pre Compute {snad/atom} evaluates a per-atom array. The columns are arranged into {ntypes} blocks, listed in order of atom type {I}. Each