Changeset d7b1bf


Ignore:
Timestamp:
Jun 23, 2008, 11:25:09 AM (17 years ago)
Author:
Frederik Heber <heber@…>
Children:
375dcf
Parents:
329d0f
Message:

ParseCommandLineOptions(): new option 'O' centers system at origin

Just calls CenterOrigin for the given molecule.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/builder.cpp

    r329d0f rd7b1bf  
    759759            cout << "\t-b x1 x2 x3\tCenter atoms in domain with given edge lengths of (x1,x2,x3)." << endl;
    760760            cout << "\t-c x1 x2 x3\tCenter atoms in domain with a minimum distance to boundary of (x1,x2,x3)." << endl;
     761            cout << "\t-O\tCenter atoms in origin." << endl;
    761762            cout << "\t-d x1 x2 x3\tDuplicate cell along each axis by given factor." << endl;
    762763            cout << "\t-e <file>\tSets the databases path to be parsed (default: ./)." << endl;
     
    951952              mol->Translate((const vector *)&x);
    952953              break;
     954            case 'O':
     955              ExitFlag = 1;
     956              cout << Verbose(1) << "Centering atoms in origin." << endl;
     957              mol->CenterOrigin((ofstream *)&cout, &x);
     958              mol->SetBoxDimension(&x);
     959              break;
    953960            case 'r':
    954961              ExitFlag = 1;
Note: See TracChangeset for help on using the changeset viewer.