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

« back to all changes in this revision

Viewing changes to src/smd/graveyard/smd-subgroups/extrct_real.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: extrct_real.f 19707 2010-10-29 17:59:36Z d3y133 $
 
3
c
 
4
 
 
5
      SUBROUTINE ex_1real(n,ist,irecord,buf,ierr)
 
6
 
 
7
      implicit none
 
8
 
 
9
      integer i,j,n,ifact2,ifact,ist,nstart
 
10
      integer ierr,limit,iexft,irec_len
 
11
 
 
12
      real*8 expo,buf,fact
 
13
 
 
14
      character*1 irecord,cchar,itemp
 
15
 
 
16
      parameter(irec_len=100)
 
17
 
 
18
      dimension irecord(irec_len),cchar(19)
 
19
 
 
20
      data cchar/'0','1','2','3','4','5','6','7','8','9','+','&','/',
 
21
     $           '-','.','D','E','d','e'/
 
22
 
 
23
      buf=0.0d+0
 
24
      expo=0.0d+0
 
25
      iexft=0
 
26
      limit=19
 
27
      ifact2=0
 
28
      fact=1.0d0
 
29
      nstart=ist+n-1
 
30
      do i=1,n
 
31
       do j=1,limit
 
32
        if(cchar(j).eq.irecord(nstart))goto 180
 
33
       enddo
 
34
 170   ierr=2
 
35
       return
 
36
 180   if(j.lt.11)goto 200
 
37
       if(j.le.14)goto 190
 
38
       if(j.gt.15)then
 
39
        expo=buf
 
40
        iexft=i
 
41
        ifact2=i
 
42
        buf=0.0d+0
 
43
        fact=1.0d0
 
44
        goto 210
 
45
       endif
 
46
       ifact2=i-1
 
47
       limit=14
 
48
       goto 210
 
49
 190   continue
 
50
       if(j.eq.14)buf=-buf
 
51
       goto 210
 
52
 200   buf=buf+(dfloat(j-1)*fact)
 
53
       fact=fact*10.0d+0
 
54
 210   nstart=nstart-1
 
55
      enddo
 
56
 220  buf=(0.1d0**(ifact2-iexft))*buf
 
57
      buf=buf*10**expo
 
58
 230  continue
 
59
 
 
60
      return
 
61
 
 
62
      END