Skip to content

Optimize the calculation of the density by avoid unnecessary operations.

Nicolas Tancogne-Dejean requested to merge optimize_density_calc into develop

Description

Optimize the calculation of the density for complex states by avoid unnecessary operations. One could think that the compiler does the job of optimizing this expression. However, this is tested using a added mode to oct-test, showing that the new version takes only 55% of the time of the original version, revealing that this is not the case.

News snippet

Optimize the calculation of the density for complex states by avoid unnecessary operations.

Checklist

  • I have checked that my code follows the Octopus coding standards
  • I have added tests for all the new features added in this request.

Merge request reports