Overview
Comment:Writes simulation time to shell when solution converges.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: ca5791ec9370f16bb8c649c52928777b2ef2941374ace6bb3a3addf0b433ca89
User & Date: geraint@users.sourceforge.net on 2002-07-15 17:00:36.000
Other Links: branch diff | manifest | tags
Context
2002-07-16
11:36:36
Fixed multiplot when selected before first parameter.
Added "Show Key" option.
Moved gnuplot options to menubar.
check-in: cf80f23193 user: geraint@users.sourceforge.net tags: origin/master, trunk
2002-07-15
17:00:36
Writes simulation time to shell when solution converges. check-in: ca5791ec93 user: geraint@users.sourceforge.net tags: origin/master, trunk
12:50:51
The solution vector (_ui) is no longer re-zeroed each step.
Retaining the previous value appears to give dramatically better performance.

Messages to the console are now buffered through clog instead of using cerr. check-in: 9e8edaf7e0 user: geraint@users.sourceforge.net tags: origin/master, trunk

Changes
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56

57
58
59

60
61
62


63
64
65
66





67
68
    case -1:
      user_errors++;
      break;
    case 3:
      progress_errors++;
      break;
    case 4:
      //      if (abs(eval(_ui).max()) > 1.0e-6)
      limit_errors++;
      //      else
      //	convergences++;
      break;
    default:
      unknown_errors++;
      break;
    }

  if (1 != info)
    {
      std::clog

	<< " time " << _t << " \t"
	<< " converge (" << convergences << ") "
	<< " limit (" << limit_errors << ")"


	<< " (max error = " << std::abs (eval(_ui).max()) << ")"
	<< " other (" << input_errors + user_errors + progress_errors + unknown_errors << ") "
	<< std::endl;
    }





  ferr << info << " ";
}







<

<
<





>



>



>
>

<


>
>
>
>
>


41
42
43
44
45
46
47

48


49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64

65
66
67
68
69
70
71
72
73
    case -1:
      user_errors++;
      break;
    case 3:
      progress_errors++;
      break;
    case 4:

      limit_errors++;


      break;
    default:
      unknown_errors++;
      break;
    }
  std::clog.setf (std::ios::scientific);
  if (1 != info)
    {
      std::clog
	<< "\r"
	<< " time " << _t << " \t"
	<< " converge (" << convergences << ") "
	<< " limit (" << limit_errors << ")"
	<< " progress (" << progress_errors << ")"
	<< " other (" << input_errors + user_errors + unknown_errors << ") "
	<< " (max error = " << std::abs (eval(_ui).max()) << ")"

	<< std::endl;
    }
  else
    {
      std::clog
	<< "\r time " << _t << "\t max error = " << std::abs (eval(_ui).max());
    }
  ferr << info << " ";
}

MTT: Model Transformation Tools
GitHub | SourceHut | Sourceforge | Fossil RSS ]