/*
The permission is granted to use the software as is and redistribute it in
its original and complete form. If you find this program useful and publish
results obtained by it, please cite the program as:
Michael Whitbeck, Desert Research Institute, 1991, "REACT - Program to solve
kinetic equations for chemical systems". Version 1.00, this code is
available from the authors or from Dr. Whitbeck.
*/
/*
rates
*/
#include
#include "rxn.h"
void rates(y) double *y;
{
int i,j,m;
double x;
for (i=1; i<= NR; i++) {
x = R[i].k;
j = 1;
while ((m = R[i].s[j++])) x *= y[m];
R[i].rate = x;
}
}
|