aboutsummaryrefslogtreecommitdiff
path: root/src/nuc_eos_cxx/nuc_eos_dpdrhoe_dpderho.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/nuc_eos_cxx/nuc_eos_dpdrhoe_dpderho.cc')
-rw-r--r--src/nuc_eos_cxx/nuc_eos_dpdrhoe_dpderho.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nuc_eos_cxx/nuc_eos_dpdrhoe_dpderho.cc b/src/nuc_eos_cxx/nuc_eos_dpdrhoe_dpderho.cc
index 1ff15eb..c4f4c1f 100644
--- a/src/nuc_eos_cxx/nuc_eos_dpdrhoe_dpderho.cc
+++ b/src/nuc_eos_cxx/nuc_eos_dpdrhoe_dpderho.cc
@@ -30,7 +30,7 @@ void CCTK_FNAME(nuc_eos_m_kt0_dpdrhoe_dpderho)(const int *restrict n_in,
// Note that this code now requires that the
// temperature guess be within the table bounds
keyerr[i] = checkbounds_kt0_noTcheck(rho[i], ye[i]);
- if(keyerr[i] != 0) {
+ if(CCTK_BUILTIN_EXPECT(keyerr[i] != 0, false)) {
*anyerr = 1;
}
}
@@ -45,7 +45,7 @@ void CCTK_FNAME(nuc_eos_m_kt0_dpdrhoe_dpderho)(const int *restrict n_in,
const double lt = log(MIN(MAX(temp[i],eos_tempmin),eos_tempmax));
double ltout;
const double epstot = eps[i]+energy_shift;
- if(epstot>0.0e0) {
+ if(CCTK_BUILTIN_EXPECT(epstot>0.0e0, true)) {
// this is the standard scenario; eps is larger than zero
// and we can operate with logarithmic tables
const double lxeps = log(epstot);
@@ -61,7 +61,7 @@ void CCTK_FNAME(nuc_eos_m_kt0_dpdrhoe_dpderho)(const int *restrict n_in,
keyerr[i] = 667;
} // epstot > 0.0
- if(keyerr[i]) {
+ if(CCTK_BUILTIN_EXPECT(keyerr[i] != 0, false)) {
// now try negative temperature treatment
double eps0, eps1;
int idx[8];