Ignore:
Timestamp:
Apr 29, 2008, 7:04:59 AM (18 years ago)
Author:
Frederik Heber <heber@…>
Children:
2456db
Parents:
36b128
Message:

configname is also stored in config structure, GetDefaultPath by config::configpath replaced

This stores fragment and affiliated files in same dir as the config, regardless of therein contained paths and is safer and makes the tests work.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/moleculelist.cpp

    r36b128 r7b1cea  
    319319  for(int i=0;i<NumberOfMolecules;i++) {
    320320    //if (TEList[i] != 0) {
    321       strcpy(PathBackup, configuration->GetDefaultPath());
     321      strcpy(PathBackup, configuration->configpath);
    322322
    323323      // scan all atoms in the current molecule for their fathers and write each vertex index to forces file
     
    349349      sprintf(FragmentName, "%s/%s%s.conf", PathBackup, prefix, FragmentNumber);
    350350      outputFragment.open(FragmentName, ios::out);
    351       strcpy(PathBackup, configuration->GetDefaultPath());
     351      strcpy(PathBackup, configuration->configpath);
    352352      sprintf(FragmentName, "%s/%s%s/", PathBackup, prefix, FragmentNumber);
    353353     
     
    383383    }
    384384
    385   strcpy(PathBackup, configuration->GetDefaultPath());
     385  strcpy(PathBackup, configuration->configpath);
    386386  // open file for the total energy factor
    387387  sprintf(TEFilename, "%s/%s%s", PathBackup, prefix, TEFACTORSFILE);
Note: See TracChangeset for help on using the changeset viewer.