Ignore:
Timestamp:
Jun 13, 2008, 2:26:50 PM (17 years ago)
Author:
Frederik Heber <heber@…>
Children:
1f9f1b
Parents:
3f0c46
Message:

some mor changes to fine-tune the cluster generation.

Sadly, VolumeOfConvexEnvelope() is not robust/stable, with Ratio1.4-1/1800K/compundH.*.xyz no usable convex envelope was found but points were connected right through the cluster.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/builder.cpp

    r3f0c46 r0779a9  
    736736  int ExitFlag = 0;
    737737  int j;
     738  double volume = 0.;
    738739  enum ConfigStatus config_present = absent;
    739740  clock_t start,end;
     
    987988              VolumeOfConvexEnvelope((ofstream *)&cout, &configuration, NULL, mol);
    988989              break;
     990            case 'U':
     991              volume = atof(argv[argptr++]);
     992              cout << Verbose(0) << "Using " << volume << " angstrom^3 as the volume instead of convex envelope one's." << endl; 
    989993            case 'u':
    990994              {
    991                 double tmp;
     995                double density;
    992996                ExitFlag = 1;
    993997                cout << Verbose(0) << "Evaluating necessary cell volume for a cluster suspended in water.";
    994                 tmp = atof(argv[argptr++]);
    995                 if (tmp < 1.0) {
     998                density = atof(argv[argptr++]);
     999                if (density < 1.0) {
    9961000                  cerr << Verbose(0) << "Density must be greater than 1.0g/cm^3 !" << endl;
    997                   tmp = 1.3;
     1001                  density = 1.3;
    9981002                }
    9991003//                for(int i=0;i<NDIM;i++) {
     
    10031007//                  repetition[i] = 1;
    10041008//                }
    1005                 PrepareClustersinWater((ofstream *)&cout, &configuration, mol, tmp);
     1009                PrepareClustersinWater((ofstream *)&cout, &configuration, mol, volume, density);
    10061010              }
    10071011              break;
Note: See TracChangeset for help on using the changeset viewer.