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

« back to all changes in this revision

Viewing changes to src/task/task_num_grad.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:
5
5
#include "mafdecls.fh"
6
6
      integer rtdb
7
7
*
8
 
* $Id: task_num_grad.F,v 1.40 2008-03-03 20:09:05 niri Exp $
 
8
* $Id: task_num_grad.F 19973 2011-02-18 17:24:17Z marat $
9
9
*
10
10
#include "inp.fh"
11
11
      logical analytic
13
13
      external task_energy, num_grad
14
14
      character*128 ename, gname
15
15
      character*32 theory
 
16
      logical ocons
 
17
      logical cons_active
 
18
      external cons_active
16
19
c
17
20
c check for analytic user input 
18
21
c
23
26
     &       RTDB_ERR)
24
27
         endif
25
28
      endif
 
29
      
 
30
      ocons = cons_active(rtdb)
26
31
c
27
32
      if (.not. rtdb_cget(rtdb, 'task:theory', 1, theory))
28
33
     $     call errquit('num_grad: theory missing?',0, RTDB_ERR)
58
63
c
59
64
      write(ename,'(a,'':energy'')') theory(1:inp_strlen(theory))
60
65
      write(gname,'(a,'':gradient'')') theory(1:inp_strlen(theory))
 
66
      if(ocons) then
 
67
        ename ="task:energy"
 
68
      end if
61
69
C
62
70
      task_num_grad = num_grad(rtdb, task_energy,
63
71
     $   ename(1:inp_strlen(ename)), gname(1:inp_strlen(gname)),