Changes in / [bdedb1:6d789df]
- Location:
- src
- Files:
-
- 22 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Helpers/MemDebug.cpp
rbdedb1 r6d789df 153 153 // build the entry in front of the space 154 154 Memory::entry_t *entry = (Memory::entry_t*) res; 155 memset(res,0,entrySpace); 155 156 entry->info.nbytes = nbytes; 156 157 entry->info.isUsed = true; -
src/analysis_bonds.cpp
rbdedb1 r6d789df 181 181 // check angle 182 182 if (CheckHydrogenBridgeBondAngle(Walker, OtherAtom, Runner)) { 183 DoLog(1) && (Log() << Verbose(1) << Walker-> Name << ", " << OtherAtom->Name << " and " << Runner->Name<< " has a hydrogen bridge bond with distance " << sqrt(distance) << " and angle " << CalculateAngle(&OtherAtom->x, &Walker->x, &Runner->x)*(180./M_PI) << "." << endl);183 DoLog(1) && (Log() << Verbose(1) << Walker->getName() << ", " << OtherAtom->getName() << " and " << Runner->getName() << " has a hydrogen bridge bond with distance " << sqrt(distance) << " and angle " << CalculateAngle(&OtherAtom->x, &Walker->x, &Runner->x)*(180./M_PI) << "." << endl); 184 184 count++; 185 185 break; -
src/atom.cpp
rbdedb1 r6d789df 40 40 41 41 atom *atom::clone(){ 42 atom *res = new atom( );42 atom *res = new atom(this); 43 43 res->previous=0; 44 44 res->next=0; -
src/atom_bondedparticle.cpp
rbdedb1 r6d789df 44 44 void BondedParticle::OutputBondOfAtom() const 45 45 { 46 DoLog(4) && (Log() << Verbose(4) << "Atom " << Name<< "/" << nr << " with " << ListOfBonds.size() << " bonds: " << endl);46 DoLog(4) && (Log() << Verbose(4) << "Atom " << getName() << "/" << nr << " with " << ListOfBonds.size() << " bonds: " << endl); 47 47 int TotalDegree = 0; 48 48 for (BondList::const_iterator Runner = ListOfBonds.begin(); Runner != ListOfBonds.end(); ++Runner) { -
src/atom_graphnode.cpp
rbdedb1 r6d789df 27 27 void GraphNode::OutputGraphInfo() const 28 28 { 29 DoLog(2) && (Log() << Verbose(2) << "Atom " << Name<< " is " << ((SeparationVertex) ? "a" : "not a") << " separation vertex, components are ");29 DoLog(2) && (Log() << Verbose(2) << "Atom " << getName() << " is " << ((SeparationVertex) ? "a" : "not a") << " separation vertex, components are "); 30 30 OutputComponentNumber(); 31 31 DoLog(3) && (Log() << Verbose(3) << " with Lowpoint " << LowpointNr << " and Graph Nr. " << GraphNr << "." << endl); -
src/atom_particleinfo.cpp
rbdedb1 r6d789df 11 11 /** Constructor of ParticleInfo. 12 12 */ 13 ParticleInfo::ParticleInfo() : nr(-1), Name(NULL) {}; 13 ParticleInfo::ParticleInfo() : nr(-1), name("Unknown") { 14 }; 14 15 15 16 ParticleInfo::ParticleInfo(ParticleInfo *pointer) : 16 17 nr(pointer->nr), 17 Name(pointer->Name)18 name(pointer->name) 18 19 {} 19 20 … … 22 23 */ 23 24 ParticleInfo::~ParticleInfo() 24 { 25 Free(&Name); 26 }; 25 {}; 26 27 const string& ParticleInfo::getName() const{ 28 return name; 29 } 30 31 void ParticleInfo::setName(const string& _name){ 32 name = _name; 33 } 27 34 28 35 ostream & operator << (ostream &ost, const ParticleInfo &a) 29 36 { 30 if (a.Name == NULL) 31 ost << "[NULL]"; 32 else 33 ost << "[" << a.Name << "|" << &a << "]"; 37 ost << "[" << a.getName() << "|" << &a << "]"; 34 38 return ost; 35 39 }; … … 37 41 ostream & ParticleInfo::operator << (ostream &ost) const 38 42 { 39 if (Name == NULL) 40 ost << "[NULL]"; 41 else 42 ost << "[" << Name << "|" << this << "]"; 43 ost << "[" << name << "|" << this << "]"; 43 44 return ost; 44 45 }; -
src/atom_particleinfo.hpp
rbdedb1 r6d789df 28 28 public: 29 29 int nr; // index to easierly identify 30 char *Name; // some name to reference to on output31 30 32 31 ParticleInfo(); … … 34 33 ~ParticleInfo(); 35 34 35 const std::string& getName() const; 36 void setName(const std::string&); 37 36 38 ostream & operator << (ostream &ost) const; 37 39 38 40 private: 41 std::string name; // some name to reference to on output 39 42 }; 40 43 -
src/bond.cpp
rbdedb1 r6d789df 49 49 ostream & operator << (ostream &ost, const bond &b) 50 50 { 51 ost << "[" << b.leftatom-> Name << " <" << b.BondDegree << "(H" << b.HydrogenBond << ")>" << b.rightatom->Name<< "]";51 ost << "[" << b.leftatom->getName() << " <" << b.BondDegree << "(H" << b.HydrogenBond << ")>" << b.rightatom->getName() << "]"; 52 52 return ost; 53 53 }; -
src/builder.cpp
rbdedb1 r6d789df 2551 2551 ActionRegistry::purgeInstance(); 2552 2552 ActionHistory::purgeInstance(); 2553 Memory::getState(); 2553 2554 } 2554 2555 … … 2616 2617 cleanUp(configuration); 2617 2618 2618 Memory::getState();2619 2619 return (0); 2620 2620 } -
src/config.cpp
rbdedb1 r6d789df 1680 1680 Walker = Walker->next; 1681 1681 *output << Walker->nr << "\t"; 1682 *output << Walker-> Name<< "\t";1682 *output << Walker->getName() << "\t"; 1683 1683 *output << mol->name << "\t"; 1684 1684 *output << 0 << "\t"; … … 1756 1756 Walker = Walker->next; 1757 1757 *output << AtomNo+1 << "\t"; 1758 *output << Walker-> Name<< "\t";1758 *output << Walker->getName() << "\t"; 1759 1759 *output << (*MolWalker)->name << "\t"; 1760 1760 *output << MolCounter+1 << "\t"; -
src/molecule.cpp
rbdedb1 r6d789df 135 135 if (pointer->type->Z != 1) 136 136 NoNonHydrogen++; 137 if (pointer->Name == NULL){138 Free(&pointer->Name);139 pointer->Name = Malloc<char>(6, "molecule::AddAtom: *pointer->Name");140 sprintf(pointer->Name, "%2s%02d", pointer->type->symbol, pointer->nr+1);137 if(pointer->getName() == "Unknown"){ 138 stringstream sstr; 139 sstr << pointer->type->symbol << pointer->nr+1; 140 pointer->setName(sstr.str()); 141 141 } 142 142 } … … 157 157 if (pointer != NULL) { 158 158 atom *walker = pointer->clone(); 159 walker->Name = Malloc<char>(strlen(pointer->Name) + 1, "atom::atom: *Name"); 160 strcpy (walker->Name, pointer->Name); 159 stringstream sstr; 160 sstr << pointer->getName(); 161 walker->setName(sstr.str()); 161 162 walker->nr = last_atom++; // increase number within molecule 162 163 add(walker, end); … … 252 253 BondRescale = TopOrigin->type->HBondDistance[TopBond->BondDegree-1]; 253 254 if (BondRescale == -1) { 254 DoeLog(1) && (eLog()<< Verbose(1) << "There is no typical hydrogen bond distance in replacing bond (" << TopOrigin-> Name << "<->" << TopReplacement->Name<< ") of degree " << TopBond->BondDegree << "!" << endl);255 DoeLog(1) && (eLog()<< Verbose(1) << "There is no typical hydrogen bond distance in replacing bond (" << TopOrigin->getName() << "<->" << TopReplacement->getName() << ") of degree " << TopBond->BondDegree << "!" << endl); 255 256 return false; 256 257 BondRescale = bondlength; … … 295 296 SecondOtherAtom = (*Runner)->GetOtherAtom(TopOrigin); 296 297 } else { 297 DoeLog(2) && (eLog()<< Verbose(2) << "Detected more than four bonds for atom " << TopOrigin-> Name);298 DoeLog(2) && (eLog()<< Verbose(2) << "Detected more than four bonds for atom " << TopOrigin->getName()); 298 299 } 299 300 } … … 339 340 bondangle = TopOrigin->type->HBondAngle[1]; 340 341 if (bondangle == -1) { 341 DoeLog(1) && (eLog()<< Verbose(1) << "There is no typical hydrogen bond angle in replacing bond (" << TopOrigin-> Name << "<->" << TopReplacement->Name<< ") of degree " << TopBond->BondDegree << "!" << endl);342 DoeLog(1) && (eLog()<< Verbose(1) << "There is no typical hydrogen bond angle in replacing bond (" << TopOrigin->getName() << "<->" << TopReplacement->getName() << ") of degree " << TopBond->BondDegree << "!" << endl); 342 343 return false; 343 344 bondangle = 0; … … 616 617 add(Binder, last); 617 618 } else { 618 DoeLog(1) && (eLog()<< Verbose(1) << "Could not add bond between " << atom1-> Name << " and " << atom2->Name<< " as one or both are not present in the molecule." << endl);619 DoeLog(1) && (eLog()<< Verbose(1) << "Could not add bond between " << atom1->getName() << " and " << atom2->getName() << " as one or both are not present in the molecule." << endl); 619 620 } 620 621 return Binder; … … 695 696 AtomCount--; 696 697 } else 697 DoeLog(1) && (eLog()<< Verbose(1) << "Atom " << pointer-> Name<< " is of element " << pointer->type->Z << " but the entry in the table of the molecule is 0!" << endl);698 DoeLog(1) && (eLog()<< Verbose(1) << "Atom " << pointer->getName() << " is of element " << pointer->type->Z << " but the entry in the table of the molecule is 0!" << endl); 698 699 if (ElementsInMolecule[pointer->type->Z] == 0) // was last atom of this element? 699 700 ElementCount--; … … 713 714 ElementsInMolecule[pointer->type->Z]--; // decrease number of atom of this element 714 715 else 715 DoeLog(1) && (eLog()<< Verbose(1) << "Atom " << pointer-> Name<< " is of element " << pointer->type->Z << " but the entry in the table of the molecule is 0!" << endl);716 DoeLog(1) && (eLog()<< Verbose(1) << "Atom " << pointer->getName() << " is of element " << pointer->type->Z << " but the entry in the table of the molecule is 0!" << endl); 716 717 if (ElementsInMolecule[pointer->type->Z] == 0) // was last atom of this element? 717 718 ElementCount--; … … 915 916 if (Walker->type->Z != 1) // count non-hydrogen atoms whilst at it 916 917 NoNonHydrogen++; 917 Free(&Walker->Name);918 Walker->Name = Malloc<char>(6, "molecule::CountAtoms: *walker->Name");919 sprintf(Walker->Name, "%2s%02d", Walker->type->symbol, Walker->nr+1);920 DoLog(3) && (Log() << Verbose(3) << "Naming atom nr. " << Walker->nr << " " << Walker-> Name<< "." << endl);918 stringstream sstr; 919 sstr << Walker->type->symbol << Walker->nr+1; 920 Walker->setName(sstr.str()); 921 DoLog(3) && (Log() << Verbose(3) << "Naming atom nr. " << Walker->nr << " " << Walker->getName() << "." << endl); 921 922 i++; 922 923 } -
src/molecule_fragmentation.cpp
rbdedb1 r6d789df 907 907 } 908 908 } else { 909 DoeLog(1) && (eLog()<< Verbose(1) << "Son " << Runner-> Name << " has father " << FatherOfRunner->Name<< " but its entry in SonList is " << SonList[FatherOfRunner->nr] << "!" << endl);909 DoeLog(1) && (eLog()<< Verbose(1) << "Son " << Runner->getName() << " has father " << FatherOfRunner->getName() << " but its entry in SonList is " << SonList[FatherOfRunner->nr] << "!" << endl); 910 910 } 911 911 if ((LonelyFlag) && (Leaf->AtomCount > 1)) { -
src/molecule_geometry.cpp
rbdedb1 r6d789df 284 284 if ((fabs(tmp)) > BondDistance) { 285 285 flag = false; 286 DoLog(0) && (Log() << Verbose(0) << "Hit: atom " << Walker-> Name<< " in bond " << *(*Runner) << " has to be shifted due to " << tmp << "." << endl);286 DoLog(0) && (Log() << Verbose(0) << "Hit: atom " << Walker->getName() << " in bond " << *(*Runner) << " has to be shifted due to " << tmp << "." << endl); 287 287 if (tmp > 0) 288 288 Translationvector[j] -= 1.; -
src/molecule_graph.cpp
rbdedb1 r6d789df 317 317 Walker->GraphNr = DFS.CurrentGraphNr; 318 318 Walker->LowpointNr = DFS.CurrentGraphNr; 319 DoLog(1) && (Log() << Verbose(1) << "Setting Walker[" << Walker-> Name<< "]'s number to " << Walker->GraphNr << " with Lowpoint " << Walker->LowpointNr << "." << endl);319 DoLog(1) && (Log() << Verbose(1) << "Setting Walker[" << Walker->getName() << "]'s number to " << Walker->GraphNr << " with Lowpoint " << Walker->LowpointNr << "." << endl); 320 320 DFS.AtomStack->Push(Walker); 321 321 DFS.CurrentGraphNr++; … … 348 348 Binder->MarkUsed(black); 349 349 OtherAtom = Binder->GetOtherAtom(Walker); 350 DoLog(2) && (Log() << Verbose(2) << "(4) OtherAtom is " << OtherAtom-> Name<< "." << endl);350 DoLog(2) && (Log() << Verbose(2) << "(4) OtherAtom is " << OtherAtom->getName() << "." << endl); 351 351 if (OtherAtom->GraphNr != -1) { 352 352 // (4a) ... if "other" atom has been visited (GraphNr != 0), set lowpoint to minimum of both, go to (3) … … 354 354 DFS.BackEdgeStack->Push(Binder); 355 355 Walker->LowpointNr = (Walker->LowpointNr < OtherAtom->GraphNr) ? Walker->LowpointNr : OtherAtom->GraphNr; 356 DoLog(3) && (Log() << Verbose(3) << "(4a) Visited: Setting Lowpoint of Walker[" << Walker-> Name<< "] to " << Walker->LowpointNr << "." << endl);356 DoLog(3) && (Log() << Verbose(3) << "(4a) Visited: Setting Lowpoint of Walker[" << Walker->getName() << "] to " << Walker->LowpointNr << "." << endl); 357 357 } else { 358 358 // (4b) ... otherwise set OtherAtom as Ancestor of Walker and Walker as OtherAtom, go to (2) … … 360 360 OtherAtom->Ancestor = Walker; 361 361 Walker = OtherAtom; 362 DoLog(3) && (Log() << Verbose(3) << "(4b) Not Visited: OtherAtom[" << OtherAtom-> Name << "]'s Ancestor is now " << OtherAtom->Ancestor->Name << ", Walker is OtherAtom " << OtherAtom->Name<< "." << endl);362 DoLog(3) && (Log() << Verbose(3) << "(4b) Not Visited: OtherAtom[" << OtherAtom->getName() << "]'s Ancestor is now " << OtherAtom->Ancestor->getName() << ", Walker is OtherAtom " << OtherAtom->getName() << "." << endl); 363 363 break; 364 364 } … … 382 382 383 383 // (5) if Ancestor of Walker is ... 384 DoLog(1) && (Log() << Verbose(1) << "(5) Number of Walker[" << Walker-> Name << "]'s Ancestor[" << Walker->Ancestor->Name<< "] is " << Walker->Ancestor->GraphNr << "." << endl);384 DoLog(1) && (Log() << Verbose(1) << "(5) Number of Walker[" << Walker->getName() << "]'s Ancestor[" << Walker->Ancestor->getName() << "] is " << Walker->Ancestor->GraphNr << "." << endl); 385 385 386 386 if (Walker->Ancestor->GraphNr != DFS.Root->GraphNr) { … … 389 389 // (6a) set Ancestor's Lowpoint number to minimum of of its Ancestor and itself, go to Step(8) 390 390 Walker->Ancestor->LowpointNr = (Walker->Ancestor->LowpointNr < Walker->LowpointNr) ? Walker->Ancestor->LowpointNr : Walker->LowpointNr; 391 DoLog(2) && (Log() << Verbose(2) << "(6) Setting Walker[" << Walker-> Name << "]'s Ancestor[" << Walker->Ancestor->Name<< "]'s Lowpoint to " << Walker->Ancestor->LowpointNr << "." << endl);391 DoLog(2) && (Log() << Verbose(2) << "(6) Setting Walker[" << Walker->getName() << "]'s Ancestor[" << Walker->Ancestor->getName() << "]'s Lowpoint to " << Walker->Ancestor->LowpointNr << "." << endl); 392 392 } else { 393 393 // (7) (Ancestor of Walker is a separating vertex, remove all from stack till Walker (including), these and Ancestor form a component 394 394 Walker->Ancestor->SeparationVertex = true; 395 DoLog(2) && (Log() << Verbose(2) << "(7) Walker[" << Walker-> Name << "]'s Ancestor[" << Walker->Ancestor->Name<< "]'s is a separating vertex, creating component." << endl);395 DoLog(2) && (Log() << Verbose(2) << "(7) Walker[" << Walker->getName() << "]'s Ancestor[" << Walker->Ancestor->getName() << "]'s is a separating vertex, creating component." << endl); 396 396 mol->SetNextComponentNumber(Walker->Ancestor, DFS.ComponentNumber); 397 DoLog(3) && (Log() << Verbose(3) << "(7) Walker[" << Walker-> Name<< "]'s Ancestor's Compont is " << DFS.ComponentNumber << "." << endl);397 DoLog(3) && (Log() << Verbose(3) << "(7) Walker[" << Walker->getName() << "]'s Ancestor's Compont is " << DFS.ComponentNumber << "." << endl); 398 398 mol->SetNextComponentNumber(Walker, DFS.ComponentNumber); 399 DoLog(3) && (Log() << Verbose(3) << "(7) Walker[" << Walker-> Name<< "]'s Compont is " << DFS.ComponentNumber << "." << endl);399 DoLog(3) && (Log() << Verbose(3) << "(7) Walker[" << Walker->getName() << "]'s Compont is " << DFS.ComponentNumber << "." << endl); 400 400 do { 401 401 OtherAtom = DFS.AtomStack->PopLast(); 402 402 LeafWalker->Leaf->AddCopyAtom(OtherAtom); 403 403 mol->SetNextComponentNumber(OtherAtom, DFS.ComponentNumber); 404 DoLog(3) && (Log() << Verbose(3) << "(7) Other[" << OtherAtom-> Name<< "]'s Compont is " << DFS.ComponentNumber << "." << endl);404 DoLog(3) && (Log() << Verbose(3) << "(7) Other[" << OtherAtom->getName() << "]'s Compont is " << DFS.ComponentNumber << "." << endl); 405 405 } while (OtherAtom != Walker); 406 406 DFS.ComponentNumber++; 407 407 } 408 408 // (8) Walker becomes its Ancestor, go to (3) 409 DoLog(2) && (Log() << Verbose(2) << "(8) Walker[" << Walker-> Name << "] is now its Ancestor " << Walker->Ancestor->Name<< ", backstepping. " << endl);409 DoLog(2) && (Log() << Verbose(2) << "(8) Walker[" << Walker->getName() << "] is now its Ancestor " << Walker->Ancestor->getName() << ", backstepping. " << endl); 410 410 Walker = Walker->Ancestor; 411 411 DFS.BackStepping = true; … … 431 431 //DFS.AtomStack->Output(out); 432 432 mol->SetNextComponentNumber(DFS.Root, DFS.ComponentNumber); 433 DoLog(3) && (Log() << Verbose(3) << "(9) Root[" << DFS.Root-> Name<< "]'s Component is " << DFS.ComponentNumber << "." << endl);433 DoLog(3) && (Log() << Verbose(3) << "(9) Root[" << DFS.Root->getName() << "]'s Component is " << DFS.ComponentNumber << "." << endl); 434 434 mol->SetNextComponentNumber(Walker, DFS.ComponentNumber); 435 DoLog(3) && (Log() << Verbose(3) << "(9) Walker[" << Walker-> Name<< "]'s Component is " << DFS.ComponentNumber << "." << endl);435 DoLog(3) && (Log() << Verbose(3) << "(9) Walker[" << Walker->getName() << "]'s Component is " << DFS.ComponentNumber << "." << endl); 436 436 do { 437 437 OtherAtom = DFS.AtomStack->PopLast(); 438 438 LeafWalker->Leaf->AddCopyAtom(OtherAtom); 439 439 mol->SetNextComponentNumber(OtherAtom, DFS.ComponentNumber); 440 DoLog(3) && (Log() << Verbose(3) << "(7) Other[" << OtherAtom-> Name<< "]'s Compont is " << DFS.ComponentNumber << "." << endl);440 DoLog(3) && (Log() << Verbose(3) << "(7) Other[" << OtherAtom->getName() << "]'s Compont is " << DFS.ComponentNumber << "." << endl); 441 441 } while (OtherAtom != Walker); 442 442 DFS.ComponentNumber++; … … 445 445 Walker = DFS.Root; 446 446 Binder = mol->FindNextUnused(Walker); 447 DoLog(1) && (Log() << Verbose(1) << "(10) Walker is Root[" << DFS.Root-> Name<< "], next Unused Bond is " << Binder << "." << endl);447 DoLog(1) && (Log() << Verbose(1) << "(10) Walker is Root[" << DFS.Root->getName() << "], next Unused Bond is " << Binder << "." << endl); 448 448 if (Binder != NULL) { // Root is separation vertex 449 449 DoLog(1) && (Log() << Verbose(1) << "(11) Root is a separation vertex." << endl); … … 692 692 if (OtherAtom->type->Z != 1) { 693 693 #endif 694 DoLog(2) && (Log() << Verbose(2) << "Current OtherAtom is: " << OtherAtom-> Name<< " for bond " << *(*Runner) << "." << endl);694 DoLog(2) && (Log() << Verbose(2) << "Current OtherAtom is: " << OtherAtom->getName() << " for bond " << *(*Runner) << "." << endl); 695 695 if (BFS.ColorList[OtherAtom->nr] == white) { 696 696 BFS.TouchedStack->Push(OtherAtom); … … 698 698 BFS.PredecessorList[OtherAtom->nr] = Walker; // Walker is the predecessor 699 699 BFS.ShortestPathList[OtherAtom->nr] = BFS.ShortestPathList[Walker->nr] + 1; 700 DoLog(2) && (Log() << Verbose(2) << "Coloring OtherAtom " << OtherAtom-> Name << " lightgray, its predecessor is " << Walker->Name<< " and its Shortest Path is " << BFS.ShortestPathList[OtherAtom->nr] << " egde(s) long." << endl);700 DoLog(2) && (Log() << Verbose(2) << "Coloring OtherAtom " << OtherAtom->getName() << " lightgray, its predecessor is " << Walker->getName() << " and its Shortest Path is " << BFS.ShortestPathList[OtherAtom->nr] << " egde(s) long." << endl); 701 701 //if (BFS.ShortestPathList[OtherAtom->nr] < MinimumRingSize[Walker->GetTrueFather()->nr]) { // Check for maximum distance 702 702 DoLog(3) && (Log() << Verbose(3) << "Putting OtherAtom into queue." << endl); … … 719 719 } 720 720 BFS.ColorList[Walker->nr] = black; 721 DoLog(1) && (Log() << Verbose(1) << "Coloring Walker " << Walker-> Name<< " black." << endl);721 DoLog(1) && (Log() << Verbose(1) << "Coloring Walker " << Walker->getName() << " black." << endl); 722 722 if (OtherAtom == BFS.Root) { // if we have found the root, check whether this cycle wasn't already found beforehand 723 723 // step through predecessor list … … 770 770 Walker = BFS.Root; 771 771 while (Walker != BackEdge->rightatom) { 772 DoLog(0) && (Log() << Verbose(0) << Walker-> Name<< " <-> ");772 DoLog(0) && (Log() << Verbose(0) << Walker->getName() << " <-> "); 773 773 Walker = BFS.PredecessorList[Walker->nr]; 774 774 Walker->GetTrueFather()->IsCyclic = true; 775 775 RingSize++; 776 776 } 777 DoLog(0) && (Log() << Verbose(0) << Walker-> Name<< " with a length of " << RingSize << "." << endl << endl);777 DoLog(0) && (Log() << Verbose(0) << Walker->getName() << " with a length of " << RingSize << "." << endl << endl); 778 778 // walk through all and set MinimumRingSize 779 779 Walker = BFS.Root; … … 1233 1233 BFS.PredecessorList[OtherAtom->nr] = Walker; // Walker is the predecessor 1234 1234 BFS.ShortestPathList[OtherAtom->nr] = BFS.ShortestPathList[Walker->nr] + 1; 1235 DoLog(2) && (Log() << Verbose(2) << "Coloring OtherAtom " << OtherAtom-> Name << " " << ((BFS.ColorList[OtherAtom->nr] == white) ? "white" : "lightgray") << ", its predecessor is " << Walker->Name<< " and its Shortest Path is " << BFS.ShortestPathList[OtherAtom->nr] << " egde(s) long." << endl);1235 DoLog(2) && (Log() << Verbose(2) << "Coloring OtherAtom " << OtherAtom->getName() << " " << ((BFS.ColorList[OtherAtom->nr] == white) ? "white" : "lightgray") << ", its predecessor is " << Walker->getName() << " and its Shortest Path is " << BFS.ShortestPathList[OtherAtom->nr] << " egde(s) long." << endl); 1236 1236 if ((((BFS.ShortestPathList[OtherAtom->nr] < BFS.BondOrder) && (Binder != Bond)))) { // Check for maximum distance 1237 1237 DoLog(3) && (Log() << Verbose(3)); 1238 1238 if (AddedAtomList[OtherAtom->nr] == NULL) { // add if it's not been so far 1239 1239 AddedAtomList[OtherAtom->nr] = Mol->AddCopyAtom(OtherAtom); 1240 DoLog(0) && (Log() << Verbose(0) << "Added OtherAtom " << OtherAtom-> Name);1240 DoLog(0) && (Log() << Verbose(0) << "Added OtherAtom " << OtherAtom->getName()); 1241 1241 AddedBondList[Binder->nr] = Mol->CopyBond(AddedAtomList[Walker->nr], AddedAtomList[OtherAtom->nr], Binder); 1242 1242 DoLog(0) && (Log() << Verbose(0) << " and bond " << *(AddedBondList[Binder->nr]) << ", "); 1243 1243 } else { // this code should actually never come into play (all white atoms are not yet present in BondMolecule, that's why they are white in the first place) 1244 DoLog(0) && (Log() << Verbose(0) << "Not adding OtherAtom " << OtherAtom-> Name);1244 DoLog(0) && (Log() << Verbose(0) << "Not adding OtherAtom " << OtherAtom->getName()); 1245 1245 if (AddedBondList[Binder->nr] == NULL) { 1246 1246 AddedBondList[Binder->nr] = Mol->CopyBond(AddedAtomList[Walker->nr], AddedAtomList[OtherAtom->nr], Binder); … … 1322 1322 // followed by n+1 till top of stack. 1323 1323 Walker = BFS.BFSStack->PopFirst(); // pop oldest added 1324 DoLog(1) && (Log() << Verbose(1) << "Current Walker is: " << Walker-> Name<< ", and has " << Walker->ListOfBonds.size() << " bonds." << endl);1324 DoLog(1) && (Log() << Verbose(1) << "Current Walker is: " << Walker->getName() << ", and has " << Walker->ListOfBonds.size() << " bonds." << endl); 1325 1325 for (BondList::const_iterator Runner = Walker->ListOfBonds.begin(); Runner != Walker->ListOfBonds.end(); (++Runner)) { 1326 1326 if ((*Runner) != NULL) { // don't look at bond equal NULL 1327 1327 Binder = (*Runner); 1328 1328 OtherAtom = (*Runner)->GetOtherAtom(Walker); 1329 DoLog(2) && (Log() << Verbose(2) << "Current OtherAtom is: " << OtherAtom-> Name<< " for bond " << *(*Runner) << "." << endl);1329 DoLog(2) && (Log() << Verbose(2) << "Current OtherAtom is: " << OtherAtom->getName() << " for bond " << *(*Runner) << "." << endl); 1330 1330 if (BFS.ColorList[OtherAtom->nr] == white) { 1331 1331 BreadthFirstSearchAdd_UnvisitedNode(Mol, BFS, Walker, OtherAtom, Binder, Bond, AddedAtomList, AddedBondList, IsAngstroem); … … 1336 1336 } 1337 1337 BFS.ColorList[Walker->nr] = black; 1338 DoLog(1) && (Log() << Verbose(1) << "Coloring Walker " << Walker-> Name<< " black." << endl);1338 DoLog(1) && (Log() << Verbose(1) << "Coloring Walker " << Walker->getName() << " black." << endl); 1339 1339 } 1340 1340 BreadthFirstSearchAdd_Free(BFS); … … 1403 1403 OtherAtom = (*Runner)->GetOtherAtom(Walker); 1404 1404 if (ParentList[OtherAtom->nr] != NULL) { // if otheratom is also a father of an atom on this molecule, create the bond 1405 DoLog(4) && (Log() << Verbose(4) << "Endpoints of Bond " << (*Runner) << " are both present: " << ParentList[Walker->nr]-> Name << " and " << ParentList[OtherAtom->nr]->Name<< "." << endl);1405 DoLog(4) && (Log() << Verbose(4) << "Endpoints of Bond " << (*Runner) << " are both present: " << ParentList[Walker->nr]->getName() << " and " << ParentList[OtherAtom->nr]->getName() << "." << endl); 1406 1406 mol->AddBond(ParentList[Walker->nr], ParentList[OtherAtom->nr], (*Runner)->BondDegree); 1407 1407 } -
src/moleculelist.cpp
rbdedb1 r6d789df 677 677 while (Walker->next != (*ListRunner)->end) { 678 678 Walker = Walker->next; 679 DoLog(0) && (Log() << Verbose(0) << Walker-> Name<< " ");679 DoLog(0) && (Log() << Verbose(0) << Walker->getName() << " "); 680 680 } 681 681 DoLog(0) && (Log() << Verbose(0) << endl); -
src/parser.cpp
rbdedb1 r6d789df 32 32 if (input == NULL) { 33 33 if (!test) 34 DoLog(0) && (Log() << Verbose(0) << endl << " Unable to open " << filename << ", is the directory correct?" << endl);34 DoLog(0) && (Log() << Verbose(0) << endl << "FilePresent: Unable to open " << filename << ", is the directory correct?" << endl); 35 35 return false; 36 36 } … … 160 160 //Log() << Verbose(1) << "Opening " << name << " ... " << input << endl; 161 161 if (input == NULL) { 162 DoeLog(1) && (eLog()<< Verbose(1) << endl << " Unable to open " << name << ", is the directory correct?" << endl);162 DoeLog(1) && (eLog()<< Verbose(1) << endl << "MatrixContainer::ParseMatrix: Unable to open " << name << ", is the directory correct?" << endl); 163 163 //performCriticalExit(); 164 164 return false; … … 269 269 input.open(file.str().c_str(), ios::in); 270 270 if (input == NULL) { 271 DoLog(0) && (Log() << Verbose(0) << endl << " Unable to open " << file.str() << ", is the directory correct?" << endl);271 DoLog(0) && (Log() << Verbose(0) << endl << "MatrixContainer::ParseFragmentMatrix: Unable to open " << file.str() << ", is the directory correct?" << endl); 272 272 return false; 273 273 } … … 477 477 output.open(line.str().c_str(), ios::out); 478 478 if (output == NULL) { 479 DoeLog(0) && (eLog()<< Verbose(0) << " Unable to open output energy file " << line.str() << "!" << endl);479 DoeLog(0) && (eLog()<< Verbose(0) << "MatrixContainer::WriteTotalFragments: Unable to open output energy file " << line.str() << "!" << endl); 480 480 performCriticalExit(); 481 481 return false; … … 507 507 output.open(line.str().c_str(), ios::out); 508 508 if (output == NULL) { 509 DoeLog(0) && (eLog()<< Verbose(0) << " Unable to open output matrix file " << line.str() << "!" << endl);509 DoeLog(0) && (eLog()<< Verbose(0) << "MatrixContainer::WriteLastMatrix: Unable to open output matrix file " << line.str() << "!" << endl); 510 510 performCriticalExit(); 511 511 return false; … … 621 621 //Log() << Verbose(0) << "Opening " << line.str() << " ... " << input << endl; 622 622 if (input == NULL) { 623 DoLog(0) && (Log() << Verbose(0) << endl << " Unable to open " << line.str() << ", is the directory correct?" << endl);623 DoLog(0) && (Log() << Verbose(0) << endl << "ForceMatrix::ParseIndices: Unable to open " << line.str() << ", is the directory correct?" << endl); 624 624 return false; 625 625 } … … 700 700 input.open(file.str().c_str(), ios::in); 701 701 if (input == NULL) { 702 DoLog(0) && (Log() << Verbose(0) << endl << " Unable to open " << file.str() << ", is the directory correct?" << endl);702 DoLog(0) && (Log() << Verbose(0) << endl << "ForceMatrix::ParseFragmentMatrix: Unable to open " << file.str() << ", is the directory correct?" << endl); 703 703 return false; 704 704 } … … 759 759 //Log() << Verbose(0) << "Opening " << line.str() << " ... " << input << endl; 760 760 if (input == NULL) { 761 DoLog(0) && (Log() << Verbose(0) << endl << " Unable to open " << line.str() << ", is the directory correct?" << endl);761 DoLog(0) && (Log() << Verbose(0) << endl << "HessianMatrix::ParseIndices: Unable to open " << line.str() << ", is the directory correct?" << endl); 762 762 return false; 763 763 } … … 930 930 input.open(file.str().c_str(), ios::in); 931 931 if (input == NULL) { 932 DoLog(0) && (Log() << Verbose(0) << endl << " Unable to open " << file.str() << ", is the directory correct?" << endl);932 DoLog(0) && (Log() << Verbose(0) << endl << "HessianMatrix::ParseFragmentMatrix: Unable to open " << file.str() << ", is the directory correct?" << endl); 933 933 return false; 934 934 } … … 1014 1014 input.open(file.str().c_str(), ios::in); 1015 1015 if (input == NULL) { 1016 DoLog(0) && (Log() << Verbose(0) << endl << " Unable to open " << file.str() << ", is the directory correct?" << endl);1016 DoLog(0) && (Log() << Verbose(0) << endl << "KeySetsContainer::ParseKeySets: Unable to open " << file.str() << ", is the directory correct?" << endl); 1017 1017 return false; 1018 1018 } -
src/tesselation.cpp
rbdedb1 r6d789df 83 83 ostream & operator <<(ostream &ost, const BoundaryPointSet &a) 84 84 { 85 ost << "[" << a.Nr << "|" << a.node-> Name<< " at " << *a.node->node << "]";85 ost << "[" << a.Nr << "|" << a.node->getName() << " at " << *a.node->node << "]"; 86 86 return ost; 87 87 } … … 321 321 ostream & operator <<(ostream &ost, const BoundaryLineSet &a) 322 322 { 323 ost << "[" << a.Nr << "|" << a.endpoints[0]->node-> Name << " at " << *a.endpoints[0]->node->node << "," << a.endpoints[1]->node->Name<< " at " << *a.endpoints[1]->node->node << "]";323 ost << "[" << a.Nr << "|" << a.endpoints[0]->node->getName() << " at " << *a.endpoints[0]->node->node << "," << a.endpoints[1]->node->getName() << " at " << *a.endpoints[1]->node->node << "]"; 324 324 return ost; 325 325 } … … 688 688 ostream &operator <<(ostream &ost, const BoundaryTriangleSet &a) 689 689 { 690 ost << "[" << a.Nr << "|" << a.endpoints[0]->node-> Name << "," << a.endpoints[1]->node->Name << "," << a.endpoints[2]->node->Name<< "]";690 ost << "[" << a.Nr << "|" << a.endpoints[0]->node->getName() << "," << a.endpoints[1]->node->getName() << "," << a.endpoints[2]->node->getName() << "]"; 691 691 // ost << "[" << a.Nr << "|" << a.endpoints[0]->node->Name << " at " << *a.endpoints[0]->node->node << "," 692 692 // << a.endpoints[1]->node->Name << " at " << *a.endpoints[1]->node->node << "," << a.endpoints[2]->node->Name << " at " << *a.endpoints[2]->node->node << "]"; … … 948 948 ost << "[" << a.Nr << "|"; 949 949 for (PointSet::const_iterator Runner = a.endpoints.begin(); Runner != a.endpoints.end();) { 950 ost << (*Runner)->node-> Name;950 ost << (*Runner)->node->getName(); 951 951 Runner++; 952 952 if (Runner != a.endpoints.end()) … … 967 967 node = NULL; 968 968 nr = -1; 969 Name = NULL;970 969 } 971 970 ; … … 983 982 ostream & operator <<(ostream &ost, const TesselPoint &a) 984 983 { 985 ost << "[" << (a.Name) << "|" << a.Name << " at" << *a.node << "]";984 ost << "[" << a.getName() << "|" << *a.node << "]"; 986 985 return ost; 987 986 } … … 1135 1134 ostream & operator <<(ostream &ost, const CandidateForTesselation &a) 1136 1135 { 1137 ost << "[" << a.BaseLine->Nr << "|" << a.BaseLine->endpoints[0]->node-> Name << "," << a.BaseLine->endpoints[1]->node->Name<< "] with ";1136 ost << "[" << a.BaseLine->Nr << "|" << a.BaseLine->endpoints[0]->node->getName() << "," << a.BaseLine->endpoints[1]->node->getName() << "] with "; 1138 1137 if (a.pointlist.empty()) 1139 1138 ost << "no candidate."; … … 1348 1347 if (fabs(distance) < 1e-4) // we need to have a small epsilon around 0 which is still ok 1349 1348 continue; 1350 DoLog(2) && (Log() << Verbose(2) << "Projection of " << checker->second->node-> Name<< " yields distance of " << distance << "." << endl);1349 DoLog(2) && (Log() << Verbose(2) << "Projection of " << checker->second->node->getName() << " yields distance of " << distance << "." << endl); 1351 1350 tmp = distance / fabs(distance); 1352 1351 // 4b. Any have different sign to than before? (i.e. would lie outside convex hull with this starting triangle) 1353 1352 if ((sign != 0) && (tmp != sign)) { 1354 1353 // 4c. If so, break 4. loop and continue with next candidate in 1. loop 1355 DoLog(2) && (Log() << Verbose(2) << "Current candidates: " << A->second->node-> Name << "," << baseline->second.first->second->node->Name << "," << baseline->second.second->second->node->Name << " leaves " << checker->second->node->Name<< " outside the convex hull." << endl);1354 DoLog(2) && (Log() << Verbose(2) << "Current candidates: " << A->second->node->getName() << "," << baseline->second.first->second->node->getName() << "," << baseline->second.second->second->node->getName() << " leaves " << checker->second->node->getName() << " outside the convex hull." << endl); 1356 1355 break; 1357 1356 } else { // note the sign for later 1358 DoLog(2) && (Log() << Verbose(2) << "Current candidates: " << A->second->node-> Name << "," << baseline->second.first->second->node->Name << "," << baseline->second.second->second->node->Name << " leave " << checker->second->node->Name<< " inside the convex hull." << endl);1357 DoLog(2) && (Log() << Verbose(2) << "Current candidates: " << A->second->node->getName() << "," << baseline->second.first->second->node->getName() << "," << baseline->second.second->second->node->getName() << " leave " << checker->second->node->getName() << " inside the convex hull." << endl); 1359 1358 sign = tmp; 1360 1359 } … … 4292 4291 DoLog(2) && (Log() << Verbose(2) << "INFO: MiddleNode is " << **MiddleNode << "." << endl); 4293 4292 DoLog(2) && (Log() << Verbose(2) << "INFO: EndNode is " << **EndNode << "." << endl); 4294 DoLog(1) && (Log() << Verbose(1) << "INFO: Attempting to create triangle " << (*StartNode)-> Name << ", " << (*MiddleNode)->Name << " and " << (*EndNode)->Name<< "." << endl);4293 DoLog(1) && (Log() << Verbose(1) << "INFO: Attempting to create triangle " << (*StartNode)->getName() << ", " << (*MiddleNode)->getName() << " and " << (*EndNode)->getName() << "." << endl); 4295 4294 TriangleCandidates[0] = *StartNode; 4296 4295 TriangleCandidates[1] = *MiddleNode; … … 4714 4713 return; 4715 4714 } 4716 DoLog(0) && (Log() << Verbose(0) << "Nearest point on boundary is " << NearestPoint-> Name<< "." << endl);4715 DoLog(0) && (Log() << Verbose(0) << "Nearest point on boundary is " << NearestPoint->getName() << "." << endl); 4717 4716 4718 4717 // go through its lines and find the best one to split … … 4799 4798 ofstream *tempstream = NULL; 4800 4799 string NameofTempFile; 4801 char NumberName[255];4800 string NumberName; 4802 4801 4803 4802 if (LastTriangle != NULL) { 4804 sprintf(NumberName, "-%04d-%s_%s_%s", (int) TrianglesOnBoundary.size(), LastTriangle->endpoints[0]->node->Name, LastTriangle->endpoints[1]->node->Name, LastTriangle->endpoints[2]->node->Name); 4803 stringstream sstr; 4804 sstr << "-"<< TrianglesOnBoundary.size() << "-" << LastTriangle->endpoints[0]->node->getName() << "_" << LastTriangle->endpoints[1]->node->getName() << "_" << LastTriangle->endpoints[2]->node->getName(); 4805 NumberName = sstr.str(); 4805 4806 if (DoTecplotOutput) { 4806 4807 string NameofTempFile(filename); -
src/tesselationhelpers.cpp
rbdedb1 r6d789df 829 829 if (TesselStruct->LastTriangle != NULL) { 830 830 for (int i=0;i<3;i++) 831 *tecplot << (i==0 ? "" : "_") << TesselStruct->LastTriangle->endpoints[i]->node-> Name;831 *tecplot << (i==0 ? "" : "_") << TesselStruct->LastTriangle->endpoints[i]->node->getName(); 832 832 } else { 833 833 *tecplot << "none"; … … 852 852 DoLog(1) && (Log() << Verbose(1) << "The following triangles were created:" << endl); 853 853 for (TriangleMap::const_iterator runner = TesselStruct->TrianglesOnBoundary.begin(); runner != TesselStruct->TrianglesOnBoundary.end(); runner++) { 854 DoLog(1) && (Log() << Verbose(1) << " " << runner->second->endpoints[0]->node-> Name << "<->" << runner->second->endpoints[1]->node->Name << "<->" << runner->second->endpoints[2]->node->Name<< endl);854 DoLog(1) && (Log() << Verbose(1) << " " << runner->second->endpoints[0]->node->getName() << "<->" << runner->second->endpoints[1]->node->getName() << "<->" << runner->second->endpoints[2]->node->getName() << endl); 855 855 *tecplot << LookupList[runner->second->endpoints[0]->node->nr] << " " << LookupList[runner->second->endpoints[1]->node->nr] << " " << LookupList[runner->second->endpoints[2]->node->nr] << endl; 856 856 } -
src/unittests/LinkedCellUnitTest.cpp
rbdedb1 r6d789df 205 205 // check internal vectors, returns false, because this atom is not in LC-list! 206 206 Walker = World::getInstance().createAtom(); 207 Walker->Name = Malloc<char>(6, "LinkedCellTest::SetIndexToNodeTest - Walker"); 208 strcpy(Walker->Name, "test"); 207 Walker->setName("test"); 209 208 Walker->x= Vector(1,1,1); 210 209 CPPUNIT_ASSERT_EQUAL( false, LC->SetIndexToNode(Walker) ); … … 213 212 // check out of bounds vectors 214 213 Walker = World::getInstance().createAtom(); 215 Walker->Name = Malloc<char>(6, "LinkedCellTest::SetIndexToNodeTest - Walker"); 216 strcpy(Walker->Name, "test"); 214 Walker->setName("test"); 217 215 Walker->x = Vector(0,-1,0); 218 216 CPPUNIT_ASSERT_EQUAL( false, LC->SetIndexToNode(Walker) ); -
src/unittests/tesselation_boundarytriangleunittest.cpp
rbdedb1 r6d789df 37 37 tesselpoints[0] = new TesselPoint; 38 38 tesselpoints[0]->node = new Vector(0., 0., 0.); 39 tesselpoints[0]->Name = Malloc<char>(3, "TesselationBoundaryTriangleTest::setUp - *Name"); 40 strcpy(tesselpoints[0]->Name, "1"); 39 tesselpoints[0]->setName("1"); 41 40 tesselpoints[0]->nr = 1; 42 41 points[0] = new BoundaryPointSet(tesselpoints[0]); 43 42 tesselpoints[1] = new TesselPoint; 44 43 tesselpoints[1]->node = new Vector(0., 1., 0.); 45 tesselpoints[1]->Name = Malloc<char>(3, "TesselationBoundaryTriangleTest::setUp - *Name"); 46 strcpy(tesselpoints[1]->Name, "2"); 44 tesselpoints[1]->setName("2"); 47 45 tesselpoints[1]->nr = 2; 48 46 points[1] = new BoundaryPointSet(tesselpoints[1]); 49 47 tesselpoints[2] = new TesselPoint; 50 tesselpoints[2] ->node = new Vector(1., 0., 0.); 51 tesselpoints[2] ->Name = Malloc<char>(3, "TesselationBoundaryTriangleTest::setUp - *Name"); 52 strcpy(tesselpoints[2] ->Name, "3"); 53 tesselpoints[2] ->nr = 3; 48 tesselpoints[2]->node = new Vector(1., 0., 0.); 49 tesselpoints[2]->setName("3"); 50 tesselpoints[2]->nr = 3; 54 51 points[2] = new BoundaryPointSet(tesselpoints[2] ); 55 52 -
src/unittests/tesselation_insideoutsideunittest.cpp
rbdedb1 r6d789df 38 38 Walker = new TesselPoint; 39 39 Walker->node = new Vector(0., 0., 0.); 40 Walker->Name = Malloc<char>(3, "TesselationInOutsideTest::setUp - *Name"); 41 strcpy(Walker->Name, "1"); 40 Walker->setName("1"); 42 41 Walker->nr = 1; 43 42 Corners.push_back(Walker); 44 43 Walker = new TesselPoint; 45 44 Walker->node = new Vector(0., 1., 0.); 46 Walker->Name = Malloc<char>(3, "TesselationInOutsideTest::setUp - *Name"); 47 strcpy(Walker->Name, "2"); 45 Walker->setName("2"); 48 46 Walker->nr = 2; 49 47 Corners.push_back(Walker); 50 48 Walker = new TesselPoint; 51 49 Walker->node = new Vector(1., 0., 0.); 52 Walker->Name = Malloc<char>(3, "TesselationInOutsideTest::setUp - *Name"); 53 strcpy(Walker->Name, "3"); 50 Walker->setName("3"); 54 51 Walker->nr = 3; 55 52 Corners.push_back(Walker); 56 53 Walker = new TesselPoint; 57 54 Walker->node = new Vector(1., 1., 0.); 58 Walker->Name = Malloc<char>(3, "TesselationInOutsideTest::setUp - *Name"); 59 strcpy(Walker->Name, "4"); 55 Walker->setName("4"); 60 56 Walker->nr = 4; 61 57 Corners.push_back(Walker); 62 58 Walker = new TesselPoint; 63 59 Walker->node = new Vector(0., 0., 1.); 64 Walker->Name = Malloc<char>(3, "TesselationInOutsideTest::setUp - *Name"); 65 strcpy(Walker->Name, "5"); 60 Walker->setName("5"); 66 61 Walker->nr = 5; 67 62 Corners.push_back(Walker); 68 63 Walker = new TesselPoint; 69 64 Walker->node = new Vector(0., 1., 1.); 70 Walker->Name = Malloc<char>(3, "TesselationInOutsideTest::setUp - *Name"); 71 strcpy(Walker->Name, "6"); 65 Walker->setName("6"); 72 66 Walker->nr = 6; 73 67 Corners.push_back(Walker); 74 68 Walker = new TesselPoint; 75 69 Walker->node = new Vector(1., 0., 1.); 76 Walker->Name = Malloc<char>(3, "TesselationInOutsideTest::setUp - *Name"); 77 strcpy(Walker->Name, "7"); 70 Walker->setName("7"); 78 71 Walker->nr = 7; 79 72 Corners.push_back(Walker); 80 73 Walker = new TesselPoint; 81 74 Walker->node = new Vector(1., 1., 1.); 82 Walker->Name = Malloc<char>(3, "TesselationInOutsideTest::setUp - *Name"); 83 strcpy(Walker->Name, "8"); 75 Walker->setName("8"); 84 76 Walker->nr = 8; 85 77 Corners.push_back(Walker); -
src/unittests/tesselationunittest.cpp
rbdedb1 r6d789df 37 37 Walker = new TesselPoint; 38 38 Walker->node = new Vector(1., 0., -1.); 39 Walker->Name = Malloc<char>(3, "TesselationTest::setUp"); 40 strcpy(Walker->Name, "1"); 39 Walker->setName("1"); 41 40 Walker->nr = 1; 42 41 Corners.push_back(Walker); 43 42 Walker = new TesselPoint; 44 43 Walker->node = new Vector(-1., 1., -1.); 45 Walker->Name = Malloc<char>(3, "TesselationTest::setUp"); 46 strcpy(Walker->Name, "2"); 44 Walker->setName("2"); 47 45 Walker->nr = 2; 48 46 Corners.push_back(Walker); 49 47 Walker = new TesselPoint; 50 48 Walker->node = new Vector(-1., -1., -1.); 51 Walker->Name = Malloc<char>(3, "TesselationTest::setUp"); 52 strcpy(Walker->Name, "3"); 49 Walker->setName("3"); 53 50 Walker->nr = 3; 54 51 Corners.push_back(Walker); 55 52 Walker = new TesselPoint; 56 53 Walker->node = new Vector(-1., 0., 1.); 57 Walker->Name = Malloc<char>(3, "TesselationTest::setUp"); 58 strcpy(Walker->Name, "4"); 54 Walker->setName("4"); 59 55 Walker->nr = 4; 60 56 Corners.push_back(Walker);
Note:
See TracChangeset
for help on using the changeset viewer.