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

bugs

parent 4b4b5ce9
Branches
Tags
No related merge requests found
......@@ -48,7 +48,7 @@
</label>
<% }); %>
<% if(visibleStaticSim != "none"){ %>
Simulation Z Height (up/down arrows): &nbsp;&nbsp;<input data-property="simZHeight" value="<%= simZHeight %>" placeholder="Height" class="form-control intInput eSim" type="text"><br/><br/>
Sim Z Height (up/down arrows): &nbsp;&nbsp;<input data-property="simZHeight" value="<%= simZHeight %>" placeholder="Height" class="form-control intInput eSim" type="text"><br/><br/>
<% } %>
<% } else { %>
<div class="inlineWarning">No conductive groups detected, please navigate to previous tab and calculate.</div>
......
......@@ -95,11 +95,13 @@ define(['lattice', 'appState', 'three', 'threeModel', 'numeric', 'eSim', 'eSimFi
for (var i=0;i<resolution;i++){
for (var j=0;j<resolution;j++){
for (var k=0;k<resolution;k++){
if (cell) potentialMat[resolution*x+i+1][resolution*y+j+1][resolution*z+k+1] =
if (cell && conductorGroups[cell.getConductorGroupNum()]) {
potentialMat[resolution*x+i+1][resolution*y+j+1][resolution*z+k+1] =
conductorGroups[cell.getConductorGroupNum()].voltage;
}
}
}
}
});
var offset = this.get("cellsMin").clone().sub(new THREE.Vector3(1/(2*resolution)+this.xScale(0)/2, 1/(2*resolution)+this.yScale(0)/2, 1/(2*resolution)+this.zScale(0)/2));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment