You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dear all,
I am trying to use the Wannier library for a C built program, but I noticed that so far the wannier library does not have a C interface.
I would like to ask if it is possible to provide a C interface to use the library directly in my program.
Thanks in advance
Giovanni
The text was updated successfully, but these errors were encountered:
Unfortunately that would be a bit difficult because most tools like Swig create interfaces the other way around, making C/C++ code available to Fortran and other languages. As for Fortran's part, a custom interface layer would need to be written to translate C arrays to Fortran ones with appropriate bound checking, and even with that it is a nightmare to implement, e.g. look at how C strings are passed back-and-forth to Fortran.
Dear all,
I am trying to use the Wannier library for a C built program, but I noticed that so far the wannier library does not have a C interface.
I would like to ask if it is possible to provide a C interface to use the library directly in my program.
Thanks in advance
Giovanni
The text was updated successfully, but these errors were encountered: