PFlotran

31 views
Skip to first unread message

Gabriele Morra

unread,
Oct 15, 2021, 11:59:09 AM10/15/21
to pflotr...@googlegroups.com
Hello, I am supervising a student who would like to model underground flow using PFlotran. But we have at our disposal only Windows machines and to install PETCs on Windows is like a nightmare. Is there some support to install it on Windows, or do you recommend to find a Linux machine?

Thank you
Gabriele



Moise Rousseau

unread,
Oct 15, 2021, 12:18:23 PM10/15/21
to pflotran-dev
HI Gabriele,

The best way to my point of view is to use the windows subsystem for linux (WSL), which allow to run linux terminal without the need of a heavy linux virtual machine. PFLOTRAN installation within WSL instructions are available in the developer documentation:


Note I made these instructions, so if you have troubles, please let me know, and I will be happy to update it.

Moise

Richard Tran Mills

unread,
Oct 15, 2021, 12:30:06 PM10/15/21
to pflotr...@googlegroups.com
Hi Gabriele,

Good to hear from you! I will echo Moise's suggestion about using the Windows Subsystem for Linux if your Windows machine is running Windows 10 or 11. There are actually two versions of WSL -- you should opt for WSL2. As one of the core PETSc developers, I have found that WSL2 works very well as a PETSc development platform.

We do have several PETSc users that use it under Windows via either Cygwin or MinGW, and I have used Cygwin extensively in the past for this. It should be fairly easy to configure PETSc and PFLOTRAN with Cygwin once it is set up. If you want to build PFLOTRAN as a "native" Windows app, you can probably also do so with MinGW (a GCC compiler designed to run natively on Windows), though I have not tried this. With MinGW it can be a bit hard to support some of the third party libraries that PETSc can use, though PFLOTRAN doesn't depend on anything too exotic so this might be OK.

If you run into specific issues with getting PETSc to build on Windows, please let the PETSc team know at petsc...@mcs.anl.gov and we can help you.

Best regards,
Richard
--
You received this message because you are subscribed to the Google Groups "pflotran-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pflotran-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pflotran-dev/c28e6688-6f71-4b6d-9e2d-c9150f28ceaan%40googlegroups.com.

Xuehang Song

unread,
Oct 15, 2021, 12:55:10 PM10/15/21
to pflotr...@googlegroups.com
For learning purposes, using a virtual machine on windows will be a good choce. Another (and maybe better) choice can be WSL (https://docs.microsoft.com/en-us/windows/wsl/install). I tried the ubuntu version of WSL, and it complied PFLOTRAN like on real ubuntu.  Just my two cents. -Xuehang

--
You received this message because you are subscribed to the Google Groups "pflotran-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pflotran-dev...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages