With this I get the error:
‘class std::shared_ptr<ngla::SparseMatrixSymmetric<double> >’ has no member named ‘SetZero’
I used
Code:
for(int i=0; i<ndof_y;i++)
{
FlatVector<double> mat_rowvals = maty->GetRowValues(i);
for (int k=0; k<mat_rowvals.Size(); k++)
{
mat_rowvals[k]=0.0;
}
}
as a work around, but I still get a similar wrong matrix. Different every time I run the program.
At least with the python script. (I use python 3 to execute it) If I use "MyMaxwellAssembleSMALL" in jupyter notebook, I get the correct matrix. (which is printed in my terminal, when I use this function)