<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
hello,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I use petsc 3.14.5 with OpenMPI 3.1.6 in Ubuntu 18.04.5.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I don't well understand the routine <u style="text-decoration-line: underline; background-color: rgb(255, 255, 255);">
MatCreateAIJ</u><span style="text-decoration-line: underline; background-color: rgb(255, 255, 255); display: inline !important;">(</span><span style="background-color: rgb(255, 255, 255); display: inline !important;">MPI_Comm comm,</span><span style="background-color: rgb(255, 255, 255); display: inline !important; font-family: calibri, helvetica, sans-serif; font-size: 12pt; color: rgb(200, 38, 19);"><b style="">PetscInt</b></span><span style="background-color: rgb(255, 255, 255); color: rgb(200, 38, 19); display: inline !important;"><b>
m</b></span><span style="background-color: rgb(255, 255, 255); display: inline !important;">, </span><span style="background-color: rgb(255, 255, 255); display: inline !important; font-family: calibri, helvetica, sans-serif; font-size: 12pt; color: rgb(200, 38, 19);"><b style="">PetscInt
</b></span><span style="background-color: rgb(255, 255, 255); font-family: calibri, helvetica, sans-serif; font-size: 12pt; color: rgb(200, 38, 19); display: inline !important;"><b style="">n,</b></span><span style="background-color: rgb(255, 255, 255); display: inline !important;">PetscInt
M,PetscInt N,PetscInt d_nz,PetscInt *d_nnz, PetscInt o_nz,PetscInt *o_nnz,Mat *A</span><span style="text-decoration-line: underline; background-color: rgb(255, 255, 255); display: inline !important;">)</span>. </div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I have tow process. The total number of global index is 2188. The first one deal with the global index 0~1400 with ghost node 1401~1500 and 2001~2188. The second process deal with globla index 1400~2100 with ghost node 601~700 and 701~800. This is dynamiclly
assigned by load balancer.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I want to assign the first 1400 rows to the first process and the remained 788 rows in the second process. Can I give different values to m and n in the routine <u style="background-color:rgb(255, 255, 255)">MatCreateAIJ
</u><span style="background-color:rgb(255, 255, 255)">in different process?</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="background-color:rgb(255, 255, 255)"><br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="background-color:rgb(255, 255, 255)">Thanks.</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="background-color:rgb(255, 255, 255)"> Wang Jie</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="background-color:rgb(255, 255, 255)"><br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
</body>
</html>