Added in a conditional compilation of vcs_equilibrate().

This commit is contained in:
Harry Moffat 2009-04-04 04:00:19 +00:00
parent abb2459ed3
commit 0d32e517bd

View file

@ -230,8 +230,15 @@ extern "C" {
doublereal rtol, int maxsteps,
int maxiter, int loglevel) {
try {
#ifdef WITH_VCSNONIDEAL
int retn = vcs_equilibrate(*_mix(i), XY, estimateEquil, printLvl, solver,
rtol, maxsteps, maxiter, loglevel);
#else
int retn = -1;
throw CanteraError("mix_vcs_equilibrate",
"The VCS NonIdeal equilibrium solver isn't compiled in\n"
" To use this feature add export WITH_VCS_NONIDEAL='y' to the preconfig file");
#endif
return (double) retn;
}
catch (CanteraError) {