adamantine-sim / adamantine

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

Use degrees of freedom associated to each cell for load balancing #201

Closed Rombur closed 1 year ago

Rombur commented 1 year ago

Instead of each processor owning the same number of cells, each processor owns the same number of dofs. There are two caveats:

  1. The initial mesh is partitioned using only the number of cells because it is done before the creation of the DoFHandler. This means the load balancing is bad until the first time the mesh is adaptively refined/material is added.
  2. I measured a significant slowdown when refining the mesh. However this was more than compensated by the speed up in evaluate_thermal_physics.