Re: [petsc-users] compile PETSc on win using clang

2023-01-24 Thread Satish Balay via petsc-users
Where does one download this install of clang from? I see one at https://github.com/llvm/llvm-project/releases/tag/llvmorg-15.0.6 i.e https://github.com/llvm/llvm-project/releases/download/llvmorg-15.0.6/LLVM-15.0.6-win64.exe - but it looks a bit different that what you have. There is also clang

Re: [petsc-users] compile PETSc on win using clang

2023-01-24 Thread Guo, Sam
Sorry, I don't know too much about clang. Our code is compiled on win using clang and that's why I want to compile PETSc using clang as well. -Original Message- From: Satish Balay Sent: Tuesday, January 24, 2023 7:37 PM To: Guo, Sam (DI SW STS SDDEV MECH PHY FEA FW) Cc: petsc-users Su

Re: [petsc-users] compile PETSc on win using clang

2023-01-24 Thread Satish Balay via petsc-users
Here is my prior message: >> https://www.wikihow.com/Install-Clang-on-Windows Is the clang you have from visual studio - as described above? We don't have experience with using this variant of clang. If its compatible with 'cl' - and supports the same command interface as 'cl' then the fol

Re: [petsc-users] compile PETSc on win using clang

2023-01-24 Thread Satish Balay via petsc-users
Do you have clang in your PATH? Is the binary named clang for something else? >>> Defined make macro "CC" to "/home/xian/dev/star/petsc/lib/petsc/bin/win32fe/win32fe cl --use clang" Executing: /home/xian/dev/star/petsc/lib/petsc/bin/win32fe/win32fe cl --use clang -c -o /tmp/pe

Re: [petsc-users] compile PETSc on win using clang

2023-01-24 Thread Satish Balay via petsc-users
Configure Options: --configModules=PETSc.Configure --optionsModule=config.compilerOptions --with-cc="win32fe cl" --use win32fe clang --with-fc=0 --with-debugging=0 -CFLAGS="-O2 -MD -wd4996" -CXXFLAGS="-O2 -MD -wd4996" --with-mpi=0 --with-clean=1 --force --with-scalar-type=real --ignore-cygwin-

Re: [petsc-users] compile PETSc on win using clang

2023-01-24 Thread Satish Balay via petsc-users
https://www.wikihow.com/Install-Clang-on-Windows Is the clang you have from visual studio - as described above? We don't have experience with using this variant of clang. If its compatible with 'cl' - and supports the same command interface as 'cl' then the following might work [assuming clang.

Re: [petsc-users] compile PETSc on win using clang

2023-01-24 Thread Barry Smith
Are you using clang as a replacement for the * "Unix-like" Cygwin GNU compilers compilers or * MinGW GNU compilers that are compatible with the Microsoft compilers? If the former, follow the instructions for using the Cygwin GNU compilers, if the latter follow the directions for

[petsc-users] compile PETSc on win using clang

2023-01-24 Thread Guo, Sam
Hi PETSc dev team, I try to compile PETSc on win using clang. I am wondering if you could give me some hint. (I've already made intel compiler work on win using win32fe icl). Thanks, Sam Guo

Re: [petsc-users] reading and writing periodic DMPlex to file

2023-01-24 Thread Matthew Knepley
On Tue, Jan 24, 2023 at 10:39 AM Berend van Wachem wrote: > Dear Matt, > > I have been working on this now with Petsc-3.18.3 > > 1) I can confirm that enforcing periodicity works for a single core > simulation. > > 2) However, when using multiple cores, the code still hangs. Is there > something

Re: [petsc-users] reading and writing periodic DMPlex to file

2023-01-24 Thread Berend van Wachem
Dear Matt, I have been working on this now with Petsc-3.18.3 1) I can confirm that enforcing periodicity works for a single core simulation. 2) However, when using multiple cores, the code still hangs. Is there something I should do to fix this? Or should this be fixed in the next Petsc ver