From 0d32e517bda14596df0624b170ba51d588607c56 Mon Sep 17 00:00:00 2001 From: Harry Moffat Date: Sat, 4 Apr 2009 04:00:19 +0000 Subject: [PATCH] Added in a conditional compilation of vcs_equilibrate(). --- Cantera/clib/src/ctmultiphase.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Cantera/clib/src/ctmultiphase.cpp b/Cantera/clib/src/ctmultiphase.cpp index 67e827f4f..ffc35f80c 100644 --- a/Cantera/clib/src/ctmultiphase.cpp +++ b/Cantera/clib/src/ctmultiphase.cpp @@ -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) {