Skip to content

Commit

Permalink
BUG: taylor: Add missing return statement at the end of a generated f…
Browse files Browse the repository at this point in the history
…unction.
  • Loading branch information
WarrenWeckesser committed Nov 12, 2024
1 parent d80075f commit 9b3a4f6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/vf_taylor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ void VectorField::PrintTaylor(map<string,string> options)
fout << " Xnew[i] += (1.0/" << factorial(k) << ")*Xderiv[" << k-1 << "][i]*s;" << endl;
fout << " }\n";
}
fout << " return 0;\n";
fout << "}\n";

fout.close();
Expand Down

0 comments on commit 9b3a4f6

Please sign in to comment.