~ubuntu-branches/ubuntu/utopic/nwchem/utopic

« back to all changes in this revision

Viewing changes to src/tools/ga-5-2/benchmarks/util.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
#include <stdio.h>
 
2
#include <stdlib.h>
 
3
 
 
4
#include "ga.h"
 
5
#include "typesf2c.h"
 
6
 
 
7
#define F77_SET_MA_USE_ARMCI_MEM(name)                                      \
 
8
void name()                                                                 \
 
9
{                                                                           \
 
10
    int retval;                                                             \
 
11
    if((retval=setenv("MA_USE_ARMCI_MEM", "YES", 1)) != 0)                  \
 
12
        GA_Error("setenv failed: insufficient space in the environment",1); \
 
13
}
 
14
F77_SET_MA_USE_ARMCI_MEM(set_ma_use_armci_mem)
 
15
F77_SET_MA_USE_ARMCI_MEM(set_ma_use_armci_mem_)
 
16
F77_SET_MA_USE_ARMCI_MEM(set_ma_use_armci_mem__)
 
17
F77_SET_MA_USE_ARMCI_MEM(SET_MA_USE_ARMCI_MEM)
 
18
F77_SET_MA_USE_ARMCI_MEM(SET_MA_USE_ARMCI_MEM_)
 
19
F77_SET_MA_USE_ARMCI_MEM(SET_MA_USE_ARMCI_MEM__)
 
20
 
 
21
#define F77_UTIL_MDTOB(name)                           \
 
22
Integer name(Integer *n)                               \
 
23
{                                                      \
 
24
    if (*n < 0)                                        \
 
25
        GA_Error("util_MDTOB_: negative argument",*n); \
 
26
    return (Integer) (*n * sizeof(DoublePrecision));   \
 
27
}
 
28
F77_UTIL_MDTOB(util_mdtob)
 
29
F77_UTIL_MDTOB(util_mdtob_)
 
30
F77_UTIL_MDTOB(util_mdtob__)
 
31
F77_UTIL_MDTOB(UTIL_MDTOB)
 
32
F77_UTIL_MDTOB(UTIL_MDTOB_)
 
33
F77_UTIL_MDTOB(UTIL_MDTOB__)
 
34
 
 
35
#define F77_UTIL_TIMER(name) \
 
36
double name()                \
 
37
{                            \
 
38
    return GA_Wtime();       \
 
39
}
 
40
F77_UTIL_TIMER(util_timer)
 
41
F77_UTIL_TIMER(util_timer_)
 
42
F77_UTIL_TIMER(util_timer__)
 
43
F77_UTIL_TIMER(UTIL_TIMER)
 
44
F77_UTIL_TIMER(UTIL_TIMER_)
 
45
F77_UTIL_TIMER(UTIL_TIMER__)
 
46
 
 
47
#define F77_FLUSH(name)  \
 
48
void name(Integer *unit) \
 
49
{                        \
 
50
    fflush(stdout);      \
 
51
    fflush(stderr);      \
 
52
}
 
53
F77_FLUSH(ffflush)
 
54
F77_FLUSH(ffflush_)
 
55
F77_FLUSH(ffflush__)
 
56
F77_FLUSH(FFFLUSH)
 
57
F77_FLUSH(FFFLUSH_)
 
58
F77_FLUSH(FFFLUSH__)