added functions to set and get the electric potential of a phase

This commit is contained in:
Dave Goodwin 2006-05-01 23:03:05 +00:00
parent 43e9b31519
commit 265b81948d

View file

@ -28,6 +28,8 @@ static void thermoset( int nlhs, mxArray *plhs[],
ierr = delThermo(th); break;
case 1:
ierr = th_setPressure(th,*ptr); break;
case 2:
ierr = th_setElectricPotential(th, *ptr); break;
default:
mexErrMsgTxt("unknown attribute.");
}
@ -139,6 +141,8 @@ static void thermoget( int nlhs, mxArray *plhs[],
tsat = getDouble(prhs[3]);
vv = th_satPressure(n, tsat); break;
#endif
case 25:
vv = th_electricPotential(n); break;
default:
ok = false;
}