How saltedc137/vertexfem works
VertexFEM is an early-stage C++ library for vertex-centered finite element methods. Its intended user workflow is to provide a mesh, define a finite-element space, assemble a problem, solve it with linear algebra support, and optionally write mesh output. The README describes these as independent modules, but the sampled implementations are mostly stubs, so workflow links are dashed and unverified. Memory management, precision/platform configuration, errors, and logging are present runtime foundations; GPU, distributed-memory, and external-solver capabilities are planned or optional.
Main entry points: mem_manager.hpp Memory manager · mesh.cpp Mesh · config.hpp Precision and platform config · fespace.cpp Finite element space
Components 16
FEM workflow
- Mesh
src/mesh/mesh.cpp - Finite element space
src/fem/fespace.cpp - Assembly
src/asm/assembler.cpp - Linear algebra
src/linalg/vector.cpp - Linear solver
src/solver/linear_solver.cpp - Mesh output
src/io/mesh_write.cpp
Runtime foundations
- Memory manager
include/base/mem_manager.hpp - Error handling
include/base/error.hpp - Logging
src/utils/log.cpp - Runtime checks
include/utils/check.hpp
Platform support
- Precision and platform config
config/config.hpp - GPU backends
- MPI parallelism
Solver integrations
- Umpire
- Optional solver libraries
Other components
- Library user
Connections 13
- Library user → Mesh: provides input
- Mesh → Finite element space: supports definition
- Finite element space → Assembly: feeds assembly
- Assembly → Linear algebra: produces system
- Linear algebra → Linear solver: supports solve
- Mesh → Mesh output: writes mesh
- Memory manager → Precision and platform config: uses configuration
include/base/mem_manager.hpp - Memory manager → Error handling: reports errors
include/base/mem_manager.hpp - Runtime checks → Logging: logs failed checks
include/utils/check.hpp - Precision and platform config → GPU backends: defines device abstractions
- Precision and platform config → MPI parallelism: selects precision type
config/config.hpp - Memory manager → Umpire: optional allocation
- Linear solver → Optional solver libraries: optional solver support