Author Topic: Install multiple versions with different compile options  (Read 4715 times)

wulle

  • Guest
Install multiple versions with different compile options
« on: July 20, 2020, 02:07:15 PM »
Hello,

I would like to install multiple versions of ParFeap (I have different configurations of PETSc, so I would like to have one FEAP executable for each architecture).
If we assume, that I would also like to change compiler options/optimization flags for the different versions, two questions come to my mind:
  • To which extend do I have to clean the FEAPHOME directory before compiling another version? Is it enough to use make clean or do I also have to clean all archives for my compiler options to have any effect?
  • Does ParFEAP or FEAP link to any libraries dynamically or does the feap executable contain anything it needs to run (neglecting system-wide libraries)

Best Regards
wulle

Prof. S. Govindjee

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 1165
Re: Install multiple versions with different compile options
« Reply #1 on: July 20, 2020, 03:17:28 PM »
If you are changing compilers you will need to run
Code: [Select]
make clean followed by
Code: [Select]
make aclean.
The archive is the only FEAP library that is used and it is a static library.

To see what system level (shared) libraries are being pulled run
Code: [Select]
ldd parfeap/feap on Linux based systems or
Code: [Select]
otool -L parfeap/feap on Mac systems