adamantine-sim / adamantine

Software to simulate heat transfer for additive manufacturing
https://adamantine-sim.github.io/adamantine/
Other
32 stars 9 forks source link

Only loop over locally owned cells in get_dof_to_support_mapping #222

Closed Rombur closed 1 year ago

Rombur commented 1 year ago

There is no reason to loop over the ghost cells. On top of that the current code does not work on the MPI case with artificial cell because you cannot check the fe index on an artificial cell. One test needs to be changed because it won't pass with two processors anymore. However, it was passing just by chance. We have one processor that owns the four cells on the bottom of the domain and one processor that owns the four cells on the top and so the ghost + locally owned cells represent the entire mesh. So we are basically solving the same problem as the serial one.

Rombur commented 1 year ago

I have added a commit that simplifies the code a little bit