Ignore:
Timestamp:
Jan 27, 2010, 2:36:09 PM (16 years ago)
Author:
Tillmann Crueger <crueger@…>
Children:
dbd19f
Parents:
41182a (diff), 478683 (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 commit 'heber/Analysis_PairCorrelation' into MenuRefactoring

Conflicts:

molecuilder/src/unittests/Makefile.am

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/config.cpp

    r41182a rd34341  
    66
    77#include <stdio.h>
     8#include <cstring>
    89
    910#include "atom.hpp"
     
    2728    char number1[8];
    2829    char number2[8];
    29     char *dummy1, *dummy2;
     30    const char *dummy1, *dummy2;
    3031    //Log() << Verbose(0) << s1 << "  " << s2 << endl;
    3132    dummy1 = strchr(s1, '_')+sizeof(char)*5;  // go just after "Ion_Type"
     
    17891790  mol->SetNameFromFilename(ConfigFileName);
    17901791
    1791   if (!strcmp(configuration->configpath, configuration->GetDefaultPath())) {
     1792  if (!strcmp(configpath, GetDefaultPath())) {
    17921793    eLog() << Verbose(2) << "config is found under different path then stated in config file::defaultpath!" << endl;
    17931794  }
     
    18001801    strcpy(filename,"main_pcp_linux");
    18011802  Log() << Verbose(0) << "Saving as pdb input ";
    1802   if (configuration->SavePDB(filename, molecules))
     1803  if (SavePDB(filename, molecules))
    18031804    Log() << Verbose(0) << "done." << endl;
    18041805  else
     
    18111812    strcpy(filename,"main_pcp_linux");
    18121813  Log() << Verbose(0) << "Saving as tremolo data input ";
    1813   if (configuration->SaveTREMOLO(filename, molecules))
     1814  if (SaveTREMOLO(filename, molecules))
    18141815    Log() << Verbose(0) << "done." << endl;
    18151816  else
     
    18361837  Log() << Verbose(0) << "Storing configuration ... " << endl;
    18371838  // get correct valence orbitals
    1838   mol->CalculateOrbitals(*configuration);
    1839   configuration->InitMaxMinStopStep = configuration->MaxMinStopStep = configuration->MaxPsiDouble;
     1839  mol->CalculateOrbitals(*this);
     1840  InitMaxMinStopStep = MaxMinStopStep = MaxPsiDouble;
    18401841  if (ConfigFileName != NULL) { // test the file name
    18411842    strcpy(filename, ConfigFileName);
    18421843    output.open(filename, ios::trunc);
    1843   } else if (strlen(configuration->configname) != 0) {
    1844     strcpy(filename, configuration->configname);
    1845     output.open(configuration->configname, ios::trunc);
     1844  } else if (strlen(configname) != 0) {
     1845    strcpy(filename, configname);
     1846    output.open(configname, ios::trunc);
    18461847    } else {
    18471848      strcpy(filename, DEFAULTCONFIG);
     
    18511852  output.clear();
    18521853  Log() << Verbose(0) << "Saving of config file ";
    1853   if (configuration->Save(filename, periode, mol))
     1854  if (Save(filename, periode, mol))
    18541855    Log() << Verbose(0) << "successful." << endl;
    18551856  else
     
    18881889    strcpy(filename,"main_pcp_linux");
    18891890  Log() << Verbose(0) << "Saving as mpqc input ";
    1890   if (configuration->SaveMPQC(filename, mol))
     1891  if (SaveMPQC(filename, mol))
    18911892    Log() << Verbose(0) << "done." << endl;
    18921893  else
    18931894    Log() << Verbose(0) << "failed." << endl;
    18941895
    1895   if (!strcmp(configuration->configpath, configuration->GetDefaultPath())) {
     1896  if (!strcmp(configpath, GetDefaultPath())) {
    18961897    eLog() << Verbose(2) << "config is found under different path then stated in config file::defaultpath!" << endl;
    18971898  }
     
    22472248              }
    22482249              line++;
    2249             } while (dummy1 != NULL && (dummy1[0] == '#') || (dummy1[0] == '\n'));
     2250            } while ((dummy1 != NULL) && ((dummy1[0] == '#') || (dummy1[0] == '\n')));
    22502251            dummy = dummy1;
    22512252          } else { // simple int, strings or doubles start in the same line
Note: See TracChangeset for help on using the changeset viewer.