I have compiled my own petsc with multiple shared libraries on ARM64 Android. Because python3.9/site-packages/idaes/core/solvers/petsc.py doesn't have any check to discover custom locations of petsc I have to modify code slightly & used system environment variable ( in my case PETSC_DIR=$PREFIX/local ) to guide python to required location otherwise jupyter notebook gave error about PetscBinaryIOTrajectory.py not found
Because python wrappers were compiled AFTER compiling petsc itself this icfg.bin_directory cannot be used which refers to $HOME/.idaes/bin/ where only wrappers & some function libs are located
I have compiled my own
petsc
with multiple shared libraries on ARM64 Android. Becausepython3.9/site-packages/idaes/core/solvers/petsc.py
doesn't have any check to discover custom locations ofpetsc
I have to modify code slightly & used system environment variable ( in my casePETSC_DIR=$PREFIX/local
) to guide python to required location otherwise jupyter notebook gave error aboutPetscBinaryIOTrajectory.py
not foundBecause python wrappers were compiled AFTER compiling
petsc
itself thisicfg.bin_directory
cannot be used which refers to$HOME/.idaes/bin/
where only wrappers & some function libs are located