adding debuggable conditionals, fixing lemontiger bug

… reorientsegs was borked
This commit is contained in:
sam hatchett
2013-09-27 22:19:54 -04:00
parent 5b151dd09b
commit 519daf8e3e
5 changed files with 65 additions and 40 deletions

View File

@@ -455,7 +455,7 @@ int linkoutput(int j, REAL4 *x, double ucf)
break;
case REACTRATE: /* Overall reaction rate in mass/L/day */
if (Qualflag == NONE) memset(x,0,(Nlinks+1 )*sizeof(REAL4));
else for (i=1; i<=Nlinks; i++) x[i] = (REAL4)(R[i]*ucf);
else for (i=1; i<=Nlinks; i++) x[i] = (REAL4)(PipeRateCoeff[i]*ucf);
break;
case FRICTION: /* f = 2ghd/(Lu^2) where f = friction factor */
/* u = velocity, g = grav. accel., h = head */