static void Main(string[] args)
 {
     try
     {
         FortranLib.ProgressUpdateAction updateProgress = delegate(ref int p)
         {
             Console.WriteLine("Progress: " + p + "%");
         };
         FortranLib.DoWork(ref updateProgress);
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex);
     }
 }