Skip to content

ElmerCSC/elmer-linsys

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Benchmarks for linear systems

General

FEM at it's core requires solving a large sparse linear system. This is the computationally expensive operation in FEM simulation and thus a good choice of linear solver can have a significant impact on the total runtime. Hence, over the decades a multitude of different solvers have been developed to solve linear systems with different properties. But this large quantity of options can be a double-edged sword in that a good solver most likely exists for each problem type, but finding it can feel overwhelming.

This repository provides tools and test cases for comparing of different linear solver strategies. The idea is to provide more insight to how different strategies work for given problems and what kind of weak and strong scaling laws they follow. The resulting tools will hopefully help people to choose the most efficient linear solver strategy for their problem.

Content of the repository

General discussion: Many test cases are included in this repository. For the results of the benchmarks and some analysis on these cases reader is referred to README.md file in the results directory.

Benchmark results: Each case specific directory in the results has it's own README with some conclusions. However, these conclusions are by no means absolute or generalizable. So in the FAQ.md file can be found some answers for frequently asked questions that may provide some guidance when choosing a linear solver.

Benchmarking scripts: This repository provides lots of tools for benchmarking and is structured to allow easy automation. To learn more about this reader is directed to the HOW_TO_USE.md file.

Decision flowchart

For those too impatient to do a more rigorous study to find the optimal linear solver below is attached a flowchart that could guide to a very good option. If the properties of the coefficient matrix formed for the problem are not known beforehand one can start testing from the most strict requirements (top right) and proceed towards the least strict requirements (bottom left) until convergence is achieved. Alternatively, the handy table at README.md file in results directory can be used to learn about the matrix properties associated with each problem type.

Decision flowchart

License

The contents of this repository are licensed under the Creative Commons Attribution-NonCommercial 4.0 International License. To view a copy of this license, visit Creative Commons Attribution-NonCommercial 4.0 International License

Creative Commons License