CCL Home Page
Up Directory CCL reprint
/*
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.
*/

/*
 reprint reactions for fun
*/

#include 
#include "rxn.h"
void reprint(n,s) int n,s;
{
int i,j,f,m;
printf("%d reacions involving %d species\n", n,s);
for (i = 1; i <= n; i++) {
  f =1;
  printf("%d  %14.6e\t",i,R[i].k);
  for (j = 1; j <= R[i].n ; j++) {
    m = R[i].s[j];
    if (m == 0) {printf(" -> "); f =0; continue;}
    else if (j>1 && f>0) printf(" + ");
    printf("%d ", m); f=1;
    }
  printf("\n");
  }
}

Modified: Tue May 14 16:00:00 1991 GMT
Page accessed 4761 times since Sat Apr 17 21:58:36 1999 GMT