icl-utk-edu / heffte

BSD 3-Clause "New" or "Revised" License
20 stars 15 forks source link

fix proc setup for small problems #52

Closed mkstoyanov closed 2 months ago

mkstoyanov commented 2 months ago

The current version of proc_setup_min_surface() assumes that the problem size is large and fails when some of the dimensions have small size (e.g., 1 or 2).

The current algorithm rejects grids that use more ranks than number of entries in any direction.