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

« back to all changes in this revision

Viewing changes to src/tools/ga-5-2/global/src/peigstubs.c

  • 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
#if HAVE_CONFIG_H
 
2
#   include "config.h"
 
3
#endif
 
4
 
 
5
#include "globalp.h"
 
6
#include "ga-papi.h"
 
7
#include "ga-wapi.h"
 
8
 
 
9
#if ENABLE_PEIGS
 
10
#   if ENABLE_F77
 
11
#       define gai_diag_       F77_FUNC_(gai_diag,GAI_DIAG)
 
12
#       define gai_diag_std_   F77_FUNC_(gai_diag_std,GAI_DIAG_STD)
 
13
#       define gai_diag_reuse_ F77_FUNC_(gai_diag_reuse,GAI_DIAG_REUSE)
 
14
extern gai_diag_(Integer*,Integer*,Integer*,DoublePrecision*);
 
15
extern gai_diag_std_(Integer*,Integer*,DoublePrecision*);
 
16
extern gai_diag_reuse_(Integer*,Integer*,Integer*,Integer*,DoublePrecision*);
 
17
#   else
 
18
#   endif
 
19
#else
 
20
#endif
 
21
 
 
22
#if HAVE_SYS_WEAK_ALIAS_PRAGMA
 
23
#   pragma weak wnga_diag = pnga_diag
 
24
#endif
 
25
void pnga_diag(Integer g_a, Integer g_s, Integer g_v, DoublePrecision *eval) {
 
26
#if ENABLE_PEIGS
 
27
#   if ENABLE_F77
 
28
    gai_diag_(&g_a, &g_s, &g_v, eval);
 
29
#   else
 
30
    pnga_error("ga_diag:peigs interfaced, need to configure --enable-f77",0L);
 
31
#   endif
 
32
#else
 
33
    pnga_error("ga_diag:peigs not interfaced",0L);
 
34
#endif
 
35
}
 
36
 
 
37
#if HAVE_SYS_WEAK_ALIAS_PRAGMA
 
38
#   pragma weak wnga_diag_std = pnga_diag_std
 
39
#endif
 
40
void pnga_diag_std(Integer g_a, Integer g_v, DoublePrecision *eval) {
 
41
#if ENABLE_PEIGS
 
42
#   if ENABLE_F77
 
43
    gai_diag_std_(&g_a, &g_v, eval);
 
44
#   else
 
45
    pnga_error("ga_diag:peigs interfaced, need to configure --enable-f77",0L);
 
46
#   endif
 
47
#else
 
48
    pnga_error("ga_diag:peigs not interfaced",0L);
 
49
#endif
 
50
}
 
51
 
 
52
#if HAVE_SYS_WEAK_ALIAS_PRAGMA
 
53
#   pragma weak wnga_diag_reuse = pnga_diag_reuse
 
54
#endif
 
55
void pnga_diag_reuse(Integer reuse, Integer g_a, Integer g_s, 
 
56
                   Integer g_v, DoublePrecision *eval) {
 
57
#if ENABLE_PEIGS
 
58
#   if ENABLE_F77
 
59
    gai_diag_reuse_(&reuse, &g_a, &g_s, &g_v, eval);
 
60
#   else
 
61
    pnga_error("ga_diag:peigs interfaced, need to configure --enable-f77",0L);
 
62
#   endif
 
63
#else
 
64
    pnga_error("ga_diag:peigs not interfaced",0L);
 
65
#endif
 
66
}