<h3>Specific improvements</h3>
<ol>
- <li> New: The GMRES solver of deal.II can now write an estimate of
+<li> New: AnyData::try_read() is a function that allows users to check
+whether an entry exists and get a pointer to it without throwing an
+exception in case of failure.
+<br>
+(Guido Kanschat, 2014/05/16)
+</li>
+
+<li> New: The GMRES solver of deal.II can now write an estimate of
eigenvalues to the log file, in analogy to the CG solver. This is enabled
by the flag SolverGMRES<>::AdditionalData::compute_eigenvalues.
<br>
// Compute index and return casted pointer
unsigned int i=it-names.begin();
const type* p = boost::any_cast<type>(&data[i]);
- return *p;
+ return p;
}
<< d << std::endl
<< *p2 << std::endl
<< *p3 << std::endl;
- // try
+
+ deallog << *data.try_read<double>(" d 17.") << std::endl
+ << data.try_read<char *>(" d 17.") << std::endl
+ << data.try_read<double>("does not exist") << std::endl;
+// try
// {
// double* p3a = data.entry<double*>("cd* 17.");
// deallog << p3a;
DEAL::17.0000
DEAL::18.0000
DEAL::18.0000
+DEAL::17.0000
+DEAL::0
+DEAL::0
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams