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

« back to all changes in this revision

Viewing changes to src/smd/graveyard/smd-subgroups/smd_util.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: smd_util.F 19707 2010-10-29 17:59:36Z d3y133 $
 
3
c
 
4
 
 
5
      SUBROUTINE smd_util_rebox(n,latt,rlatt,aaa)
 
6
 
 
7
      implicit none
 
8
 
 
9
      integer n
 
10
      double precision rlatt(3,3),latt(3,3)
 
11
      double precision  aaa(n,3)
 
12
c
 
13
      integer i
 
14
      double precision  ssx,ssy,ssz,xss,yss,zss
 
15
      logical oprint
 
16
 
 
17
 
 
18
      if(n.eq.1) then
 
19
       oprint =.true.
 
20
      else
 
21
       oprint = .false.
 
22
      end if
 
23
      oprint = .false.
 
24
      do i=1,n
 
25
 
 
26
       if(oprint) 
 
27
     >          write(*,*) "rebox",aaa(i,1),aaa(i,2),aaa(i,3)
 
28
       ssx=(rlatt(1,1)*aaa(i,1)+rlatt(1,2)*aaa(i,2)+rlatt(1,3)*aaa(i,3))
 
29
       ssy=(rlatt(2,1)*aaa(i,1)+rlatt(2,2)*aaa(i,2)+rlatt(2,3)*aaa(i,3))
 
30
       ssz=(rlatt(3,1)*aaa(i,1)+rlatt(3,2)*aaa(i,2)+rlatt(3,3)*aaa(i,3))
 
31
 
 
32
       xss=ssx-nint(ssx)
 
33
       yss=ssy-nint(ssy)
 
34
       zss=ssz-nint(ssz)
 
35
 
 
36
       aaa(i,1)=(latt(1,1)*xss+latt(1,2)*yss+latt(1,3)*zss)
 
37
       aaa(i,2)=(latt(2,1)*xss+latt(2,2)*yss+latt(2,3)*zss)
 
38
       aaa(i,3)=(latt(3,1)*xss+latt(3,2)*yss+latt(3,3)*zss)
 
39
 
 
40
      enddo
 
41
 
 
42
      return
 
43
 
 
44
      END
 
45
 
 
46
      subroutine smd_util_print_force_array(un,na,
 
47
     >                           fff)
 
48
 
 
49
      implicit none
 
50
      integer un
 
51
      integer na
 
52
      double precision fff(na,3)
 
53
c
 
54
      integer i
 
55
      do i=1,na
 
56
         write(un,*) i, fff(i,1),fff(i,2),fff(i,3)
 
57
      end do
 
58
      return
 
59
 
 
60
      end
 
61
 
 
62
      subroutine smd_util_print_charge_array(un,na,lo,hi,
 
63
     >                           fff)
 
64
 
 
65
      implicit none
 
66
      integer un
 
67
      integer na
 
68
      double precision fff(na)
 
69
c
 
70
      integer i,lo,hi
 
71
      do i=lo,hi
 
72
         write(un,*) i, fff(i)
 
73
      end do
 
74
      return
 
75
 
 
76
      end