[petsc-users] Error with PetscMatlabEngineCreate
Kaustubh Khedkar
kaustubh23593 at gmail.com
Fri Jun 10 14:11:33 CDT 2022
Hi all,
I am using the Petsc’s Matlab engine to run some Matlab scripts from my c++ code.
I have been using Petsc’s Github commit: 9babe2dd5ff256baf1aab74d81ff9ed4c6baba0b
(HEAD -> master, origin/master, origin/HEAD)
Merge: e9b74a6d12 bb2d6e605a
Author: Satish Balay <balay at mcs.anl.gov>
Date: Fri Nov 6 17:46:10 2020 +0000
I used the command:
PetscMatlabEngineCreate(PETSC_COMM_SELF, "master", &(mengine));
where, the hostname is master. (Verified by typing hostname in the terminal)
Everything was working fine until I updated my PETSc version to 3.17.2.
Using this version I get error using the command:
PetscMatlabEngineEvaluate(mengine, "load_parameters;”);
cannot read load_parameters script. where, load_parameters is a Matlab script.
When I switch the hostname to NULL from master as:
PetscMatlabEngineCreate(PETSC_COMM_SELF, NULL, &(mengine));
Everything starts working fine again. All of this was executed on the same machine.
Has anything changed when using the PetscMatlabEngineEvaluate command?
Thank you,
Kaustubh Khedkar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20220610/a3ce1041/attachment-0001.html>
More information about the petsc-users
mailing list