diff --git a/build_tarballs.jl b/build_tarballs.jl index 03f7fee..ce1286c 100644 --- a/build_tarballs.jl +++ b/build_tarballs.jl @@ -3,7 +3,7 @@ using BinaryBuilder name = "umat_binaries" -version = v"0.1.0" +version = v"0.2.0" # Collection of sources required to build umat_binaries sources = [ @@ -21,7 +21,11 @@ sources = [ # The above is the original but for some reason sourceforge blogged the trafic "https://github.com/TeroFrondelius/umat_binaries_builder/releases/download/v0.3.1/parafem-code-r2281-trunk-parafem-src-umats-dp.zip" => - "114d5773e806de0070eee7379131ceae25c3516fb49b8e3fb8f0f9e1926717bf" + "114d5773e806de0070eee7379131ceae25c3516fb49b8e3fb8f0f9e1926717bf", + + # Gurson model from UMAT.jl/umat_models + "https://github.com/JuliaFEM/UMAT.jl.git" => + "0225216125884a4a9439d5444221be450e9d9212" ] @@ -58,15 +62,41 @@ cmake -DCMAKE_INSTALL_PREFIX=$prefix -DCMAKE_TOOLCHAIN_FILE=/opt/$target/$target make make install +# From this forward is Gurson model building +cd UMAT.jl/umat_models +sed -i 's/CALL ROTSIG(/!CALL ROTSIG(/g' gurson_porous_plasticity.f90 + +if [[ ${nbits} == 64 ]]; then + export OB=openblas64_ + sed -i 's/call dgesv(/call dgesv_64(/g' gurson_porous_plasticity.f90 +else + export OB=openblas +fi + +cat >CMakeLists.txt <