This repository contains the MATLAB code required to reproduce the numerical experiments contained in the paper "Fast solvers for 2D fractional diffusion equations using rank structured matrices", S. Massei, M. Mazza, L. Robol, 2018.
To reproduce the tests, you will need to download and add to your MATLAB path the hm-toolbox and the rktoolbox packages. Installation of those is as simple as unpacking them somewhere, and adding them to your MATLAB path by:
>> addpath /path/to/hm-toolbox;
>> addpath /path/to/rktoolbox; addpath /path/to/rktoolbox/utils;
Once those are loaded, you can run the various tests by running the scripts listed below:
Experiment1D.mreplicates the 1D tests that compare the HODLR solver with the preconditioned GMRES. Two filese1.datande2.datwill be generated containing the data included in the table in the paper.FD_Example.mandFD_Example_vc.mcontain the examples of the 2D solver for the finite difference formulation, discretized using implicit Euler in time. The files implement the constant and variable coefficients case, respectively.FE_Example.mcontains the finite element case, and is completely analogous toFD_Example.m.
You might want to inspect the file RunAllExperiments.m for further information.
Did you find bugs, or have any kind of feedback? Let us know!
stefano.massei@epfl.ch, mariarosa.mazza@ipp.mpg.de, leonardo.robol@isti.cnr.it