Conversation
| rm -rf petsc | ||
|
|
||
| # Download | ||
| echo "Downloading PETSc 3.16.4" |
There was a problem hiding this comment.
We need to move this upto 3.20. I believe for emt-alpha branch I am using 3.20.
There was a problem hiding this comment.
You show the original script code here. The updated script uses 3.20.6, but 3.21.4 also worked for me. It is much easier to change the version in the updated script.
|
|
||
| cd petsc | ||
|
|
||
| git checkout tags/v3.16.4 -b v3.16.4 |
There was a problem hiding this comment.
You are showing the original script. See comment above.
| echo "Installing PETSc $petsc_version" | ||
|
|
||
| ./configure --download-superlu_dist --download-metis --download-parmetis --download-suitesparse --download-f2cblaslapack --download-cmake --prefix=${PWD}/install_for_gridpack --scalar-type=complex --with-shared-libraries=1 --download-f2cblaslapack=1 | ||
| ./configure --with-gnu-compilers=0 --download-superlu_dist --download-metis --download-parmetis --download-suitesparse --download-f2cblaslapack --download-cmake=0 --prefix=${PWD}/install_for_gridpack --scalar-type=complex --download-sowing --download-f2cblaslapack $petscopts |
There was a problem hiding this comment.
- Why NO GNU compilers?
- Scalar type should be real
- Also add
--download-scalapack --download-mumps
There was a problem hiding this comment.
- Why NO GNU compilers?
I should be able to remove this. Some part of PETSc was choosing the wrong GFortran. I tried to use that option to resolve. It turned out to be unnecessary.
* Scalar type should be real
OK, but this was not the case in develop when I started this branch.
* Also add `--download-scalapack --download-mumps`
Agreed, but these were not the script from develop when I started this branch.
I can do the latter two here, but this will mean a conflicts whenever the EMT stuff is merged.
| $common_flags .. | ||
|
|
||
| elif [ $host == "we32673" ]; then | ||
| elif [ $host == "WE39945" ]; then |
There was a problem hiding this comment.
This is my MacBook. It used to be my Mac Pro, but I don't have that anymore.
|
Looks good. Have suggested some minor things. Can GridPACK python libraries be built with this change on Mac? |
There was a problem hiding this comment.
@abhyshr, I wrote up some notes on how I did the build on my MacBook. Take a look, and see if it's useful.
b601bac to
03f494f
Compare
800e96c to
a5ab81c
Compare
|
Is this good to merge? If so, I can do it. |
Please look at #226 first, because the current develop make is broken for me |
|
There are also minor changes to the EMT module and application to get it to build on my Mac. |
This PR provides changes necessary to build GridPACK on Mac OS X, particularly with shared libraries and the Python interface. This resolves #217 (mostly) in order to build with modern CLang compilers. Probably resolves #197 too.