Skip to content

Commit

Permalink
one more
Browse files Browse the repository at this point in the history
  • Loading branch information
laurabreiman committed Aug 8, 2013
1 parent d7af86f commit 164766b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion heat-diffusion.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ function HeatSolver(startingTemps,timestep,spacestep){
var count=0;
var maxTemps=[];
var firstMaxTemp=[];
for(var i=tempArray[0].length-1;i>0;i--)
for(var i=tempArray[0].length-1;i>-1;i--)
{
firstMaxTemp.push(tempArray[0][i])
}
Expand Down
1 change: 1 addition & 0 deletions sample.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ var calculate=function(data,steak,meatType,first,totalTime){
var flame=Thedata.points;
var timestep=1/Thedata.step;
var maxTemps=Thedata.maxTemps;
console.log(Thedata.allMaxTemps);
if(first){
drawFinished(meatType,maxTemps,data,steak[0],0);
drawFinished(meatType,maxTemps,data,steak[0],1);
Expand Down

0 comments on commit 164766b

Please sign in to comment.