[petsc-dev] p4est matlab error

Barry Smith bsmith at petsc.dev
Mon Dec 28 20:25:48 CST 2020

  DMView_DA_Matlab produces a Matlab "struct" that has all the global (non-parallel) information about the DMDA. From this, for example, a Matlab routine can draw the DMDA, plot DMDA vectors (in 1, 2 or 3 for example). 

  This is certainly feasible for other DM's as well, allowing them to pass to Matlab all the (global) mesh information for visualization etc. A nice feature to have, but always a question of allocation of resources for relevant things it would be nice for PETSc to have versus other things.


> On Dec 28, 2020, at 12:43 PM, Mark Adams <mfadams at lbl.gov> wrote:
> Oh yea, duh, its mat_view.
> On Mon, Dec 28, 2020 at 10:35 AM Matthew Knepley <knepley at gmail.com <mailto:knepley at gmail.com>> wrote:
> On Mon, Dec 28, 2020 at 9:51 AM Mark Adams <mfadams at lbl.gov <mailto:mfadams at lbl.gov>> wrote:
> This used to work:
> ./ex2 -dm_view ascii:local3.m:ascii_matlab -vec_view ascii:local3.m:ascii_matlab:append ....
> I know vec_view to Matlab format works, but what would the DMView produce in MatLab?
>   THanks,
>     Matt
> [0]PETSC ERROR: --------------------- Error Message --------------------------------------------------------------
> [0]PETSC ERROR: No support for this operation for this object type
> [0]PETSC ERROR: No support for format 'ASCII_MATLAB'
> [0]PETSC ERROR: See https://www.mcs.anl.gov/petsc/documentation/faq.html <https://www.mcs.anl.gov/petsc/documentation/faq.html> for trouble shooting.
> [0]PETSC ERROR: Petsc Development GIT revision: v3.14.2-338-g2911d1dbb4  GIT Date: 2020-12-23 22:09:57 +0000
> [0]PETSC ERROR: ./ex2 on a arch-macosx-gnu-g named MarksMac-302.local by markadams Mon Dec 28 09:44:01 2020
> [0]PETSC ERROR: Configure options --with-mpi-dir=/usr/local/Cellar/mpich/3.3.2_1 COPTFLAGS="-g -O0" CXXOPTFLAGS="-g -O0" --download-metis=1 --download-parmetis=1 --download-kokkos=1 --download-kokkos-kernels=1 --download-p4est=1 --with-zlib=1 --with-make-np=4 --download-hdf5=1 -with-cuda=0 --with-x=0 --with-debugging=1 PETSC_ARCH=arch-macosx-gnu-g --with-64-bit-indices=0 --with-openmp=0 --with-ctable=0
> [0]PETSC ERROR: #1 DMView_ASCII_p4est() line 1386 in /Users/markadams/Codes/petsc/src/dm/impls/forest/p4est/pforest.c
> [0]PETSC ERROR: #2 DMView_p4est() line 1495 in /Users/markadams/Codes/petsc/src/dm/impls/forest/p4est/pforest.c
> [0]PETSC ERROR: #3 DMView() line 932 in /Users/markadams/Codes/petsc/src/dm/interface/dm.c
> [0]PETSC ERROR: #4 PetscObjectView() line 90 in /Users/markadams/Codes/petsc/src/sys/objects/destroy.c
> [0]PETSC ERROR: #5 PetscObjectViewFromOptions() line 124 in /Users/markadams/Codes/petsc/src/sys/objects/destroy.c
> [0]PETSC ERROR: #6 DMViewFromOptions() line 877 in /Users/markadams/Codes/petsc/src/dm/interface/dm.c
> [0]PETSC ERROR: #7 main() line 747 in ex2.c
> Any ideas on how to go about fixing this? would just converting to a plex work?
> -- 
> What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.
> -- Norbert Wiener
> https://www.cse.buffalo.edu/~knepley/ <http://www.cse.buffalo.edu/~knepley/>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20201228/b1964246/attachment.html>

More information about the petsc-dev mailing list