| 
            Last change
 on this file since d83d64 was             7daf73, checked in by Frederik Heber <heber@…>, 10 years ago           | 
        
        
          | 
             
LinkedCell's LinkedList is now a vector and no longer a set. 
 
- this was causing conflicts in tests as the order of the atoms/TesselPoints
in the LinkedList returned by getAllNeighbors() would depend on the order in
memory and not on the geometrical ordering or on the ids.
 - TESTFIX: needed to replace use of insert() in (unit)tests by push_back. But all
in all only Molecules Removal regression test's pdb file is affected.
  
           | 
        
        
          
            
              - 
Property                 mode
 set to                 
100644
               
             
           | 
        
        
          | 
            File size:
            751 bytes
           | 
        
      
      
| Line |   | 
|---|
| 1 | /*
 | 
|---|
| 2 |  * types.hpp
 | 
|---|
| 3 |  *
 | 
|---|
| 4 |  *  Created on: Nov 15, 2011
 | 
|---|
| 5 |  *      Author: heber
 | 
|---|
| 6 |  */
 | 
|---|
| 7 | 
 | 
|---|
| 8 | #ifndef LINKEDCELL_TYPES_HPP_
 | 
|---|
| 9 | #define LINKEDCELL_TYPES_HPP_
 | 
|---|
| 10 | 
 | 
|---|
| 11 | // include config.h
 | 
|---|
| 12 | #ifdef HAVE_CONFIG_H
 | 
|---|
| 13 | #include <config.h>
 | 
|---|
| 14 | #endif
 | 
|---|
| 15 | 
 | 
|---|
| 16 | #include <set>
 | 
|---|
| 17 | #include <vector>
 | 
|---|
| 18 | 
 | 
|---|
| 19 | #include <boost/multi_array.hpp>
 | 
|---|
| 20 | 
 | 
|---|
| 21 | #include "LinearAlgebra/defs.hpp"
 | 
|---|
| 22 | 
 | 
|---|
| 23 | class TesselPoint;
 | 
|---|
| 24 | 
 | 
|---|
| 25 | namespace LinkedCell {
 | 
|---|
| 26 | 
 | 
|---|
| 27 |   //< Upper bound for number of cell nodes used in sensibility check on allocation.
 | 
|---|
| 28 |   enum { MAX_LINKEDCELLNODES = 1000000 };
 | 
|---|
| 29 | 
 | 
|---|
| 30 |   class LinkedCell;
 | 
|---|
| 31 | 
 | 
|---|
| 32 |   //!> linked list of tesselpoints
 | 
|---|
| 33 |   typedef std::vector<const TesselPoint *> LinkedList;
 | 
|---|
| 34 | 
 | 
|---|
| 35 |   //!> three-dimensional array of LinkedCell instances
 | 
|---|
| 36 |   typedef boost::multi_array<LinkedCell *, NDIM> LinkedCellArray;
 | 
|---|
| 37 | }
 | 
|---|
| 38 | 
 | 
|---|
| 39 | 
 | 
|---|
| 40 | #endif /* LINKEDCELL_TYPES_HPP_ */
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.