Displaying 1 result from an estimated 1 matches for "__rrtmg_lw_init_mod_rrtmg_lw_ini".
2009 Dec 29
2
Calling Fortran90 code from R
...I have done:
-compiled the files to mod/object files using gfortran
-am able to create a dynamic link library "librrtmg.so"
Further experiments:
- dyn.load('librrtmg.so') works
-. with "objdump -T librrtmg.so", I have found the following function
symbols to call:
1. __rrtmg_lw_init_MOD_rrtmg_lw_ini (the initialization of the code)
2. __rrtmg_?w_rad_MOD_rrtmg_lw (the actual main function I want
to call to do the calculations)
- These symbols are found via "is.loaded", but only without specifying
"type='FORTRAN'" (I have experimented with upper/lowercase letters...