Changeset 15243
- Timestamp:
- 06/12/13 09:50:56 (12 years ago)
- Location:
- issm/trunk-jpl/src/m/os
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/os/dakotaversion.m
r14256 r15243 20 20 tline=fgets(fid); 21 21 if ~ischar(tline), break, end 22 if strncmp(tline,'#define DAKOTA_VERSION',22),23 DAKOTA_VERSION=strtrim(strrep(tline(2 4:end),'"',''));22 if strncmp(tline,'#define _DAKOTA_VERSION_',24), 23 DAKOTA_VERSION=strtrim(strrep(tline(26:end),'"','')); 24 24 end 25 25 end -
issm/trunk-jpl/src/m/os/dakotaversion.py
r14256 r15243 25 25 26 26 for tline in fid: 27 if strncmp(tline,'#define DAKOTA_VERSION',22):28 DAKOTA_VERSION=tline[2 3:].replace('"','').strip()27 if strncmp(tline,'#define _DAKOTA_VERSION_',24): 28 DAKOTA_VERSION=tline[25:].replace('"','').strip() 29 29 break 30 30
Note:
See TracChangeset
for help on using the changeset viewer.