diff --git a/src/core/TChem_AtmosphericChemistry.cpp b/src/core/TChem_AtmosphericChemistry.cpp index f4eb1fbb..9a1076ae 100644 --- a/src/core/TChem_AtmosphericChemistry.cpp +++ b/src/core/TChem_AtmosphericChemistry.cpp @@ -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(); + photo_rates_host(ibatch, ireac) = photo_rate_values[ibatch].as(); } } else { printf("Error number of values in photo reaction is different than number of conditions"); @@ -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(); + external_forcing_host(ibatch, sp_idx) = ext_forcing_values[ibatch].as(); } } else { printf("Error number of values in external forcing is different than number of conditions");