ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/utils/sysBuild.cpp
(Generate patch)

Comparing trunk/OOPSE/utils/sysBuild.cpp (file contents):
Revision 589 by chuckv, Thu Jul 10 19:53:50 2003 UTC vs.
Revision 598 by chuckv, Mon Jul 14 21:35:45 2003 UTC

# Line 1 | Line 1
1 +
2   #include <cstdlib>
3   #include <cstdio>
4   #include <cstring>
# Line 11 | Line 12
12  
13   #include "sysBuild.hpp"
14   #include "bilayerSys.hpp"
15 < //#include "nanoBuilder.hpp"
15 > #include "nanoBuilder.hpp"
16  
17   // this routine is defined in BASS_interface.cpp
18   extern void set_interface_stamps( MakeStamps* ms, Globals* g );
# Line 19 | Line 20 | extern void set_interface_stamps( MakeStamps* ms, Glob
20  
21   // case asignments
22   #define BILAYER 1
23 < #define NANO 2
23 > #define NANOPARTICLE 2
24  
25   char* program_name;
26   bassInfo bsInfo;
# Line 124 | Line 125 | int main( int argc, char* argv[]){
125            usage();
126          }
127        }
128 +      else if( !strcmp( argv[i], "--nanoparticle" ) ){
129 +        if( sysType > 0 ){
130 +            sprintf( painCave.errMsg,
131 +                     "You cannot specify more than one system to build.\n" );
132 +            painCave.isFatal = 0;
133 +            simError();
134 +            usage();
135 +          }
136 +
137 +          sysType = NANOPARTICLE;
138 +
139 +          i++;
140 +          if( i>=argc ){
141 +            sprintf( painCave.errMsg,
142 +                     "\n"
143 +                     "not enough arguments for nanoparticle\n");
144 +            painCave.isFatal = 0;
145 +            simError();
146 +            usage();
147 +          }      
148 +          strcpy( bsInfo.coreName, argv[i] );
149 +          
150 +          i++;
151 +          if( i>=argc ){
152 +            sprintf( painCave.errMsg,
153 +                     "\n"
154 +                     "not enough arguments for nanoparticle\n");
155 +            painCave.isFatal = 0;
156 +            simError();
157 +            usage();
158 +          }      
159 +          strcpy( bsInfo.shellName, argv[i] );
160 +
161 +        }
162 +
163 +        else{
164 +          sprintf( painCave.errMsg,
165 +                   "Invalid option \"%s\"\n", argv[i] );
166 +          painCave.isFatal = 0;
167 +          simError();
168 +          usage();
169 +        }
170 +      }
171        
172        else{
173          
# Line 445 | Line 489 | int main( int argc, char* argv[]){
489      break;
490  
491    case NANO:
492 <    // buildNano( isRandom );
492 >
493 >
494      break;
495  
496    default:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines