Rev 17747 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 17747 | Rev 17770 | ||
---|---|---|---|
Line 279... | Line 279... | ||
279 | } |
279 | } |
280 | return; |
280 | return; |
281 | } |
281 | } |
282 | 282 | ||
283 | int main(int argc, char * argv[]){ |
283 | int main(int argc, char * argv[]){ |
284 | char * optstr = strdup(" |
284 | char * optstr = strdup("mMlcCwnesSvh"); |
285 | char * envoption=getenv("chemeq_option"); |
285 | char * envoption=getenv("chemeq_option"); |
286 | if (envoption==NULL) envoption=getenv("w_chemeq_option"); |
286 | if (envoption==NULL) envoption=getenv("w_chemeq_option"); |
287 | char * envinput =getenv("chemeq_input"); |
287 | char * envinput =getenv("chemeq_input"); |
288 | if (envinput==NULL) envinput=getenv("w_chemeq_input"); |
288 | if (envinput==NULL) envinput=getenv("w_chemeq_input"); |
289 | char asked[maxoption+1]=""; |
289 | char asked[maxoption+1]=""; |
Line 341... | Line 341... | ||
341 | case 'e': nooption=0; |
341 | case 'e': nooption=0; |
342 | result.cq->printelec(std::cout); std::cout << std::endl; |
342 | result.cq->printelec(std::cout); std::cout << std::endl; |
343 | break; |
343 | break; |
344 | case 's': nooption=0; |
344 | case 's': nooption=0; |
345 | result.cq->printspecies(std::cout); std::cout << std::endl; |
345 | result.cq->printspecies(std::cout); std::cout << std::endl; |
- | 346 | break; |
|
- | 347 | case 'S': nooption=0; |
|
- | 348 | result.cq->printcoeff(std::cout); std::cout << std::endl; |
|
346 | break; |
349 | break; |
347 | } |
350 | } |
348 | } |
351 | } |
349 | if (nooption){ |
352 | if (nooption){ |
350 | result.cq->printnorm(std::cout); std::cout << std::endl; |
353 | result.cq->printnorm(std::cout); std::cout << std::endl; |