Hi, as I was trying to install PETSC following the "External Package Installation" section on the guide, it reports that it does not recognize MPIEXEC_DIR and MSMPI_ROOT. For the former I just add a line to export a path to mpiexec found within ISSM_DIR, but for the latter I could not find a MPI root directory with a subdirectory called "include" (there is one in Program Files (x86)/Microsoft SDKs/MPI/ but it is "Include", not "include"; Installing PETSC would then report error: --with-mpi-include=['/c/Program Files (x86)/Microsoft SDKs/MPI/include'] did not work).

Please suggest how to fix the issue! Much appreciated.

Hi @donglaiyang
Justin is probably the best person to answer your question. But in short, compiling anything on Windows is hard and not every package is supported (e.g. I don't know if there is a free fortran compiler on Windows, I don't know if parallelization is supported yet, etc). Would you have access to a mac or linux machine? Your life would be a lot easier, especially if you want to do some code development.
Cheers
Mathieu

    donglaiyang
    Hi! Did you run source $ISSM_DIR/etc/environment.sh after installing Microsoft MPI but before attempting the PETSc install?

    As Mathieu mentioned, Windows support is limited: all of the basic functionality is there, including parallelization, but if you want to use Dakota or Solid Earth capabilities, we haven't yet been able to work on this (though we will be doing so in the near future).

      6 days later

      justinquinn Yes I did. Not sure I can find the original messages but I don't think there were major warnings. Thanks for letting me know.

        donglaiyang No worries if you've gone forward with the VM. If you do go back to Windows 11, do please let us know what if any issues you run into as it might help us to improve support. Thanks!