<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><br class=""></div><span style="font-size: 13px;" class=""> You should use the PetscMatlabEngine </span><a href="https://www.mcs.anl.gov/petsc/petsc-3.13/docs/manualpages/Sys/PetscMatlabEngine.html" style="font-size: 13px;" class="">https://www.mcs.anl.gov/petsc/petsc-3.13/docs/manualpages/Sys/PetscMatlabEngine.html</a><br style="font-size: 13px;" class=""><br style="font-size: 13px;" class=""><span style="font-size: 13px;" class=""> Barry</span><div class=""><font size="2" class=""><br class=""></font><div><br class=""><blockquote type="cite" class=""><div class="">On Jun 8, 2020, at 7:09 PM, Amneet Bhalla <<a href="mailto:mail2amneet@gmail.com" class="">mail2amneet@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi Folks,<div class=""><br class=""></div><div class="">My parallel application written in C++ (which also uses PETSc library for linear solvers) requires calling control and optimization toolbox of MATLAB at every time step to get a small number of double values. Likewise the MATLAB function will need to know some values from the parallel C++ application to return those doubles. I'm wondering if there is a recommended way of calling MATLAB from parallel C/C++/Fortran codes, and if PETSc has some interface that could be leveraged for this exchange. <br clear="all" class=""><div class=""><br class=""></div><div class="">Thanks,</div>-- <br class=""><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr" class=""><div class="">--Amneet <br class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div></div></div></div></div>
</div></blockquote></div><br class=""></div></body></html>