Fixed some differences between const and non-const parameters.

This commit is contained in:
Harry Moffat 2008-10-15 23:30:06 +00:00
parent 583fccb2b8
commit 58f21b664e
2 changed files with 5 additions and 6 deletions

View file

@ -517,11 +517,10 @@ namespace VCSnonideal {
*
*
*/
void vcs_VolPhase::setMoleFractionsState(double totalMoles,
const double * moleFractions,
void vcs_VolPhase::setMoleFractionsState(const double totalMoles,
const double * const moleFractions,
const int vcsStateStatus) {
if (totalMoles != 0.0) {
if (vcsStateStatus != VCS_STATECALC_TMP) {
printf("vcs_VolPhase::setMolesFractionsState: inappropriate usage\n");

View file

@ -144,7 +144,7 @@ namespace VCSnonideal {
* @param molesInert kmoles of inert in the phase (defaults to zero)
*/
void resize(const int phaseNum, const int numSpecies,
const int numElem, const char * constphaseName,
const int numElem, const char * const phaseName,
const double molesInert = 0.0);
void elemResize(const int numElemConstraints);
@ -173,7 +173,7 @@ namespace VCSnonideal {
* format.
*/
void setMolesFromVCS(const int stateCalc,
const double * const molesSpeciesVCS = 0);
const double * molesSpeciesVCS = 0);
//! Set the moles within the phase
/*!
@ -423,7 +423,7 @@ namespace VCSnonideal {
*
* @param kindex kth species index.
*/
vcs_SpeciesProperties * speciesProperty(int kindex);
vcs_SpeciesProperties * speciesProperty(const int kindex);
//! int indicating whether the phase exists or not
int exists() const;