Last active
August 16, 2017 10:04
-
-
Save ysimillides/f7b6d01c646d1d13034ec1069eec4104 to your computer and use it in GitHub Desktop.
small example of how to fix precompilation in FEniCS.jl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#replace @pyimport fenics with the following code below. | |
const fenics = PyNULL() | |
function __init__() | |
copy!(fenics, pyimport_conda("fenics", "FEniCS", "conda-forge")) | |
end | |
#to now call a function we need to change UnitTriangleMesh() = Mesh(fenics.UnitTriangleMesh()) to | |
UnitTriangleMesh() = Mesh(fenics[:UnitTriangleMesh]()) | |
#the usage(exported api) of the package would remain the same |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment