Skip to content

Commit

Permalink
suppress compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
chunshen1987 committed Apr 3, 2024
1 parent d460442 commit cd543ee
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 17 deletions.
1 change: 0 additions & 1 deletion src/eos_4D.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ class EOS_4D : public EOS_base {
//double Ttilde, mubtilde, muqtilde, mustilde;

// useful constants
const int Nf = 3;
const double alphaNf = (8/45.0 + 7/60.0*3.0)*M_PI*M_PI;
const double OneoveralphaNf = 1./alphaNf;

Expand Down
23 changes: 7 additions & 16 deletions src/grid_info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1677,8 +1677,6 @@ void Cell_info::output_vorticity_distribution(
VorticityVec omega_T = {0.0};
double T_avg = 0.0;
double muB_avg = 0.0;
double muS_avg = 0.0;
double muQ_avg = 0.0;
double weight = 0.0;
for (int ieta = 0; ieta < arena_curr.nEta(); ieta++) {
int fieldIdx = arena_curr.getFieldIdx(ix, iy, ieta);
Expand All @@ -1689,23 +1687,16 @@ void Cell_info::output_vorticity_distribution(
const double e_local = arena_curr.e_[fieldIdx];
if (e_local < 0.1) continue;

const double rhob_local = arena_curr.rhob_[fieldIdx];
const double rhoq_local = arena_curr.rhoq_[fieldIdx];
const double rhos_local = arena_curr.rhos_[fieldIdx];

const double T_local = eos.get_temperature(e_local, rhob_local,
rhoq_local, rhos_local);
const double muB_local = eos.get_muB(e_local, rhob_local,
rhoq_local, rhos_local);
const double muQ_local = eos.get_muQ(e_local, rhob_local,
rhoq_local, rhos_local);
const double muS_local = eos.get_muS(e_local, rhob_local,
rhoq_local, rhos_local);
const double rhob_local = arena_curr.rhob_[fieldIdx];
const double rhoq_local = arena_curr.rhoq_[fieldIdx];
const double rhos_local = arena_curr.rhos_[fieldIdx];
const double T_local = eos.get_temperature(
e_local, rhob_local, rhoq_local, rhos_local);
const double muB_local = eos.get_muB(
e_local, rhob_local, rhoq_local, rhos_local);

T_avg += e_local*T_local*hbarc;
muB_avg += e_local*muB_local*hbarc;
muQ_avg += e_local*muQ_local*hbarc;
muS_avg += e_local*muS_local*hbarc;

VorticityVec omega_local_1, omega_local_2;
VorticityVec omega_local_3, omega_local_4;
Expand Down

0 comments on commit cd543ee

Please sign in to comment.