diff --git a/mor/morprojector.py b/mor/morprojector.py index b87cc99..992ef2b 100644 --- a/mor/morprojector.py +++ b/mor/morprojector.py @@ -42,7 +42,7 @@ def take_snapshot(self, u): """ self.snaps.append(u.copy(deepcopy=True)) - def snapshots_to_matrix(self): + def _snapshots_to_matrix(self): """Convert the snapshots to a matrix""" # DOFs x timesteps self.snap_mat = np.zeros((self.snaps[-1].function_space().dof_count, len(self.snaps))) @@ -72,7 +72,7 @@ def compute_basis(self, n_basis, inner_product="L2", time_scaling=False, delta_t ip_mat = assemble(ip_form, mat_type="aij").M.handle - M = self.snapshots_to_matrix() + M = self._snapshots_to_matrix() # This matrix is symmetric positive semidefinite corr_mat = np.matmul(self.snap_mat.transpose(), petsc2sp(ip_mat).dot(self.snap_mat))