adamantine-sim / adamantine

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

Make use_table a template parameter in hot loops #264

Closed Rombur closed 6 months ago

Rombur commented 6 months ago

Use if constexpr (use_table) in compute_material_property. This gives us a noticeable speed up. I didn't template all of MaterialProperty on use_table because the other functions don't show up in the profiling and this keeps the code easier.

Rombur commented 6 months ago

Retest this please

Rombur commented 6 months ago

Retest this please

Rombur commented 6 months ago

Retest this please

Rombur commented 6 months ago

The CI is struggling today :-/

Rombur commented 6 months ago

Retest this please

Rombur commented 6 months ago

Retest this please