Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/moleculelist.cpp

    r6a7f78c r482373  
    402402  input.open(line.c_str());
    403403  if (input == NULL) {
    404     eLog() << Verbose(0) << endl << "Unable to open " << line << ", is the directory correct?" << endl;
    405     performCriticalExit();
     404    Log() << Verbose(1) << endl << "Unable to open " << line << ", is the directory correct?" << endl;
    406405    return false;
    407406  }
     
    760759  // 4a. create array of molecules to fill
    761760  const int MolCount = Subgraphs->next->Count();
    762   char number[MAXSTRINGSIZE];
    763761  molecule **molecules = Malloc<molecule *>(MolCount, "config::Load() - **molecules");
    764762  for (int i=0;i<MolCount;i++) {
    765763    molecules[i] = (molecule*) new molecule(mol->elemente);
    766764    molecules[i]->ActiveFlag = true;
    767     strncpy(molecules[i]->name, mol->name, MAXSTRINGSIZE);
    768     if (MolCount > 1) {
    769       sprintf(number, "-%d", i+1);
    770       strncat(molecules[i]->name, number, MAXSTRINGSIZE - strlen(mol->name) - 1);
    771     }
    772     cout << "MolName is " << molecules[i]->name << endl;
    773765    insert(molecules[i]);
    774766  }
     
    807799    }
    808800  }
    809   // 4d. we don't need to redo bonds, as they are connected subgraphs and still maintain their ListOfBonds, but we have to remove them from first..last list
     801  // 4d. we don't need to redo bonds, as they are connected subgraphs and still maintained their ListOfBonds, but we have to remove them from first..last list
    810802  bond *Binder = mol->first;
    811803  while (mol->first->next != mol->last) {
Note: See TracChangeset for help on using the changeset viewer.