Skip to content

Fixes scalapack routines

Nicolas Tancogne-Dejean requested to merge fix_scalapack into main

Description

In some rare cases, the code can decide to have zero state on an MPI task. For instance 6 states for 4 MPI tasks.

In this case, the code was passing arrays the address of arrays of st_start to C routines where the arrays was allocated of size st_start:st_end, where st_end is 0.

The changes prevents the code to run into an array out-of-bound exception.

News snippet

Bugfix for scalapack

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