Skip to content
Snippets Groups Projects
Commit c6a3c581 authored by Ian Bell's avatar Ian Bell
Browse files

Slightly more explicit return

I think g++ getting confused by copy elision on return of Eigen temporary?
parent d1b14c94
No related branches found
No related tags found
No related merge requests found
......@@ -99,7 +99,7 @@ auto do_pure_VLE_T(Residual &resid, Scalar rhoL, Scalar rhoV, int maxiter) {
}
rhovec = rhovecnew;
}
auto r = (Eigen::ArrayXd(2) << rhovec[0], rhovec[1]).finished();
Eigen::ArrayXd r = (Eigen::ArrayXd(2) << rhovec[0], rhovec[1]).finished();
return r;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment