Skip to content

Commit

Permalink
Fix warnings about unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
speth committed Jul 2, 2023
1 parent 3b2ce47 commit 8aad9f3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/equil/ChemEquil.cpp
Expand Up @@ -1027,10 +1027,8 @@ int ChemEquil::estimateEP_Brinkley(ThermoPhase& s, vector_fp& x,
for (size_t m = 0; m < m_mm; m++) {
size_t kMSp = npos;
size_t kMSp2 = npos;
int nSpeciesWithElem = 0;
for (size_t k = 0; k < m_kk; k++) {
if (n_i_calc[k] > nCutoff && fabs(nAtoms(k,m)) > 0.001) {
nSpeciesWithElem++;
if (kMSp != npos) {
kMSp2 = k;
double factor = fabs(nAtoms(kMSp,m) / nAtoms(kMSp2,m));
Expand Down
2 changes: 0 additions & 2 deletions src/oneD/Sim1D.cpp
Expand Up @@ -452,7 +452,6 @@ void Sim1D::solve(int loglevel, bool refine_grid)
int new_points = 1;
doublereal dt = m_tstep;
m_nsteps = 0;
int soln_number = -1;
finalize();

while (new_points > 0) {
Expand Down Expand Up @@ -495,7 +494,6 @@ void Sim1D::solve(int loglevel, bool refine_grid)
"After successful Newton solve");
}
ok = true;
soln_number++;
} else {
debuglog(" failure. \n", loglevel);
if (loglevel > 6) {
Expand Down

0 comments on commit 8aad9f3

Please sign in to comment.