Welcome to MFpre. This is a PreProcessor code developed to perform domain decomposition for the parallel meshfree Compressible flow solver. The code is developed using the routines available in the open-source graph partitioning tool METIS.
- Download METIS using spack or here
- Export the path of the METIS directory to
$METIS_DIR
(add to bash file) - To run the code type
make
- The input grid file must be named
point-input
- The format for execution is given by,
./graphpart numberofpartitions(required) -inputformat(required) -ifcudaoutputrequired(optional)
- For example,
./graphpart 8 -legacy
generates 8 partitions for legacy input format - This will produce the partitioned files with names partGrid* which can be used as an input for either mpi or cuda based meshfree solver
- To visualize the partitions type
make plot
- Download example point distributions, here
input format | loads |
---|---|
--legacy | legacy format from structured grids |
--quadtree | quadtree format |
--restart | to partition restart files with primitive values |
output format | generates |
---|---|
--cuda | default = no, generates cuda code datastructure for the particular input format you choose |
| point index | X | Y | left index | right index | flag_1 | flag_2 | neighbours | connectivity
| point index | X | Y | left index | right index | flag_1 | flag_2 | neighbours | connectivity
| point index | X | Y | left index | right index | pressure | x velocity | y velocity | pressure | flag_1 | flag_2 | neighbours | connectivity