Changeset 1439
- Timestamp:
- 07/30/09 14:53:37 (16 years ago)
- Location:
- issm/trunk
- Files:
-
- 37 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/configure
r1378 r1439 579 579 PACKAGE_BUGREPORT='Eric Larour <eric.larour@jpl.nasa.gov>' 580 580 581 <<<<<<< .mine 582 ac_subst_vars='am__EXEEXT_FALSE 583 am__EXEEXT_TRUE 584 LTLIBOBJS 585 LIBOBJS 586 GRAPHICSLIB 587 FORTRANLIB 588 MATHLIB 589 BLACSLIB 590 BLACSINCL 591 MUMPSLIB 592 MUMPSINCL 593 PLAPACKLIB 594 PLAPACKINCL 595 MKLINCL 596 MKLLIB 597 BLASLAPACKINCL 598 BLASLAPACKLIB 599 SCALAPACKLIB 600 SLEPCLIB 601 SLEPCINCL 602 PETSCLIB 603 PETSCINCL 604 MPILIB 605 MPIINCL 606 METISLIB 607 METISINCL 608 DAKOTALIB 609 DAKOTAINCL 610 TRIANGLELIB 611 TRIANGLEINCL 612 LARGEARRAYS_FALSE 613 LARGEARRAYS_TRUE 614 MATLAB_MINOR 615 MATLAB_MAJOR 616 MATLAB_VERSION 617 MATLAB 618 MEXLINK 619 MEXLIB 620 MEXEXT 621 MEX 622 MATLABINCL 623 NOPARALLEL_FALSE 624 NOPARALLEL_TRUE 625 NOSERIAL_FALSE 626 NOSERIAL_TRUE 627 X_EXTRA_LIBS 628 X_LIBS 629 X_PRE_LIBS 630 X_CFLAGS 631 XMKMF 632 FLIBS 633 ac_ct_F77 634 FFLAGS 635 F77 636 am__fastdepCXX_FALSE 637 am__fastdepCXX_TRUE 638 CXXDEPMODE 639 ac_ct_CXX 640 CXXFLAGS 641 CXX 642 CPP 643 am__fastdepCC_FALSE 644 am__fastdepCC_TRUE 645 CCDEPMODE 646 AMDEPBACKSLASH 647 AMDEP_FALSE 648 AMDEP_TRUE 649 am__quote 650 am__include 651 DEPDIR 652 OBJEXT 653 EXEEXT 654 ac_ct_CC 655 CPPFLAGS 656 LDFLAGS 657 CFLAGS 658 CC 659 RANLIB 660 am__untar 661 am__tar 662 AMTAR 663 am__leading_dot 664 SET_MAKE 665 AWK 666 mkdir_p 667 MKDIR_P 668 INSTALL_STRIP_PROGRAM 669 STRIP 670 install_sh 671 MAKEINFO 672 AUTOHEADER 673 AUTOMAKE 674 AUTOCONF 675 ACLOCAL 676 VERSION 677 PACKAGE 678 CYGPATH_W 679 am__isrc 680 INSTALL_DATA 681 INSTALL_SCRIPT 682 INSTALL_PROGRAM 683 target_os 684 target_vendor 685 target_cpu 686 target 687 host_os 688 host_vendor 689 host_cpu 690 host 691 build_os 692 build_vendor 693 build_cpu 694 build 695 target_alias 696 host_alias 697 build_alias 698 LIBS 699 ECHO_T 700 ECHO_N 701 ECHO_C 702 DEFS 703 mandir 704 localedir 705 libdir 706 psdir 707 pdfdir 708 dvidir 709 htmldir 710 infodir 711 docdir 712 oldincludedir 713 includedir 714 localstatedir 715 sharedstatedir 716 sysconfdir 717 datadir 718 datarootdir 719 libexecdir 720 sbindir 721 bindir 722 program_transform_name 723 prefix 724 exec_prefix 725 PACKAGE_BUGREPORT 726 PACKAGE_STRING 727 PACKAGE_VERSION 728 PACKAGE_TARNAME 729 PACKAGE_NAME 730 ======= 581 731 ac_subst_vars='SHELL 732 >>>>>>> .r1435 582 733 PATH_SEPARATOR 583 734 PACKAGE_NAME … … 726 877 LTLIBOBJS' 727 878 ac_subst_files='' 879 <<<<<<< .mine 880 ac_user_opts=' 881 enable_option_checking 882 enable_dependency_tracking 883 with_x 884 enable_debugging 885 with_serial 886 with_parallel 887 with_matlab_dir 888 with_triangle_dir 889 with_dakota_dir 890 with_metis_dir 891 with_mpi_lib 892 with_mpi_include 893 with_petsc_dir 894 with_petsc_arch 895 with_slepc_dir 896 with_scalapack_dir 897 with_blas_lapack_dir 898 with_mkl_dir 899 with_plapack_dir 900 with_mumps_dir 901 with_blacs_dir 902 with_math_lib 903 with_fortran_lib 904 with_graphics_lib 905 with_vendor 906 ' 907 ======= 908 >>>>>>> .r1435 728 909 ac_precious_vars='build_alias 729 910 host_alias … … 734 915 LIBS 735 916 CPPFLAGS 917 CPP 736 918 CXX 737 919 CXXFLAGS … … 739 921 F77 740 922 FFLAGS 741 XMKMF 742 CPP' 923 XMKMF' 743 924 744 925 … … 1356 1537 --with-mumps-dir = DIR mumps root directory 1357 1538 --with-blacs-dir = DIR blacs root directory 1539 <<<<<<< .mine 1358 1540 --with-math-lib = otions 1359 1541 math options, for ex: "/usr/lib/libm.a 1360 1542 --with-fortran-lib = options 1361 1543 fortran options, for ex: "/usr/lib/gfortran.a 1544 --with-graphics-lib = options 1545 graphics options, for ex: "/usr/X11/lib/libX11.a 1546 --with-vendor = VENDOR vendor name, ex: intel 1547 ======= 1548 --with-math-lib = otions 1549 math options, for ex: "/usr/lib/libm.a 1550 --with-fortran-lib = options 1551 fortran options, for ex: "/usr/lib/gfortran.a 1552 >>>>>>> .r1435 1362 1553 1363 1554 Some influential environment variables: … … 1369 1560 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1370 1561 you have headers in a nonstandard directory <include dir> 1562 CPP C preprocessor 1371 1563 CXX C++ compiler command 1372 1564 CXXFLAGS C++ compiler flags … … 1374 1566 FFLAGS Fortran 77 compiler flags 1375 1567 XMKMF Path to xmkmf, Makefile generator for X Window System 1376 CPP C preprocessor1377 1568 1378 1569 Use these variables to override the choices made by `configure' or to help … … 1966 2157 NONENONEs,x,x, && 1967 2158 program_prefix=${target_alias}- 1968 am__api_version='1.1 0'2159 am__api_version='1.11' 1969 2160 1970 2161 # Find a good install program. We prefer a C program (faster), … … 2053 2244 sleep 1 2054 2245 echo timestamp > conftest.file 2246 # Reject unsafe characters in $srcdir or the absolute working directory 2247 # name. Accept space and tab only in the latter. 2248 am_lf=' 2249 ' 2250 case `pwd` in 2251 *[\\\"\#\$\&\'\`$am_lf]*) 2252 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5 2253 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;} 2254 { (exit 1); exit 1; }; };; 2255 esac 2256 case $srcdir in 2257 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2258 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5 2259 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;} 2260 { (exit 1); exit 1; }; };; 2261 esac 2262 2055 2263 # Do `set' in a subshell so we don't clobber the current shell's 2056 2264 # arguments. Must try -L first in case configure is actually a … … 2059 2267 # directory). 2060 2268 if ( 2061 set X `ls -Lt $srcdir/configureconftest.file 2> /dev/null`2269 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2062 2270 if test "$*" = "X"; then 2063 2271 # -L didn't work. 2064 set X `ls -t $srcdir/configureconftest.file`2272 set X `ls -t "$srcdir/configure" conftest.file` 2065 2273 fi 2066 2274 rm -f conftest.file … … 2109 2317 am_aux_dir=`cd $ac_aux_dir && pwd` 2110 2318 2111 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2319 if test x"${MISSING+set}" != xset; then 2320 case $am_aux_dir in 2321 *\ * | *\ *) 2322 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2323 *) 2324 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2325 esac 2326 fi 2112 2327 # Use eval to expand $SHELL 2113 2328 if eval "$MISSING --run true"; then … … 2119 2334 fi 2120 2335 2336 <<<<<<< .mine 2337 if test x"${install_sh}" != xset; then 2338 case $am_aux_dir in 2339 *\ * | *\ *) 2340 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2341 *) 2342 install_sh="\${SHELL} $am_aux_dir/install-sh" 2343 esac 2344 fi 2345 2346 # Installed binaries are usually stripped using `strip' when the user 2347 # run `make install-strip'. However `strip' might not be the right 2348 # tool to use in cross-compilation environments, therefore Automake 2349 # will honor the `STRIP' environment variable to overrule this program. 2350 if test "$cross_compiling" != no; then 2351 if test -n "$ac_tool_prefix"; then 2352 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2353 set dummy ${ac_tool_prefix}strip; ac_word=$2 2354 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2355 $as_echo_n "checking for $ac_word... " >&6; } 2356 if test "${ac_cv_prog_STRIP+set}" = set; then 2357 $as_echo_n "(cached) " >&6 2358 else 2359 if test -n "$STRIP"; then 2360 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2361 else 2362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2363 for as_dir in $PATH 2364 do 2365 IFS=$as_save_IFS 2366 test -z "$as_dir" && as_dir=. 2367 for ac_exec_ext in '' $ac_executable_extensions; do 2368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2369 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2370 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2371 break 2 2372 fi 2373 done 2374 done 2375 IFS=$as_save_IFS 2376 2377 fi 2378 fi 2379 STRIP=$ac_cv_prog_STRIP 2380 if test -n "$STRIP"; then 2381 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 2382 $as_echo "$STRIP" >&6; } 2383 else 2384 { $as_echo "$as_me:$LINENO: result: no" >&5 2385 $as_echo "no" >&6; } 2386 fi 2387 2388 2389 fi 2390 if test -z "$ac_cv_prog_STRIP"; then 2391 ac_ct_STRIP=$STRIP 2392 # Extract the first word of "strip", so it can be a program name with args. 2393 set dummy strip; ac_word=$2 2394 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2395 $as_echo_n "checking for $ac_word... " >&6; } 2396 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2397 $as_echo_n "(cached) " >&6 2398 else 2399 if test -n "$ac_ct_STRIP"; then 2400 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2401 else 2402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2403 for as_dir in $PATH 2404 do 2405 IFS=$as_save_IFS 2406 test -z "$as_dir" && as_dir=. 2407 for ac_exec_ext in '' $ac_executable_extensions; do 2408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2409 ac_cv_prog_ac_ct_STRIP="strip" 2410 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2411 break 2 2412 fi 2413 done 2414 done 2415 IFS=$as_save_IFS 2416 2417 fi 2418 fi 2419 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2420 if test -n "$ac_ct_STRIP"; then 2421 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2422 $as_echo "$ac_ct_STRIP" >&6; } 2423 else 2424 { $as_echo "$as_me:$LINENO: result: no" >&5 2425 $as_echo "no" >&6; } 2426 fi 2427 2428 if test "x$ac_ct_STRIP" = x; then 2429 STRIP=":" 2430 else 2431 case $cross_compiling:$ac_tool_warned in 2432 yes:) 2433 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2434 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2435 ac_tool_warned=yes ;; 2436 esac 2437 STRIP=$ac_ct_STRIP 2438 fi 2439 else 2440 STRIP="$ac_cv_prog_STRIP" 2441 fi 2442 2443 fi 2444 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2445 2446 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2447 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2448 ======= 2121 2449 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2122 2450 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } 2451 >>>>>>> .r1435 2123 2452 if test -z "$MKDIR_P"; then 2124 2453 if test "${ac_cv_path_mkdir+set}" = set; then … … 2300 2629 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2301 2630 2631 <<<<<<< .mine 2632 ======= 2302 2633 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2303 2634 … … 2406 2737 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2407 2738 2739 >>>>>>> .r1435 2408 2740 # We need awk for the "check" target. The system "awk" is bad on 2409 2741 # some platforms. … … 2520 2852 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2521 2853 if test -n "$ac_tool_prefix"; then 2854 <<<<<<< .mine 2855 for ac_prog in gcc icl 2856 ======= 2522 2857 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2523 2858 set dummy ${ac_tool_prefix}gcc; ac_word=$2 … … 2715 3050 if test -n "$ac_tool_prefix"; then 2716 3051 for ac_prog in cl.exe 3052 >>>>>>> .r1435 2717 3053 do 2718 3054 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. … … 2758 3094 if test -z "$CC"; then 2759 3095 ac_ct_CC=$CC 2760 for ac_prog in cl.exe3096 for ac_prog in gcc icl 2761 3097 do 2762 3098 # Extract the first word of "$ac_prog", so it can be a program name with args. … … 2815 3151 CC=$ac_ct_CC 2816 3152 fi 2817 fi2818 2819 3153 fi 2820 3154 … … 3440 3774 cat > confinc << 'END' 3441 3775 am__doit: 3442 @echo done3776 @echo this is the am__doit target 3443 3777 .PHONY: am__doit 3444 3778 END … … 3451 3785 # First try GNU make style include. 3452 3786 echo "include confinc" > confmf 3453 # We grep out `Entering directory' and `Leaving directory' 3454 # messages which can occur if `w' ends up in MAKEFLAGS. 3455 # In particular we don't look at `^make:' because GNU make might 3456 # be invoked under some other name (usually "gmake"), in which 3457 # case it prints its new name instead of `make'. 3458 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3459 am__include=include 3460 am__quote= 3461 _am_result=GNU 3462 fi 3787 # Ignore all kinds of additional output from `make'. 3788 case `$am_make -s -f confmf 2> /dev/null` in #( 3789 *the\ am__doit\ target*) 3790 am__include=include 3791 am__quote= 3792 _am_result=GNU 3793 ;; 3794 esac 3463 3795 # Now try BSD make style include. 3464 3796 if test "$am__include" = "#"; then 3465 3797 echo '.include "confinc"' > confmf 3466 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3467 am__include=.include 3468 am__quote="\"" 3469 _am_result=BSD 3470 fi 3798 case `$am_make -s -f confmf 2> /dev/null` in #( 3799 *the\ am__doit\ target*) 3800 am__include=.include 3801 am__quote="\"" 3802 _am_result=BSD 3803 ;; 3804 esac 3471 3805 fi 3472 3806 … … 3525 3859 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3526 3860 fi 3861 am__universal=false 3862 case " $depcc " in #( 3863 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3864 esac 3865 3527 3866 for depmode in $am_compiler_list; do 3528 3867 # Setup a source with many dependencies, because some compilers … … 3542 3881 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3543 3882 3883 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3884 # mode. It turns out that the SunPro C++ compiler does not properly 3885 # handle `-M -o', and we need to detect this. Also, some Intel 3886 # versions had trouble with output in subdirs 3887 am__obj=sub/conftest.${OBJEXT-o} 3888 am__minus_obj="-o $am__obj" 3544 3889 case $depmode in 3890 gcc) 3891 # This depmode causes a compiler race in universal mode. 3892 test "$am__universal" = false || continue 3893 ;; 3545 3894 nosideeffect) 3546 3895 # after this tag, mechanisms are not by side-effect, so they'll … … 3552 3901 fi 3553 3902 ;; 3903 msvisualcpp | msvcmsys) 3904 # This compiler won't grok `-c -o', but also, the minuso test has 3905 # not run yet. These depmodes are late enough in the game, and 3906 # so weak that their functioning should not be impacted. 3907 am__obj=conftest.${OBJEXT-o} 3908 am__minus_obj= 3909 ;; 3554 3910 none) break ;; 3555 3911 esac 3556 # We check with `-c' and `-o' for the sake of the "dashmstdout"3557 # mode. It turns out that the SunPro C++ compiler does not properly3558 # handle `-M -o', and we need to detect this.3559 3912 if depmode=$depmode \ 3560 source=sub/conftest.c object= sub/conftest.${OBJEXT-o}\3913 source=sub/conftest.c object=$am__obj \ 3561 3914 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3562 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o}sub/conftest.c \3915 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3563 3916 >/dev/null 2>conftest.err && 3564 3917 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3565 3918 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3566 grep sub/conftest.${OBJEXT-o}sub/conftest.Po > /dev/null 2>&1 &&3919 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3567 3920 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3568 3921 # icc doesn't choke on unknown options, it will just issue warnings … … 3603 3956 3604 3957 3958 ac_ext=c 3959 ac_cpp='$CPP $CPPFLAGS' 3960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3962 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3963 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3964 $as_echo_n "checking how to run the C preprocessor... " >&6; } 3965 # On Suns, sometimes $CPP names a directory. 3966 if test -n "$CPP" && test -d "$CPP"; then 3967 CPP= 3968 fi 3969 if test -z "$CPP"; then 3970 if test "${ac_cv_prog_CPP+set}" = set; then 3971 $as_echo_n "(cached) " >&6 3972 else 3973 # Double quotes because CPP needs to be expanded 3974 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3975 do 3976 ac_preproc_ok=false 3977 for ac_c_preproc_warn_flag in '' yes 3978 do 3979 # Use a header file that comes with gcc, so configuring glibc 3980 # with a fresh cross-compiler works. 3981 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3982 # <limits.h> exists even on freestanding compilers. 3983 # On the NeXT, cc -E runs the code through the compiler's parser, 3984 # not just through cpp. "Syntax error" is here to catch this case. 3985 cat >conftest.$ac_ext <<_ACEOF 3986 /* confdefs.h. */ 3987 _ACEOF 3988 cat confdefs.h >>conftest.$ac_ext 3989 cat >>conftest.$ac_ext <<_ACEOF 3990 /* end confdefs.h. */ 3991 #ifdef __STDC__ 3992 # include <limits.h> 3993 #else 3994 # include <assert.h> 3995 #endif 3996 Syntax error 3997 _ACEOF 3998 if { (ac_try="$ac_cpp conftest.$ac_ext" 3999 case "(($ac_try" in 4000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4001 *) ac_try_echo=$ac_try;; 4002 esac 4003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4004 $as_echo "$ac_try_echo") >&5 4005 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4006 ac_status=$? 4007 grep -v '^ *+' conftest.er1 >conftest.err 4008 rm -f conftest.er1 4009 cat conftest.err >&5 4010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4011 (exit $ac_status); } >/dev/null && { 4012 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4013 test ! -s conftest.err 4014 }; then 4015 : 4016 else 4017 $as_echo "$as_me: failed program was:" >&5 4018 sed 's/^/| /' conftest.$ac_ext >&5 4019 4020 # Broken: fails on valid input. 4021 continue 4022 fi 4023 4024 rm -f conftest.err conftest.$ac_ext 4025 4026 # OK, works on sane cases. Now check whether nonexistent headers 4027 # can be detected and how. 4028 cat >conftest.$ac_ext <<_ACEOF 4029 /* confdefs.h. */ 4030 _ACEOF 4031 cat confdefs.h >>conftest.$ac_ext 4032 cat >>conftest.$ac_ext <<_ACEOF 4033 /* end confdefs.h. */ 4034 #include <ac_nonexistent.h> 4035 _ACEOF 4036 if { (ac_try="$ac_cpp conftest.$ac_ext" 4037 case "(($ac_try" in 4038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4039 *) ac_try_echo=$ac_try;; 4040 esac 4041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4042 $as_echo "$ac_try_echo") >&5 4043 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4044 ac_status=$? 4045 grep -v '^ *+' conftest.er1 >conftest.err 4046 rm -f conftest.er1 4047 cat conftest.err >&5 4048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4049 (exit $ac_status); } >/dev/null && { 4050 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4051 test ! -s conftest.err 4052 }; then 4053 # Broken: success on invalid input. 4054 continue 4055 else 4056 $as_echo "$as_me: failed program was:" >&5 4057 sed 's/^/| /' conftest.$ac_ext >&5 4058 4059 # Passes both tests. 4060 ac_preproc_ok=: 4061 break 4062 fi 4063 4064 rm -f conftest.err conftest.$ac_ext 4065 4066 done 4067 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4068 rm -f conftest.err conftest.$ac_ext 4069 if $ac_preproc_ok; then 4070 break 4071 fi 4072 4073 done 4074 ac_cv_prog_CPP=$CPP 4075 4076 fi 4077 CPP=$ac_cv_prog_CPP 4078 else 4079 ac_cv_prog_CPP=$CPP 4080 fi 4081 { $as_echo "$as_me:$LINENO: result: $CPP" >&5 4082 $as_echo "$CPP" >&6; } 4083 ac_preproc_ok=false 4084 for ac_c_preproc_warn_flag in '' yes 4085 do 4086 # Use a header file that comes with gcc, so configuring glibc 4087 # with a fresh cross-compiler works. 4088 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4089 # <limits.h> exists even on freestanding compilers. 4090 # On the NeXT, cc -E runs the code through the compiler's parser, 4091 # not just through cpp. "Syntax error" is here to catch this case. 4092 cat >conftest.$ac_ext <<_ACEOF 4093 /* confdefs.h. */ 4094 _ACEOF 4095 cat confdefs.h >>conftest.$ac_ext 4096 cat >>conftest.$ac_ext <<_ACEOF 4097 /* end confdefs.h. */ 4098 #ifdef __STDC__ 4099 # include <limits.h> 4100 #else 4101 # include <assert.h> 4102 #endif 4103 Syntax error 4104 _ACEOF 4105 if { (ac_try="$ac_cpp conftest.$ac_ext" 4106 case "(($ac_try" in 4107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4108 *) ac_try_echo=$ac_try;; 4109 esac 4110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4111 $as_echo "$ac_try_echo") >&5 4112 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4113 ac_status=$? 4114 grep -v '^ *+' conftest.er1 >conftest.err 4115 rm -f conftest.er1 4116 cat conftest.err >&5 4117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4118 (exit $ac_status); } >/dev/null && { 4119 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4120 test ! -s conftest.err 4121 }; then 4122 : 4123 else 4124 $as_echo "$as_me: failed program was:" >&5 4125 sed 's/^/| /' conftest.$ac_ext >&5 4126 4127 # Broken: fails on valid input. 4128 continue 4129 fi 4130 4131 rm -f conftest.err conftest.$ac_ext 4132 4133 # OK, works on sane cases. Now check whether nonexistent headers 4134 # can be detected and how. 4135 cat >conftest.$ac_ext <<_ACEOF 4136 /* confdefs.h. */ 4137 _ACEOF 4138 cat confdefs.h >>conftest.$ac_ext 4139 cat >>conftest.$ac_ext <<_ACEOF 4140 /* end confdefs.h. */ 4141 #include <ac_nonexistent.h> 4142 _ACEOF 4143 if { (ac_try="$ac_cpp conftest.$ac_ext" 4144 case "(($ac_try" in 4145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4146 *) ac_try_echo=$ac_try;; 4147 esac 4148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4149 $as_echo "$ac_try_echo") >&5 4150 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4151 ac_status=$? 4152 grep -v '^ *+' conftest.er1 >conftest.err 4153 rm -f conftest.er1 4154 cat conftest.err >&5 4155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4156 (exit $ac_status); } >/dev/null && { 4157 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4158 test ! -s conftest.err 4159 }; then 4160 # Broken: success on invalid input. 4161 continue 4162 else 4163 $as_echo "$as_me: failed program was:" >&5 4164 sed 's/^/| /' conftest.$ac_ext >&5 4165 4166 # Passes both tests. 4167 ac_preproc_ok=: 4168 break 4169 fi 4170 4171 rm -f conftest.err conftest.$ac_ext 4172 4173 done 4174 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4175 rm -f conftest.err conftest.$ac_ext 4176 if $ac_preproc_ok; then 4177 : 4178 else 4179 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 4180 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4181 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4182 See \`config.log' for more details." >&5 4183 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4184 See \`config.log' for more details." >&2;} 4185 { (exit 1); exit 1; }; }; } 4186 fi 4187 4188 ac_ext=c 4189 ac_cpp='$CPP $CPPFLAGS' 4190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4192 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4193 3605 4194 ac_ext=cpp 3606 4195 ac_cpp='$CXXCPP $CPPFLAGS' … … 3613 4202 else 3614 4203 if test -n "$ac_tool_prefix"; then 3615 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC4204 for ac_prog in g++ icl 3616 4205 do 3617 4206 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. … … 3657 4246 if test -z "$CXX"; then 3658 4247 ac_ct_CXX=$CXX 3659 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC4248 for ac_prog in g++ icl 3660 4249 do 3661 4250 # Extract the first word of "$ac_prog", so it can be a program name with args. … … 3997 4586 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3998 4587 fi 4588 am__universal=false 4589 case " $depcc " in #( 4590 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4591 esac 4592 3999 4593 for depmode in $am_compiler_list; do 4000 4594 # Setup a source with many dependencies, because some compilers … … 4014 4608 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4015 4609 4610 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4611 # mode. It turns out that the SunPro C++ compiler does not properly 4612 # handle `-M -o', and we need to detect this. Also, some Intel 4613 # versions had trouble with output in subdirs 4614 am__obj=sub/conftest.${OBJEXT-o} 4615 am__minus_obj="-o $am__obj" 4016 4616 case $depmode in 4617 gcc) 4618 # This depmode causes a compiler race in universal mode. 4619 test "$am__universal" = false || continue 4620 ;; 4017 4621 nosideeffect) 4018 4622 # after this tag, mechanisms are not by side-effect, so they'll … … 4024 4628 fi 4025 4629 ;; 4630 msvisualcpp | msvcmsys) 4631 # This compiler won't grok `-c -o', but also, the minuso test has 4632 # not run yet. These depmodes are late enough in the game, and 4633 # so weak that their functioning should not be impacted. 4634 am__obj=conftest.${OBJEXT-o} 4635 am__minus_obj= 4636 ;; 4026 4637 none) break ;; 4027 4638 esac 4028 # We check with `-c' and `-o' for the sake of the "dashmstdout"4029 # mode. It turns out that the SunPro C++ compiler does not properly4030 # handle `-M -o', and we need to detect this.4031 4639 if depmode=$depmode \ 4032 source=sub/conftest.c object= sub/conftest.${OBJEXT-o}\4640 source=sub/conftest.c object=$am__obj \ 4033 4641 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4034 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o}sub/conftest.c \4642 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4035 4643 >/dev/null 2>conftest.err && 4036 4644 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4037 4645 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4038 grep sub/conftest.${OBJEXT-o}sub/conftest.Po > /dev/null 2>&1 &&4646 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4039 4647 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4040 4648 # icc doesn't choke on unknown options, it will just issue warnings … … 4080 4688 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 4081 4689 if test -n "$ac_tool_prefix"; then 4082 for ac_prog in ifort g77 4690 for ac_prog in ifort g77 gfortran 4083 4691 do 4084 4692 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. … … 4124 4732 if test -z "$F77"; then 4125 4733 ac_ct_F77=$F77 4126 for ac_prog in ifort g77 4734 for ac_prog in ifort g77 gfortran 4127 4735 do 4128 4736 # Extract the first word of "$ac_prog", so it can be a program name with args. … … 4787 5395 4788 5396 5397 <<<<<<< .mine 5398 ======= 4789 5399 ac_ext=c 4790 5400 ac_cpp='$CPP $CPPFLAGS' … … 4847 5457 echo "$as_me: failed program was:" >&5 4848 5458 sed 's/^/| /' conftest.$ac_ext >&5 4849 5459 >>>>>>> .r1435 5460 5461 <<<<<<< .mine 5462 ======= 4850 5463 # Broken: fails on valid input. 4851 5464 continue … … 5018 5631 5019 5632 5633 >>>>>>> .r1435 5020 5634 { echo "$as_me:$LINENO: checking for X" >&5 5021 5635 echo $ECHO_N "checking for X... $ECHO_C" >&6; } … … 6507 7121 HAVE_MATLAB=yes 6508 7122 MATLABINCL=-I"$MATLAB_ROOT/extern/include"; 6509 MEXEXT=`$MATLAB_ROOT/bin/mexext` 6510 MEXEXT=".$MEXEXT" 7123 6511 7124 MEX=$MATLAB_ROOT/bin/mex 6512 7125 … … 6521 7134 MEXLINK="-pthread -shared -W2,--version-script,${MATLAB_ROOT}/extern/lib/glnx86/mexFunction.map"; 6522 7135 fi 7136 MEXEXT=`$MATLAB_ROOT/bin/mexext` 7137 MEXEXT=".$MEXEXT" 6523 7138 ;; 7139 <<<<<<< .mine 7140 *darwin9.6.0*) 7141 MEXLIB=-L"$MATLAB_ROOT/bin/maci/ -lmex -lmx" 7142 MEXLINK="-Wl,-twolevel_namespace -undefined error -arch i386 -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5 -bundle -Wl,-exported_symbols_list,$MATLAB_ROOT/extern/lib/maci/mexFunction.map" 7143 MEXEXT=`$MATLAB_ROOT/bin/mexext` 7144 MEXEXT=".$MEXEXT" 7145 ;; 7146 *cygwin*) 7147 MEXLIB="-dll -export:mexFunction -LIBPATH:\"$MATLAB_ROOT\extern\lib\win32\microsoft\" libmx.lib libmex.lib libmat.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib -NOLOGO -INCREMENTAL:NO" 7148 7149 7150 MEXEXT=`$MATLAB_ROOT/bin/mexext.bat` 7151 MEXEXT=".$MEXEXT" 7152 ;; 7153 7154 ======= 6524 7155 *darwin9.6.0*) 6525 7156 MEXLIB=-L"$MATLAB_ROOT/bin/maci/ -lmex -lmx" … … 6527 7158 ;; 6528 7159 7160 >>>>>>> .r1435 6529 7161 esac 6530 7162 … … 6590 7222 break 6591 7223 fi 7224 7225 # For Matlab R2008 and more, the version number is stored in bin/util/mex/version.txt 7226 ax_cv_matlab_version=`cat $MATLAB/bin/util/mex/version.txt` 7227 if test -n "$ax_cv_matlab_version" ; then 7228 break 7229 fi 7230 6592 7231 fi 6593 7232 done … … 6609 7248 MATLAB_MINOR=`echo $MATLAB_VERSION | sed -e 's/^[0-9]*\.\([0-9]*\).*/\1/'` 6610 7249 ;; 7250 R2009a) 7251 MATLAB_VERSION=R2009a 7252 MATLAB_MAJOR=R2009 7253 MATLAB_MINOR=a 7254 ;; 6611 7255 *) 6612 7256 if test x$ax_enable_matlab = xyes ; then … … 6745 7389 6746 7390 HAVE_METIS=yes 7391 7392 case "${host_os}" in 7393 *cygwin*) 7394 METISLIB="-LIBPATH:\"$METIS_ROOT\" libmetis.lib" 7395 ;; 7396 *linux*) 7397 METISLIB=-L"$METIS_ROOT/ -lmetis" 7398 ;; 7399 *darwin9.6.0*) 7400 METISLIB=-L"$METIS_ROOT/ -lmetis" 7401 ;; 7402 esac 7403 6747 7404 METISINCL=-I"$METIS_ROOT/Lib" 6748 METISLIB=-L"$METIS_ROOT/ -lmetis"6749 7405 6750 7406 … … 6790 7446 if test -z "$MPILIB" ; then 6791 7447 if test "$PARALLEL_VALUE" = "yes" ; then 7448 <<<<<<< .mine 7449 { { $as_echo "$as_me:$LINENO: error: empty --with-mpi-lib options! MPI is needed to run ISSM in paralle!" >&5 7450 $as_echo "$as_me: error: empty --with-mpi-lib options! MPI is needed to run ISSM in paralle!" >&2;} 7451 ======= 6792 7452 { { echo "$as_me:$LINENO: error: empty --with-mpi-lib options! MPI is needed to run ISSM in paralle!" >&5 6793 7453 echo "$as_me: error: empty --with-mpi-lib options! MPI is needed to run ISSM in paralle!" >&2;} 7454 >>>>>>> .r1435 6794 7455 { (exit 1); exit 1; }; } 6795 7456 fi … … 6797 7458 if test -z "$MPI_INCLUDE" ; then 6798 7459 if test "$PARALLEL_VALUE" = "yes" ; then 7460 <<<<<<< .mine 7461 { { $as_echo "$as_me:$LINENO: error: empty --with-mpi-include directory! MPI is needed to run ISSM in paralle!" >&5 7462 $as_echo "$as_me: error: empty --with-mpi-include directory! MPI is needed to run ISSM in paralle!" >&2;} 7463 ======= 6799 7464 { { echo "$as_me:$LINENO: error: empty --with-mpi-include directory! MPI is needed to run ISSM in paralle!" >&5 6800 7465 echo "$as_me: error: empty --with-mpi-include directory! MPI is needed to run ISSM in paralle!" >&2;} 7466 >>>>>>> .r1435 6801 7467 { (exit 1); exit 1; }; } 6802 7468 fi … … 6864 7530 6865 7531 PETSCINCL="-I$PETSC_ROOT/include -I$PETSC_ROOT/ -I$PETSC_ROOT/bmake/$PETSC_ARCH -I$PETSC_ROOT/src/mat/impls/dense/mpi/plapack/" 6866 PETSCLIB="-L$PETSC_ROOT/lib/$PETSC_ARCH -lpetscksp -lpetscdm -lpetscmat -lpetscvec -lpetsc -lpetscsnes -lpetscts" 7532 7533 case "${host_os}" in 7534 *cygwin*) 7535 PETSCLIB="-link -LIBPATH:\"$PETSC_ROOT/lib/$PETSC_ARCH\" libpetscksp.lib libpetscdm.lib libpetscmat.lib libpetscvec.lib libpetsc.lib libpetscsnes.lib libpetscts.lib libmpiuni.lib" 7536 ;; 7537 *linux*) 7538 PETSCLIB="-L$PETSC_ROOT/lib/$PETSC_ARCH -lpetscksp -lpetscdm -lpetscmat -lpetscvec -lpetsc -lpetscsnes -lpetscts" 7539 ;; 7540 *darwin9.6.0*) 7541 PETSCLIB="-L$PETSC_ROOT/lib/$PETSC_ARCH -lpetscksp -lpetscdm -lpetscmat -lpetscvec -lpetsc -lpetscsnes -lpetscts" 7542 ;; 7543 esac 6867 7544 6868 7545 … … 6885 7562 6886 7563 if test $HAVE_PETSC = no; then 7564 <<<<<<< .mine 7565 { { $as_echo "$as_me:$LINENO: error: could not find petsc. user should specify --with-petsc-dir and --with-petsc-arch options. Petsc is needed to run ISSM!" >&5 7566 $as_echo "$as_me: error: could not find petsc. user should specify --with-petsc-dir and --with-petsc-arch options. Petsc is needed to run ISSM!" >&2;} 7567 ======= 6887 7568 if test "$PARALLEL_VALUE" = "yes" ; then 6888 7569 { { echo "$as_me:$LINENO: error: could not find petsc. user should specify --with-petsc-dir and --with-petsc-arch options. Petsc is needed to run ISSM in paralle!" >&5 6889 7570 echo "$as_me: error: could not find petsc. user should specify --with-petsc-dir and --with-petsc-arch options. Petsc is needed to run ISSM in paralle!" >&2;} 7571 >>>>>>> .r1435 6890 7572 { (exit 1); exit 1; }; } 6891 fi6892 7573 else 6893 7574 { echo "$as_me:$LINENO: result: $HAVE_PETSC" >&5 6894 7575 echo "${ECHO_T}$HAVE_PETSC" >&6; } 7576 fi 7577 7578 if test "$PARALLEL_VALUE" = "no" ; then 7579 HAVE_MPI=yes 7580 MPIINCL=-I"$PETSC_ROOT/include/mpiuni" 7581 7582 case "${host_os}" in 7583 *cygwin*) 7584 MPILIB="-link -LIBPATH:\"$PETSC_ROOT/lib/$PETSC_ARCH\" libmpiuni.lib" 7585 ;; 7586 *linux*) 7587 MPILIB="-L$PETSC_ROOT/lib/$PETSC_ARCH -lmpiuni" 7588 ;; 7589 *darwin9.6.0*) 7590 MPILIB="-L$PETSC_ROOT/lib/$PETSC_ARCH -lmpiuni" 7591 ;; 7592 esac 7593 7594 7595 7596 7597 7598 cat >>confdefs.h <<\_ACEOF 7599 #define _HAVE_MPI_ 1 7600 _ACEOF 7601 7602 7603 cat >>confdefs.h <<\_ACEOF 7604 #define HAVE_MPI 1 7605 _ACEOF 7606 7607 7608 6895 7609 fi 6896 7610 … … 6972 7686 HAVE_BLASLAPACK=yes 6973 7687 BLASLAPACKINCL="" 6974 BLASLAPACKLIB=-L"$BLASLAPACK_ROOT -lfblas -lflapack" 7688 7689 case "${host_os}" in 7690 *cygwin*) 7691 BLASLAPACKLIB="-link -LIBPATH:\"$BLASLAPACK_ROOT\" libf2cblas.lib libf2clapack.lib" 7692 ;; 7693 *linux*) 7694 BLASLAPACKLIB=-L"$BLASLAPACK_ROOT -lfblas -lflapack" 7695 ;; 7696 *darwin9.6.0*) 7697 BLASLAPACKLIB=-L"$BLASLAPACK_ROOT -lfblas -lflapack" 7698 ;; 7699 esac 7700 7701 6975 7702 6976 7703 … … 7108 7835 echo "${ECHO_T}$HAVE_BLACS" >&6; } 7109 7836 7837 <<<<<<< .mine 7838 { $as_echo "$as_me:$LINENO: checking for math library..." >&5 7839 $as_echo_n "checking for math library...... " >&6; } 7840 ======= 7110 7841 { echo "$as_me:$LINENO: checking for math library..." >&5 7111 7842 echo $ECHO_N "checking for math library...... $ECHO_C" >&6; } 7843 >>>>>>> .r1435 7112 7844 7113 7845 # Check whether --with-math-lib was given. … … 7123 7855 MATHLIB="$MATH_LIB" 7124 7856 7857 <<<<<<< .mine 7858 7859 cat >>confdefs.h <<\_ACEOF 7860 #define _HAVE_MATH_ 1 7861 _ACEOF 7862 7863 7864 fi 7865 { $as_echo "$as_me:$LINENO: result: done" >&5 7866 $as_echo "done" >&6; } 7867 7868 { $as_echo "$as_me:$LINENO: checking for fortran library..." >&5 7869 $as_echo_n "checking for fortran library...... " >&6; } 7870 7871 # Check whether --with-fortran-lib was given. 7872 if test "${with_fortran_lib+set}" = set; then 7873 withval=$with_fortran_lib; FORTRAN_LIB=$withval 7874 else 7875 FORTRAN_LIB="" 7876 fi 7877 7878 7879 if test -n "$FORTRAN_LIB" ; then 7880 HAVE_FORTRAN=yes 7881 FORTRANLIB="$FORTRAN_LIB" 7882 7883 7884 cat >>confdefs.h <<\_ACEOF 7885 #define _HAVE_FORTRAN_ 1 7886 _ACEOF 7887 7888 7889 fi 7890 { $as_echo "$as_me:$LINENO: result: done" >&5 7891 $as_echo "done" >&6; } 7892 7893 { $as_echo "$as_me:$LINENO: checking for graphics library..." >&5 7894 $as_echo_n "checking for graphics library...... " >&6; } 7895 7896 # Check whether --with-graphics-lib was given. 7897 if test "${with_graphics_lib+set}" = set; then 7898 withval=$with_graphics_lib; GRAPHICS_LIB=$withval 7899 else 7900 GRAPHICS_LIB="" 7901 fi 7902 7903 7904 if test -n "$GRAPHICS_LIB" ; then 7905 HAVE_GRAPHICS=yes 7906 GRAPHICSLIB="$GRAPHICS_LIB" 7907 7908 7909 cat >>confdefs.h <<\_ACEOF 7910 #define _HAVE_GRAPHICS_ 1 7911 _ACEOF 7912 7913 7914 fi 7915 { $as_echo "$as_me:$LINENO: result: done" >&5 7916 $as_echo "done" >&6; } 7917 7918 7919 # Check whether --with-vendor was given. 7920 if test "${with_vendor+set}" = set; then 7921 withval=$with_vendor; VENDOR=$withval 7922 else 7923 VENDOR="" 7924 fi 7925 7926 { $as_echo "$as_me:$LINENO: checking for vendor compilers " >&5 7927 $as_echo_n "checking for vendor compilers ... " >&6; } 7928 if test -n "$VENDOR"; then 7929 7930 if test $VENDOR = intel; then 7931 export CC=icl 7932 export CXX=icl 7933 export CXXFLAGS="-DWIN32 -D_INTEL_" 7934 else 7935 { { $as_echo "$as_me:$LINENO: error: unknow compiler vendor!" >&5 7936 $as_echo "$as_me: error: unknow compiler vendor!" >&2;} 7937 { (exit 1); exit 1; }; } 7938 fi 7939 fi 7940 7941 7942 ======= 7125 7943 7126 7944 cat >>confdefs.h <<\_ACEOF … … 7159 7977 7160 7978 7979 >>>>>>> .r1435 7161 7980 ac_config_files="$ac_config_files Makefile src/Makefile src/c/Makefile src/mex/Makefile bin/Makefile" 7162 7981 … … 7256 8075 LTLIBOBJS=$ac_ltlibobjs 7257 8076 8077 8078 if test -n "$EXEEXT"; then 8079 am__EXEEXT_TRUE= 8080 am__EXEEXT_FALSE='#' 8081 else 8082 am__EXEEXT_TRUE='#' 8083 am__EXEEXT_FALSE= 8084 fi 7258 8085 7259 8086 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then … … 8466 9293 8467 9294 case $ac_file$ac_mode in 9295 <<<<<<< .mine 9296 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 9297 # Autoconf 2.62 quotes --file arguments for eval, but not when files 9298 # are listed without --file. Let's play safe and only enable the eval 9299 # if we detect the quoting. 9300 case $CONFIG_FILES in 9301 *\'*) eval set x "$CONFIG_FILES" ;; 9302 *) set x $CONFIG_FILES ;; 9303 esac 9304 shift 9305 for mf 9306 do 9307 # Strip MF so we end up with the name of the file. 9308 mf=`echo "$mf" | sed -e 's/:.*$//'` 9309 # Check whether this is an Automake generated Makefile or not. 9310 # We used to match only the files named `Makefile.in', but 9311 # some people rename them; so instead we look at the file content. 9312 # Grep'ing the first line is not enough: some people post-process 9313 # each Makefile.in and add a new line on top of each file to say so. 9314 # Grep'ing the whole file is not good either: AIX grep has a line 9315 # limit of 2048, but all sed's we know have understand at least 4000. 9316 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 9317 dirpart=`$as_dirname -- "$mf" || 9318 ======= 8468 9319 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 8469 9320 # Strip MF so we end up with the name of the file. … … 8478 9329 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then 8479 9330 dirpart=`$as_dirname -- "$mf" || 9331 >>>>>>> .r1435 8480 9332 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 8481 9333 X"$mf" : 'X\(//\)[^/]' \| \ … … 8500 9352 } 8501 9353 s/.*/./; q'` 8502 else8503 continue8504 fi8505 # Extract the definition of DEPDIR, am__include, and am__quote8506 # from the Makefile without running `make'.8507 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`8508 test -z "$DEPDIR" && continue8509 am__include=`sed -n 's/^am__include = //p' < "$mf"`8510 test -z "am__include" && continue8511 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`8512 # When using ansi2knr, U may be empty or an underscore; expand it8513 U=`sed -n 's/^U = //p' < "$mf"`8514 # Find all dependency output files, they are included files with8515 # $(DEPDIR) in their names. We invoke sed twice because it is the8516 # simplest approach to changing $(DEPDIR) to its actual value in the8517 # expansion.8518 for file in `sed -n "8519 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \8520 8521 # Make sure the directory exists.8522 test -f "$dirpart/$file" && continue8523 fdir=`$as_dirname -- "$file" ||9354 else 9355 continue 9356 fi 9357 # Extract the definition of DEPDIR, am__include, and am__quote 9358 # from the Makefile without running `make'. 9359 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 9360 test -z "$DEPDIR" && continue 9361 am__include=`sed -n 's/^am__include = //p' < "$mf"` 9362 test -z "am__include" && continue 9363 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 9364 # When using ansi2knr, U may be empty or an underscore; expand it 9365 U=`sed -n 's/^U = //p' < "$mf"` 9366 # Find all dependency output files, they are included files with 9367 # $(DEPDIR) in their names. We invoke sed twice because it is the 9368 # simplest approach to changing $(DEPDIR) to its actual value in the 9369 # expansion. 9370 for file in `sed -n " 9371 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 9372 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 9373 # Make sure the directory exists. 9374 test -f "$dirpart/$file" && continue 9375 fdir=`$as_dirname -- "$file" || 8524 9376 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 8525 9377 X"$file" : 'X\(//\)[^/]' \| \ … … 8544 9396 } 8545 9397 s/.*/./; q'` 8546 { as_dir=$dirpart/$fdir9398 { as_dir=$dirpart/$fdir 8547 9399 case $as_dir in #( 8548 9400 -*) as_dir=./$as_dir;; … … 8585 9437 echo "$as_me: error: cannot create directory $as_dir" >&2;} 8586 9438 { (exit 1); exit 1; }; }; } 8587 # echo "creating $dirpart/$file" 8588 echo '# dummy' > "$dirpart/$file" 9439 # echo "creating $dirpart/$file" 9440 echo '# dummy' > "$dirpart/$file" 9441 done 8589 9442 done 8590 done 9443 } 8591 9444 ;; 8592 9445 -
issm/trunk/configure.ac
r1 r1439 4 4 AM_INIT_AUTOMAKE 5 5 AC_PROG_RANLIB 6 AC_PROG_CC 7 AC_PROG_CXX 8 AC_PROG_F77([ifort g77]) 6 AC_PROG_CC([gcc icl]) 7 AC_PROG_CPP 8 AC_PROG_CXX([g++ icl]) 9 AC_PROG_F77([ifort g77 gfortran]) 9 10 AC_F77_LIBRARY_LDFLAGS 10 11 AM_PROG_CC_C_O -
issm/trunk/etc/environment.csh
r1351 r1439 86 86 setenv AUTOMAKE_DIR 87 87 setenv PATH {$PATH}:{$AUTOMAKE_DIR}/bin 88 89 #BORLAND 90 setenv BORLAND_DIR 91 setenv PATH {$PATH}:{$BORLAND_DIR}/Bin 92 -
issm/trunk/etc/environment.sh
r1351 r1439 89 89 PATH="$PATH:$AUTOMAKE_DIR/bin" 90 90 91 #BORLAND 92 export BORLAND_DIR 93 PATH="$PATH:$BORLAND_DIR/Bin" 91 94 95 #INTEL 96 export INTEL_DIR 97 PATH="$PATH:$INTEL_DIR" 98 99 #SDK 100 export SDK_DIR 101 PATH="$PATH:$SDK_DIR" -
issm/trunk/etc/environment_variables.csh
r1362 r1439 63 63 #autoconf 64 64 set AUTOCONF_DIR={$ISSM_DIR}/devpackages/autoconf/install 65 66 #borland 67 set BORLAND_DIR=/cygdrive/c/Borland -
issm/trunk/etc/environment_variables.sh
r1362 r1439 7 7 8 8 #MATLAB 9 MATLAB_DIR= /usr/local/pkgs/matlab-7.6/9 MATLAB_DIR=C:/MATLAB/R2009a/ 10 10 11 11 #MPI … … 71 71 #autoconf 72 72 AUTOCONF_DIR="$ISSM_DIR/devpackages/autoconf/install" 73 74 #borland 75 #BORLAND_DIR="/cygdrive/c/Borland/" 76 77 #intel 78 INTEL_DIR="C:/IntelInstall/Compiler/11.1/038/bin/ia32/" 79 80 #sdk 81 SDK_DIR="C:/MicrosoftVisualStudio 9.0/Microsoft Visual C++ 2008 Express Edition with SP1 - ENU" 82 -
issm/trunk/m4/issm_options.m4
r1382 r1439 51 51 MATLABINCL=-I"$MATLAB_ROOT/extern/include"; 52 52 dnl use matlab provided mexext routine to test for extension 53 MEXEXT=`$MATLAB_ROOT/bin/mexext` 54 MEXEXT=".$MEXEXT" 53 55 54 MEX=$MATLAB_ROOT/bin/mex 56 55 … … 66 65 MEXLINK="-pthread -shared -W2,--version-script,${MATLAB_ROOT}/extern/lib/glnx86/mexFunction.map"; 67 66 fi 67 MEXEXT=`$MATLAB_ROOT/bin/mexext` 68 MEXEXT=".$MEXEXT" 68 69 ;; 69 70 *darwin9.6.0*) 70 71 MEXLIB=-L"$MATLAB_ROOT/bin/maci/ -lmex -lmx" 71 72 MEXLINK="-Wl,-twolevel_namespace -undefined error -arch i386 -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5 -bundle -Wl,-exported_symbols_list,$MATLAB_ROOT/extern/lib/maci/mexFunction.map" 73 MEXEXT=`$MATLAB_ROOT/bin/mexext` 74 MEXEXT=".$MEXEXT" 75 ;; 76 *cygwin*) 77 MEXLIB="-dll -export:mexFunction -LIBPATH:\"$MATLAB_ROOT\extern\lib\win32\microsoft\" libmx.lib libmex.lib libmat.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib -NOLOGO -INCREMENTAL:NO" 78 79 80 MEXEXT=`$MATLAB_ROOT/bin/mexext.bat` 81 MEXEXT=".$MEXEXT" 72 82 ;; 73 83 … … 176 186 dnl defaults 177 187 HAVE_METIS=yes 188 189 case "${host_os}" in 190 *cygwin*) 191 METISLIB="-LIBPATH:\"$METIS_ROOT\" libmetis.lib" 192 ;; 193 *linux*) 194 METISLIB=-L"$METIS_ROOT/ -lmetis" 195 ;; 196 *darwin9.6.0*) 197 METISLIB=-L"$METIS_ROOT/ -lmetis" 198 ;; 199 esac 200 178 201 METISINCL=-I"$METIS_ROOT/Lib" 179 METISLIB=-L"$METIS_ROOT/ -lmetis"180 202 181 203 AC_DEFINE([_HAVE_METIS_],[1],[with Metis in ISSM src]) … … 256 278 257 279 PETSCINCL="-I$PETSC_ROOT/include -I$PETSC_ROOT/ -I$PETSC_ROOT/bmake/$PETSC_ARCH -I$PETSC_ROOT/src/mat/impls/dense/mpi/plapack/" 258 PETSCLIB="-L$PETSC_ROOT/lib/$PETSC_ARCH -lpetscksp -lpetscdm -lpetscmat -lpetscvec -lpetsc -lpetscsnes -lpetscts" 280 281 case "${host_os}" in 282 *cygwin*) 283 PETSCLIB="-link -LIBPATH:\"$PETSC_ROOT/lib/$PETSC_ARCH\" libpetscksp.lib libpetscdm.lib libpetscmat.lib libpetscvec.lib libpetsc.lib libpetscsnes.lib libpetscts.lib libmpiuni.lib" 284 ;; 285 *linux*) 286 PETSCLIB="-L$PETSC_ROOT/lib/$PETSC_ARCH -lpetscksp -lpetscdm -lpetscmat -lpetscvec -lpetsc -lpetscsnes -lpetscts" 287 ;; 288 *darwin9.6.0*) 289 PETSCLIB="-L$PETSC_ROOT/lib/$PETSC_ARCH -lpetscksp -lpetscdm -lpetscmat -lpetscvec -lpetsc -lpetscsnes -lpetscts" 290 ;; 291 esac 259 292 260 293 … … 273 306 274 307 if test $HAVE_PETSC = no; then 275 if test "$PARALLEL_VALUE" = "yes" ; then 276 AC_MSG_ERROR([could not find petsc. user should specify --with-petsc-dir and --with-petsc-arch options. Petsc is needed to run ISSM in paralle!]) 277 fi 308 AC_MSG_ERROR([could not find petsc. user should specify --with-petsc-dir and --with-petsc-arch options. Petsc is needed to run ISSM!]) 278 309 else 279 310 AC_MSG_RESULT($HAVE_PETSC) 280 311 fi 281 312 313 dnl: when running in serial mode, MPI must be ignored, and set to internal petsc mpiuni: 314 if test "$PARALLEL_VALUE" = "no" ; then 315 HAVE_MPI=yes 316 MPIINCL=-I"$PETSC_ROOT/include/mpiuni" 317 318 case "${host_os}" in 319 *cygwin*) 320 MPILIB="-link -LIBPATH:\"$PETSC_ROOT/lib/$PETSC_ARCH\" libmpiuni.lib" 321 ;; 322 *linux*) 323 MPILIB="-L$PETSC_ROOT/lib/$PETSC_ARCH -lmpiuni" 324 ;; 325 *darwin9.6.0*) 326 MPILIB="-L$PETSC_ROOT/lib/$PETSC_ARCH -lmpiuni" 327 ;; 328 esac 329 330 331 332 333 AC_DEFINE([_HAVE_MPI_],[1],[with Mpi in ISSM src]) 334 AC_DEFINE([HAVE_MPI],[1],[with Mpi in ISSM src]) 335 AC_SUBST([MPIINCL]) 336 AC_SUBST([MPILIB]) 337 fi 338 282 339 283 340 dnl Slepc directory … … 338 395 HAVE_BLASLAPACK=yes 339 396 BLASLAPACKINCL="" 340 dnl BLASLAPACKLIB=-L"$BLASLAPACK_ROOT -lmkl_lapack -lmkl -lguide" 341 BLASLAPACKLIB=-L"$BLASLAPACK_ROOT -lfblas -lflapack" 397 398 dnl: branch on whether we are running on windows or linux. 399 case "${host_os}" in 400 *cygwin*) 401 BLASLAPACKLIB="-link -LIBPATH:\"$BLASLAPACK_ROOT\" libf2cblas.lib libf2clapack.lib" 402 ;; 403 *linux*) 404 BLASLAPACKLIB=-L"$BLASLAPACK_ROOT -lfblas -lflapack" 405 ;; 406 *darwin9.6.0*) 407 BLASLAPACKLIB=-L"$BLASLAPACK_ROOT -lfblas -lflapack" 408 ;; 409 esac 410 411 342 412 343 413 AC_DEFINE([_HAVE_BLASLAPACK_],[1],[with blas lapack in ISSM src]) … … 489 559 AC_MSG_RESULT(done) 490 560 561 dnl vendor? 562 AC_ARG_WITH([vendor], 563 AS_HELP_STRING([--with-vendor = VENDOR], [vendor name, ex: intel]), 564 [VENDOR=$withval],[VENDOR=""]) 565 AC_MSG_CHECKING(for vendor compilers ) 566 if test -n "$VENDOR"; then 567 568 if test $VENDOR = intel; then 569 export CC=icl 570 export CXX=icl 571 export CXXFLAGS="-DWIN32 -D_INTEL_" 572 else 573 AC_MSG_ERROR([unknow compiler vendor!]) 574 fi 575 fi 576 491 577 ]) -
issm/trunk/m4/matlab.m4
r1 r1439 289 289 break 290 290 fi 291 292 # For Matlab R2008 and more, the version number is stored in bin/util/mex/version.txt 293 ax_cv_matlab_version=`cat $MATLAB/bin/util/mex/version.txt` 294 if test -n "$ax_cv_matlab_version" ; then 295 break 296 fi 297 291 298 fi 292 299 done … … 305 312 MATLAB_MINOR=`echo $MATLAB_VERSION | sed -e 's/^@<:@0-9@:>@*\.\(@<:@0-9@:>@*\).*/\1/'` 306 313 ;; 314 R2009a) 315 MATLAB_VERSION=R2009a 316 MATLAB_MAJOR=R2009 317 MATLAB_MINOR=a 318 ;; 307 319 *) 308 320 if test x$ax_enable_matlab = xyes ; then -
issm/trunk/src/c/HoleFillerx/HoleFillerCrippen.c
r1 r1439 21 21 #include <stdlib.h> 22 22 #include <math.h> 23 24 23 25 #include <time.h> 24 26 #include <string.h> -
issm/trunk/src/c/InterpFromGridx/InterpFromGridx.cpp
r1174 r1439 115 115 116 116 /*Treat NANs*/ 117 if isnan(data_value){117 if (isnan(data_value)){ 118 118 data_value=default_value; 119 119 } -
issm/trunk/src/c/InterpFromMesh2dx/InterpFromMesh2dx.cpp
r1248 r1439 30 30 31 31 /*Set debug to 1 if there are lots of elements*/ 32 debug=(bool)((double)nels_data*(double)nods_prime >= pow( 10,9));32 debug=(bool)((double)nels_data*(double)nods_prime >= pow((double)10,(double)9)); 33 33 34 34 /*figure out what kind of interpolation is needed*/ … … 61 61 62 62 /*display current iteration*/ 63 if (debug && fmod( i,100)==0) printf("\b\b\b\b\b\b\b%5.2lf %%",(double)i/nels_data*100);63 if (debug && fmod((double)i,(double)100)==0) printf("\b\b\b\b\b\b\b%5.2lf %%",(double)i/nels_data*100); 64 64 65 65 /*if there is no point inside the domain, go to next iteration*/ … … 99 99 data_value=data[i]; 100 100 } 101 if isnan(data_value) data_value=default_value;101 if (isnan(data_value)) data_value=default_value; 102 102 103 103 /*insert value and go to the next point*/ -
issm/trunk/src/c/InterpFromMesh3dx/InterpFromMesh3dx.cpp
r1248 r1439 31 31 32 32 /*Set debug to 1 if there are lots of elements*/ 33 debug=(bool)((double)nels_data*(double)nods_prime >= pow( 10,9));33 debug=(bool)((double)nels_data*(double)nods_prime >= pow((double)10,(double)9)); 34 34 35 35 /*figure out what kind of interpolation is needed*/ … … 62 62 63 63 /*display current iteration*/ 64 if (debug && fmod( i,100)==0) printf("\b\b\b\b\b\b\b%5.2lf %%",(double)i/nels_data*100);64 if (debug && fmod((double)i,(double)100)==0) printf("\b\b\b\b\b\b\b%5.2lf %%",(double)i/nels_data*100); 65 65 66 66 /*if there is no point inside the domain, go to next iteration*/ … … 108 108 data_value=data[i]; 109 109 } 110 if isnan(data_value) data_value=default_value;110 if (isnan(data_value)) data_value=default_value; 111 111 112 112 /*insert value and go to the next point*/ -
issm/trunk/src/c/Makefile.am
r1380 r1439 85 85 ./shared/Dofs/DistributeNumDofs.cpp\ 86 86 ./shared/Numerics/numerics.h\ 87 ./shared/Numerics/isnan.h\ 88 ./shared/Numerics/isnan.cpp\ 87 89 ./shared/Numerics/GaussPoints.h\ 88 90 ./shared/Numerics/cross.cpp\ … … 290 292 291 293 292 libISSM_a_CXXFLAGS = -fPIC -DMATLAB -D_SERIAL_ -ansi -D_GNU_SOURCE -fno-omit-frame-pointer -pthread -D_CPP_ -m32294 libISSM_a_CXXFLAGS = -fPIC -DMATLAB -D_SERIAL_ -ansi -D_GNU_SOURCE -fno-omit-frame-pointer -pthread -D_CPP_ 293 295 if LARGEARRAYS 294 296 libISSM_a_CXXFLAGS += -D__GCC4BUILD__ … … 594 596 endif 595 597 596 597 #this compilation order works for linux 598 #LDADD = ./libpISSM.a $(METISLIB) $(PETSCLIB) $(DAKOTALIB) $(SLEPCLIB) $(MUMPSLIB) $(PLAPACKLIB) $(MPILIB) $(X_LIBS) $(BLASLAPACKLIB) $(MKLLIB) $(SCALAPACKLIB) $(BLACSLIB) $(FLIBS) $(GRAPHICSLIB) 599 600 #this compilation order works for mac 601 LDADD = $(TRIANGLELIB) $(PETSCLIB) ../c/libpISSM.a $(METISLIB) $(FLIBS) $(PLAPACKLIB) $(SCALAPACKLIB) $(BLASLAPACKLIB) $(MKLLIB) $(MUMPSLIB) $(BLACSLIB) $(DAKOTALIB) $(X_LIBS) $(SLEPCLIB) $(MPILIB) $(MATHLIB) $(FORTRANLIB) $(GRAPHICSLIB) 598 LDADD = ./libpISSM.a $(METISLIB) $(PETSCLIB) $(DAKOTALIB) $(SLEPCLIB) $(MUMPSLIB) $(PLAPACKLIB) $(MPILIB) $(X_LIBS) -lX11 $(BLASLAPACKLIB) $(MKLLIB) $(SCALAPACKLIB) $(BLACSLIB) $(FLIBS) 602 599 603 600 diagnostic_exe_SOURCES = parallel/diagnostic.cpp -
issm/trunk/src/c/io/WriteNodeSets.cpp
r304 r1439 28 28 int fsize=0; 29 29 int ssize=0; 30 mwSize nfields=9;30 const mwSize nfields=9; 31 31 const char* fnames[nfields]; 32 32 mwSize onebyone[2] = {1,1}; -
issm/trunk/src/c/objects/Beam.cpp
r1188 r1439 408 408 409 409 //compute ub 410 constant_part=-1.58*pow( 10.0,-10.0)*rho_ice*gravity*h[0];410 constant_part=-1.58*pow((double)10.0,-(double)10.0)*rho_ice*gravity*h[0]; 411 411 ub=constant_part*slope[0]; 412 412 vb=constant_part*slope[1]; -
issm/trunk/src/c/objects/Friction.cpp
r483 r1439 67 67 /*diverse: */ 68 68 int i; 69 int numgrids=3;69 const int numgrids=3; 70 70 double Neff[numgrids]; 71 71 double r,s; … … 118 118 /*diverse: */ 119 119 int i; 120 int numgrids=3;120 const int numgrids=3; 121 121 double Neff[numgrids]; 122 122 double r,s; -
issm/trunk/src/c/objects/Icefront.cpp
r803 r1439 1072 1072 //Get the coordinates of gauss point for each triangle in penta/quad 1073 1073 r_tria=gauss_coord[1]-gauss_coord[0]; 1074 s_tria=-3/sqrt( 3)*(gauss_coord[0]+gauss_coord[1]-2/3);1074 s_tria=-3/sqrt((double)3)*(gauss_coord[0]+gauss_coord[1]-2/3); 1075 1075 1076 1076 //Coordinates of gauss points in the reference triangle 1077 1077 r_quad[0]=r_tria; 1078 s_quad[0]=1/sqrt( 3)*s_tria-2/3;1079 r_quad[1]=-1/sqrt( 3)*s_tria+2/3;1078 s_quad[0]=1/sqrt((double)3)*s_tria-2/3; 1079 r_quad[1]=-1/sqrt((double)3)*s_tria+2/3; 1080 1080 s_quad[1]=r_tria; 1081 1081 r_quad[2]=-r_tria; 1082 s_quad[2]=-1/sqrt( 3)*s_tria+2/3;1083 r_quad[3]=1/sqrt( 3)*s_tria-2/3;1082 s_quad[2]=-1/sqrt((double)3)*s_tria+2/3; 1083 r_quad[3]=1/sqrt((double)3)*s_tria-2/3; 1084 1084 s_quad[3]=-r_tria; 1085 1085 … … 1324 1324 //Get the coordinates of gauss point for each triangle in penta/quad 1325 1325 r_tria=gauss_coord[1]-gauss_coord[0]; 1326 s_tria=-3/sqrt( 3)*(gauss_coord[0]+gauss_coord[1]-2/3);1326 s_tria=-3/sqrt((double)3)*(gauss_coord[0]+gauss_coord[1]-2/3); 1327 1327 1328 1328 //Coordinates of gauss points in the reference triangle 1329 1329 r_quad[0]=r_tria; 1330 s_quad[0]=1/sqrt( 3)*s_tria-2/3;1331 r_quad[1]=-1/sqrt( 3)*s_tria+2/3;1330 s_quad[0]=1/sqrt((double)3)*s_tria-2/3; 1331 r_quad[1]=-1/sqrt((double)3)*s_tria+2/3; 1332 1332 s_quad[1]=r_tria; 1333 1333 r_quad[2]=-r_tria; 1334 s_quad[2]=-1/sqrt( 3)*s_tria+2/3;1335 r_quad[3]=1/sqrt( 3)*s_tria-2/3;1334 s_quad[2]=-1/sqrt((double)3)*s_tria+2/3; 1335 r_quad[3]=1/sqrt((double)3)*s_tria-2/3; 1336 1336 s_quad[3]=-r_tria; 1337 1337 -
issm/trunk/src/c/objects/Matice.cpp
r1051 r1439 161 161 else{ 162 162 if((epsilon[0]==0) && (epsilon[1]==0) && (epsilon[2]==0)){ 163 viscosity=pow( 10,14);163 viscosity=pow((double)10,(double)14); 164 164 } 165 165 else{ … … 173 173 if(A==0){ 174 174 /*Maxiviscositym viscosity for 0 shear areas: */ 175 viscosity=4.5*pow( 10,17);175 viscosity=4.5*pow((double)10,(double)17); 176 176 } 177 177 else{ … … 229 229 if(A==0){ 230 230 /*Maximum viscosity_complement for 0 shear areas: */ 231 viscosity_complement=4.5*pow( 10,17);231 viscosity_complement=4.5*pow((double)10,(double)17); 232 232 } 233 233 else{ … … 238 238 } 239 239 else{ 240 viscosity_complement=4.5*pow( 10,17);240 viscosity_complement=4.5*pow((double)10,(double)17); 241 241 } 242 242 … … 282 282 if((epsilon[0]==0) && (epsilon[1]==0) && (epsilon[2]==0) && 283 283 (epsilon[3]==0) && (epsilon[4]==0)){ 284 viscosity3d=pow( 10,14);284 viscosity3d=pow((double)10,(double)14); 285 285 } 286 286 else{ … … 297 297 if(A==0){ 298 298 /*Maxiviscosity3dm viscosity for 0 shear areas: */ 299 viscosity3d=4.5*pow( 10,17);299 viscosity3d=4.5*pow((double)10,(double)17); 300 300 } 301 301 else{ … … 341 341 double eps0; 342 342 343 eps0=pow( 10,-27);343 eps0=pow((double)10,(double)-27); 344 344 345 345 if (n==1){ … … 350 350 if((epsilon[0]==0) && (epsilon[1]==0) && (epsilon[2]==0) && 351 351 (epsilon[3]==0) && (epsilon[4]==0) && (epsilon[5]==0)){ 352 viscosity3d=pow( 10,14);352 viscosity3d=pow((double)10,(double)14); 353 353 } 354 354 else{ … … 366 366 if(A==0){ 367 367 /*Maxiviscosity3dm viscosity for 0 shear areas: */ 368 viscosity3d=4.5*pow( 10,17);368 viscosity3d=4.5*pow((double)10,(double)17); 369 369 } 370 370 else{ -
issm/trunk/src/c/objects/Pengrid.cpp
r927 r1439 267 267 268 268 //Create elementary matrix: add penalty to contrain wb (wb=ub*db/dx+vb*db/dy) 269 Ke[2][0]=-slope[0]*kmax*pow( 10.0,penalty_offset);270 Ke[2][1]=-slope[1]*kmax*pow( 10.0,penalty_offset);271 Ke[2][2]=kmax*pow( 10,penalty_offset);269 Ke[2][0]=-slope[0]*kmax*pow((double)10.0,penalty_offset); 270 Ke[2][1]=-slope[1]*kmax*pow((double)10.0,penalty_offset); 271 Ke[2][2]=kmax*pow((double)10,penalty_offset); 272 272 273 273 /*Add Ke to global matrix Kgg: */ … … 299 299 GetDofList(&doflist[0],&numberofdofspernode); 300 300 301 Ke[0][0]=kmax*pow( 10,penalty_offset);301 Ke[0][0]=kmax*pow((double)10,penalty_offset); 302 302 303 303 /*Add Ke to global matrix Kgg: */ … … 348 348 //Add penalty load 349 349 if (temperature<t_pmp){ //If T<Tpmp, there must be no melting. Therefore, melting should be constrained to 0 when T<Tpmp, instead of using spcs, use penalties 350 Ke[0][0]=kmax*pow( 10,penalty_offset);350 Ke[0][0]=kmax*pow((double)10,penalty_offset); 351 351 } 352 352 … … 435 435 436 436 //Add penalty load 437 P_terms[0]=kmax*pow( 10,penalty_offset)*t_pmp;437 P_terms[0]=kmax*pow((double)10,penalty_offset)*t_pmp; 438 438 439 439 /*Add P_terms to global vector pg: */ … … 501 501 else{ 502 502 if (sub_analysis_type==SteadyAnalysisEnum()){ 503 P_terms[0]=melting_offset*pow( 10,penalty_offset)*(temperature-t_pmp);503 P_terms[0]=melting_offset*pow((double)10,penalty_offset)*(temperature-t_pmp); 504 504 } 505 505 else{ 506 P_terms[0]=melting_offset*pow( 10,penalty_offset)*(temperature-t_pmp)/dt;506 P_terms[0]=melting_offset*pow((double)10,penalty_offset)*(temperature-t_pmp)/dt; 507 507 } 508 508 } -
issm/trunk/src/c/objects/Penta.cpp
r1313 r1439 774 774 int i,j; 775 775 776 int numgrids=6;777 int DOFPERGRID=4;778 int numdof=numgrids*DOFPERGRID;776 const int numgrids=6; 777 const int DOFPERGRID=4; 778 const int numdof=numgrids*DOFPERGRID; 779 779 int doflist[numdof]; 780 780 int numberofdofspernode; 781 781 782 int numgrids2d=3;783 int numdof2d=numgrids2d*DOFPERGRID;782 const int numgrids2d=3; 783 const int numdof2d=numgrids2d*DOFPERGRID; 784 784 785 785 int dofs[3]={0,1,2}; … … 2564 2564 int i,j; 2565 2565 2566 int numgrids=6;2567 int DOFVELOCITY=3;2566 const int numgrids=6; 2567 const int DOFVELOCITY=3; 2568 2568 double B[8][27]; 2569 2569 double B_reduced[numgrids][DOFVELOCITY*numgrids]; … … 2616 2616 2617 2617 int i; 2618 int calculationdof=3;2619 int numgrids=6;2618 const int calculationdof=3; 2619 const int numgrids=6; 2620 2620 int DOFPERGRID=4; 2621 2621 … … 2698 2698 2699 2699 int i; 2700 int calculationdof=3;2701 int numgrids=6;2700 const int calculationdof=3; 2701 const int numgrids=6; 2702 2702 int DOFPERGRID=4; 2703 2703 … … 2784 2784 2785 2785 int i; 2786 int numgrids2d=3;2786 const int numgrids2d=3; 2787 2787 int num_dof=4; 2788 2788 … … 2891 2891 2892 2892 int i; 2893 int numgrids2d=3;2893 const int numgrids2d=3; 2894 2894 int num_dof=4; 2895 2895 … … 2983 2983 int i; 2984 2984 2985 int numgrids=7;2985 const int numgrids=7; 2986 2986 double dh1dh7_param[3][numgrids]; 2987 2987 double Jinv[3][3]; … … 3068 3068 int i,j; 3069 3069 3070 int numgrids=6;3071 int DOFPERGRID=4;3072 int numdof=numgrids*DOFPERGRID;3073 int numgrids2d=3;3070 const int numgrids=6; 3071 const int DOFPERGRID=4; 3072 const int numdof=numgrids*DOFPERGRID; 3073 const int numgrids2d=3; 3074 3074 int numdof2d=numgrids2d*DOFPERGRID; 3075 3075 int doflist[numdof]; … … 3603 3603 3604 3604 int i; 3605 int calculationdof=3;3606 int numgrids=6;3605 const int calculationdof=3; 3606 const int numgrids=6; 3607 3607 int DOFPERGRID=1; 3608 3608 … … 3672 3672 3673 3673 int i; 3674 int calculationdof=3;3675 int numgrids=6;3674 const int calculationdof=3; 3675 const int numgrids=6; 3676 3676 int DOFPERGRID=1; 3677 3677 -
issm/trunk/src/c/objects/Sing.cpp
r1188 r1439 312 312 B=matice->GetB(); 313 313 314 ub=-1.58*pow( 10.0,-10.0)*rho_ice*gravity*h*slope[0];315 vb=-1.58*pow( 10.0,-10.0)*rho_ice*gravity*h*slope[1];314 ub=-1.58*pow((double)10.0,(double)-10.0)*rho_ice*gravity*h*slope[0]; 315 vb=-1.58*pow((double)10.0,(double)-10.0)*rho_ice*gravity*h*slope[1]; 316 316 317 317 //compute constant_part -
issm/trunk/src/c/objects/Tria.cpp
r1242 r1439 655 655 v_gauss[1]=1.0/3.0*(vxvy_list[0][1]+vxvy_list[1][1]+vxvy_list[2][1]); 656 656 657 K[0][0]=pow(Jdettria, .5)/2.0*fabs(v_gauss[0]);658 K[1][1]=pow(Jdettria, .5)/2.0*fabs(v_gauss[1]);657 K[0][0]=pow(Jdettria,(double).5)/2.0*fabs(v_gauss[0]); 658 K[1][1]=pow(Jdettria,(double).5)/2.0*fabs(v_gauss[1]); 659 659 } 660 660 … … 1016 1016 1017 1017 if (slope_magnitude>MAXSLOPE){ 1018 alpha2_list[0]=pow( 10,MOUNTAINKEXPONENT);1019 alpha2_list[1]=pow( 10,MOUNTAINKEXPONENT);1020 alpha2_list[2]=pow( 10,MOUNTAINKEXPONENT);1018 alpha2_list[0]=pow((double)10,MOUNTAINKEXPONENT); 1019 alpha2_list[1]=pow((double)10,MOUNTAINKEXPONENT); 1020 alpha2_list[2]=pow((double)10,MOUNTAINKEXPONENT); 1021 1021 } 1022 1022 … … 2662 2662 normal[2]=v13[0]*v23[1]-v13[1]*v23[0]; 2663 2663 2664 normal_norm=sqrt( pow(normal[0], 2)+pow(normal[1],2)+pow(normal[2],2) );2664 normal_norm=sqrt( pow(normal[0],(double)2)+pow(normal[1],(double)2)+pow(normal[2],(double)2) ); 2665 2665 2666 2666 *(surface_normal)=normal[0]/normal_norm; … … 2903 2903 /*We are using an absolute misfit: */ 2904 2904 for (i=0;i<numgrids;i++){ 2905 absolute_list[i]=0.5*(pow((vx_list[i]-obs_vx_list[i]), 2)+pow((vy_list[i]-obs_vy_list[i]),2));2905 absolute_list[i]=0.5*(pow((vx_list[i]-obs_vx_list[i]),(double)2)+pow((vy_list[i]-obs_vy_list[i]),(double)2)); 2906 2906 } 2907 2907 } … … 2909 2909 /*We are using a relative misfit: */ 2910 2910 for (i=0;i<numgrids;i++){ 2911 scalex=pow(meanvel/(obs_vx_list[i]+epsvel), 2);2912 scaley=pow(meanvel/(obs_vy_list[i]+epsvel), 2);2911 scalex=pow(meanvel/(obs_vx_list[i]+epsvel),(double)2); 2912 scaley=pow(meanvel/(obs_vy_list[i]+epsvel),(double)2); 2913 2913 if(obs_vx_list[i]==0)scalex=0; 2914 2914 if(obs_vy_list[i]==0)scaley=0; … … 2919 2919 /*We are using a logarithmic misfit: */ 2920 2920 for (i=0;i<numgrids;i++){ 2921 velocity_mag=sqrt(pow(vx_list[i], 2)+pow(vy_list[i],2))+epsvel; //epsvel to avoid velocity being nil.2922 obs_velocity_mag=sqrt(pow(obs_vx_list[i], 2)+pow(obs_vy_list[i],2))+epsvel; //epsvel to avoid observed velocity being nil.2923 logarithmic_list[i]=4*pow(meanvel, 2)*pow(log(velocity_mag/obs_velocity_mag),2);2921 velocity_mag=sqrt(pow(vx_list[i],(double)2)+pow(vy_list[i],(double)2))+epsvel; //epsvel to avoid velocity being nil. 2922 obs_velocity_mag=sqrt(pow(obs_vx_list[i],(double)2)+pow(obs_vy_list[i],(double)2))+epsvel; //epsvel to avoid observed velocity being nil. 2923 logarithmic_list[i]=4*pow(meanvel,(double)2)*pow(log(velocity_mag/obs_velocity_mag),(double)2); 2924 2924 } 2925 2925 } … … 3100 3100 normal[2]=(x4-x6)*(y5-y6)-(y4-y6)*(x5-x6); 3101 3101 3102 norm_normal=sqrt(pow(normal[0], 2)+pow(normal[1],2)+pow(normal[2],2));3102 norm_normal=sqrt(pow(normal[0],(double)2)+pow(normal[1],(double)2)+pow(normal[2],(double)2)); 3103 3103 nz=1.0/norm_normal*normal[2]; 3104 3104 … … 3684 3684 /* Compute basal friction */ 3685 3685 for(i=0;i<numgrids;i++){ 3686 basalfriction_list[i]= alpha2_list[i]*(pow(vx_list[i], 2.0)+pow(vy_list[i],2.0));3686 basalfriction_list[i]= alpha2_list[i]*(pow(vx_list[i],(double)2.0)+pow(vy_list[i],(double)2.0)); 3687 3687 } 3688 3688 -
issm/trunk/src/c/shared/Elements/Paterson.cpp
r890 r1439 8 8 #define __FUNCT__ "Paterson" 9 9 #include <math.h> 10 11 10 12 double Paterson(double temperature){ 11 13 … … 31 33 32 34 if(T<=-45.0){ 33 B=pow( 10,8)*(-0.000292866376675*pow(T+50,3)+ 0.011672640664130*pow(T+50,2) -0.325004442485481*(T+50)+ 6.524779401948101);35 B=pow((double)10,(double)8)*(-0.000292866376675*pow(T+50,3)+ 0.011672640664130*pow(T+50,2) -0.325004442485481*(T+50)+ 6.524779401948101); 34 36 } 35 37 if((T>=-45.0) && (T<=-40.0)){ 36 B=pow( 10,8)*(-0.000292866376675*pow(T+45,3)+ 0.007279645014004*pow(T+45,2) -0.230243014094813*(T+45)+ 5.154964909039554);38 B=pow((double)10,(double)8)*(-0.000292866376675*pow(T+45,3)+ 0.007279645014004*pow(T+45,2) -0.230243014094813*(T+45)+ 5.154964909039554); 37 39 } 38 40 if((T>=-40.0) && (T<=-35.0)){ 39 B=pow( 10,8)*(0.000072737147457*pow(T+40,3)+ 0.002886649363879*pow(T+40,2) -0.179411542205399*(T+40)+ 4.149132666831214);41 B=pow((double)10,(double)8)*(0.000072737147457*pow(T+40,3)+ 0.002886649363879*pow(T+40,2) -0.179411542205399*(T+40)+ 4.149132666831214); 40 42 } 41 43 if((T>=-35.0) && (T<=-30.0)){ 42 B=pow( 10,8)*(-0.000086144770023*pow(T+35,3)+ 0.003977706575736*pow(T+35,2) -0.145089762507325*(T+35)+ 3.333333333333331);44 B=pow((double)10,(double)8)*(-0.000086144770023*pow(T+35,3)+ 0.003977706575736*pow(T+35,2) -0.145089762507325*(T+35)+ 3.333333333333331); 43 45 } 44 46 if((T>=-30.0) && (T<=-25.0)){ 45 B=pow( 10,8)*(-0.000043984685769*pow(T+30,3)+ 0.002685535025386*pow(T+30,2) -0.111773554501713*(T+30)+ 2.696559088937191);47 B=pow((double)10,(double)8)*(-0.000043984685769*pow(T+30,3)+ 0.002685535025386*pow(T+30,2) -0.111773554501713*(T+30)+ 2.696559088937191); 46 48 } 47 49 if((T>=-25.0) && (T<=-20.0)){ 48 B=pow( 10,8)*(-0.000029799523463*pow(T+25,3)+ 0.002025764738854*pow(T+25,2) -0.088217055680511*(T+25)+ 2.199331606342181);50 B=pow((double)10,(double)8)*(-0.000029799523463*pow(T+25,3)+ 0.002025764738854*pow(T+25,2) -0.088217055680511*(T+25)+ 2.199331606342181); 49 51 } 50 52 if((T>=-20.0) && (T<=-15.0)){ 51 B=pow( 10,8)*(0.000136920904777*pow(T+20,3)+ 0.001578771886910*pow(T+20,2) -0.070194372551690*(T+20)+ 1.805165505978111);53 B=pow((double)10,(double)8)*(0.000136920904777*pow(T+20,3)+ 0.001578771886910*pow(T+20,2) -0.070194372551690*(T+20)+ 1.805165505978111); 52 54 } 53 55 if((T>=-15.0) && (T<=-10.0)){ 54 B=pow( 10,8)*(-0.000899763781026*pow(T+15,3)+ 0.003632585458564*pow(T+15,2) -0.044137585824322*(T+15)+ 1.510778053489523);56 B=pow((double)10,(double)8)*(-0.000899763781026*pow(T+15,3)+ 0.003632585458564*pow(T+15,2) -0.044137585824322*(T+15)+ 1.510778053489523); 55 57 } 56 58 if((T>=-10.0) && (T<=-5.0)){ 57 B=pow( 10,8)*(0.001676964325070*pow(T+10,3)- 0.009863871256831*pow(T+10,2) -0.075294014815659*(T+10)+ 1.268434288203714);59 B=pow((double)10,(double)8)*(0.001676964325070*pow(T+10,3)- 0.009863871256831*pow(T+10,2) -0.075294014815659*(T+10)+ 1.268434288203714); 58 60 } 59 61 if((T>=-5.0) && (T<=-2.0)){ 60 B=pow( 10,8)*(-0.003748937622487*pow(T+5,3)+0.015290593619213*pow(T+5,2) -0.048160403003748*(T+5)+ 0.854987973338348);62 B=pow((double)10,(double)8)*(-0.003748937622487*pow(T+5,3)+0.015290593619213*pow(T+5,2) -0.048160403003748*(T+5)+ 0.854987973338348); 61 63 } 62 64 if(T>=-2.0){ 63 B=pow( 10,8)*(-0.003748937622488*pow(T+2,3)-0.018449844983174*pow(T+2,2) -0.057638157095631*(T+2)+ 0.746900791092860);65 B=pow((double)10,(double)8)*(-0.003748937622488*pow(T+2,3)-0.018449844983174*pow(T+2,2) -0.057638157095631*(T+2)+ 0.746900791092860); 64 66 } 65 67 -
issm/trunk/src/c/shared/Exp/IsInPolySerial.cpp
r1 r1439 4 4 5 5 #include <math.h> 6 7 6 8 #include "./exp.h" 7 9 -
issm/trunk/src/c/shared/Matlab/PrintfFunction.cpp
r1 r1439 6 6 #include "stdarg.h" 7 7 #include "stdio.h" 8 9 #ifdef _SERIAL_ 10 #include "mex.h" 11 #endif 8 12 9 13 int PrintfFunction(char* format,...){ … … 20 24 //First use vsprintf to get the whole input string. 21 25 va_start(ap,format); 26 #ifndef WIN32 22 27 string_size=vsprintf(string,format,ap); //printf style coding 28 #else 29 string_size=vsprintf_s(string,format,ap); //printf style coding 30 #endif 23 31 va_end(ap); 24 32 … … 27 35 if(my_rank==0)printf(string); 28 36 #else 29 printf(string);37 mexPrintf(string); 30 38 #endif 39 40 return 1; 31 41 } 32 42 -
issm/trunk/src/c/shared/Matrix/MatrixUtils.cpp
r1 r1439 39 39 #include <stdio.h> 40 40 #include <sys/types.h> 41 #include <math.h> /* fabs */41 #include <math.h> 42 42 #include <float.h> /* DBL_EPSILON */ 43 43 … … 197 197 if (ntrma != ntrmb) { 198 198 _printf_("%s -- Matrix A and B inner vectors not equal size.\n", 199 __ func__);199 __FUNCT__); 200 200 noerr=0; 201 201 return noerr; … … 275 275 if (!b && nvec) { 276 276 _printf_("%s -- No right-hand side for nvec=%d.\n", 277 __ func__,nvec);277 __FUNCT__,nvec); 278 278 noerr=0; 279 279 return noerr; … … 310 310 xfree((void **)&pindx); 311 311 _printf_("%s -- Pivot %f less than machine epsilon.\n", 312 __ func__,pivot);312 __FUNCT__,pivot); 313 313 noerr=0; 314 314 return noerr; -
issm/trunk/src/c/shared/Numerics/GaussPoints.cpp
r99 r1439 9 9 #include <math.h> 10 10 #include <float.h> 11 11 12 12 13 /*=======1=========2=========3=========4=========5=========6=========7=========8 -
issm/trunk/src/c/shared/Numerics/norm.cpp
r99 r1439 9 9 #endif 10 10 11 #include "math.h" 11 #include <math.h> 12 12 13 13 14 double norm(double* vector){ -
issm/trunk/src/c/shared/Numerics/numerics.h
r465 r1439 7 7 8 8 #include "./GaussPoints.h" 9 #include "./isnan.h" 9 10 #include "../../objects/objects.h" 10 11 -
issm/trunk/src/c/shared/TriMesh/GridInsideHole.cpp
r1 r1439 8 8 9 9 #include <math.h> 10 11 10 12 #include "./trimesh.h" 11 13 #include "../Exp/exp.h" -
issm/trunk/src/c/shared/TriMesh/trimesh.h
r1061 r1439 9 9 #include "stdio.h" 10 10 #include <math.h> 11 12 11 13 12 14 //#define REAL double //took it out because it may conflict with stdlib.h defines. put back if necessary -
issm/trunk/src/c/toolkits/petsc/patches/PetscDetermineLocalSize.cpp
r1 r1439 5 5 #include "stdio.h" 6 6 #include <math.h> 7 8 7 9 #include "../../../shared/shared.h" 8 10 … … 29 31 left are then redistributed, therefore resulting in a 30 32 more even distribution.*/ 31 num_local_rows[i]=(int)floor( global_size/num_procs);33 num_local_rows[i]=(int)floor((double)global_size/(double)num_procs); 32 34 } 33 35 34 36 /*There may be some rows left. Distribute evenly.*/ 35 row_rest=global_size - num_procs*(int)floor( global_size/num_procs);37 row_rest=global_size - num_procs*(int)floor((double)global_size/(double)num_procs); 36 38 for (i=0;i<row_rest;i++){ 37 39 num_local_rows[i]++; -
issm/trunk/src/c/toolkits/plapack/patches/CyclicalFactorization.cpp
r831 r1439 3 3 */ 4 4 #include <math.h> 5 6 5 7 #include "../../../shared/shared.h" 6 8 -
issm/trunk/src/m/classes/public/LaunchQueueJobGeneric.m
r1268 r1439 14 14 end 15 15 16 %if we are running locally, no need to call ssh to launch the job. We figure out by comparing the 17 %hostname to the cluster name 18 [result,hostname]=system('hostname -s');hostname=hostname(1:end-1); 19 20 disp('uploading input file and queueing script'); 21 if strcmpi(hostname,md.cluster), 22 if md.qmu_analysis, 23 system(['cp ' md.name '.bin' ' ' md.name '.queue ' md.name '.qmu.in ' ' ' executionpath]); 16 if ~strcmpi(options.batch,'yes'), 17 18 %if we are running locally, no need to call ssh to launch the job. We figure out by comparing the 19 %hostname to the cluster name 20 [result,hostname]=system('hostname -s');hostname=hostname(1:end-1); 21 disp('uploading input file and queueing script'); 22 if strcmpi(hostname,md.cluster), 23 if md.qmu_analysis, 24 system(['cp ' md.name '.bin' ' ' md.name '.queue ' md.name '.qmu.in ' ' ' executionpath]); 25 else 26 system(['cp ' md.name '.bin' ' ' md.name '.queue' ' ' executionpath]); 27 end 24 28 else 25 system(['cp ' md.name '.bin' ' ' md.name '.queue' ' ' executionpath]); 29 if md.qmu_analysis, 30 system(['scp ' md.name '.bin' ' ' md.name '.queue ' md.name '.qmu.in ' ' ' md.cluster ':' executionpath]); 31 else 32 system(['scp ' md.name '.bin' ' ' md.name '.queue' ' ' md.cluster ':' executionpath]); 33 end 26 34 end 35 36 disp('launching solution sequence on remote cluster'); 37 %now call the queuing script to launch the job. 38 if strcmpi(hostname,md.cluster), 39 system(['cd ' executionpath ' && source ' md.name '.queue ']); 40 else 41 system(['ssh ' md.cluster ' ''cd ' executionpath ' && source ' md.name '.queue ''']); 42 end 43 27 44 else 28 if md.qmu_analysis, 29 system(['scp ' md.name '.bin' ' ' md.name '.queue ' md.name '.qmu.in ' ' ' md.cluster ':' executionpath]); 30 else 31 system(['scp ' md.name '.bin' ' ' md.name '.queue' ' ' md.cluster ':' executionpath]); 32 end 45 disp('batch mode requested: not launching job interactively'); 46 disp(['launch solution sequence by copying files ' md.name '.bin' ',' md.name '.queue and ' md.name '.qmu.in, onto remote cluster ' md.cluster]); 47 disp([' then log int ' md.cluster ' and source queue file ' md.name '.queue']); 48 md.waitonlock=0; 33 49 end 34 50 35 disp('launching solution sequence on remote cluster'); 36 %now call the queuing script to launch the job. 37 if strcmpi(hostname,md.cluster), 38 system(['cd ' executionpath ' && source ' md.name '.queue ']); 39 else 40 system(['ssh ' md.cluster ' ''cd ' executionpath ' && source ' md.name '.queue ''']); 41 end 51 -
issm/trunk/src/m/utils/Nightly/nightlyrun.m
r1019 r1439 30 30 cd Verification 31 31 32 %Get a list of the test decks 33 [status,list]=system('ls -l | grep -v CVS | grep -v cielo | awk ''{printf("%s|",$9);}'' '); %only works on *nix systems. 34 list= strsplit(list,'|');32 [status,list]=system('ls '); %will work on all machines, hopefully 33 list=strsplit(list,char(10)); 34 list=list(1:end-1); 35 35 36 36 %Get packages -
issm/trunk/src/mex/ComputePressure/ComputePressure.cpp
r1042 r1439 17 17 ParameterInputs* inputs=NULL; 18 18 int numberofnodes; 19 20 printf("hello\n"); 19 21 20 22 /* output datasets: */ … … 60 62 61 63 void ComputePressureUsage(void) { 62 _printf_("\n");63 _printf_(" usage: [p_g] = %s(elements, nodes, loads, materials, params,inputs);\n",__FUNCT__);64 _printf_("\n");64 printf("\n"); 65 printf(" usage: [p_g] = %s(elements, nodes, loads, materials, params,inputs);\n",__FUNCT__); 66 printf("\n"); 65 67 } -
issm/trunk/startup.m
r1031 r1439 13 13 14 14 %Recover ISSM_DIR 15 [status,ISSM_DIR]=system('echo $ISSM_DIR'); 15 if ispc, 16 [status,ISSM_DIR]=system('echo [%ISSM_DIR%]'); 17 else 18 [status,ISSM_DIR]=system('echo $ISSM_DIR'); 19 end 16 20 if status~=0, 17 21 error('issmdir error message: problem when running ''echo $ISSM_DIR'' shell command'); … … 20 24 error('issmdir error message: ''ISSM_DIR'' environment variable is empty! You should define ISSM_DIR in your .cshrc or .bashrc!'); 21 25 end 22 %get rid of return carriage 23 ISSM_DIR=ISSM_DIR(1:end-1); clear status; 26 %get rid of useless symbols in the name 27 if ispc, 28 ISSM_DIR=ISSM_DIR(2:end-2); 29 else 30 ISSM_DIR=ISSM_DIR(1:end-1); 31 end 32 clear status; 24 33 25 34 %Now add all issm code paths necessary to run issm smoothly.
Note:
See TracChangeset
for help on using the changeset viewer.