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 <[email protected] <mailto:[email protected]>> 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
