reaction
|
a.e,
a.m,
a.p,
a.s,
bail.c,
derivs.c,
errors,
extract.c,
extracter.c,
initial.c,
inlist.c,
lastchange,
makefile,
parse.c,
posting1,
rates.c,
reader.c,
readme,
reprint.c,
rxn.c,
rxn.h,
select.c,
setfiles.c,
wr_results.c,
wr_species.c,
|
|
|
/*
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.
*/
#include "rxn.h"
void setfiles(root) char *root;
{
if (strlen(root) < 1) bail("No parameter file!");
parameters = (char *)malloc(strlen(root)+5);
strcpy (parameters, root); strcat (parameters,".p");
mechanism = (char *)malloc(strlen(root)+5);
strcpy (mechanism, root); strcat (mechanism,".m");
results = (char *)malloc(strlen(root)+5);
strcpy (results, root); strcat (results,".r");
Species = (char *)malloc(strlen(root)+5);
strcpy (Species, root); strcat (Species,".s");
select = (char *)malloc(strlen(root)+5);
strcpy (select, root); strcat (select,".e");
}
|