Skip to content

if display_timing=True; error in _create_solvers() #539

@daluxer

Description

@daluxer

As far as I understand, this error is induced when having a non persistent solver. then no local_sit is written and thus consequently the code lines

all_set_instance_times = self.mpicomm.gather(local_sit,
                                                     root=0)
            if self.cylinder_rank == 0:
                asit = [sit for l_sit in all_set_instance_times for sit in l_sit]
                print("Set instance times:")
                print("\tmin=%4.2f mean=%4.2f max=%4.2f" %
                      (np.min(asit), np.mean(asit), np.max(asit)))

fail on np.min(asit), because all_set_instance_times is [] and consequently no np.min is possible.

If you turn display_timing=False, it's all good. But a bit tricky to find this error; as you'd start debugging why mpi-sppy doesn't find your solver

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions