Ignore:
Timestamp:
Sep 11, 2008, 1:28:25 PM (17 years ago)
Author:
Frederik Heber <heber@…>
Children:
9070650
Parents:
909610
git-author:
Frederik Heber <heber@…> (09/09/08 15:29:58)
git-committer:
Frederik Heber <heber@…> (09/11/08 13:28:25)
Message:

Implemented molecule::LinearInterpolationBetweenConfiguration().

command line option "-L" with start and end step performs a linear interpolation between two atomic configurations. So far the mapping from initial atom labels to final labels is not yet finished, it is injective, but not yet minimal.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/builder.cpp

    r909610 r63b5c31  
    820820            cout << "\t-p <file>\tParse given xyz file and create raw config file from it." << endl;
    821821            cout << "\t-P <file>\tParse given forces file and append as an MD step to config file via Verlet." << endl;
     822            cout << "\t-L <step0> <step1> <prefix>\tStore a linear interpolation between two configurations <step0> and <step1> into single config files with prefix <prefix> and as Trajectories into the current config file." << endl;
    822823            cout << "\t-r\t\tConvert file from an old pcp syntax." << endl;
    823824            cout << "\t-t x1 x2 x3\tTranslate all atoms by this vector (x1,x2,x3)." << endl;
     
    989990              argptr+=1;
    990991              break;
     992            case 'L':
     993              ExitFlag = 1;
     994              SaveFlag = true;
     995              cout << Verbose(1) << "Linear interpolation between configuration " << argv[argptr] << " and " << argv[argptr+1] << "." << endl;
     996              if (!mol->LinearInterpolationBetweenConfiguration((ofstream *)&cout, atoi(argv[argptr]), atoi(argv[argptr+1]), argv[argptr+2], configuration))
     997                cout << Verbose(2) << "Could not store " << argv[argptr+2] << " files." << endl;
     998              else
     999                cout << Verbose(2) << "Steps created and " << argv[argptr+2] << " files stored." << endl;
     1000              argptr+=3;
     1001              break;
    9911002            case 'P':
    9921003              ExitFlag = 1;
Note: See TracChangeset for help on using the changeset viewer.