Hi everyone, I want to view a parallel dense Mat with MATLAB format. I use the following method.
========= Sample codes. ========= /* Set the name of the Mat.*/ PetscObjectSetName() /* View the Mat. */ PetscViewerASCIIOpen() PetscViewerPushFormat() MatView() PetscViewerDestroy() ====== End of sample codes. ======= However, after the Mat has been viewed, the MATLAB object’s name is not the same with that specified by PetscObjectSetName(). The resultant MATLAB file looks like this: ========= Sample viewed file in MATLAB format. ========== %Mat Object:Mat_ElementLastFaceVelocity 8 MPI processes % type: mpidense % Size = 16000 18 Mat_0x1370b20_7 = zeros(16000,18); Mat_0x1370b20_7 = [ ======= End of sample viewed file in MATLAB format. ======== The Mat Object has the right name but the MATLAB object has the name Mat_0xxxxxxx. How can I make the MATLAB object has the same name with the Mat object? I also checkout the output for Vec object. The resultant MATLAB file has the right names for both Vec object and MATLAB object. Thanks! P.S.: I am using Version 3.7.0 HU Yaoyu
