summaryrefslogtreecommitdiffstats
Unidiff
-rw-r--r--src/assign/assign_blast_scores.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/assign/assign_blast_scores.c b/src/assign/assign_blast_scores.c
index 1cd491a..b81caf8 100644
--- a/src/assign/assign_blast_scores.c
+++ b/src/assign/assign_blast_scores.c
@@ -21,6 +21,16 @@ assign_blast_scores (hid_t file_id)
21 Mat M;21 Mat M;
22 MatCreateSeqAIJ (PETSC_COMM_SELF, 138769, 138769, 50, NULL, &M);22 MatCreateSeqAIJ (PETSC_COMM_SELF, 138769, 138769, 50, NULL, &M);
2323
24 MatSetValue (M, 12, 8, 12.8, INSERT_VALUES);
25
26 /*
27 * Write the contents of the matrix to a HDF5 file.
28 */
29 PetscViewer viewer;
30 PetscErrorCode err = PetscViewerHDF5Open (PETSC_COMM_WORLD, "sparse.h5", FILE_MODE_WRITE, &viewer);
31 MatView (M, viewer);
32 PetscViewerDestroy (viewer);
33
24 MatDestroy (M);34 MatDestroy (M);
2535
26 return;36 return;

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.