<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi all,<div class=""><br class=""></div><div class="">I am using the Petsc’s Matlab engine to run some Matlab scripts from my c++ code.</div><div class=""><br class=""></div><div class="">I have been using Petsc’s Github commit: <span style="font-family: "Helvetica Neue"; font-size: 13px;" class="">9babe2dd5ff256baf1aab74d81ff9ed4c6baba0b </span></div><div class=""><span style="font-family: "Helvetica Neue"; font-size: 13px;" class="">(HEAD -> master, origin/master, origin/HEAD)</span></div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: "Helvetica Neue";" class="">Merge: e9b74a6d12 bb2d6e605a</div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: "Helvetica Neue";" class="">Author: Satish Balay <<span style="color: rgb(21, 154, 255);" class=""><a href="mailto:balay@mcs.anl.gov" class="">balay@mcs.anl.gov</a></span>></div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: "Helvetica Neue";" class="">Date: Fri Nov 6 17:46:10 2020 +0000</div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: "Helvetica Neue";" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: "Helvetica Neue";" class="">I used the command:</div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: "Helvetica Neue";" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: "Helvetica Neue";" class=""><span class="pl-c1">PetscMatlabEngineCreate</span>(PETSC_COMM_SELF, <span class="pl-s"><span class="pl-pds">"</span>master<span class="pl-pds">"</span></span>, &(<span class="pl-smi">mengine</span>));</div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: "Helvetica Neue";" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: "Helvetica Neue";" class="">where, the hostname is master. (Verified by typing hostname in the terminal)</div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: "Helvetica Neue";" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: "Helvetica Neue";" class="">Everything was working fine until I updated my PETSc version to 3.17.2. </div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: "Helvetica Neue";" class="">Using this version I get error using the command:</div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: "Helvetica Neue";" class=""><br class=""></div><div class=""><span class="pl-c1">PetscMatlabEngineEvaluate</span>(<span class="pl-smi">mengine</span>, <span class="pl-s"><span class="pl-pds">"</span>load_parameters;<span class="pl-pds">”</span></span>);</div><div class=""><br class=""></div><div class="">cannot read load_parameters script. where, load_parameters is a Matlab script.</div><div class=""><br class=""></div><div class="">When I switch the hostname to NULL from master as:</div><div class=""><br class=""></div><div class=""><span class="pl-c1" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: "Helvetica Neue"; font-size: 13px;">PetscMatlabEngineCreate</span><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: "Helvetica Neue"; font-size: 13px;" class="">(PETSC_COMM_SELF, NULL</span><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: "Helvetica Neue"; font-size: 13px;" class="">, &(</span><span class="pl-smi" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: "Helvetica Neue"; font-size: 13px;">mengine</span><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: "Helvetica Neue"; font-size: 13px;" class="">));</span></div><div class=""><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: "Helvetica Neue"; font-size: 13px;" class=""><br class=""></span></div><div class=""><font color="#000000" face="Helvetica Neue" size="2" class=""><span style="caret-color: rgb(0, 0, 0);" class="">Everything starts working fine again. All of this was executed on the same machine.</span></font></div><div class=""><font color="#000000" face="Helvetica Neue" size="2" class=""><span style="caret-color: rgb(0, 0, 0);" class=""><br class=""></span></font></div><div class=""><font color="#000000" face="Helvetica Neue" size="2" class=""><span style="caret-color: rgb(0, 0, 0);" class="">Has anything changed when using the </span></font><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class="">PetscMatlabEngineEvaluate command?</span></div><div class=""><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=""><br class=""></span></div><div class=""><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=""><br class=""></span></div><div class=""><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class="">Thank you,</span></div><div class=""><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class="">Kaustubh Khedkar</span></div></body></html>