source:
issm/oecreview/Archive/24684-25833/ISSM-25638-25639.diff@
25834
Last change on this file since 25834 was 25834, checked in by , 4 years ago | |
---|---|
File size: 3.3 KB |
-
../trunk-jpl/src/c/modules/QmuStatisticsx/QmuStatisticsx.cpp
173 173 174 174 /*figure out size of file, and read the whole thing:*/ 175 175 _printf0_(" reading file:\n"); 176 fseek 176 fseek(fid, 0, SEEK_END); 177 177 length = ftell (fid); 178 fseek 178 fseek(fid, 0, SEEK_SET); 179 179 buffer = xNew<char>(length); 180 fread 180 fread(buffer, sizeof(char), length, fid); 181 181 182 182 /*close file:*/ 183 fclose 183 fclose(fid); 184 184 185 185 /*create a memory stream with this buffer:*/ 186 186 _printf0_(" processing file:\n"); -
../trunk-jpl/m4/issm_options.m4
191 191 ) 192 192 193 193 AC_MSG_CHECKING([if this is a Mac build]) 194 MAC_FMEMOPEN=0 194 195 case "${host_os}" in 195 196 *darwin*) 196 197 IS_MAC=yes 198 if [[ $(system_profiler SPSoftwareDataType | $(which grep) "System Version:" | sed -e "s/[[:space:]]*System Version: macOS //" | cut -d "." -f 2) -ge 13 ]]; then 199 MAC_FMEMOPEN=yes 200 else 201 MAC_FMEMOPEN=no 202 fi 197 203 ;; 198 204 *) 199 205 IS_MAC=no … … 200 206 ;; 201 207 esac 202 208 AM_CONDITIONAL([MAC], [test "${IS_MAC}" == "yes"]) 209 AM_CONDITIONAL([MAC_FMEMOPEN], [test "${MAC_FMEMOPEN}" == "yes"]) 203 210 AC_MSG_RESULT([${IS_MAC}]) 204 211 205 212 IS_WINDOWS=no … … 2331 2338 AC_DEFINE([_HAVE_GMSH_], [1], [with Gmsh in ISSM src]) 2332 2339 2333 2340 AC_MSG_CHECKING(for Gmsh version) 2334 GMSH_VERSION_MAJOR=`${GMSH_ROOT}/bin/gmsh -info | grep "Version" | sed -e "s/Version@<:@@<:@:blank:@:>@@:>@*:@<:@@<:@:blank:@:>@@:>@//" | cut -d "." -f 1`2341 GMSH_VERSION_MAJOR=`${GMSH_ROOT}/bin/gmsh -info | grep "Version" | sed -e "s/Version@<:@@<:@:blank:@:>@@:>@*:@<:@@<:@:blank:@:>@@:>@//" | cut -d "." -f 1` 2335 2342 AC_MSG_RESULT([${GMSH_VERSION_MAJOR}]) 2336 2343 AC_DEFINE_UNQUOTED(_GMSH_VERSION_MAJOR_, $GMSH_VERSION_MAJOR, [Gmsh major version]) 2337 2344 fi -
../trunk-jpl/src/c/modules/QmuStatisticsx/QmuStatisticsx.h
6 6 7 7 #include "../../classes/classes.h" 8 8 9 #if MAC && !MAC_FMEMOPEN 10 #include "../../ext/fmemopen/fmemopen.h" 11 #endif 12 9 13 int ComputeMeanVariance(Parameters* parameters,Results* results,int color, ISSM_MPI_Comm statcomm); 10 14 int ComputeSampleSeries(Parameters* parameters,Results* results,int color, ISSM_MPI_Comm statcomm); 11 15 int OutputStatistics(Parameters* parameters,Results* results,int color,ISSM_MPI_Comm statcomm); -
../trunk-jpl/src/c/Makefile.am
20 20 #}}} 21 21 22 22 #Core sources 23 issm_sources = 24 25 #GLIBC sources {{{ 26 if MAC 27 if !MAC_FMEMOPEN 28 issm_sources += \ 29 ./ext/fmemopen/fmemopen.c 30 endif 31 endif 32 #}}} 33 23 34 #BAMG sources {{{ 24 issm_sources =25 35 if BAMG 26 36 issm_sources += \ 27 37 ./bamg/BamgGeom.cpp \
Note:
See TracBrowser
for help on using the repository browser.