Warning
This is the documentation for the development version of DTK. There may be significant differences from the latest stable release. Please follow this link if you are looking for DTK 3.0
Developer Tools¶
Using SWIG to generate Fortran¶
Change the declaration for DTK_UserApplicationHandle
by replacing
struct _DTK_UserApplicationHandle *
to void *
in DTK_C_API.h
and run
$ swig -fortran dtk.i
using Fortran-enabled SWIG fork (fortran
branch). This would generate two files: dtk_wrap.cxx
and
DataTransferKit.f90
. Move them to DTK_Fortran_wrap.cpp
and
DTK_Fortran_API.F90
, respectively.