Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/config.cpp

    r389cc8 r36166d  
    10311031{
    10321032  bool result = true;
     1033  // bring MaxTypes up to date
     1034  mol->CountElements();
    10331035  const Matrix &domain = World::getInstance().getDomain().getM();
    10341036  ofstream * const output = new ofstream(filename, ios::out);
     
    11361138    *output << "IsAngstroem\t" << config::IsAngstroem << "\t# 0 - Bohr, 1 - Angstroem" << endl;
    11371139    *output << "RelativeCoord\t" << config::RelativeCoord << "\t# whether ion coordinates are relative (1) or absolute (0)" << endl;
    1138     *output << "MaxTypes\t" << mol->getElementCount() <<  "\t# maximum number of different ion types" << endl;
     1140    *output << "MaxTypes\t" << mol->ElementCount <<  "\t# maximum number of different ion types" << endl;
    11391141    *output << endl;
    11401142    result = result && mol->Checkout(output);
     
    15311533    mol->SetNameFromFilename(ConfigFileName);
    15321534    molecules->SimpleMultiMerge(mol, src, N);
     1535    mol->doCountAtoms();
     1536    mol->CountElements();
    15331537    //mol->CalculateOrbitals(*this);
    15341538    delete[](src);
Note: See TracChangeset for help on using the changeset viewer.