Skip to content

Commit

Permalink
Added const qualifiers.
Browse files Browse the repository at this point in the history
  • Loading branch information
lars2015 committed Dec 27, 2024
1 parent 69dd3f2 commit 1c31198
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mptrac.c
Original file line number Diff line number Diff line change
Expand Up @@ -2746,7 +2746,7 @@ void module_convection(
const double rhotop = ptop / ttop;

/* Get new density... */
double rho = rhobot + (rhotop - rhobot) * rs[ip];
const double rho = rhobot + (rhotop - rhobot) * rs[ip];

/* Get pressure... */
atm->p[ip] = LIN(rhobot, pbot, rhotop, ptop, rho);
Expand Down Expand Up @@ -3783,7 +3783,7 @@ void module_oh_chem(
const double ki =
ctl->oh_chem[2] * (ctl->oh_chem[3] !=
0 ? pow(298. / t, ctl->oh_chem[3]) : 1.);
double c = log10(k0 * M / ki);
const double c = log10(k0 * M / ki);
k = k0 * M / (1. + k0 * M / ki) * pow(0.6, 1. / (1. + c * c));
}

Expand Down

0 comments on commit 1c31198

Please sign in to comment.