matrix (std::auto_ptr<Epetra_FECrsMatrix>
(new Epetra_FECrsMatrix(Copy, row_map,
(int*)const_cast<unsigned int*>(&(n_entries_per_row[0])),
- true)))
+ false)))
{}
SparseMatrix::SparseMatrix (const Epetra_Map &InputRowMap,
matrix (std::auto_ptr<Epetra_FECrsMatrix>
(new Epetra_FECrsMatrix(Copy, row_map, col_map,
(int*)const_cast<unsigned int*>(&(n_entries_per_row[0])),
- true)))
+ false)))
{}
// correct values.
matrix = std::auto_ptr<Epetra_FECrsMatrix>
(new Epetra_FECrsMatrix(Copy, row_map,
- &n_entries_per_row[0], true));
+ &n_entries_per_row[0], false));
reinit (sparsity_pattern);
}
// correct values.
matrix = std::auto_ptr<Epetra_FECrsMatrix>
(new Epetra_FECrsMatrix(Copy, row_map,
- &n_entries_per_row[0], true));
+ &n_entries_per_row[0], false));
std::vector<double> values;
std::vector<int> row_indices;
// create an object for the data
// exchange and then insert all
// the data. The first assertion
- // is basically there to check
- // whether the user knows what
- // she is doing.
+ // is only a check whether the
+ // user knows what she is doing.
else
{
Assert (fast == false,
const int ierr = vector->Import(*v.vector, data_exchange, Insert);
AssertThrow (ierr == 0, ExcTrilinosError(ierr));
+
+ last_action = Insert;
}
}
AssertThrow (ierr == 0, ExcTrilinosError(ierr));
+ last_action = Insert;
+
return *this;
}
const int ierr = vector->Import(*v.vector, data_exchange, Insert);
AssertThrow (ierr == 0, ExcTrilinosError(ierr));
+
+ last_action = Insert;
}
}