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

« back to all changes in this revision

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

  • 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
#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
}