<div dir="ltr">This works for me (appended) using an up to date version of PETSc.<div><br></div><div>I would delete the architecture director and reconfigure, and make all, and try again.</div><div><br></div><div>Next, you seem to be using git. Use the 'main' branch and try again.</div><div><br></div><div>Mark</div><div><br></div><div>(base) 07:09 adams/swarm-omp-pc *= ~/Codes/petsc$ cd src/dm/impls/plex/tutorials/<br>(base) 07:16 adams/swarm-omp-pc *= ~/Codes/petsc/src/dm/impls/plex/tutorials$    make PETSC_DIR=/Users/markadams/Codes/petsc PETSC_ARCH=arch-macosx-gnu-g ex3f90<br>gfortran-11 -Wl,-bind_at_load -Wl,-multiply_defined,suppress -Wl,-multiply_defined -Wl,suppress -Wl,-commons,use_dylibs -Wl,-search_paths_first -Wl,-no_compact_unwind  -fPIC -Wall -ffree-line-length-0 -Wno-unused-dummy-argument -g -O   -fPIC -Wall -ffree-line-length-0 -Wno-unused-dummy-argument -g -O    -I/Users/markadams/Codes/petsc/include -I/Users/markadams/Codes/petsc/arch-macosx-gnu-g/include     ex3f90.F90  -Wl,-rpath,/Users/markadams/Codes/petsc/arch-macosx-gnu-g/lib -L/Users/markadams/Codes/petsc/arch-macosx-gnu-g/lib -Wl,-rpath,/Users/markadams/Codes/petsc/arch-macosx-gnu-g/lib -L/Users/markadams/Codes/petsc/arch-macosx-gnu-g/lib -Wl,-rpath,/usr/local/Cellar/gcc/11.2.0/lib/gcc/11/gcc/x86_64-apple-darwin20/11.2.0 -L/usr/local/Cellar/gcc/11.2.0/lib/gcc/11/gcc/x86_64-apple-darwin20/11.2.0 -Wl,-rpath,/usr/local/Cellar/gcc/11.2.0/lib/gcc/11 -L/usr/local/Cellar/gcc/11.2.0/lib/gcc/11 -lpetsc -lp4est -lsc -llapack -lblas -lhdf5_hl -lhdf5 -lmetis -lz -lstdc++ -ldl -lgcc_s.1 -lgfortran -lquadmath -lm -lquadmath -lstdc++ -ldl -lgcc_s.1 -o ex3f90<br>(base) 07:16 adams/swarm-omp-pc *= ~/Codes/petsc/src/dm/impls/plex/tutorials$ mpirun -np 2 ./ex3f90<br>DM Object: testplex 1 MPI processes<br>  type: plex<br>testplex in 3 dimensions:<br>  0-cells: 12<br>  1-cells: 20<br>  2-cells: 11<br>  3-cells: 2<br>Labels:<br>  celltype: 4 strata with value/size (0 (12), 7 (2), 4 (11), 1 (20))<br>  depth: 4 strata with value/size (0 (12), 1 (20), 2 (11), 3 (2))<br>DM Object: testplex 1 MPI processes<br>  type: plex<br>testplex in 3 dimensions:<br>  0-cells: 12<br>  1-cells: 20<br>  2-cells: 11<br>  3-cells: 2<br>Labels:<br>  celltype: 4 strata with value/size (0 (12), 7 (2), 4 (11), 1 (20))<br>  depth: 4 strata with value/size (0 (12), 1 (20), 2 (11), 3 (2))<br>cell:  0 volume:   0.5000 centroid:  -0.2500   0.5000   0.5000<br>cell:  1 volume:   0.5000 centroid:   0.2500   0.5000   0.5000<br>cell:  0 volume:   0.5000 centroid:  -0.2500   0.5000   0.5000<br>cell:  1 volume:   0.5000 centroid:   0.2500   0.5000   0.5000<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 29, 2021 at 6:11 AM 袁煕 <<a href="mailto:yuanxi@advancesoft.jp">yuanxi@advancesoft.jp</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<br><div><br></div><div>I have tried the test case ex3f90 in the folder \src\dm\impls\plex\tutorials to run in parallel but found it fails. When I run it in 1 CPU by</div><div><br></div><div>-  mpirun -np 1 ./ex3f90</div><div><br></div><div>Everything seems OK. But when run it in 2 CPU by</div><div><br></div><div>-  mpirun -np 2 ./ex3f90<br></div><div><br></div><div>I got the following error message</div><div><br></div><div>[0]PETSC ERROR: --------------------- Error Message --------------------------------------------------------------<br>[0]PETSC ERROR: Object is in wrong state<br>[0]PETSC ERROR: This DMPlex is distributed but its PointSF has no graph set<br>[0]PETSC ERROR: See <a href="https://petsc.org/release/faq/" target="_blank">https://petsc.org/release/faq/</a> for trouble shooting.<br>[0]PETSC ERROR: Petsc Development GIT revision: v3.16.0-248-ge617e6467c  GIT Date: 2021-10-19 23:11:25 -0500<br>[0]PETSC ERROR: ./ex3f90 on a  named pc-010-088 by  Fri Oct 29 18:48:54 2021<br>[0]PETSC ERROR: Configure options --with-cc=mpicc --with-cxx=mpicxx --with-fc=mpiifort --with-fortran-bindings=1 --with-debugging=0 --with-blaslapack-dir=/opt/intel/oneapi/mkl/2021.4.0 --with-mkl_pardiso-dir=/opt/intel/oneapi/mkl/2021.4.0 --download-metis=1 --download-parmetis=1 --download-cmake --force --download-superlu_dist=1 --download-mumps=1 --download-scalapack=1 --download-hypre=1 --download-ml=1 --with-debugging=yes --prefix=/home/yuanxi<br>[0]PETSC ERROR: #1 DMPlexCheckPointSF() at /home/yuanxi/myprograms/petsc/src/dm/impls/plex/plex.c:8626<br>[0]PETSC ERROR: #2 DMPlexOrientInterface_Internal() at /home/yuanxi/myprograms/petsc/src/dm/impls/plex/plexinterpolate.c:595<br>[0]PETSC ERROR: #3 DMPlexInterpolate() at /home/yuanxi/myprograms/petsc/src/dm/impls/plex/plexinterpolate.c:1357<br>[0]PETSC ERROR: #4 User provided function() at User file:0<br>Abort(73) on node 0 (rank 0 in comm 16): application called MPI_Abort(MPI_COMM_SELF, 73) - process 0<br></div><div>------------------------------------------------------------------------------------------------------------------------------------</div><div><br></div><div>It fails in calling DMPlexInterpolate. Maybe this program is not considered to be run in parallel. But if I wish to do so, how should I modify it to let it run on multiple CPUs?</div><div><br></div><div>Much thanks for your help</div><div><br></div><div>Yuan</div></div>
</blockquote></div>