StaticModel: remove transformation of complex residuals for Julia as well

master
Johannes Pfeifer 2023-09-13 15:15:35 +02:00
parent 5313286db5
commit f08d02ea66
1 changed files with 0 additions and 8 deletions

View File

@ -2374,10 +2374,6 @@ ModelTree::writeSparseModelJuliaFiles(const string &basename) const
<< "@inbounds begin" << endl
<< d_sparse_output[0].str()
<< "end" << endl;
if constexpr(!dynamic)
output << " if ~isreal(residual)" << endl
<< " residual = real(residual)+imag(residual).^2;" << endl
<< " end" << endl;
output << " return nothing" << endl
<< "end" << endl << endl;
writeToFileIfModified(output, julia_dir / (prefix + "Resid!.jl"));
@ -2408,10 +2404,6 @@ ModelTree::writeSparseModelJuliaFiles(const string &basename) const
<< "@inbounds begin" << endl
<< d_sparse_output[1].str()
<< "end" << endl;
if constexpr(!dynamic)
output << " if ~isreal(g1_v)" << endl
<< " g1_v = real(g1_v)+2*imag(g1_v);" << endl
<< " end" << endl;
output << " return nothing" << endl
<< "end" << endl << endl;
writeToFileIfModified(output, julia_dir / (prefix + "G1!.jl"));