<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
A matrix with more than 1024 rows was output by calling MatView(). If only one process was used, then no error came out. However, if multi-process were used, the error information like 'ASCII matrix output not allowed for matrices with more than 1024 rows' came out. If the rule of 1024 rows is only for multi-process?<BR>
<BR>
To my understand, there should be two approaches: 1 use binary format, 2 use option -mat_ascii_output_large.<BR>
If I need to check the matrix on the monitor, I cannot use MatView() to do this, right? Whether the binary format can be used to output the matrix to the monitor?<BR>
<BR>
In FAQ, the answer suggests to use the examples of ex72.c, ex78.c and ex32.c. Is there any example for this issue in Fortran? Thanks.<BR>
<BR>
The solution in FAQ:<BR>
<SPAN style="COLOR: rgb(255,0,0)">How can I read in or write out a sparse matrix in Matrix Market, Harwell-Boeing, SLAPC or other ASCII format?</SPAN>See the examples in src/mat/examples/tests, specifically ex72.c, ex78.c, and ex32.c. You will likely need to modify the code slightly to match your required ASCII format. Note: Never read or write in parallel an ASCII matrix file, instead for reading: read in sequentially with a standalone code based on ex72.c, ex78.c, or ex32.c then save the matrix with the binary viewer PetscBinaryViewerOpen() and load the matrix in parallel in your "real" PETSc program with MatLoad(); for writing save with the binary viewer and then load with the sequential code to store it as ASCII.<BR><BR>                                            </body>
</html>