Changeset 2047
- Timestamp:
- 08/28/09 11:11:56 (15 years ago)
- Location:
- issm/trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/configs/linux64/linux64.sh
r2042 r2047 1 1 #!/bin/sh 2 2 3 ./configure --prefix=$ISSM_DIR --with-matlab-dir=$MATLAB_DIR --with-triangle-dir=$ISSM_DIR/externalpackages/triangle/install --with-metis-dir=$ISSM_DIR/externalpackages/metis/install --with-petsc-dir=$ISSM_DIR/externalpackages/petsc/install --with-mpi-include=$ISSM_DIR/externalpackages/mpich2/install/include --with-mpi-lib="-L$ISSM_DIR/externalpackages/mpich2/install/lib/ -lmpich" --with-petsc-arch=$ISSM_ARCH --with-dakota-dir=$ISSM_DIR/externalpackages/dakota/install --with-blas-lapack-dir=$ISSM_DIR/externalpackages/petsc/install/$ISSM_ARCH/lib --with-plapack-dir=$ISSM_DIR/externalpackages/petsc/install/$ISSM_ARCH/lib --with-blacs-dir=$ISSM_DIR/externalpackages/petsc/install/$ISSM_ARCH/lib --with-scalapack-dir=$ISSM_DIR/externalpackages/petsc/install/$ISSM_ARCH/lib --with-mumps-dir=$ISSM_DIR/externalpackages/petsc/install/$ISSM_ARCH/ --with-fortran-lib="-L/usr/lib/gcc/x86_64-redhat-linux/4.1.1/ -lgfortran" --with-graphics-lib=/usr/lib64/libX11.so 3 ./configure --prefix=$ISSM_DIR --with-matlab-dir=$MATLAB_DIR --with-triangle-dir=$ISSM_DIR/externalpackages/triangle/install --with-metis-dir=$ISSM_DIR/externalpackages/metis/install --with-petsc-dir=$ISSM_DIR/externalpackages/petsc/install --with-mpi-include=$ISSM_DIR/externalpackages/mpich2/install/include --with-mpi-lib="-L$ISSM_DIR/externalpackages/mpich2/install/lib/ -lmpich" --with-petsc-arch=$ISSM_ARCH --with-dakota-dir=$ISSM_DIR/externalpackages/dakota/install --with-blas-lapack-dir=$ISSM_DIR/externalpackages/petsc/install/$ISSM_ARCH/lib --with-plapack-dir=$ISSM_DIR/externalpackages/petsc/install/$ISSM_ARCH/lib --with-blacs-dir=$ISSM_DIR/externalpackages/petsc/install/$ISSM_ARCH/lib --with-scalapack-dir=$ISSM_DIR/externalpackages/petsc/install/$ISSM_ARCH/lib --with-mumps-dir=$ISSM_DIR/externalpackages/petsc/install/$ISSM_ARCH/ --with-fortran-lib="-L/usr/lib/gcc/x86_64-redhat-linux/4.1.1/ -lgfortran" --with-graphics-lib=/usr/lib64/libX11.so --with-cxxoptflags="-march=opteron -O2" -
issm/trunk/m4/issm_options.m4
r2042 r2047 2 2 3 3 AC_DEFUN([ISSM_OPTIONS],[ 4 dnl Debugging option check. 4 5 6 7 8 dnl %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%debugging-beginning%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 5 9 AC_ARG_ENABLE([debugging],AS_HELP_STRING([--enable-debugging], 6 10 [turn debug support on]), 7 11 [enable_debugging=$enableval],[enable_debugging=no]) 8 12 if test "x$enable_debugging" = xyes; then 9 AC_DEFINE([_DEBUG_],[1],[Macro to enable debugging in Dakota.]) 10 fi 11 12 dnl serial build? 13 AC_DEFINE([_ISSM_DEBUG_],[1],[Macro to enable debugging in ISSM.]) 14 fi 15 dnl %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%Debuggin-end%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 16 17 18 19 20 dnl %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%serial build-beginning%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 13 21 AC_ARG_WITH([serial], 14 22 AS_HELP_STRING([--with-serial = value], … … 18 26 AM_CONDITIONAL([NOSERIAL], [test $SERIAL_VALUE = no]) 19 27 AC_MSG_RESULT($SERIAL_VALUE) 20 21 22 dnl parallel build? 28 dnl %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%serial build-end%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 29 30 31 dnl %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%parallel build-beginning%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 23 32 AC_ARG_WITH([parallel], 24 33 AS_HELP_STRING([--with-parallel = value], … … 28 37 AM_CONDITIONAL([NOPARALLEL], [test $PARALLEL_VALUE = no]) 29 38 AC_MSG_RESULT($PARALLEL_VALUE) 30 39 dnl %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%parallel build-end%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 40 41 42 31 43 dnl: check that at least serial or parallel builds have been requested! 32 44 if test "$SERIAL_VALUE" != "yes" ; then … … 37 49 38 50 39 dnl Matlab directory51 dnl %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%matlab-beginning%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 40 52 AC_ARG_WITH([matlab-dir], 41 53 AS_HELP_STRING([--with-matlab-dir = DIR], … … 50 62 HAVE_MATLAB=yes 51 63 MATLABINCL=-I"$MATLAB_ROOT/extern/include"; 52 dnl use matlab provided mexext routine to test for extension 53 54 MEX=$MATLAB_ROOT/bin/mex 55 64 56 65 dnl OS-dependent variables and checks 57 66 case "${host_os}" in 58 67 *linux*) 59 if test "${host_cpu}" = "x86_64";60 then61 MEXLIB=-L"$MATLAB_ROOT/bin/glnxa64/ -lmex"62 MEXLINK="-pthread -shared -W2,--version-script,${MATLAB_ROOT}/extern/lib/glnxa64/mexFunction.map";63 else64 MEXLIB=-L"$MATLAB_ROOT/bin/glnx86/ -lmex"65 MEXLINK="-pthread -shared -W2,--version-script,${MATLAB_ROOT}/extern/lib/glnx86/mexFunction.map";66 fi67 MEXEXT=`$MATLAB_ROOT/bin/mexext`68 MEXEXT=".$MEXEXT"68 if test "${host_cpu}" = "x86_64"; 69 then 70 MEXLIB=-L"$MATLAB_ROOT/bin/glnxa64/ -lmex" 71 MEXLINK="-pthread -shared -W2,--version-script,${MATLAB_ROOT}/extern/lib/glnxa64/mexFunction.map"; 72 else 73 MEXLIB=-L"$MATLAB_ROOT/bin/glnx86/ -lmex" 74 MEXLINK="-pthread -shared -W2,--version-script,${MATLAB_ROOT}/extern/lib/glnx86/mexFunction.map"; 75 fi 76 MEXEXT=`$MATLAB_ROOT/bin/mexext` 77 MEXEXT=".$MEXEXT" 69 78 ;; 70 79 *darwin9.6.0*) 71 MEXLIB=-L"$MATLAB_ROOT/bin/maci/ -lmex -lmx"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"80 MEXLIB=-L"$MATLAB_ROOT/bin/maci/ -lmex -lmx" 81 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" 82 MEXEXT=`$MATLAB_ROOT/bin/mexext` 83 MEXEXT=".$MEXEXT" 75 84 ;; 76 85 *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" 82 ;; 83 86 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" 87 88 89 MEXEXT=`$MATLAB_ROOT/bin/mexext.bat` 90 MEXEXT=".$MEXEXT" 91 ;; 84 92 esac 85 93 … … 103 111 fi 104 112 105 dnl get version number113 dnl should we use large arrays compilation (Matlab 7.5 and upper?) 106 114 if test $HAVE_MATLAB = yes; then 107 115 … … 121 129 AM_CONDITIONAL(LARGEARRAYS, test x$largearrays = xyes) 122 130 123 dnl Triangle directory 131 dnl %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%matlab-end%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 132 133 134 135 dnl %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%triangle-beginning%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 124 136 AC_ARG_WITH([triangle-dir], 125 137 AS_HELP_STRING([--with-triangle-dir = DIR], [triangle root directory. necessary for serial build]), 126 138 [TRIANGLE_ROOT=$withval],[TRIANGLE_ROOT=""]) 127 139 AC_MSG_CHECKING(for Triangle headers and libraries ) 140 128 141 if test -d "$TRIANGLE_ROOT"; then 129 130 142 131 143 dnl defaults … … 150 162 fi 151 163 AC_MSG_RESULT(ok) 152 153 dnl Dakota directory 164 dnl %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%triangle-end%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 165 166 167 168 dnl %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%dakota-beginning%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 154 169 AC_ARG_WITH([dakota-dir], 155 170 AS_HELP_STRING([--with-dakota-dir = DIR], [dakota root directory. necessary for serial build]), … … 172 187 fi 173 188 AC_MSG_RESULT($HAVE_DAKOTA) 174 175 176 dnl Metis directory 189 dnl %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%dakota-end%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 190 191 192 193 194 dnl %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%metis-beginning%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 177 195 AC_ARG_WITH([metis-dir], 178 196 AS_HELP_STRING([--with-metis-dir = DIR], … … 213 231 AC_MSG_RESULT($HAVE_METIS) 214 232 fi 215 216 dnl Mpi options! 233 dnl %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%metis-end%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 234 235 236 237 238 dnl %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%mpi-beginning%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 217 239 AC_MSG_CHECKING(for mpi...) 218 240 AC_ARG_WITH([mpi-lib], … … 247 269 fi 248 270 AC_MSG_RESULT(done) 249 250 dnl Petsc directory and architecture 271 dnl %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%mpi-end%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 272 273 274 275 dnl %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%petsc-beginning%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 251 276 AC_ARG_WITH([petsc-dir], 252 277 AS_HELP_STRING([--with-petsc-dir = DIR], … … 279 304 case "${host_os}" in 280 305 *cygwin*) 281 PETSCLIB="-link -LIBPATH:\"$PETSC_ROOT/ lib/$PETSC_ARCH\" libpetscksp.lib libpetscdm.lib libpetscmat.lib libpetscvec.lib libpetsc.lib libpetscsnes.lib libpetscts.lib libmpiuni.lib"306 PETSCLIB="-link -LIBPATH:\"$PETSC_ROOT/$PETSC_ARCH/lib\" -LIBPATH:\"$PETSC_ROOT/lib\" -LIBPATH:\"$PETSC_ROOT/lib/$PETSC_ARCH\" libpetscksp.lib libpetscdm.lib libpetscmat.lib libpetscvec.lib libpetsc.lib libpetscsnes.lib libpetscts.lib libmpiuni.lib" 282 307 ;; 283 308 *linux*) 284 PETSCLIB="-L$PETSC_ROOT/$PETSC_ARCH/lib -L$PETSC_ROOT/lib - lpetscksp -lpetscdm -lpetscmat -lpetscvec -lpetsc -lpetscsnes -lpetscts"309 PETSCLIB="-L$PETSC_ROOT/$PETSC_ARCH/lib -L$PETSC_ROOT/lib -L$PETSC_ROOT/lib/$PETSC_ARCH -lpetscksp -lpetscdm -lpetscmat -lpetscvec -lpetsc -lpetscsnes -lpetscts" 285 310 ;; 286 311 *darwin9.6.0*) 287 PETSCLIB="-L$PETSC_ROOT/ lib/$PETSC_ARCH -lpetscksp -lpetscdm -lpetscmat -lpetscvec -lpetsc -lpetscsnes -lpetscts"312 PETSCLIB="-L$PETSC_ROOT/$PETSC_ARCH/lib -L$PETSC_ROOT/lib -L$PETSC_ROOT/lib/$PETSC_ARCH -lpetscksp -lpetscdm -lpetscmat -lpetscvec -lpetsc -lpetscsnes -lpetscts" 288 313 ;; 289 314 esac … … 305 330 AC_MSG_RESULT($HAVE_PETSC) 306 331 fi 307 308 dnl: when running in serial mode, MPI must be ignored, and set to internal petsc mpiuni: 332 dnl %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%petsc-end%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 333 334 335 336 337 338 dnl %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%mpiuni-beginning%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 339 dnl when running in serial mode, MPI must be ignored, and set to internal petsc mpiuni: 309 340 if test "$PARALLEL_VALUE" = "no" ; then 310 341 HAVE_MPI=yes … … 313 344 case "${host_os}" in 314 345 *cygwin*) 315 MPILIB="-link -LIBPATH:\"$PETSC_ROOT/ lib/$PETSC_ARCH\" libmpiuni.lib"346 MPILIB="-link -LIBPATH:\"$PETSC_ROOT/$PETSC_ARCH/lib\" -LIBPATH:\"$PETSC_ROOT/lib\" -LIBPATH:\"$PETSC_ROOT/lib/$PETSC_ARCH\" libmpiuni.lib" 316 347 ;; 317 348 *linux*) 318 MPILIB="-L$PETSC_ROOT/ lib/$PETSC_ARCH -lmpiuni"349 MPILIB="-L$PETSC_ROOT/$PETSC_ARCH/lib -L$PETSC_ROOT/lib -L$PETSC_ROOT/lib/$PETSC_ARCH -lmpiuni" 319 350 ;; 320 351 *darwin9.6.0*) 321 MPILIB="-L$PETSC_ROOT/ lib/$PETSC_ARCH -lmpiuni"352 MPILIB="-L$PETSC_ROOT/$PETSC_ARCH/lib -L$PETSC_ROOT/lib -L$PETSC_ROOT/lib/$PETSC_ARCH -lmpiuni" 322 353 ;; 323 354 esac 324 355 325 326 327 328 356 AC_DEFINE([_HAVE_MPI_],[1],[with Mpi in ISSM src]) 329 357 AC_DEFINE([HAVE_MPI],[1],[with Mpi in ISSM src]) … … 331 359 AC_SUBST([MPILIB]) 332 360 fi 333 334 335 dnl Slepc directory 361 dnl %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%mpiuni-end%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 362 363 364 dnl %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%slepc-beginning%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 336 365 AC_ARG_WITH([slepc-dir], 337 366 AS_HELP_STRING([--with-slepc-dir = DIR], … … 355 384 fi 356 385 AC_MSG_RESULT($HAVE_SLEPC) 357 358 dnl Scalapack directory 386 dnl %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%slepc-end%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 387 388 389 390 dnl %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%scalapack-beginning%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 359 391 AC_ARG_WITH([scalapack-dir], 360 392 AS_HELP_STRING([--with-scalapack-dir = DIR], … … 376 408 fi 377 409 AC_MSG_RESULT($HAVE_SCALAPACK) 378 379 dnl Blas-lapack directory 410 dnl %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%scalapack-end%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 411 412 413 414 415 dnl %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%blas-lapack-beginning%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 380 416 AC_ARG_WITH([blas-lapack-dir], 381 417 AS_HELP_STRING([--with-blas-lapack-dir = DIR], … … 413 449 fi 414 450 AC_MSG_RESULT($HAVE_BLASLAPACK) 415 416 dnl mkl directory 451 dnl %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%blas-lapack-end%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 452 453 454 455 dnl %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%mkl-beginning%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 417 456 AC_ARG_WITH([mkl-dir], 418 457 AS_HELP_STRING([--with-mkl-dir = DIR], … … 458 497 fi 459 498 AC_MSG_RESULT($HAVE_PLAPACK) 499 dnl %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%mkl-end%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 500 501 502 503 504 505 dnl %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%mumps-beginning%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 460 506 461 507 dnl Mumps directory … … 480 526 fi 481 527 AC_MSG_RESULT($HAVE_MUMPS) 482 483 dnl Blacs directory 528 dnl %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%mumps-end%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 529 530 531 532 dnl %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%blacs-beginning%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 484 533 AC_ARG_WITH([blacs-dir], 485 534 AS_HELP_STRING([--with-blacs-dir = DIR], … … 502 551 fi 503 552 AC_MSG_RESULT($HAVE_BLACS) 504 505 dnl math library option 553 dnl %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%blacs-end%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 554 555 556 557 558 dnl %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%math-beginning%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 506 559 AC_MSG_CHECKING(for math library...) 507 560 AC_ARG_WITH([math-lib], … … 519 572 fi 520 573 AC_MSG_RESULT(done) 521 574 dnl %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%math-end%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 575 576 577 578 dnl %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%fortran-beginning%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 522 579 dnl fortran library option 523 580 AC_MSG_CHECKING(for fortran library...) … … 536 593 fi 537 594 AC_MSG_RESULT(done) 538 539 dnl graphics library option 595 dnl %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%fortran-end%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 596 597 598 599 600 dnl %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%graphics-beginning%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 540 601 AC_MSG_CHECKING(for graphics library...) 541 602 AC_ARG_WITH([graphics-lib], … … 553 614 fi 554 615 AC_MSG_RESULT(done) 555 556 dnl vendor? 616 dnl %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%graphics-end%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 617 618 619 620 dnl %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%vendor-beginning%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 557 621 AC_ARG_WITH([vendor], 558 622 AS_HELP_STRING([--with-vendor = VENDOR], [vendor name, ex: intel]), … … 569 633 fi 570 634 fi 635 AC_MSG_RESULT(done) 636 dnl %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%vendor-end%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 637 638 639 640 dnl %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%optimization-beginning%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 641 dnl bypass standard optimization -g -O2 ? 642 AC_ARG_WITH([cxxoptflags], 643 AS_HELP_STRING([--with-cxxoptflags = CXXOPTFLAGS], [optimization using CXX flags, ex: --with-cxxoptflags=-march=opteron -O3]), 644 [CXXOPTFLAGS=$withval],[CXXOPTFLAGS="-g -O2"]) 645 AC_MSG_CHECKING(for C++ optimization flags ) 646 AC_SUBST([CXXOPTFLAGS]) 647 AC_MSG_RESULT(done) 648 649 dnl %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%optimization-end%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 650 651 571 652 ]) -
issm/trunk/src/c/Makefile.am
r2042 r2047 302 302 303 303 304 libISSM_a_CXXFLAGS = -fPIC -DMATLAB -D_SERIAL_ -ansi -D_GNU_SOURCE -fno-omit-frame-pointer -pthread -D_CPP_ -g -O2304 libISSM_a_CXXFLAGS = -fPIC -DMATLAB -D_SERIAL_ -ansi -D_GNU_SOURCE -fno-omit-frame-pointer -pthread -D_CPP_ $(CXXOPTFLAGS) 305 305 if LARGEARRAYS 306 306 libISSM_a_CXXFLAGS += -D__GCC4BUILD__ … … 607 607 ./parallel/OutputResults.cpp 608 608 609 libpISSM_a_CXXFLAGS = -fPIC -D_PARALLEL_ -D_C_ 609 libpISSM_a_CXXFLAGS = -fPIC -D_PARALLEL_ -D_C_ $(CXXOPTFLAGS) 610 610 611 611 if NOPARALLEL -
issm/trunk/src/m/classes/@model/setdefaultparameters.m
r1916 r2047 260 260 %the string of solverstring is used directly by PETSc to solve finite element 261 261 %systems KU=F. By default, we use MUMPS solver 262 md .solverstring=' -mat_type aijmumps -ksp_type preonly -pc_type lu -mat_mumps_icntl_14 40 ';262 md=solversettomumps(md); 263 263 264 264 %Ice solver: 'general' for Matlab's default solver (or 'lu' or 'sholesky') -
issm/trunk/src/m/classes/public/solversettoasm.m
r1293 r2047 5 5 % md=solversettoasm(md) 6 6 7 md.solverstring=' -mat_type aij -ksp_type cgs -pc_type asm -sub_mat_type mumps -sub_pc_type lu -pc_asm_overlap 4 ';7 md.solverstring=' -mat_type aij -ksp_type cgs -pc_type asm -sub_mat_type mumps -sub_pc_type lu -pc_asm_overlap 4 -pc_factor_shift_positive_definite true'; 8 8 %md.solverstring=' -mat_type aij -ksp_type cgs -pc_type asm -sub_pc_type lu -pc_asm_overlap 2 '; -
issm/trunk/src/m/classes/public/solversettomumps.m
r1 r2047 5 5 % md=solversettomumps(md) 6 6 7 md.solverstring=' -mat_type aijmumps -ksp_type preonly -pc_type lu -mat_mumps_icntl_14 40';7 md.solverstring=' -mat_type aijmumps -ksp_type preonly -pc_type lu -mat_mumps_icntl_14 80 -pc_factor_shift_positive_definite true'; 8 8 9 9 %optional -
issm/trunk/src/mex/Makefile.am
r2042 r2047 64 64 65 65 #Matlab 66 AM_CFLAGS= -DMATLAB -fPIC -fno-omit-frame-pointer -std=c99 -D_GNU_SOURCE -pthread -fexceptions67 66 AM_CXXFLAGS= -DMATLAB -ansi -D_GNU_SOURCE -fPIC -fno-omit-frame-pointer -pthread 68 67 69 68 #Triangle library 70 69 AM_CXXFLAGS+= -DTRILIBRARY -DANSI_DECLARATORS -DNO_TIMER 71 AM_CFLAGS+= -DTRILIBRARY -DANSI_DECLARATORS -DNO_TIMER72 70 73 71 74 72 #64 vs 32 bits 75 73 if LARGEARRAYS 76 AM_CFLAGS += -D__GCC4BUILD__ -D_SERIAL_77 74 AM_CXXFLAGS += -D__GCC4BUILD__ -D_SERIAL_ 78 75 else 79 AM_CFLAGS += -DMX_COMPAT_32 -D_SERIAL_80 76 AM_CXXFLAGS += -DMX_COMPAT_32 -D_SERIAL_ 81 77 endif 82 78 79 AM_CXXFLAGS += $(CXXOPTFLAGS) 80 83 81 BuildNodeSets_SOURCES = BuildNodeSets/BuildNodeSets.cpp\ 84 82 BuildNodeSets/BuildNodeSets.h
Note:
See TracChangeset
for help on using the changeset viewer.