Skip to content

How to get the list of functions in a library .so #167

Answered by thelfer
leopeuziat asked this question in Q&A

You must be logged in to vote

@leopeuziat You can use the following python script:

from tfel.system import ExternalLibraryManager
elm = ExternalLibraryManager.getExternalLibraryManager()
print(elm.getEntryPoints('vanadiumalloy.so'))

This works with any library generated by MFront.

The output is:

['VanadiumAlloy_YoungModulus_SRMA', 'VanadiumAlloy_SpecificHeat_SRMA', 'VanadiumAlloy_PoissonRatio_SRMA', 'VanadiumAlloy_ShearModulus_SRMA', 'VanadiumAlloy_ThermalExpansion_SRMA', 'VanadiumAlloy_ThermalConductivity_SRMA']

Replies: 1 comment

You must be logged in to vote
0 replies
Answer selected by leopeuziat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment