; szss96_get_gam212.pro -- translated by f2idl ; using argument information from get_gam212.f and get_gam212_f.c ; and documentation information from get_gam212.f ;+ ; NAME: ; szss96_get_gam212 ; ; PURPOSE: ; get values from GAM212 common block ; CALLING SEQUENCE: ; szss96_get_gam212,X212OUT,GAM212OUT ; ; OUTPUTS: ; ; X212OUT - tabulated argument for escape function ; GAM212OUT - tabulated value of escape function ; MODIFICATION HISTORY: ; Written 2007 Oct 16, LAY ; : ; ;- PRO szss96_get_gam212,X212OUT,GAM212OUT ; -------------------- This function name fcn = 'szss96_get_gam212' ; -------------------- assign parameters (including dimensions) ;------------------------- ; setup the output variables that will be passed to the fortran ; routine X212OUT = make_array(212,type= 5) GAM212OUT = make_array(212,type= 5) ;------------------------- ; check all variables if n_params() ne 2 then begin print,'szss96_get_gam212: wrong number of arguments' return endif if size(X212OUT,/type) ne 5 then begin print,'szss96_get_gam212: X212OUT of wrong data type' return endif if size(X212OUT,/n_dim) ne 1 then begin print,'szss96_get_gam212: X212OUT of wrong n_dim' return endif if not array_equal(size(X212OUT,/dim), [212] ) then begin print,'szss96_get_gam212: X212OUT of wrong dim' return endif if size(GAM212OUT,/type) ne 5 then begin print,'szss96_get_gam212: GAM212OUT of wrong data type' return endif if size(GAM212OUT,/n_dim) ne 1 then begin print,'szss96_get_gam212: GAM212OUT of wrong n_dim' return endif if not array_equal(size(GAM212OUT,/dim), [212] ) then begin print,'szss96_get_gam212: GAM212OUT of wrong 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_gam212__' RESULT = CALL_EXTERNAL( lib_name, ENTRY_NAME, $ X212OUT, GAM212OUT, $ /verbose ) end