hpc-petsc

Configure and tune PETSc KSP, SNES, and TS solvers for linear, nonlinear, and time-dependent problems.

71|9|Updated Mar 16, 2026
One-click install
npx skills add https://github.com/SciMate-AI/HPC-Skills --skill hpc-petsc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hpc-petsc
Source: https://github.com/SciMate-AI/HPC-Skills/tree/main/skills/hpc-petsc
Command: npx skills add https://github.com/SciMate-AI/HPC-Skills --skill hpc-petsc

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires PETSc, MPI, BLAS, LAPACK, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill addresses the complexities of building, reviewing, debugging, and tuning PETSc-based solver workflows, providing a structured approach to optimize performance and reliability.

Core Features & Use Cases

  • PETSc Solver Optimization: Offers a systematic guide to configure and fine-tune PETSc solvers for optimal performance.
  • Problem Classification: Assists in classifying problems and selecting the appropriate PETSc layers (e.g., KSP, SNES, TS) for efficient problem-solving.
  • Reference Guide: Provides comprehensive references for PETSc's object model, solver stacks, and configuration options.
  • Use Case: For a researcher working with a complex nonlinear problem, this Skill offers a structured approach to setting up a PETSc solver, ensuring correct assembly, and tuning for performance.

Quick Start

Build and tune a PETSc solver for a given problem using the hpc-petsc skill by following the guidelines in the references directory.

Frequently Asked Questions about hpc-petsc

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure PETSc solvers for nonlinear problems?

To configure PETSc solvers for nonlinear problems, use the SNES module to structure your setup, ensure correct assembly, and apply runtime options for systematic performance tuning.

What's the best way to choose between KSP, SNES, and TS solver layers in PETSc?

Choosing between KSP, SNES, and TS solver layers in PETSc requires classifying your problem: KSP handles linear systems, SNES manages nonlinear equations, and TS solves time-dependent problems for efficient execution.

Do I need MPI and BLAS installed to run PETSc solver optimization?

Yes, you need MPI and BLAS installed alongside LAPACK, as these dependencies provide the underlying parallel computing and linear algebra operations required to execute PETSc solver workflows.

How do I tune PETSc runtime options for parallel computing performance?

Tune PETSc runtime options for parallel computing performance by following the structured guidelines in the references directory, which detail solver stacks, object models, and configuration options for optimization.

Why does my PETSc time-dependent solver workflow need tuning?

Your PETSc time-dependent solver workflow needs tuning to address performance complexities and ensure reliability, utilizing the TS solver stack configuration to optimize execution for time-dependent problems.