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

« back to all changes in this revision

Viewing changes to src/tools/ga-5-1/pario/dra/fortran.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
 
/*************************** fortran  DRA interface **************************/
6
 
 
7
 
#include "dra.h"
8
 
#include "drap.h"
9
 
#include "draf2c.h"
10
 
#include "farg.h"
11
 
#include "typesf2c.h"
12
 
#include "ga-papi.h"
13
 
#include "global.h"
14
 
 
15
 
static char cname[DRA_MAX_NAME+1], cfilename[DRA_MAX_FNAME+1];
16
 
 
17
 
Integer FATR dra_create_(
18
 
#ifdef F2C_HIDDEN_STRING_LENGTH_AFTER_ARGS
19
 
        Integer *type,
20
 
        Integer *dim1,
21
 
        Integer *dim2,
22
 
        char    *name,
23
 
        char    *filename,
24
 
        Integer *mode,
25
 
        Integer *reqdim1,
26
 
        Integer *reqdim2,
27
 
        Integer *d_a,
28
 
        int  nlen,
29
 
        int  flen
30
 
#else
31
 
        Integer *type,
32
 
        Integer *dim1,
33
 
        Integer *dim2,
34
 
        char    *name,
35
 
        int  nlen,
36
 
        char    *filename,
37
 
        int  flen,
38
 
        Integer *mode,
39
 
        Integer *reqdim1,
40
 
        Integer *reqdim2,
41
 
        Integer *d_a
42
 
#endif
43
 
        )
44
 
{
45
 
    ga_f2cstring(name, nlen, cname, DRA_MAX_NAME);
46
 
    ga_f2cstring(filename, flen, cfilename, DRA_MAX_FNAME);
47
 
    return drai_create(type, dim1, dim2, cname, cfilename,
48
 
            mode, reqdim1, reqdim2,d_a);
49
 
}
50
 
 
51
 
 
52
 
Integer FATR ndra_create_(
53
 
#ifdef F2C_HIDDEN_STRING_LENGTH_AFTER_ARGS
54
 
        Integer *type,
55
 
        Integer *ndim,
56
 
        Integer  dims[],
57
 
        char    *name,
58
 
        char    *filename,
59
 
        Integer *mode,
60
 
        Integer  reqdims[],
61
 
        Integer *d_a,
62
 
        int  nlen,
63
 
        int  flen
64
 
#else
65
 
        Integer *type,
66
 
        Integer *ndim,
67
 
        Integer  dims[],
68
 
        char    *name,
69
 
        int  nlen,
70
 
        char    *filename,
71
 
        int  flen,
72
 
        Integer *mode,
73
 
        Integer  reqdims[],
74
 
        Integer *d_a
75
 
#endif
76
 
        )
77
 
{
78
 
    ga_f2cstring(name, nlen, cname, DRA_MAX_NAME);
79
 
    ga_f2cstring(filename, flen, cfilename, DRA_MAX_FNAME);
80
 
    return ndrai_create(type, ndim, dims, cname, cfilename, mode, reqdims, d_a);
81
 
}
82
 
 
83
 
 
84
 
Integer FATR dra_open_(
85
 
#ifdef F2C_HIDDEN_STRING_LENGTH_AFTER_ARGS
86
 
        char    *filename,
87
 
        Integer *mode,
88
 
        Integer *d_a,
89
 
        int      flen
90
 
#else
91
 
        char    *filename,
92
 
        int      flen,
93
 
        Integer *mode,
94
 
        Integer *d_a
95
 
#endif
96
 
        )
97
 
{
98
 
    ga_f2cstring(filename, flen, cfilename, DRA_MAX_FNAME);
99
 
    return drai_open(cfilename, mode, d_a);
100
 
}
101
 
 
102
 
 
103
 
Integer FATR dra_inquire_(
104
 
#ifdef F2C_HIDDEN_STRING_LENGTH_AFTER_ARGS
105
 
        Integer *d_a,
106
 
        Integer *type,
107
 
        Integer *dim1,
108
 
        Integer *dim2,
109
 
        char    *name,
110
 
        char    *filename,
111
 
        int      nlen,
112
 
        int      flen
113
 
#else
114
 
        Integer *d_a,
115
 
        Integer *type,
116
 
        Integer *dim1,
117
 
        Integer *dim2,
118
 
        char    *name,
119
 
        int      nlen,
120
 
        char    *filename,
121
 
        int      flen
122
 
#endif
123
 
        )
124
 
{
125
 
    Integer stat = drai_inquire(d_a, type, dim1, dim2, cname, cfilename);
126
 
    *type = pnga_type_c2f(*type);
127
 
    ga_c2fstring(cname, name, nlen);
128
 
    ga_c2fstring(cfilename, filename, flen);
129
 
    return stat;
130
 
}
131
 
 
132
 
 
133
 
Integer FATR ndra_inquire_(
134
 
#ifdef F2C_HIDDEN_STRING_LENGTH_AFTER_ARGS
135
 
        Integer *d_a,
136
 
        Integer *type,
137
 
        Integer *ndim,
138
 
        Integer  dims[],
139
 
        char    *name,
140
 
        char    *filename,
141
 
        int      nlen,
142
 
        int      flen
143
 
#else
144
 
        Integer *d_a,
145
 
        Integer *type,
146
 
        Integer *ndim,
147
 
        Integer  dims[],
148
 
        char    *name,
149
 
        int      nlen,
150
 
        char    *filename,
151
 
        int      flen
152
 
#endif
153
 
        )
154
 
{
155
 
    Integer stat = ndrai_inquire(d_a, type, ndim, dims, cname, cfilename);
156
 
    *type = pnga_type_c2f(*type);
157
 
    ga_c2fstring(cname, name, nlen);
158
 
    ga_c2fstring(cfilename, filename, flen);
159
 
    return stat;
160
 
}
161
 
 
162
 
 
163
 
Integer ndra_create_config_(
164
 
#ifdef F2C_HIDDEN_STRING_LENGTH_AFTER_ARGS
165
 
        Integer *type,
166
 
        Integer *ndim,
167
 
        Integer  dims[],
168
 
        char    *name,
169
 
        char    *filename,
170
 
        Integer *mode, 
171
 
        Integer  reqdims[],
172
 
        Integer *numfiles, 
173
 
        Integer *numioprocs,
174
 
        Integer *d_a,
175
 
        int      nlen,
176
 
        int      flen
177
 
#else
178
 
        Integer *type,
179
 
        Integer *ndim,
180
 
        Integer  dims[],
181
 
        char    *name,
182
 
        int      nlen,
183
 
        char    *filename,
184
 
        int      flen,
185
 
        Integer *mode, 
186
 
        Integer  reqdims[],
187
 
        Integer *numfiles, 
188
 
        Integer *numioprocs,
189
 
        Integer *d_a
190
 
#endif
191
 
        )
192
 
{
193
 
    ga_f2cstring(name, nlen, cname, DRA_MAX_NAME);
194
 
    ga_f2cstring(filename, flen, cfilename, DRA_MAX_FNAME);
195
 
    return ndrai_create_config(type, ndim, dims, cname, cfilename,
196
 
            mode, reqdims, numfiles, numioprocs, d_a);
197
 
}