Template:Team:Paris Saclay/simbox

From 2013.igem.org

(Difference between revisions)
Line 172: Line 172:
   }
   }
    
    
 +
  alert('init reac '+i+ '->'+ simulations[id].reactions[i].precomp_molusage);
 +
   //precompute index array for easy shuffling
   //precompute index array for easy shuffling
   simulations[id].reac_order[i]= i;
   simulations[id].reac_order[i]= i;
Line 341: Line 343:
   for(var elt in reac.precomp_molusage)
   for(var elt in reac.precomp_molusage)
   {
   {
-
   alert('reac' + i + ' : ' + elt + '->' + reac.precomp_molusage[elt]);
+
   alert('->reac' + i + ' : ' + elt + '->' + reac.precomp_molusage[elt]);
   if( entier * reac.precomp_molusage[elt] >= sim.molecules[elt].quantity )
   if( entier * reac.precomp_molusage[elt] >= sim.molecules[elt].quantity )
   {
   {

Revision as of 11:34, 3 August 2013