Changeset 14256
- Timestamp:
- 01/15/13 15:22:51 (12 years ago)
- Location:
- issm/trunk-jpl/src/m/os
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified issm/trunk-jpl/src/m/os/dakotaversion.m ¶
r14255 r14256 10 10 configfile=[issmdir() '/config.h']; 11 11 if ~exist(configfile,'file'), 12 error(['File ' configfile ' not found. Dakotahas not been configured yet!']);12 error(['File ' configfile ' not found. ISSM has not been configured yet!']); 13 13 end 14 14 -
TabularUnified issm/trunk-jpl/src/m/os/dakotaversion.py ¶
r14255 r14256 5 5 def dakotaversion(): 6 6 """ 7 DAKOTAVERSION - recover dakota version number, inside dakota_config.h file7 DAKOTAVERSION - recover dakota version number, inside config.h file 8 8 9 9 Usage: … … 16 16 configfile=os.path.join(issmdir(),'config.h') 17 17 if not os.path.exists(configfile): 18 raise RuntimeError("File '%s' not found. Dakotahas not been configured yet!" % configfile)18 raise RuntimeError("File '%s' not found. ISSM has not been configured yet!" % configfile) 19 19 20 20 #go through the file, and recover the line we want
Note:
See TracChangeset
for help on using the changeset viewer.