~ubuntu-branches/ubuntu/trusty/nwchem/trusty-proposed

« back to all changes in this revision

Viewing changes to src/tools/ga-5-2/m4/ga_f77_flush.m4

  • Committer: Package Import Robot
  • Author(s): Michael Banck, Daniel Leidert, Andreas Tille, Michael Banck
  • Date: 2013-07-04 12:14:55 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20130704121455-5tvsx2qabor3nrui
Tags: 6.3-1
* New upstream release.
* Fixes anisotropic properties (Closes: #696361).
* New features include:
  + Multi-reference coupled cluster (MRCC) approaches
  + Hybrid DFT calculations with short-range HF 
  + New density-functionals including Minnesota (M08, M11) and HSE hybrid
    functionals
  + X-ray absorption spectroscopy (XAS) with TDDFT
  + Analytical gradients for the COSMO solvation model
  + Transition densities from TDDFT 
  + DFT+U and Electron-Transfer (ET) methods for plane wave calculations
  + Exploitation of space group symmetry in plane wave geometry optimizations
  + Local density of states (LDOS) collective variable added to Metadynamics
  + Various new XC functionals added for plane wave calculations, including
    hybrid and range-corrected ones
  + Electric field gradients with relativistic corrections 
  + Nudged Elastic Band optimization method
  + Updated basis sets and ECPs 

[ Daniel Leidert ]
* debian/watch: Fixed.

[ Andreas Tille ]
* debian/upstream: References

[ Michael Banck ]
* debian/upstream (Name): New field.
* debian/patches/02_makefile_flags.patch: Refreshed.
* debian/patches/06_statfs_kfreebsd.patch: Likewise.
* debian/patches/07_ga_target_force_linux.patch: Likewise.
* debian/patches/05_avoid_inline_assembler.patch: Removed, no longer needed.
* debian/patches/09_backported_6.1.1_fixes.patch: Likewise.
* debian/control (Build-Depends): Added gfortran-4.7 and gcc-4.7.
* debian/patches/10_force_gcc-4.7.patch: New patch, explicitly sets
  gfortran-4.7 and gcc-4.7, fixes test suite hang with gcc-4.8 (Closes:
  #701328, #713262).
* debian/testsuite: Added tests for COSMO analytical gradients and MRCC.
* debian/rules (MRCC_METHODS): New variable, required to enable MRCC methods.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# GA_F77_FLUSH
 
2
# ------------
 
3
# Check whether the function "flush" is available. If not, try various flags
 
4
# in order to link to it successfully.  Otherwise look for the "forflush"
 
5
# function.  Add any appropriate flags to FFLAGS as needed and define
 
6
# F77_FLUSH to the name of the appropriate function.
 
7
# If flush routine is available set HAVE_F77_FLUSH to 1, otherwise 0.
 
8
AC_DEFUN([GA_F77_FLUSH], [
 
9
AC_CACHE_CHECK([for $F77 flush routine],
 
10
[ga_cv_f77_flush],
 
11
[AC_LANG_PUSH([Fortran 77])
 
12
for testflag in none -qextname=flush ; do
 
13
    ga_save_FFLAGS=$FFLAGS
 
14
    AS_IF([test "x$testflag" != xnone], [FFLAGS="$FFLAGS $testflag"])
 
15
    AC_LINK_IFELSE([AC_LANG_SOURCE(
 
16
[[      call flush(13)
 
17
      end program]])],
 
18
        [ga_cv_f77_flush_flag=$testflag])
 
19
    FFLAGS=$ga_save_FFLAGS
 
20
    AS_IF([test "x$ga_cv_f77_flush_flag" != x], [break])
 
21
done
 
22
AS_IF([test "x$ga_cv_f77_flush_flag" != x], [ga_cv_f77_flush=flush],
 
23
    [AC_LINK_IFELSE([AC_LANG_SOURCE(
 
24
[[      call forflush(13)
 
25
      end program]])],
 
26
        [ga_cv_f77_flush=forflush])])
 
27
AC_LANG_POP([Fortran 77])])
 
28
AS_IF([test "x$ga_cv_f77_flush" != x],
 
29
    [AC_DEFINE_UNQUOTED([F77_FLUSH], [$ga_cv_f77_flush],
 
30
        [Name of F77 flush routine])
 
31
     AC_DEFINE([HAVE_F77_FLUSH], [1],
 
32
        [whether F77 flush routine is available])],
 
33
    [AC_MSG_WARN([Could not determine name of $F77 flush routine])
 
34
     AC_DEFINE([HAVE_F77_FLUSH], [0],
 
35
        [whether F77 flush routine is available])])
 
36
AS_IF([test "x$ga_cv_f77_flush" = xflush],
 
37
    [AS_IF([test "x$ga_cv_f77_flush_flag" != xnone],
 
38
        [FFLAGS="$FFLAGS $ga_cv_f77_flush_flag"])])
 
39
]) # GA_F77_FLUSH