Template:Team:Paris Saclay/simbox

From 2013.igem.org

(Difference between revisions)
Line 400: Line 400:
   var tstart= Math.floor(sim.draw_min_t/sim.timestep);
   var tstart= Math.floor(sim.draw_min_t/sim.timestep);
   var tend= Math.ceil(sim.draw_max_t/sim.timestep);
   var tend= Math.ceil(sim.draw_max_t/sim.timestep);
-
   if(tstart > sim.molecules.length)
+
   if(tstart > dta.length)
-
     tstart= sim.molecules.length;
+
     tstart= dta.length;
-
   if(tend > sim.molecules.length)
+
   if(tend > dta.length)
-
     tend= sim.molecules.length;
+
     tend= dta.length;
   alert('t1= ' + tstart + ' t2='+ tend);
   alert('t1= ' + tstart + ' t2='+ tend);

Revision as of 01:22, 3 August 2013