From f08d02ea6613c460af910f9483f082324dd6da01 Mon Sep 17 00:00:00 2001 From: Johannes Pfeifer Date: Wed, 13 Sep 2023 15:15:35 +0200 Subject: [PATCH] StaticModel: remove transformation of complex residuals for Julia as well --- src/ModelTree.hh | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/ModelTree.hh b/src/ModelTree.hh index 305e85f7..fe25df81 100644 --- a/src/ModelTree.hh +++ b/src/ModelTree.hh @@ -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"));