source: issm/oecreview/Archive/13393-13976/ISSM-13618-13619.diff@ 14312

Last change on this file since 14312 was 13980, checked in by Mathieu Morlighem, 12 years ago

preparing oecreview for 13393-13976'

File size: 836 bytes
RevLine 
[13980]1Index: ../trunk-jpl/src/c/solutions/ProcessArguments.cpp
2===================================================================
3--- ../trunk-jpl/src/c/solutions/ProcessArguments.cpp (revision 13618)
4+++ ../trunk-jpl/src/c/solutions/ProcessArguments.cpp (revision 13619)
5@@ -18,11 +18,14 @@
6 char *rootpath = NULL;
7 char *rootpatharg = NULL;
8
9- *solution_type=StringToEnumx(argv[1]);
10+ /*Check input arguments*/
11 if(argc<2)_error_("Usage error: no solution requested");
12 if(argc<3)_error_("Usage error: missing execution directory");
13 if(argc<4)_error_("Usage error: missing model name");
14
15+ /*Get requested solution*/
16+ *solution_type=StringToEnumx(argv[1]);
17+
18 rootpatharg=argv[2];
19 if(strcmp(strstr(rootpatharg,"/"),"/")!=0){
20 rootpath = xNew<char>(strlen(rootpatharg)+2); sprintf(rootpath,"%s/",rootpatharg);
Note: See TracBrowser for help on using the repository browser.