chaos-polymtl / lethe

Repository for the open-source lethe CFD/DEM/CFD-DEM project
https://chaos-polymtl.github.io/lethe/index.html
GNU Lesser General Public License v2.1
271 stars 60 forks source link

Duplicated code for constraints in navier_stokes solver #1303

Open blaisb opened 10 hours ago

blaisb commented 10 hours ago

There is a lot of duplicated code in the way constraints are managed between the navier_stokes_matrix_based, navier_stokes_block_matrix and navier_stokes_matrix_free code. All of the constraint management could be moved to the base class and the exception handling for the few boundary conditions that are not managed correctly could be moved elsewhere. This would remove a lot of line of codes and would have prevented bug like the one I fixed in #1302 .

@lpsaavedra do you want to do it or I can take care of it :). Your call

lpsaavedra commented 5 hours ago

I can take care of it!