bjornsturmberg / NumBAT

NumBAT, the Numerical Brillouin Analysis Tool, integrates electromagnetic and acoustic mode solvers to calculate the interactions of optical and acoustic waves in waveguides.
GNU General Public License v3.0
17 stars 13 forks source link

Installation fails on Ubuntu 22.04 or newer #8

Closed thariq-shanavas closed 1 year ago

thariq-shanavas commented 1 year ago

Installation fails on Linux machines running GCC 10 or newer (i.e., Ubuntu 22.04 and newer) due to the issue highlighted here: https://forum.mmm.ucar.edu/threads/how-to-fix-error-rank-mismatch-between-actual-argument-at-1-and-actual-argument-at-2.11998/#post-27521

A quick fix is to set the flags for gfortran in setup.sh - see attached file, line 9.

Screenshot from 2023-01-01 19-30-22

bjornsturmberg commented 1 year ago

Thank you very much for noting this and finding a fix @thariq-shanavas ! I have implemented your suggestion in the latest commit.

Please note that the main fork of NumBAT is now at https://github.com/michaeljsteel/NumBAT @michaeljsteel you will likely want to implement this fix as well, if you haven't already.