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

« back to all changes in this revision

Viewing changes to src/tools/ga-5-1/cca/ga_cca_classic/DADFDescriptor.h

  • 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
 
#ifndef DADFDescriptor_h_seen
2
 
#define DADFDescriptor_h_seen
3
 
 
4
 
/** This is our implementation of DistArrayDescriptor.  It is kept
5
 
    private within the DistArrayDescriptorFactory.  Only
6
 
    DistArrayDescriptor is exposed to the outside. 
7
 
 
8
 
    $Id: DADFDescriptor.h,v 1.1 2003-08-01 00:41:53 manoj Exp $
9
 
 */
10
 
 
11
 
#include <string>
12
 
#include <vector>
13
 
 
14
 
#include "DistArrayDescriptor.h"
15
 
#include "DADFTemplate.h"
16
 
 
17
 
class DADFDescriptor : public DistArrayDescriptor {
18
 
 public:
19
 
 
20
 
  /****************************************************************************
21
 
   * Constructors and destructors
22
 
   ***************************************************************************/
23
 
 
24
 
  /** Simple constructor for internal use. */
25
 
  DADFDescriptor() ;
26
 
 
27
 
  /** Normal constructor -- forces setting of name */
28
 
  DADFDescriptor( const std::string name ) ;
29
 
 
30
 
  /** Copy constructor */
31
 
  DADFDescriptor( const std::string name, DADFDescriptor & original );
32
 
 
33
 
  /** The usual destructor */
34
 
  virtual ~DADFDescriptor();
35
 
 
36
 
  /** Set data type. */
37
 
  virtual int setDataType(const enum DataType type);
38
 
 
39
 
  /** Associate this data object with a distribution template. */
40
 
  virtual int setTemplate(DistArrayTemplate * & templ);
41
 
 
42
 
  /** Sets this process's location in the process topology. */
43
 
  virtual int setMyProcCoords(const int procCoords[] );
44
 
 
45
 
  /** Align object to template with identity mapping. */
46
 
  virtual int setIdentityAlignmentMap();
47
 
 
48
 
  /** Set pointer for the local region of the data object. */
49
 
  virtual int setLocalDataPointer(void* data, const int strides[]);
50
 
 
51
 
  /** Set pointer for a local region of an explicitly distributed
52
 
      data object.
53
 
  */
54
 
  virtual int setRegionDataPointer(const int lower[], const int
55
 
                                    upper[], void* data, const int
56
 
                                    strides[]);
57
 
 
58
 
  /** Signal that data object is completely defined. */
59
 
  virtual int commit();
60
 
 
61
 
  /****************************************************************************
62
 
   * Query the descriptor
63
 
   ***************************************************************************/
64
 
 
65
 
  /** Return name given to descriptor */
66
 
  virtual std::string getName();
67
 
 
68
 
  /** Has commit() been called on this descriptor? */
69
 
  virtual bool isDefined();
70
 
 
71
 
  /** Get data type. */
72
 
  virtual DistArrayDescriptor::DataType getDataType();
73
 
 
74
 
  /** Return pointer to distribution template associated with this
75
 
      data object. 
76
 
  */
77
 
  virtual DistArrayTemplate * getTemplate();
78
 
 
79
 
  /** Get this process's location in the process topology. */
80
 
  virtual int getMyProcCoords(int procCoords[] );
81
 
 
82
 
  /** Mainly for testing and debugging */
83
 
  virtual void printDescriptor();
84
 
 
85
 
  /** Part of a kludge for debugging. */
86
 
  virtual int getNumLocalRegions();
87
 
 
88
 
  /** Part of a kludge for debugging. */
89
 
  virtual int getLocalRegionInfo(int region, int lower[], int upper[],
90
 
                                 void * & data, int strides[]);
91
 
 
92
 
  /****************************************************************************
93
 
   * Internals
94
 
   ***************************************************************************/
95
 
 private:
96
 
 
97
 
  // Human-readable name for this descriptor
98
 
  std::string _name;           
99
 
  
100
 
  // Whether or not commit() has been called
101
 
  int _frozen;            
102
 
 
103
 
  // Rank of array
104
 
  int _rank;
105
 
 
106
 
  // Type of data
107
 
  DataType _type;
108
 
 
109
 
  // Shorthand check if this is an explicit distribution
110
 
  bool _isExplicitDist;
111
 
 
112
 
  // Array distribution template for this descriptor
113
 
  DistArrayTemplate * _templ;
114
 
 
115
 
  // Global lower bounds of array
116
 
  std::vector<int>                 _lowerBounds;
117
 
 
118
 
  // Global upper bounds of array
119
 
  std::vector<int>                 _upperBounds;
120
 
 
121
 
  // Process topology
122
 
  std::vector<int>                 _topology;
123
 
 
124
 
  // Coordinates of this process in topology
125
 
  std::vector<int>                 _procCoords;
126
 
 
127
 
  // List of regions associated with this process of array
128
 
  std::list<DADFRegionInfo *> _regionList;
129
 
};
130
 
#endif // DADFDescriptor_h_seen