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: 14e7fa093e7c6bf250001d0f0c1d69049e5478cf913865d8aaa3d8a2b88dc4e3
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: c570809fb2 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: 14e7fa093e 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: eb84d8e84b 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 ]