- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/PotentialAction/FitPotentialAction.cpp
re1fe7e r707a2b 93 93 LOG(2, "DEBUG: counts_per_charge is " << counts_per_charge << "."); 94 94 // 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 102 98 Extractors::elementcounts_t::const_iterator countiter = counts_per_charge.begin(); 103 99 for (; countiter != counts_per_charge.end(); ++countiter) … … 137 133 } catch (SerializablePotentialMissingValueException &e) { 138 134 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+"."); 141 136 else 142 ELOG(1,"Missing value parsing information for potential with unknown key.");137 STATUS("Missing value parsing information for potential with unknown key."); 143 138 return Action::failure; 144 139 } catch (SerializablePotentialIllegalKeyException &e) { 145 140 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+"."); 148 142 else 149 ELOG(1,"Illegal key parsing information for potential with unknown key.");143 STATUS("Illegal key parsing information for potential with unknown key."); 150 144 return Action::failure; 151 145 } 152 146 } else { 153 ELOG(0, "Failed to parse from " << params.potential_file.get().string() <<".");147 STATUS("Failed to parse from "+params.potential_file.get().string()+"."); 154 148 return Action::failure; 155 149 } … … 162 156 } else { 163 157 if (params.charges.get().empty()) { 164 ELOG(1,"Neither charges nor potential file given!");158 STATUS("Neither charges nor potential file given!"); 165 159 return Action::failure; 166 160 } else { … … 222 216 << fragmentnumbers << " is " << graph << "."); 223 217 } else { 224 ELOG(1, "Specific fragment " << fragmentnumbers <<" not found in homologies!");218 STATUS("Specific fragment "+toString(fragmentnumbers)+" not found in homologies!"); 225 219 return Action::failure; 226 220 } … … 305 299 << l2error << " are " << model->getParameters() << "."); 306 300 } 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."); 308 302 return Action::failure; 309 303 }
Note:
See TracChangeset
for help on using the changeset viewer.