Changeset 25663


Ignore:
Timestamp:
10/08/20 20:18:25 (4 years ago)
Author:
jdquinn
Message:

BUG: Do not run Dakota statistics if fmemopen is not available

Location:
issm/trunk-jpl
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/m4/issm_options.m4

    r25662 r25663  
    209209        SYSTEM_FMEMOPEN="no"
    210210        if test "${IS_MAC}" == "yes"; then
    211                 AC_MSG_CHECKING([if system libc has fmemopen])
    212211                if [[ $(system_profiler SPSoftwareDataType | $(which grep) "System Version:" | sed -e "s/[[:space:]]*System Version: macOS //" | cut -d "." -f 2) -ge 13 ]]; then
    213212                        SYSTEM_FMEMOPEN="yes"
     213                        AC_DEFINE([_SYSTEM_FMEMOPEN_], [1], [does system libc have fmemopen])
    214214                fi
    215215        fi
    216216        AM_CONDITIONAL([SYSTEM_HAS_FMEMOPEN], [test "${SYSTEM_FMEMOPEN}" == "yes"])
    217         AC_MSG_RESULT([${SYSTEM_FMEMOPEN}])
    218217
    219218        IS_WINDOWS=no
  • issm/trunk-jpl/src/c/main/issm_dakota.cpp

    r25627 r25663  
    4141
    4242        /*Create directory structure for model outputs:*/
     43        #ifdef (_SYSTEM_FMEMOPEN_)
    4344        statistics=DakotaDirStructure(argc,argv);
     45        #endif
    4446
    4547        /* Parse input and construct Dakota LibraryEnvironment, performing input data checks*/
     
    8890
    8991        /* Run statistics if requested:*/
     92        #ifdef (_SYSTEM_FMEMOPEN_)
    9093        if(statistics)DakotaStatistics(argc,argv);
     94        #endif
    9195
    9296        /*free allocations:*/
     
    98102        return 0;
    99103        #else
    100         Cout <<  "ISSM Dakota  executable was compiled without support of Dakota! Will just return now!" << "\n";
     104        Cout <<  "ISSM Dakota executable was compiled without support of Dakota! Will just return now!" << "\n";
    101105        return 1;
    102106        #endif
Note: See TracChangeset for help on using the changeset viewer.