From 1ffcba66c23f51f481105f3a759ccf6032227e91 Mon Sep 17 00:00:00 2001 From: Amanda Ghassaei <amandaghassaei@gmail.com> Date: Tue, 2 Jun 2015 08:49:23 -0700 Subject: [PATCH] supercell --- js/cells/supercells/DMASuperCell.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/cells/supercells/DMASuperCell.js b/js/cells/supercells/DMASuperCell.js index 9e72734f..977b0ffe 100644 --- a/js/cells/supercells/DMASuperCell.js +++ b/js/cells/supercells/DMASuperCell.js @@ -5,9 +5,9 @@ DMASuperCell = function(index, superCell){//supercells might have supercells + this.material = globals.lattice.get("materialType");//todo move to dmacell DMACell.call(this, index, superCell); 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 var self = this; @@ -61,7 +61,7 @@ DMASuperCell.prototype.setMode = function(mode){ DMASuperCell.prototype.getLength = function(){ 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(){ -- GitLab