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