← Back to team overview

dolfin team mailing list archive

Reading back matrix from xml file

 

Hello!

This should work, right?

#include <dolfin.h>
using namespace dolfin;

int main(void)
{
  File file("matrix.xml");
  Matrix A;
  file >> A;

  cout << "size: " << A.size(0) << "-by-" << A.size(1) << endl;
}

This results in a zero-by-zero matrix A. Any ideas what's going on? Has
this functionality been tested since the LA redesign? I would appreciate
if someone could grab the matrix from
http://www.csc.kth.se/~dag/dolfin/matrix.xml and confirm.

/Dag


Follow ups