Added in a conditional compilation of vcs_equilibrate().
This commit is contained in:
parent
abb2459ed3
commit
0d32e517bd
1 changed files with 7 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue