Skip to content

Commit

Permalink
have jac_cell use species names in output instead of indices
Browse files Browse the repository at this point in the history
this makes it easier to understand
  • Loading branch information
zingale committed Feb 7, 2025
1 parent b0839d1 commit e8eddd6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion unit_test/jac_cell/jac_cell.H
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,10 @@ void jac_cell_c()
// output

for (int ii = 1; ii <= neqs; ++ii) {
std::string ilabel = (ii < neqs) ? short_spec_names_cxx[ii-1] : "e";
for (int jj = 1; jj <= neqs; ++jj) {
std::cout << "J(" << std::setw(3) << ii << ", " << std::setw(3) << jj << ") = "
std::string jlabel = (jj < neqs) ? short_spec_names_cxx[jj-1] : "e";
std::cout << "J(" << std::setw(4) << ilabel << ", " << std::setw(4) << jlabel << ") = "
<< std::setw(20) << jac_numerical(ii,jj) << " "
<< std::setw(20) << jac_analytic(ii,jj) << std::endl;
}
Expand Down

0 comments on commit e8eddd6

Please sign in to comment.