Fixed some differences between const and non-const parameters.
This commit is contained in:
parent
583fccb2b8
commit
58f21b664e
2 changed files with 5 additions and 6 deletions
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue