Updated main_function for the ideal case
Merge branch 'vk/mergge' of ssh://repo.openwfm.org/home/git/wrf-fire into vk/mergge