Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/PotentialAction/FitPotentialAction.cpp

    re1fe7e r707a2b  
    9393  LOG(2, "DEBUG: counts_per_charge is " << counts_per_charge << ".");
    9494  // we want to check each (unique) key only once
    95   HomologyContainer::const_key_iterator olditer = homologies.key_end();
    96   for (HomologyContainer::const_key_iterator iter =
    97       homologies.key_begin(); iter != homologies.key_end(); olditer = iter++) {
    98     // if it's the same as the old one, skip it
    99     if (*olditer == *iter)
    100       continue;
    101     // if it's a new key, check if every element has the right number of counts
     95  for (HomologyContainer::const_key_iterator iter = homologies.key_begin();
     96      iter != homologies.key_end(); iter = homologies.getNextKey(iter)) {
     97    // check if every element has the right number of counts
    10298    Extractors::elementcounts_t::const_iterator countiter = counts_per_charge.begin();
    10399    for (; countiter != counts_per_charge.end(); ++countiter)
     
    137133      } catch (SerializablePotentialMissingValueException &e) {
    138134        if (const std::string *key = boost::get_error_info<SerializablePotentialKey>(e))
    139           ELOG(1, "Missing value when parsing information for potential "
    140               << *key << ".");
     135          STATUS("Missing value when parsing information for potential "+*key+".");
    141136        else
    142           ELOG(1, "Missing value parsing information for potential with unknown key.");
     137          STATUS("Missing value parsing information for potential with unknown key.");
    143138        return Action::failure;
    144139      } catch (SerializablePotentialIllegalKeyException &e) {
    145140        if (const std::string *key = boost::get_error_info<SerializablePotentialKey>(e))
    146           ELOG(1, "Illegal key parsing information for potential "
    147               << *key << ".");
     141          STATUS("Illegal key parsing information for potential "+*key+".");
    148142        else
    149           ELOG(1, "Illegal key parsing information for potential with unknown key.");
     143          STATUS("Illegal key parsing information for potential with unknown key.");
    150144        return Action::failure;
    151145      }
    152146    } else {
    153       ELOG(0, "Failed to parse from " << params.potential_file.get().string() << ".");
     147      STATUS("Failed to parse from "+params.potential_file.get().string()+".");
    154148      return Action::failure;
    155149    }
     
    162156  } else {
    163157    if (params.charges.get().empty()) {
    164       ELOG(1, "Neither charges nor potential file given!");
     158      STATUS("Neither charges nor potential file given!");
    165159      return Action::failure;
    166160    } else {
     
    222216        << fragmentnumbers << " is " << graph << ".");
    223217  } else {
    224     ELOG(1, "Specific fragment " << fragmentnumbers << " not found in homologies!");
     218    STATUS("Specific fragment "+toString(fragmentnumbers)+" not found in homologies!");
    225219    return Action::failure;
    226220  }
     
    305299          << l2error << " are " << model->getParameters() << ".");
    306300    } else {
    307       ELOG(0, "We require parameter derivatives for a box constraint minimization.");
     301      STATUS("No required parameter derivatives for a box constraint minimization known.");
    308302      return Action::failure;
    309303    }
Note: See TracChangeset for help on using the changeset viewer.