Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I begin using PETSc if the software has already been completely built and installed by someone else?

0
Posted

How do I begin using PETSc if the software has already been completely built and installed by someone else?

0

Assuming that the PETSc libraries have been successfully built for a particular architecture and level of optimization, a new user must merely: a) Set the environmental variable PETSC_DIR to the full path of the PETSc home directory (for example, /home/username/petsc). b) Set the environmental variable PETSC_ARCH, which indicates the configuration on which PETSc will be used. Note that the PETSC_ARCH is simply a name the installer used when installing the libraries. There many be several on a single system, like mylinux-g for the debug versions of the library and mylinux-O for the optimized version, or petscdebug for the debug version and petscopt for the optimized version. c) Begin by copying one of the many PETSc examples (in, for example, petsc/src/ksp/examples/tutorials) and its corresponding makefile. d) See the introductory section of the PETSc users manual for tips on documentation.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123