Skip to content

Commit 6f28333

Browse files
authored
Fix variable names in eos_init (#500)
This fixes an issue in #495 that was avoiding some global variable shadowing, but didn't change all the variable names correctly.
1 parent ad6f2f0 commit 6f28333

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

interfaces/eos.H

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ void eos_init (Real& small_temp_in, Real& small_dens_in)
4141

4242
// Set EOSData::min{temp,dens} and small_{temp,dens} to the maximum of the two
4343
EOSData::mintemp = amrex::max(EOSData::mintemp, small_temp_in);
44-
small_temp = amrex::max(small_temp_in, EOSData::mintemp);
44+
small_temp_in = amrex::max(small_temp_in, EOSData::mintemp);
4545

4646
EOSData::mindens = amrex::max(EOSData::mindens, small_dens_in);
47-
small_dens = amrex::max(small_dens_in, EOSData::mindens);
47+
small_dens_in = amrex::max(small_dens_in, EOSData::mindens);
4848

4949
EOSData::initialized = true;
5050
}

0 commit comments

Comments
 (0)