Ignore:
Timestamp:
06/01/20 10:01:04 (5 years ago)
Author:
jdquinn
Message:

CHG: Moved Gmsh version setting to issm_options.m4 and IssmConfig.cpp because we do not rely on value of ISSM_DIR when testing binaries

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified issm/trunk-jpl/src/m/mesh/planet/gmsh/gmshplanet.m ΒΆ

    r24919 r24942  
    1616
    1717        % Get Gmsh version
    18         %
    19         % NOTE:
    20         % - The output of `gmsh -version` does not follow a consistent format
    21         %       across major versions.
    22         % - Under Gmsh 3.*, output of `gmsh -info` needs to be explicitly
    23         %       redirected to console in order to be grep'ped.
    24         % - May need to modify the regex supplied to `sed` for future Gmsh versions.
    25         %
    26         % TODO:
    27         % - Move this so we can retrieve like we do with
    28         %       `IssmConfig(_DAKOTA_VERSION_)`.
    29         %
    30         [status,gmshmajorversion]=system('gmsh -info 2>&1 | grep "Version" | sed -e "s/Version[[:blank:]]*:[[:blank:]]//" | cut -d "." -f1');
    31 
    32         gmshmajorversion=str2int(gmshmajorversion);
     18    gmshmajorversion = IssmConfig('_GMSH_VERSION_MAJOR_');
    3319
    3420        if ~ismember([3,4],gmshmajorversion),
Note: See TracChangeset for help on using the changeset viewer.