source: src/LinkedCell/types.hpp@ 7516f6

Action_Thermostats Adding_MD_integration_tests Adding_StructOpt_integration_tests AutomationFragmentation_failures Candidate_v1.6.1 ChemicalSpaceEvaluator Enhanced_StructuralOptimization Enhanced_StructuralOptimization_continued Exclude_Hydrogens_annealWithBondGraph Fix_Verbose_Codepatterns ForceAnnealing_with_BondGraph ForceAnnealing_with_BondGraph_continued ForceAnnealing_with_BondGraph_continued_betteresults ForceAnnealing_with_BondGraph_contraction-expansion Gui_displays_atomic_force_velocity JobMarket_RobustOnKillsSegFaults JobMarket_StableWorkerPool PythonUI_with_named_parameters Recreated_GuiChecks StoppableMakroAction TremoloParser_IncreasedPrecision
Last change on this file since 7516f6 was 7daf73, checked in by Frederik Heber <heber@…>, 9 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
23class TesselPoint;
24
25namespace 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.