Changeset ce1e39 for src/bin/mpqc/mpqc.cc
- Timestamp:
- Jul 10, 2012, 1:15:51 PM (13 years ago)
- Children:
- ab755a
- Parents:
- 52aacc
- git-author:
- Frederik Heber <heber@…> (07/08/12 19:56:08)
- git-committer:
- Frederik Heber <heber@…> (07/10/12 13:15:51)
- File:
-
- 1 edited
-
src/bin/mpqc/mpqc.cc (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/bin/mpqc/mpqc.cc
r52aacc rce1e39 1128 1128 } 1129 1129 1130 void Work(ostream *&outstream, struct OptionValues &values, const char *&input, const char *&generic_input, int argc, char **argv); 1131 1130 1132 int 1131 1133 try_main(int argc, char *argv[]) … … 1177 1179 parseRemainderOptions(options, values, argc, argv); 1178 1180 1179 // get the message group. first try the commandline and environment1180 Ref<MessageGrp> grp;1181 getMessageGroup(grp, argc, argv);1182 1183 1181 // get input file names, either object-oriented or generic 1184 1182 const char *object_input = 0; … … 1189 1187 if (generic_input) input = generic_input; 1190 1188 1189 // get the basename for output files 1190 setOutputBaseName(input, output); 1191 1192 // now comes the actual work 1193 Work(outstream, values, input, generic_input, argc, argv); 1194 1195 if (output != 0) { 1196 ExEnv::set_out(&cout); 1197 delete outstream; 1198 } 1199 1200 return 0; 1201 } 1202 1203 void Work(ostream *&outstream, struct OptionValues &values, const char *&input, const char *&generic_input, int argc, char **argv) 1204 { 1205 // get the message group. first try the commandline and environment 1206 Ref<MessageGrp> grp; 1207 getMessageGroup(grp, argc, argv); 1208 1191 1209 // parse input into keyvalue container 1192 1210 Ref<ParsedKeyVal> parsedkv; 1193 1211 parseInputfile(grp, parsedkv, values, input, generic_input); 1212 1213 // prefix parsed values wit "mpqc" 1194 1214 if (values.keyvalue) parsedkv->verbose(1); 1195 1215 Ref<KeyVal> keyval = new PrefixKeyVal(parsedkv.pointer(),"mpqc"); 1196 1197 // get the basename for output files1198 setOutputBaseName(input, output);1199 1216 1200 1217 // set up output classes … … 1487 1504 ExEnv::out0() << endl 1488 1505 << indent << scprintf("End Time: %s", tstr) << endl; 1489 1490 if (output != 0) {1491 ExEnv::set_out(&cout);1492 delete outstream;1493 }1494 1495 return 0;1496 1506 } 1497 1507
Note:
See TracChangeset
for help on using the changeset viewer.
