40 likes | 213 Views
Multi to IDL. NLTE seminar 2/20 Naoki Nakamura. Difference between IDL and f77. What we should change to convert f77 code to IDL code. Array operation IDL could operate array without “for (do) loop”. Variable declaration IDL could declare variable anywhere in programs.
E N D
Multi to IDL NLTE seminar 2/20 Naoki Nakamura
Difference between IDL and f77 What we should change to convert f77 code to IDL code. • Array operation • IDL could operate array without “for (do) loop”. • Variable declaration • IDL could declare variable anywhere in programs. • No use of shell command?
COMMON BLOCK(tentative) com_multi.pro • infiles: input file names • cinput: read parameter from “input.○○” • parameter: parameters(grid number etc.) • catmos: input atmospheric parameter • catom: input atom parameter • copac: opacity etc. • Id: ids and types
IDL procedure Main.pro(Main program) start.pro (Initial setting) rinput.pro (read option flag) atomos.pro (read atmosphere) cstrip.pro(trim comments from input files) com_multi.pro(common blocks)