; szss96_get_parair.pro -- translated by f2idl ; using argument information from get_parair.f and get_parair_f.c ; and documentation information from get_parair.f ;+ ; NAME: ; szss96_get_parair ; ; PURPOSE: ; get values from parair common block ; CALLING SEQUENCE: ; szss96_get_parair,R00OUT,WTMOLOUT ; ; OUTPUTS: ; R00OUT - Pluto's radius in m ; WTMOLOUT - mean molecular weight ; MODIFICATION HISTORY: ; Written 2007 Feb 27, LAY ; : ; ;- PRO szss96_get_parair,R00OUT,WTMOLOUT ; -------------------- This function name fcn = 'szss96_get_parair' ; -------------------- assign parameters (including dimensions) ;------------------------- ; setup the output variables that will be passed to the fortran ; routine R00OUT = 0.d WTMOLOUT = 0.d ;------------------------- ; check all variables if n_params() ne 2 then begin print,'szss96_get_parair: wrong number of arguments' return endif if size(R00OUT,/type) ne 5 then begin print,'szss96_get_parair: R00OUT of wrong data type' return endif if size(R00OUT,/n_dim) ne 0 then begin print,'szss96_get_parair: R00OUT of wrong n_dim' return endif if size(WTMOLOUT,/type) ne 5 then begin print,'szss96_get_parair: WTMOLOUT of wrong data type' return endif if size(WTMOLOUT,/n_dim) ne 0 then begin print,'szss96_get_parair: WTMOLOUT of wrong n_dim' return endif ;------------------------- ; Find root directory for library tname findpro, fcn, dirlist=dirlist, /noprint if dirlist[0] eq '' then root = '.' else root = dirlist[0] ;------------------------- ; CALL lib_name = root + '/szss96.so' entry_name = 'idl_ce_call_get_parair__' RESULT = CALL_EXTERNAL( lib_name, ENTRY_NAME, $ R00OUT, WTMOLOUT, $ /verbose ) end