Hello,
If I need to modify some of the source files from /fem/src, how to update the changes in the libraries? One way is to run the configure file and reinstall the complete Elmer. But there should be a way to compile only the modified file and add it to the library /lib/libelmersolver.so.
Could someone tell me how to do it?
Regards,
Stan
how to update a modified source file
-
- Site Admin
- Posts: 4870
- Joined: 22 Aug 2009, 11:57
- Antispam: Yes
- Location: Espoo, Finland
- Contact:
Re: how to update a modified source file
Hi Stan
If you just want to compile a routine in src/modules then make a copy of the *.src file and compile it as in
(In Windows the suffix for the shared object is .dll). Then you can use this as a regular solver defined by the Procedure statement in the .sif file.
For library functionality I don't know of any way to avoid full compilation.
-Peter
If you just want to compile a routine in src/modules then make a copy of the *.src file and compile it as in
Code: Select all
elmerf90 -o MyRoutine.so MyRoutine.f90
For library functionality I don't know of any way to avoid full compilation.
-Peter
Re: how to update a modified source file
Thank you Peter,
yes, in the case of solver, I may compile and use it through the sif file.
But if I use the StressSolver and I need to change, for example, the SUBROUTINE Add2ndOrderTime, which is called from StreesSolver through Default2ndOrderTime, then I would need to compile SolverUtilis. But since it works with full compilation, it is ok.
Regards,
Stan
yes, in the case of solver, I may compile and use it through the sif file.
But if I use the StressSolver and I need to change, for example, the SUBROUTINE Add2ndOrderTime, which is called from StreesSolver through Default2ndOrderTime, then I would need to compile SolverUtilis. But since it works with full compilation, it is ok.
Regards,
Stan
Re: how to update a modified source file
I tried it by making a copy of the *.src file and compile it, it woks to me ![Smile :)](./images/smilies/icon_e_smile.gif)
![Smile :)](./images/smilies/icon_e_smile.gif)