MASTmultiphysics / mast-multiphysics

Multidisciplinary-design Adaptation and Sensitivity Toolkit (MAST) - Sensitivity-enabled multiphysics FEA for design
https://www.mast-multiphysics.com
GNU Lesser General Public License v2.1
43 stars 24 forks source link

Fix FindlibMesh.cmake to appropriately handle timpi libraries #111

Open jdeaton opened 2 years ago

jdeaton commented 2 years ago

While configuring GitHub Actions in this repository and attempting to get MAST to compile with both libMesh versions 1.5.1 and 1.6.2 I ran into issues related to handling of the timpi libraries. libMesh version 1.5.1 does not appear utilize timpi directly, whereas it is required for version 1.6.2.

It appears there is a workaround in the cmake/FindlibMesh.cmake file to assign the libMesh libraries to the timpi variables if timpi isn't found (as in the case of v1.5.1). I believe we can handle this better by detecting if libMesh version is >=1.6.0 and make them required.