anstmichaels / emopt

A suite of tools for optimizing the shape and topology of electromagnetic structures.
BSD 3-Clause "New" or "Revised" License
100 stars 41 forks source link

Quick fix for installation issues #21

Closed smhooten closed 3 years ago

smhooten commented 3 years ago
  1. Fix of install.py to correct a recent update of the boost geometry repo which breaks c++11 compilation. This hard-codes a direct download to boost version 1.73.0.
  2. Hard-coded the versions of petsc4py and slepc4py that are retrieved in setup.py to fix an incompatibility with the versions of petsc and slepc that were installed from source in install.py. An alternate installation scheme might be preferable, but works for now.
  3. Minor bug fix in emopt/fdtd.py to correct the w_pml setter.

Tested on CentOS 7 with Python 2.7 and Python 3.8

anstmichaels commented 3 years ago

Thanks for the fixes.

In the future, I think I will do away with install_deps.py all together. Instead, compatible versions of boost and eigen can now be installed from pretty much all of the mainstream linux package managers. We will rely on petsc4py and slepc4py to compile PETSc and SLEPc. Ill implement and test on the develop branch.