#include <math.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "../../util/source/compiler.h"
#include "../../util/source/useful.h"
#include "co2eq.h"
Supplies Temperature, Pressure, Sound Speed and Species Concentrations as functions of e, rho. Uses bilinear interpolation on tabulated data.
* 1.0 : 30-Jul-94 : Pressure as a function of density and energy * Temperature as a function of density and energy * Sound Speed as a function of density and energy * 2.0 : 10-Aug-94 : Code generalized for multiple compilers. * Bugs fixed for pressure interpolation code. * 3.0 : 15-Aug-94 : Memory allocation technique improved. * getheader() function added. * 3.1 : 16-Aug-94 : HUGE_PTR used in place of huge. * process.h alloc.h string.h are for turbo-C only. * 4.0 : 18-Aug-94 : Extrapolation code added. * extrapmsg() function added. * 5.0 : 20-Aug-94 : Bundled species.c in same file * 6.0 : 21-Jun-95 : Now has dynamic upper energy limit. * Support for non-density-log-axis revoked. * 7.0 : 08-Mar-96 : Bug fix for carbon. Increased to 15000K * 8.0 : 12-Jul-01 : Swapped limits on loops reading table data. PJ * This would have been a problem only for DSTEPS != ESTEPS. * Also, do EHI mapping in linear rho (not log_rho) * to match meqs.c. *
1.4.4