| 1 |
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
| 2 |
//////////////////// README file written by Massimiliano Lupo Pasini (contact: [email protected])//////////////////// |
| 3 |
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
In this file I provide a brief description about the use of each file included in this directory. |
| 8 |
|
| 9 |
---------------------------------------------------------------------------------------------------------------------------- |
| 10 |
|
| 11 |
MAIN files: |
| 12 |
- MultiplicativeStride.cpp: main file solve an ADR peoblem using an multiplicative two-level multigrid where a subdomain coincide with a stride |
| 13 |
- MultiplicativeBricks.cpp: main file solve an ADR peoblem using an multiplicative two-level multigrid where a subdomain coincide with a brick |
| 14 |
- SmoothedAdditiveStride.cpp: main file solve an ADR peoblem using an additive two-level multigrid where a subdomain coincide with a stride |
| 15 |
- SmoothedAdditiveBricks.cpp: main file solve an ADR peoblem using an additive two-level multigrid where a subdomain coincide with a brick |
| 16 |
- tentative.cpp: main file solve an ADR peoblem using an additive two-level multigrid where a subdomain coincide with a brick (USED FOR EASY DEBUGGING) |
| 17 |
|
| 18 |
Parser files: |
| 19 |
- final_parser.xml (currently is the only .xml file used in the code) |
| 20 |
- dd.xml (currently NOT used but I keep it to have some parameters options handy withou necessarily consulti the user guid of MueLu) |
| 21 |
- jacobi.xml (currently NOT used but I keep it to have some parameters options handy withou necessarily consulti the user guid of MueLu) |
| 22 |
- chebyshev.xml (currently NOT used but I keep it to have some parameters options handy withou necessarily consulti the user guid of MueLu) |
| 23 |
|
| 24 |
-------------------------------------------------------------------------------------------------------------------------------------------------- |
| 25 |
|
| 26 |
|
| 27 |
ADR_Problem.hpp: this file is used to define an abstract class for the PDE problem to consider. |
| 28 |
Different features are included (e.g. boundary conditions, methods to construct the stiffness matrix). |
| 29 |
This file mimics what already implelemted in the file named "Galeri_Problem.hpp" located in the folder |
| 30 |
"/Trilinos/packages/galeri/src-xpetra". It would be ideal to actually get rid of "ADR_Problem.hpp" by |
| 31 |
enabling Galeri to construct advection-diffusion-reaction problem. Currently Galeri does not do it. |
| 32 |
P.S. For now just Dirichlet and Neumann boundary conditionas are implemented. |
| 33 |
|
| 34 |
ADR_XpetraParameters.hpp: this file mimics "Galeri_XpetraParameters.hpp" in the directory "/Trilinos/packages/galeri/src-xpetra". |
| 35 |
The goal is to set up parameters to be hanlded for the generation of the |
| 36 |
advection-diffusion-reaction problem. |
| 37 |
|
| 38 |
CreateADRMatrix.hpp: this file constructs and populates the stiffness matrix associated with one-dimensional, two-dimensional |
| 39 |
and three-dimensional problems discretized with five-point stencil centered finite differences. |
| 40 |
This file mimics "Galeri_StencilProblems.hpp" in the directory "/Trilinos/packages/galeri/src-xpetra". |
| 41 |
The difference consists in the fact that the file in Galeri can construct just the stiffness matrix of |
| 42 |
the discretized Laplacian operator, whereas the new file can build the stiffness matrix of an ADR problem with |
| 43 |
spatial-variable coefficients. It would be useful to actually combine "CreateADRMatrix.hpp and |
| 44 |
"Galeri_StencilProblems.hpp" together and make an only fiel out this two. |
| 45 |
Whenever the coefficients of the PDE equation must be changed, the analytica expression of the coefficients |
| 46 |
must be changed in this file, forcing the code to be recompiled. It would be useful to change this file |
| 47 |
so that one can shove the parameters of the equation thorugh a parsing file and avoid recompiling the |
| 48 |
code every time. |
| 49 |
|
| 50 |
ADRProblemFactory.hpp: factory to build the advection-diffusion-reaction problem. This file mimics "Galeri_XpetraProblemFactory.hpp" |
| 51 |
in the directory "/Trilinos/packages/galeri/src-xpetra". |
| 52 |
Also in this case, it would be nice to glue these two files altogether ina single ".hpp". |
| 53 |
|
| 54 |
coloring.hpp: this file is used to attribute a color to a specific domain, according to its MPI id. The routines are provided |
| 55 |
just for two-dimensional and three-dimensional meshes and they work just assuming no overlap between the subdomains. |
| 56 |
In case overlap is included, the routines in this file mu st be changed because the nubmer of colors |
| 57 |
to use has to increase. |
| 58 |
|
| 59 |
CreateBrickMap.hpp: this file generates the RowMap of the stiffness matrix following the brick aggregation reasoning. |
| 60 |
This partitioning of the rows works under the assumption that each d-dimensional brick is treated as a subdomain |
| 61 |
in the domain-decomposition setting. |
| 62 |
|
| 63 |
neighbours.hpp: in this file there are routines to find the neighbour of an MPI processor (=subdomain) through its MPI id. |
| 64 |
All the neighbours confining with the current processor are identitied and their index is stored in a vector. |
| 65 |
|
| 66 |
BAP.hpp: this file is used to uncompress the shrunk version of BAP that is built applying domain decomposition with multicoloring. |
| 67 |
|
| 68 |
-------------------------------------------------------------------------------------------------------------------------------- |
| 69 |
|
| 70 |
MatrixMarket_routines: directory containing routines to read and write MatrixMarket format files in Matlab. |
| 71 |
|
| 72 |
------------------------------------------------------------------------------------------------------------------------------------- |
| 73 |
|
| 74 |
Files NOT used but that I would like to keep for likely future consultations: |
| 75 |
- Smooth_Prolongation.hpp |
| 76 |
- Smooth_Prolongation.cpp |
| 77 |
- Repartition_ADR.cpp |
| 78 |
- Test.cpp |
| 79 |
|
| 80 |
|
| 81 |
|