[cig-commits] r13730 - cs/cigma/trunk/src
luis at geodynamics.org
luis at geodynamics.org
Wed Dec 17 02:32:22 PST 2008
Author: luis
Date: 2008-12-17 02:32:22 -0800 (Wed, 17 Dec 2008)
New Revision: 13730
Modified:
cs/cigma/trunk/src/DofHandler.cpp
Log:
Using vtk reader in DofHandler::setPath() init method
Modified: cs/cigma/trunk/src/DofHandler.cpp
===================================================================
--- cs/cigma/trunk/src/DofHandler.cpp 2008-12-17 10:32:21 UTC (rev 13729)
+++ cs/cigma/trunk/src/DofHandler.cpp 2008-12-17 10:32:22 UTC (rev 13730)
@@ -117,12 +117,21 @@
}
else if (rt == FileReader::VTK_FILE_READER)
{
- int status;
- throw cigma::Exception("DofHandler::setPath", "Error in VTK reader");
+ int status = reader->getDataset(location.c_str(), &dofs, &nno, &rank);
+ TRI_LOG(status);
+ if (status < 0)
+ {
+ std::ostringstream stream;
+ stream << "Could not read dofs from location '"
+ << location << "' in VTK file '" << filename << "'"
+ << std::ends;
+ throw cigma::Exception("DofHandler::setPath", stream.str());
+ }
}
else if (rt == FileReader::TEXT_FILE_READER)
{
int status = reader->getDataset("", &dofs, &nno, &rank);
+ TRI_LOG(status);
if (status < 0)
{
std::ostringstream stream;
More information about the CIG-COMMITS
mailing list