Changeset 0779a9 for molecuilder/src/builder.cpp
- Timestamp:
- Jun 13, 2008, 2:26:50 PM (17 years ago)
- Children:
- 1f9f1b
- Parents:
- 3f0c46
- File:
-
- 1 edited
-
molecuilder/src/builder.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/builder.cpp
r3f0c46 r0779a9 736 736 int ExitFlag = 0; 737 737 int j; 738 double volume = 0.; 738 739 enum ConfigStatus config_present = absent; 739 740 clock_t start,end; … … 987 988 VolumeOfConvexEnvelope((ofstream *)&cout, &configuration, NULL, mol); 988 989 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; 989 993 case 'u': 990 994 { 991 double tmp;995 double density; 992 996 ExitFlag = 1; 993 997 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) { 996 1000 cerr << Verbose(0) << "Density must be greater than 1.0g/cm^3 !" << endl; 997 tmp= 1.3;1001 density = 1.3; 998 1002 } 999 1003 // for(int i=0;i<NDIM;i++) { … … 1003 1007 // repetition[i] = 1; 1004 1008 // } 1005 PrepareClustersinWater((ofstream *)&cout, &configuration, mol, tmp);1009 PrepareClustersinWater((ofstream *)&cout, &configuration, mol, volume, density); 1006 1010 } 1007 1011 break;
Note:
See TracChangeset
for help on using the changeset viewer.
