~ubuntu-branches/ubuntu/saucy/nwchem/saucy

« back to all changes in this revision

Viewing changes to src/smd/graveyard/smd-9-10-08/ewald_excl.f

  • Committer: Package Import Robot
  • Author(s): Michael Banck, Michael Banck, Daniel Leidert
  • Date: 2012-02-09 20:02:41 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20120209200241-jgk03qfsphal4ug2
Tags: 6.1-1
* New upstream release.

[ Michael Banck ]
* debian/patches/02_makefile_flags.patch: Updated.
* debian/patches/02_makefile_flags.patch: Use internal blas and lapack code.
* debian/patches/02_makefile_flags.patch: Define GCC4 for LINUX and LINUX64
  (Closes: #632611 and LP: #791308).
* debian/control (Build-Depends): Added openssh-client.
* debian/rules (USE_SCALAPACK, SCALAPACK): Removed variables (Closes:
  #654658).
* debian/rules (LIBDIR, USE_MPIF4, ARMCI_NETWORK): New variables.
* debian/TODO: New file.
* debian/control (Build-Depends): Removed libblas-dev, liblapack-dev and
  libscalapack-mpi-dev.
* debian/patches/04_show_testsuite_diff_output.patch: New patch, shows the
  diff output for failed tests.
* debian/patches/series: Adjusted.
* debian/testsuite: Optionally run all tests if "all" is passed as option.
* debian/rules: Run debian/testsuite with "all" if DEB_BUILD_OPTIONS
  contains "checkall".

[ Daniel Leidert ]
* debian/control: Used wrap-and-sort. Added Vcs-Svn and Vcs-Browser fields.
  (Priority): Moved to extra according to policy section 2.5.
  (Standards-Version): Bumped to 3.9.2.
  (Description): Fixed a typo.
* debian/watch: Added.
* debian/patches/03_hurd-i386_define_path_max.patch: Added.
  - Define MAX_PATH if not defines to fix FTBFS on hurd.
* debian/patches/series: Adjusted.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
c
 
2
c $Id: ewald_excl.f 19707 2010-10-29 17:59:36Z d3y133 $
 
3
c
 
4
 
 
5
      SUBROUTINE ewald_excl(iii,rij,rijsq,jbeg,jend,ewald3)
 
6
 
 
7
      implicit none
 
8
 
 
9
      include 'p_array.inc'
 
10
      include 'p_const.inc'
 
11
      include 'cm_atom.inc'
 
12
      include 'cm_ewld.inc'
 
13
      include 'cm_cuto.inc'
 
14
      include 'cm_elst.inc'
 
15
 
 
16
      integer iii,i,j,k
 
17
      integer jbeg,jend,iatm,jatm
 
18
 
 
19
      real*8 rij,drij,arij,rijsq
 
20
      real*8 ewald3,erfxc,force
 
21
 
 
22
      dimension rij(mxnlist,3),rijsq(mxnlist)
 
23
 
 
24
      ewald3=0.0
 
25
      k=0
 
26
      iatm=atmtype(iii)
 
27
 
 
28
      do i=jbeg,jend
 
29
 
 
30
       j=elist(i)
 
31
       jatm=atmtype(j)
 
32
       k=k+1
 
33
 
 
34
       if(rijsq(k).lt.rcutsq)then
 
35
 
 
36
        drij=sqrt(rijsq(k))
 
37
        arij=alpha*drij
 
38
 
 
39
        ewald3=ewald3-convfct1*typchge(iatm)*typchge(jatm)
 
40
     $       *(1-erfxc(arij))/drij
 
41
 
 
42
        force=-convfct1*typchge(iatm)*typchge(jatm)*
 
43
     $       ((1-erfxc(arij))-2*arij/sqrpi*exp(-arij*arij))
 
44
     $       /(drij*rijsq(k))
 
45
 
 
46
        fff(iii,1)=fff(iii,1)+convfct2*force*rij(k,1)
 
47
        fff(iii,2)=fff(iii,2)+convfct2*force*rij(k,2)
 
48
        fff(iii,3)=fff(iii,3)+convfct2*force*rij(k,3)
 
49
 
 
50
        fff(j,1)=fff(j,1)-convfct2*force*rij(k,1)
 
51
        fff(j,2)=fff(j,2)-convfct2*force*rij(k,2)
 
52
        fff(j,3)=fff(j,3)-convfct2*force*rij(k,3)
 
53
 
 
54
       endif
 
55
 
 
56
      enddo
 
57
 
 
58
      return
 
59
 
 
60
      END