Skip to content

Commit

Permalink
Fixing typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
odiazib committed Oct 16, 2024
1 parent fb7db62 commit 66d9b41
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/core/TChem_AtmosphericChemistry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -539,9 +539,9 @@ TChem::AtmChemistry::setScenarioConditionsPhotolysisReactions(const std::string&
if (nBatch_photo_reation == nBatch)
{
// std::cout << photo_rate_values << "\n";
for (int ibacth = 0; ibacth < nBatch; ++ibacth)
for (int ibatch = 0; ibatch < nBatch; ++ibatch)
{
photo_rates_host(ibacth, ireac) = photo_rate_values[ibacth].as<real_type>();
photo_rates_host(ibatch, ireac) = photo_rate_values[ibatch].as<real_type>();
}
} else {
printf("Error number of values in photo reaction is different than number of conditions");
Expand Down Expand Up @@ -610,9 +610,9 @@ if (root["external_forcing"]){

if (nBatch_ext_forcing == nBatch)
{
for (int ibacth = 0; ibacth < nBatch; ++ibacth)
for (int ibatch = 0; ibatch < nBatch; ++ibatch)
{
external_forcing_host(ibacth, sp_idx) = ext_forcing_values[ibacth].as<real_type>();
external_forcing_host(ibatch, sp_idx) = ext_forcing_values[ibatch].as<real_type>();
}
} else {
printf("Error number of values in external forcing is different than number of conditions");
Expand Down

0 comments on commit 66d9b41

Please sign in to comment.