while run_flag > 0
  run_flag = run_flag - 1;
  t = t+1;

  core_equations
end
