test commit and push upstream to origin
[cluster_expansion_mc.git] / Lattice.h
bloba65162109b9fca3365f5a8b7fc58fe52f388446c
1 #ifndef _LATTICE_H
2 #define _LATTICE_H
4 #include <blitz/array.h>
5 using namespace blitz;
7 #include "Interactions.h"
9 enum Occupation {
10 empty = 0, CO, Pd, O, max_species
13 class LatticeLayer: public Array<Occupation, 2> {
14 public:
15 LatticeLayer& operator=(Occupation const& o);
17 friend ostream& operator<<(ostream& output, const LatticeLayer&);
20 class Lattice {
21 public:
22 Lattice();
23 Lattice(int, int, int, int);
25 int GranularityX, GranularityY;
26 int UnitCellSizeX, UnitCellSizeY;
28 LatticeLayer adsorbates;
29 LatticeLayer surface;
31 double nrCO;
33 void assessInteractions(Interactions&);
36 friend ostream& operator<<(ostream& output, const Lattice&);
40 #endif