Skip to content

Commit

Permalink
Squashed 'src/' changes from cb6d9f49..3d5242f5
Browse files Browse the repository at this point in the history
3d5242f5 bug in processing ISOTOPE_RATIOS
034e9210 added commented code to check e- in non-master species.

git-subtree-dir: src
git-subtree-split: 3d5242f5ccaf56cbcad48d33caee0340fb97da65
  • Loading branch information
Darth Vader committed May 27, 2024
1 parent ef00216 commit 57ba149
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tidy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5431,6 +5431,16 @@ tidy_isotope_ratios(void)
/*
* Mark master species list as minor isotope
*/
if (isotope_ratio[i]->isotope_name == NULL)
{

input_error++;
error_string = sformatf(
"For ISOTOPE_RATIO, did not find ISOTOPE name for this isotope ratio %s",
isotope_ratio[i]->name);
error_msg(error_string, CONTINUE);
continue;
}
master_isotope_ptr =
master_isotope_search(isotope_ratio[i]->isotope_name);
if (master_isotope_ptr == NULL)
Expand Down
4 changes: 4 additions & 0 deletions utilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ calc_alk(CReaction& rxn_ref)
break;
}
return_value += r_token->coef * master_ptr->alk;
//if (strcmp(r_token->name, "e-") == 0 && strcmp(rxn_ref.token[0].name,"e-") != 0)
//{
// std::cerr << rxn_ref.token[0].name << " Non-master species has e- in reaction.\n";
//}
r_token++;
}
return (return_value);
Expand Down

0 comments on commit 57ba149

Please # to comment.