Hi, is it possible to call Fortran .dll program through something like Gauss Engine so that I can have Gauss to work with my existing Fortran codes? Where should I start? Thanks.
Libin
1 Answer
0
You can call your Fortran functions from GAUSS using the dllcall function. It is fairly straightforward, you place the shared library in your GAUSSHOME/dlib directory, load the shared library with the dlibrary command and then you can call them with the dllcall prefix.
You can pass data easily back and forth between Fortran and GAUSS. The one limitation is that GAUSS can only pass data to compiled code as a double pointer. You can cast it to an integer or whatever internally, if you need to.
Your Answer
1 Answer
You can call your Fortran functions from GAUSS using the dllcall function. It is fairly straightforward, you place the shared library in your GAUSSHOME/dlib directory, load the shared library with the dlibrary command and then you can call them with the dllcall prefix.
You can pass data easily back and forth between Fortran and GAUSS. The one limitation is that GAUSS can only pass data to compiled code as a double pointer. You can cast it to an integer or whatever internally, if you need to.