4 #include <blitz/array.h>
7 #include "Interactions.h"
15 class LatticeLayer
: public Array
<Occupation
, 2> {
17 LatticeLayer
& operator=(Occupation
const& o
);
19 friend ostream
& operator<<(ostream
& output
, const LatticeLayer
&);
26 Lattice(int Longitude
= 0, int Latitude
= 0, int UnitCellSizeX
= 0, int UnitCellSizeY
= 0) :
27 Latitude(Latitude
), Longitude(Longitude
),
28 UnitCellSizeX(UnitCellSizeX
), UnitCellSizeY(UnitCellSizeY
),
30 // XXX: this is crap...!!
31 surface() { adsorbates(2,2); };
33 int Latitude
, Longitude
;
34 int UnitCellSizeX
, UnitCellSizeY
;
36 LatticeLayer adsorbates
;
39 void extendUnitCell(void);
40 void assessInteractions(Interactions
&);
41 double getEnergy(void);
44 void extendUnitCell(LatticeLayer
, int, int);
46 friend ostream
& operator<<(ostream
& output
, const Lattice
&);