Changeset 01e6c5


Ignore:
Timestamp:
Sep 28, 2009, 6:43:02 PM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
4cbac2
Parents:
606dfb
Message:

Small fixes.

  • FIX: atom::~atom(): Name is free'd
  • config::Load(): MDSteps is set to 0 (switched off) if there is only one step
  • vectorunittest.cpp: includes sorted in alphabetical order
Location:
molecuilder/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/atom.cpp

    r606dfb r01e6c5  
    6161{
    6262  Free((void **)&ComponentNr, "atom::~atom: *ComponentNr");
     63  Free((void **)&Name, "atom::~atom: *Name");
    6364};
    6465
  • molecuilder/src/config.cpp

    r606dfb r01e6c5  
    10101010      repetition--;
    10111011      cout << "Found " << repetition << " trajectory steps." << endl;
    1012       mol->MDSteps = repetition;
     1012      if (repetition <= 1)  // if onyl one step, desactivate use of trajectories
     1013        mol->MDSteps = 0;
     1014      else
     1015        mol->MDSteps = repetition;
    10131016    } else {
    10141017      // find the maximum number of MD steps so that we may parse last one (Ion_Type1_1 must always be present, because is the first atom)
  • molecuilder/src/vectorunittest.cpp

    r606dfb r01e6c5  
    1313#include <cppunit/ui/text/TestRunner.h>
    1414
     15#include "defs.hpp"
     16#include "vector.hpp"
    1517#include "vectorunittest.hpp"
    16 #include "vector.hpp"
    17 #include "defs.hpp"
    1818
    1919/********************************************** Test classes **************************************/
Note: See TracChangeset for help on using the changeset viewer.