Skip to content
Snippets Groups Projects
Commit 1ffcba66 authored by Amanda Ghassaei's avatar Amanda Ghassaei
Browse files

supercell

parent 10c0ffb2
No related branches found
No related tags found
No related merge requests found
...@@ -5,9 +5,9 @@ ...@@ -5,9 +5,9 @@
DMASuperCell = function(index, superCell){//supercells might have supercells DMASuperCell = function(index, superCell){//supercells might have supercells
this.material = globals.lattice.get("materialType");//todo move to dmacell
DMACell.call(this, index, superCell); DMACell.call(this, index, superCell);
var range = globals.lattice.get("superCellRange"); var range = globals.lattice.get("superCellRange");
this.material = globals.lattice.get("materialType");//todo move to dmacell
this.cells = this._makeChildCells(index, range);//three dimensional array this.cells = this._makeChildCells(index, range);//three dimensional array
var self = this; var self = this;
...@@ -61,7 +61,7 @@ DMASuperCell.prototype.setMode = function(mode){ ...@@ -61,7 +61,7 @@ DMASuperCell.prototype.setMode = function(mode){
DMASuperCell.prototype.getLength = function(){ DMASuperCell.prototype.getLength = function(){
if (this.cells) return this.cells.length-1; if (this.cells) return this.cells.length-1;
return globals.lattice.get("superCellRange").x; return globals.lattice.get("superCellRange").x-1;
}; };
DMASuperCell.prototype.destroy = function(){ DMASuperCell.prototype.destroy = function(){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment