Ignore:
Timestamp:
Oct 5, 2009, 4:05:53 PM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
58808e
Parents:
e1f6d7 (diff), bf497f (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'ConcaveHull' into ConvexHull

Conflicts:

.gitignore
molecuilder/src/Makefile.am
molecuilder/src/atom.cpp
molecuilder/src/tesselation.cpp

no serious overlaps, just a free Frees that were not present in ConcaveHull were MemoryAllocator class was added.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/builder.cpp

    • Property mode changed from 100755 to 100644
    re1f6d7 r8afe31  
    5353#include "ellipsoid.hpp"
    5454#include "helpers.hpp"
     55#include "memoryusageobserverunittest.hpp"
    5556#include "molecules.hpp"
    5657/********************************************* Subsubmenu routine ************************************/
     
    15581559                  delete(Subgraphs);
    15591560                  for (int i=0;i<FragmentCounter;i++)
    1560                     Free((void **)&ListOfLocalAtoms[FragmentCounter], "ParseCommandLineOptions: **ListOfLocalAtoms[]");
    1561                   Free((void **)&ListOfLocalAtoms, "ParseCommandLineOptions: ***ListOfLocalAtoms");
     1561                    Free(&ListOfLocalAtoms[FragmentCounter]);
     1562                  Free(&ListOfLocalAtoms);
    15621563                }
    15631564                delete(BackEdgeStack);
     
    20412042      delete(molecules); // also free's all molecules contained
    20422043      delete(periode);
    2043       return j;
     2044      cout << Verbose(0) <<  "Maximum of allocated memory: "
     2045        << MemoryUsageObserver::getInstance()->getMaximumUsedMemory() << endl;
     2046      cout << Verbose(0) <<  "Remaining non-freed memory: "
     2047        << MemoryUsageObserver::getInstance()->getUsedMemorySize() << endl;
     2048     return j;
    20442049      break;
    20452050    case 1:  // just for -v and -h options
    20462051      delete(molecules); // also free's all molecules contained
    20472052      delete(periode);
     2053      cout << Verbose(0) <<  "Maximum of allocated memory: "
     2054        << MemoryUsageObserver::getInstance()->getMaximumUsedMemory() << endl;
     2055      cout << Verbose(0) <<  "Remaining non-freed memory: "
     2056        << MemoryUsageObserver::getInstance()->getUsedMemorySize() << endl;
    20482057      return 0;
    20492058      break;
     
    21442153  delete(molecules); // also free's all molecules contained
    21452154  delete(periode);
     2155
     2156  cout << Verbose(0) <<  "Maximum of allocated memory: "
     2157    << MemoryUsageObserver::getInstance()->getMaximumUsedMemory() << endl;
     2158  cout << Verbose(0) <<  "Remaining non-freed memory: "
     2159    << MemoryUsageObserver::getInstance()->getUsedMemorySize() << endl;
     2160
    21462161  return (0);
    21472162}
Note: See TracChangeset for help on using the changeset viewer.