Romain's unmerged branches
This pull request adds all my recent developments in waves. These could be useful if you plan to build waves on our cluster "fabulous" or on a ....(burp)... sorry.... mac.
Modifications
CMakeLists.txt
- Better handling of C++11 flags
- Change from lowercase to uppercase in CMake commands in the modified files
-
FindTBB.cmake
is able to find TBB in macOS. Unfortunately, TBB is still not found at runtime since Mojave upgrade (to be fixed later). - New
CMake/disable-trilinos.cmake
which could help you disable trilinos (withcmake -C ../CMake/disable-trilinos.cmake ..
) -
CMake/OSX.cmake
now includesCMake/disable-trilinos.cmake
(Trilinos is broken on macOS) - Compilation with
gfortran
is now possible (for Louis'SPH code on macOS) - VTK libs are now searched using the new CMake way: only the required libraries are used for the link stage.
- VTK/MPI libraries can be missing in the system (that is the case is several machines such as fabulous, spirou, etc). In that case,
save_MPI()
functions are simply disabled using anifdef
statement.
run.py
- Improved
run.py
: definition of a functionmain
which can be called from anotherrun*.py
. This will be helpful when an external module such aspfem
wants to add its own modules to waves. PFEM will define arun_fem.py
which will importrun.py
and runrun.main()
. -
fwk.wutils.findbins()
now takes a string argument which is the name of the module to be found. This will be used to find binaries of external packages such aspfem
. -
fwk.wutils.findbins()
has now averb
variable to increase verbosity for debugging purpose.
Reduction of warnings related to gmm
- Definition of
gmm_gmm.h
which could be included instead ofgmm/gmm.h
to avoid warnings. - A few warnings are still present on Linux. They will be removed in the future.
Reduction of warnings on Windows
- Gauss Points are now numbered with unsigned long long ints (
size_t
). This reduces the amount of warnings on Windows with MSVC (implicit casts fromsize_t
toint
). - some other implicit casts have been made explicit (e.g. element numbers,
printf()
calls). They will be converted tosize_t
in a new future. - The current code is compiled by MSVC without warnings on Windows.
Bug correction
- correction of a bug in
cvt.cpp
(thanks to less warnings): a pointer was (erroneously) implicitly casted into an integer!)
Adrien
- merge adrien's branch (correction of a bug + doc)
Test suite
- Test suite:
- OK on gaston (all tests),
- OK on my desktop (Ubuntu18.04 - all tests)
- OK on my windows VM (Windows 10 - without trilinos)
- OK on fabulous (except trilinos and tests importing matplotlib 46/60)
- Compilation OK on macOS - but execution fails (TBB not found due to a rpath problem which seem to come from the Mojave upgrade)