; szss96_set_parair.pro -- translated by f2idl ; using argument information from set_parair.f and set_parair_f.c ; and documentation information from set_parair.f ;+ ; NAME: ; szss96_set_parair ; ; PURPOSE: ; initialize parair common block ; CALLING SEQUENCE: ; szss96_set_parair,R00IN,WTMOLIN ; ; INPUTS: ; R00IN - Pluto's radius in m ; WTMOLIN - mean molecular weight ; MODIFICATION HISTORY: ; Written 2007 Feb 27, LAY ; : ; ;- PRO szss96_set_parair,R00IN,WTMOLIN ; -------------------- This function name fcn = 'szss96_set_parair' ; -------------------- assign parameters (including dimensions) ;------------------------- ; setup the output variables that will be passed to the fortran ; routine ;------------------------- ; check all variables if n_params() ne 2 then begin print,'szss96_set_parair: wrong number of arguments' return endif if size(R00IN,/type) ne 5 then begin print,'szss96_set_parair: R00IN of wrong data type' return endif if size(R00IN,/n_dim) ne 0 then begin print,'szss96_set_parair: R00IN of wrong n_dim' return endif if size(WTMOLIN,/type) ne 5 then begin print,'szss96_set_parair: WTMOLIN of wrong data type' return endif if size(WTMOLIN,/n_dim) ne 0 then begin print,'szss96_set_parair: WTMOLIN 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_set_parair__' RESULT = CALL_EXTERNAL( lib_name, ENTRY_NAME, $ R00IN, WTMOLIN, $ /verbose ) end