Changeset 15243


Ignore:
Timestamp:
06/12/13 09:50:56 (12 years ago)
Author:
jschierm
Message:

CHG: Updated dakotaversion() for change in variable name.

Location:
issm/trunk-jpl/src/m/os
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/os/dakotaversion.m

    r14256 r15243  
    2020        tline=fgets(fid);
    2121        if ~ischar(tline), break, end
    22         if  strncmp(tline,'#define DAKOTA_VERSION',22),
    23                 DAKOTA_VERSION=strtrim(strrep(tline(24:end),'"',''));
     22        if  strncmp(tline,'#define _DAKOTA_VERSION_',24),
     23                DAKOTA_VERSION=strtrim(strrep(tline(26:end),'"',''));
    2424        end
    2525end
  • issm/trunk-jpl/src/m/os/dakotaversion.py

    r14256 r15243  
    2525
    2626        for tline in fid:
    27                 if strncmp(tline,'#define DAKOTA_VERSION',22):
    28                         DAKOTA_VERSION=tline[23:].replace('"','').strip()
     27                if strncmp(tline,'#define _DAKOTA_VERSION_',24):
     28                        DAKOTA_VERSION=tline[25:].replace('"','').strip()
    2929                        break
    3030
Note: See TracChangeset for help on using the changeset viewer.