Save od ofstream stifness matrix asn file.txt

I think, upgrade to last version.

or

try

ofstream fd(“stiffness_matrix_full.txt”);

A.COO; // put the sparce matrix in COO format .
fd << A << endl;
}