martukas / nuclei

An Evaluated Nuclear Structure Data (ENSDF) parser, viewer and editor
GNU General Public License v3.0
20 stars 6 forks source link

Parallelize: create decay cache #27

Open ferdymercury opened 8 months ago

ferdymercury commented 8 months ago

It could be quite useful to parallelize this part with openMP with proper mutexes:

  for (auto &a : aList)
  {
    NuclideId na;
    na.set_A(a);
    ENSDFTreeItem *aa = new ENSDFTreeItem(ENSDFTreeItem::DaughterType,
                                          na,
                                          QList<QVariant>() << ("A=" + QString::number(a)),
                                          true,
                                          root);