search for: xypos_parallax

Displaying 1 result from an estimated 1 matches for "xypos_parallax".

Did you mean: xypos_parallax_r
2012 Oct 20
1
Trouble returning 2D array into R from Fortran
...er of rows. I've tested the wrapping subroutine from another Fortan main program & it does work as expected, so the Fortran works, but my problem has been with the correct syntax for retrieving the output double array from within R. The wrapping Fortran subroutine is defined; subroutine xypos_parallax_r(k,year,ra,dec,ti,t0,tE,alpha,u0,piee,pien,y) k is the number of rows & y an assumed size double array, y(2,*), the other arguments are other input variables for the Fortran. I've tried putting the Fortran function call inside an R function, with this syntax; #Source positions in lens p...