What is the best FD library (or collection of libraries) for C++ codes? I am looking for some data structure implementation that offers the possibility to do parallel computations on adaptively refined grids, Thank you
There are several libraries for adaptive grids, see e.g.,
I have found Petsc to be very useful to write finite difference solvers, even if the schemes are explicit and do not require any matrix solving. The DMDA makes it easy to partition the mesh/solution data, ensure there are enough ghost points, take care of periodicity, etc. You can also benefit from TS which has a lot of time integration schemes.
Another library that I have come across for finite differences is opensbli
It is specifically designed for finite differences and seems to have lot of nice features for parallelization/HPC.
The book (open access)
has lot of python codes that could be useful.