ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-2.0/src/openbabel/rotor.cpp
(Generate patch)

Comparing trunk/OOPSE-2.0/src/openbabel/rotor.cpp (file contents):
Revision 2517 by gezelter, Thu Nov 17 20:38:45 2005 UTC vs.
Revision 2518 by tim, Fri Dec 16 21:52:50 2005 UTC

# Line 54 | Line 54 | bool OBRotorList::Setup(OBMol &mol)
54              char buffer[BUFF_SIZE];
55              sprintf(buffer,"The rotor has no associated torsion values -> %d %d %d %d",ref[0],ref[1],ref[2],ref[3]);
56  
57 <            obErrorLog.ThrowError(__FUNCTION__, buffer, obDebug);
57 >            obErrorLog.ThrowError(__func__, buffer, obDebug);
58          }
59  
60      return(true);
# Line 66 | Line 66 | bool OBRotorList::FindRotors(OBMol &mol)
66      vector<int> gtd;
67      mol.GetGTDVector(gtd);
68  
69 <    obErrorLog.ThrowError(__FUNCTION__,
69 >    obErrorLog.ThrowError(__func__,
70                            "Ran OpenBabel::FindRotors", obAuditMsg);
71  
72      OBBond *bond;
# Line 226 | Line 226 | void OBRotorList::RemoveSymVals(OBMol &mol)
226                errorMsg << bond->GetBeginAtomIdx() << ' ' << bond->GetEndAtomIdx() << ' ' ;
227                errorMsg << "rms = " << ' ';
228                errorMsg << MinimumPairRMS(mol,c1,c2,one2one) << endl;
229 <              obErrorLog.ThrowError(__FUNCTION__, errorMsg.str(), obDebug);
229 >              obErrorLog.ThrowError(__func__, errorMsg.str(), obDebug);
230              }
231              continue;
232          }
# Line 253 | Line 253 | void OBRotorList::RemoveSymVals(OBMol &mol)
253                errorMsg << bond->GetBeginAtomIdx() << ' ' << bond->GetEndAtomIdx() << ' ' ;
254                errorMsg << "rms = " << ' ';
255                errorMsg << MinimumPairRMS(mol,c1,c2,one2one) << endl;
256 <              obErrorLog.ThrowError(__FUNCTION__, errorMsg.str(), obDebug);
256 >              obErrorLog.ThrowError(__func__, errorMsg.str(), obDebug);
257              }
258          }
259      }
# Line 288 | Line 288 | void OBRotorList::RemoveSymVals(OBMol &mol)
288   #endif
289                errorMsg << "2-fold pattern-based symmetry found = " << ' ';
290                errorMsg << ref[1] << ' ' << ref[2] << endl;
291 <              obErrorLog.ThrowError(__FUNCTION__, errorMsg.str(), obDebug);
291 >              obErrorLog.ThrowError(__func__, errorMsg.str(), obDebug);
292                          }
293                      }
294                  }
# Line 316 | Line 316 | void OBRotorList::RemoveSymVals(OBMol &mol)
316   #endif
317                            errorMsg << "3-fold pattern-based symmetry found = " << ' ';
318                            errorMsg << ref[1] << ' ' << ref[2] << endl;
319 <                          obErrorLog.ThrowError(__FUNCTION__, errorMsg.str(), obDebug);
319 >                          obErrorLog.ThrowError(__func__, errorMsg.str(), obDebug);
320                          }
321                      }
322                  }
# Line 941 | Line 941 | void OBRotorRules::ParseLine(const char *buffer)
941          {
942              string err = "The following rule has no associated torsions: ";
943              err += vs[0];
944 <            obErrorLog.ThrowError(__FUNCTION__, err, obDebug);
944 >            obErrorLog.ThrowError(__func__, err, obDebug);
945          }
946          OBRotorRule *rr = new OBRotorRule (temp_buffer,ref,vals,delta);
947          if (rr->IsValid())
# Line 1050 | Line 1050 | void OBRotorRules::GetRotorIncrements(OBMol &mol,OBBon
1050              sprintf(buffer,"%3d%3d%3d%3d %s",
1051                      ref[0],ref[1],ref[2],ref[3],
1052                      ((*i)->GetSmartsString()).c_str());
1053 <            obErrorLog.ThrowError(__FUNCTION__, buffer, obDebug);
1053 >            obErrorLog.ThrowError(__func__, buffer, obDebug);
1054          }
1055          return;
1056      }
# Line 1082 | Line 1082 | void OBRotorRules::GetRotorIncrements(OBMol &mol,OBBon
1082              char buffer[BUFF_SIZE];
1083              sprintf(buffer,"%3d%3d%3d%3d %s",
1084                      ref[0],ref[1],ref[2],ref[3],"sp3-sp3");
1085 <            obErrorLog.ThrowError(__FUNCTION__, buffer, obDebug);
1085 >            obErrorLog.ThrowError(__func__, buffer, obDebug);
1086          }
1087      }
1088      else
# Line 1095 | Line 1095 | void OBRotorRules::GetRotorIncrements(OBMol &mol,OBBon
1095                  char buffer[BUFF_SIZE];
1096                  sprintf(buffer,"%3d%3d%3d%3d %s",
1097                          ref[0],ref[1],ref[2],ref[3],"sp2-sp2");
1098 <                obErrorLog.ThrowError(__FUNCTION__, buffer, obDebug);
1098 >                obErrorLog.ThrowError(__func__, buffer, obDebug);
1099              }
1100          }
1101          else //must be sp2-sp3
# Line 1107 | Line 1107 | void OBRotorRules::GetRotorIncrements(OBMol &mol,OBBon
1107                  char buffer[BUFF_SIZE];
1108                  sprintf(buffer,"%3d%3d%3d%3d %s",
1109                          ref[0],ref[1],ref[2],ref[3],"sp2-sp3");
1110 <                obErrorLog.ThrowError(__FUNCTION__, buffer, obDebug);
1110 >                obErrorLog.ThrowError(__func__, buffer, obDebug);
1111              }
1112          }
1113   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines