Changeset 19518
- Timestamp:
- 08/25/15 16:59:29 (10 years ago)
- Location:
- issm/trunk-jpl
- Files:
-
- 1 added
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/externalpackages/cmake/install.sh
r19511 r19518 4 4 5 5 #Some cleanup 6 rm -rf install cmake- $VER6 rm -rf install cmake-3.3.1 7 7 mkdir install 8 8 9 9 #Download from ISSM server 10 $ISSM_DIR/scripts/DownloadExternalPackage.py "http://issm.jpl.nasa.gov/files/externalpackages/cmake-$VER.tar.gz" "cmake-$VER.tar.gz"10 $ISSM_DIR/scripts/DownloadExternalPackage.py 'http://issm.jpl.nasa.gov/files/externalpackages/cmake-3.3.1.tar.gz' 'cmake-3.3.1.tar.gz' 11 11 12 12 #Untar 13 tar -zxvf cmake- $VER.tar.gz13 tar -zxvf cmake-3.3.1.tar.gz 14 14 15 15 #Move cmake into install directory 16 mv cmake- $VER/* install17 rm -rf cmake- $VER16 mv cmake-3.3.1/* install 17 rm -rf cmake-3.3.1 18 18 19 19 #Compile cmake -
issm/trunk-jpl/m4/analyses.m4
r19172 r19518 11 11 12 12 dnl with-AdjointBalancethickness{{{ 13 13 14 AC_ARG_WITH([AdjointBalancethickness], 15 14 16 AS_HELP_STRING([--with-AdjointBalancethickness = YES], [compile with AdjointBalancethickness capabilities (default is yes)]), 17 15 18 [ADJOINTBALANCETHICKNESS=$withval],[ADJOINTBALANCETHICKNESS=yes]) 19 16 20 AC_MSG_CHECKING(for AdjointBalancethickness capability compilation) 17 21 22 18 23 HAVE_ADJOINTBALANCETHICKNESS=no 24 19 25 if test "x$ADJOINTBALANCETHICKNESS" = "xyes"; then 26 20 27 HAVE_ADJOINTBALANCETHICKNESS=yes 28 21 29 AC_DEFINE([_HAVE_ADJOINTBALANCETHICKNESS_],[1],[with AdjointBalancethickness capability]) 22 fi 30 31 fi 32 23 33 AM_CONDITIONAL([ADJOINTBALANCETHICKNESS], [test x$HAVE_ADJOINTBALANCETHICKNESS = xyes]) 34 24 35 AC_MSG_RESULT($HAVE_ADJOINTBALANCETHICKNESS) 36 25 37 dnl }}} 26 38 dnl with-AdjointBalancethickness2{{{ 39 27 40 AC_ARG_WITH([AdjointBalancethickness2], 41 28 42 AS_HELP_STRING([--with-AdjointBalancethickness2 = YES], [compile with AdjointBalancethickness2 capabilities (default is yes)]), 43 29 44 [ADJOINTBALANCETHICKNESS2=$withval],[ADJOINTBALANCETHICKNESS2=yes]) 45 30 46 AC_MSG_CHECKING(for AdjointBalancethickness2 capability compilation) 31 47 48 32 49 HAVE_ADJOINTBALANCETHICKNESS2=no 50 33 51 if test "x$ADJOINTBALANCETHICKNESS2" = "xyes"; then 52 34 53 HAVE_ADJOINTBALANCETHICKNESS2=yes 54 35 55 AC_DEFINE([_HAVE_ADJOINTBALANCETHICKNESS2_],[1],[with AdjointBalancethickness2 capability]) 36 fi 56 57 fi 58 37 59 AM_CONDITIONAL([ADJOINTBALANCETHICKNESS2], [test x$HAVE_ADJOINTBALANCETHICKNESS2 = xyes]) 60 38 61 AC_MSG_RESULT($HAVE_ADJOINTBALANCETHICKNESS2) 62 39 63 dnl }}} 40 64 dnl with-AdjointHoriz{{{ 65 41 66 AC_ARG_WITH([AdjointHoriz], 67 42 68 AS_HELP_STRING([--with-AdjointHoriz = YES], [compile with AdjointHoriz capabilities (default is yes)]), 69 43 70 [ADJOINTHORIZ=$withval],[ADJOINTHORIZ=yes]) 71 44 72 AC_MSG_CHECKING(for AdjointHoriz capability compilation) 45 73 74 46 75 HAVE_ADJOINTHORIZ=no 76 47 77 if test "x$ADJOINTHORIZ" = "xyes"; then 78 48 79 HAVE_ADJOINTHORIZ=yes 80 49 81 AC_DEFINE([_HAVE_ADJOINTHORIZ_],[1],[with AdjointHoriz capability]) 50 fi 82 83 fi 84 51 85 AM_CONDITIONAL([ADJOINTHORIZ], [test x$HAVE_ADJOINTHORIZ = xyes]) 86 52 87 AC_MSG_RESULT($HAVE_ADJOINTHORIZ) 88 53 89 dnl }}} 54 90 dnl with-Balancethickness{{{ 91 55 92 AC_ARG_WITH([Balancethickness], 93 56 94 AS_HELP_STRING([--with-Balancethickness = YES], [compile with Balancethickness capabilities (default is yes)]), 95 57 96 [BALANCETHICKNESS=$withval],[BALANCETHICKNESS=yes]) 97 58 98 AC_MSG_CHECKING(for Balancethickness capability compilation) 59 99 100 60 101 HAVE_BALANCETHICKNESS=no 102 61 103 if test "x$BALANCETHICKNESS" = "xyes"; then 104 62 105 HAVE_BALANCETHICKNESS=yes 106 63 107 AC_DEFINE([_HAVE_BALANCETHICKNESS_],[1],[with Balancethickness capability]) 64 fi 108 109 fi 110 65 111 AM_CONDITIONAL([BALANCETHICKNESS], [test x$HAVE_BALANCETHICKNESS = xyes]) 112 66 113 AC_MSG_RESULT($HAVE_BALANCETHICKNESS) 114 67 115 dnl }}} 68 116 dnl with-Balancethickness2{{{ 117 69 118 AC_ARG_WITH([Balancethickness2], 119 70 120 AS_HELP_STRING([--with-Balancethickness2 = YES], [compile with Balancethickness2 capabilities (default is yes)]), 121 71 122 [BALANCETHICKNESS2=$withval],[BALANCETHICKNESS2=yes]) 123 72 124 AC_MSG_CHECKING(for Balancethickness2 capability compilation) 73 125 126 74 127 HAVE_BALANCETHICKNESS2=no 128 75 129 if test "x$BALANCETHICKNESS2" = "xyes"; then 130 76 131 HAVE_BALANCETHICKNESS2=yes 132 77 133 AC_DEFINE([_HAVE_BALANCETHICKNESS2_],[1],[with Balancethickness2 capability]) 78 fi 134 135 fi 136 79 137 AM_CONDITIONAL([BALANCETHICKNESS2], [test x$HAVE_BALANCETHICKNESS2 = xyes]) 138 80 139 AC_MSG_RESULT($HAVE_BALANCETHICKNESS2) 140 81 141 dnl }}} 82 142 dnl with-BalancethicknessSoft{{{ 143 83 144 AC_ARG_WITH([BalancethicknessSoft], 145 84 146 AS_HELP_STRING([--with-BalancethicknessSoft = YES], [compile with BalancethicknessSoft capabilities (default is yes)]), 147 85 148 [BALANCETHICKNESSSOFT=$withval],[BALANCETHICKNESSSOFT=yes]) 149 86 150 AC_MSG_CHECKING(for BalancethicknessSoft capability compilation) 87 151 152 88 153 HAVE_BALANCETHICKNESSSOFT=no 154 89 155 if test "x$BALANCETHICKNESSSOFT" = "xyes"; then 156 90 157 HAVE_BALANCETHICKNESSSOFT=yes 158 91 159 AC_DEFINE([_HAVE_BALANCETHICKNESSSOFT_],[1],[with BalancethicknessSoft capability]) 92 fi 160 161 fi 162 93 163 AM_CONDITIONAL([BALANCETHICKNESSSOFT], [test x$HAVE_BALANCETHICKNESSSOFT = xyes]) 164 94 165 AC_MSG_RESULT($HAVE_BALANCETHICKNESSSOFT) 166 95 167 dnl }}} 96 168 dnl with-Balancevelocity{{{ 169 97 170 AC_ARG_WITH([Balancevelocity], 171 98 172 AS_HELP_STRING([--with-Balancevelocity = YES], [compile with Balancevelocity capabilities (default is yes)]), 173 99 174 [BALANCEVELOCITY=$withval],[BALANCEVELOCITY=yes]) 175 100 176 AC_MSG_CHECKING(for Balancevelocity capability compilation) 101 177 178 102 179 HAVE_BALANCEVELOCITY=no 180 103 181 if test "x$BALANCEVELOCITY" = "xyes"; then 182 104 183 HAVE_BALANCEVELOCITY=yes 184 105 185 AC_DEFINE([_HAVE_BALANCEVELOCITY_],[1],[with Balancevelocity capability]) 106 fi 186 187 fi 188 107 189 AM_CONDITIONAL([BALANCEVELOCITY], [test x$HAVE_BALANCEVELOCITY = xyes]) 190 108 191 AC_MSG_RESULT($HAVE_BALANCEVELOCITY) 192 109 193 dnl }}} 110 194 dnl with-L2ProjectionEPL{{{ 195 111 196 AC_ARG_WITH([L2ProjectionEPL], 197 112 198 AS_HELP_STRING([--with-L2ProjectionEPL = YES], [compile with L2ProjectionEPL capabilities (default is yes)]), 199 113 200 [L2PROJECTIONEPL=$withval],[L2PROJECTIONEPL=yes]) 201 114 202 AC_MSG_CHECKING(for L2ProjectionEPL capability compilation) 115 203 204 116 205 HAVE_L2PROJECTIONEPL=no 206 117 207 if test "x$L2PROJECTIONEPL" = "xyes"; then 208 118 209 HAVE_L2PROJECTIONEPL=yes 210 119 211 AC_DEFINE([_HAVE_L2PROJECTIONEPL_],[1],[with L2ProjectionEPL capability]) 120 fi 212 213 fi 214 121 215 AM_CONDITIONAL([L2PROJECTIONEPL], [test x$HAVE_L2PROJECTIONEPL = xyes]) 216 122 217 AC_MSG_RESULT($HAVE_L2PROJECTIONEPL) 218 123 219 dnl }}} 124 220 dnl with-L2ProjectionBase{{{ 221 125 222 AC_ARG_WITH([L2ProjectionBase], 223 126 224 AS_HELP_STRING([--with-L2ProjectionBase = YES], [compile with L2ProjectionBase capabilities (default is yes)]), 225 127 226 [L2PROJECTIONBASE=$withval],[L2PROJECTIONBASE=yes]) 227 128 228 AC_MSG_CHECKING(for L2ProjectionBase capability compilation) 129 229 230 130 231 HAVE_L2PROJECTIONBASE=no 232 131 233 if test "x$L2PROJECTIONBASE" = "xyes"; then 234 132 235 HAVE_L2PROJECTIONBASE=yes 236 133 237 AC_DEFINE([_HAVE_L2PROJECTIONBASE_],[1],[with L2ProjectionBase capability]) 134 fi 238 239 fi 240 135 241 AM_CONDITIONAL([L2PROJECTIONBASE], [test x$HAVE_L2PROJECTIONBASE = xyes]) 242 136 243 AC_MSG_RESULT($HAVE_L2PROJECTIONBASE) 244 137 245 dnl }}} 138 246 dnl with-DamageEvolution{{{ 247 139 248 AC_ARG_WITH([DamageEvolution], 249 140 250 AS_HELP_STRING([--with-DamageEvolution = YES], [compile with DamageEvolution capabilities (default is yes)]), 251 141 252 [DAMAGEEVOLUTION=$withval],[DAMAGEEVOLUTION=yes]) 253 142 254 AC_MSG_CHECKING(for DamageEvolution capability compilation) 143 255 256 144 257 HAVE_DAMAGEEVOLUTION=no 258 145 259 if test "x$DAMAGEEVOLUTION" = "xyes"; then 260 146 261 HAVE_DAMAGEEVOLUTION=yes 262 147 263 AC_DEFINE([_HAVE_DAMAGEEVOLUTION_],[1],[with DamageEvolution capability]) 148 fi 264 265 fi 266 149 267 AM_CONDITIONAL([DAMAGEEVOLUTION], [test x$HAVE_DAMAGEEVOLUTION = xyes]) 268 150 269 AC_MSG_RESULT($HAVE_DAMAGEEVOLUTION) 270 151 271 dnl }}} 152 272 dnl with-Stressbalance{{{ 273 153 274 AC_ARG_WITH([Stressbalance], 275 154 276 AS_HELP_STRING([--with-Stressbalance = YES], [compile with Stressbalance capabilities (default is yes)]), 277 155 278 [STRESSBALANCE=$withval],[STRESSBALANCE=yes]) 279 156 280 AC_MSG_CHECKING(for Stressbalance capability compilation) 157 281 282 158 283 HAVE_STRESSBALANCE=no 284 159 285 if test "x$STRESSBALANCE" = "xyes"; then 286 160 287 HAVE_STRESSBALANCE=yes 288 161 289 AC_DEFINE([_HAVE_STRESSBALANCE_],[1],[with Stressbalance capability]) 162 fi 290 291 fi 292 163 293 AM_CONDITIONAL([STRESSBALANCE], [test x$HAVE_STRESSBALANCE = xyes]) 294 164 295 AC_MSG_RESULT($HAVE_STRESSBALANCE) 296 165 297 dnl }}} 166 298 dnl with-StressbalanceSIA{{{ 299 167 300 AC_ARG_WITH([StressbalanceSIA], 301 168 302 AS_HELP_STRING([--with-StressbalanceSIA = YES], [compile with StressbalanceSIA capabilities (default is yes)]), 303 169 304 [STRESSBALANCESIA=$withval],[STRESSBALANCESIA=yes]) 305 170 306 AC_MSG_CHECKING(for StressbalanceSIA capability compilation) 171 307 308 172 309 HAVE_STRESSBALANCESIA=no 310 173 311 if test "x$STRESSBALANCESIA" = "xyes"; then 312 174 313 HAVE_STRESSBALANCESIA=yes 314 175 315 AC_DEFINE([_HAVE_STRESSBALANCESIA_],[1],[with StressbalanceSIA capability]) 176 fi 316 317 fi 318 177 319 AM_CONDITIONAL([STRESSBALANCESIA], [test x$HAVE_STRESSBALANCESIA = xyes]) 320 178 321 AC_MSG_RESULT($HAVE_STRESSBALANCESIA) 322 179 323 dnl }}} 180 324 dnl with-StressbalanceVertical{{{ 325 181 326 AC_ARG_WITH([StressbalanceVertical], 327 182 328 AS_HELP_STRING([--with-StressbalanceVertical = YES], [compile with StressbalanceVertical capabilities (default is yes)]), 329 183 330 [STRESSBALANCEVERTICAL=$withval],[STRESSBALANCEVERTICAL=yes]) 331 184 332 AC_MSG_CHECKING(for StressbalanceVertical capability compilation) 185 333 334 186 335 HAVE_STRESSBALANCEVERTICAL=no 336 187 337 if test "x$STRESSBALANCEVERTICAL" = "xyes"; then 338 188 339 HAVE_STRESSBALANCEVERTICAL=yes 340 189 341 AC_DEFINE([_HAVE_STRESSBALANCEVERTICAL_],[1],[with StressbalanceVertical capability]) 190 fi 342 343 fi 344 191 345 AM_CONDITIONAL([STRESSBALANCEVERTICAL], [test x$HAVE_STRESSBALANCEVERTICAL = xyes]) 346 192 347 AC_MSG_RESULT($HAVE_STRESSBALANCEVERTICAL) 348 193 349 dnl }}} 194 350 dnl with-Enthalpy{{{ 351 195 352 AC_ARG_WITH([Enthalpy], 353 196 354 AS_HELP_STRING([--with-Enthalpy = YES], [compile with Enthalpy capabilities (default is yes)]), 355 197 356 [ENTHALPY=$withval],[ENTHALPY=yes]) 357 198 358 AC_MSG_CHECKING(for Enthalpy capability compilation) 199 359 360 200 361 HAVE_ENTHALPY=no 362 201 363 if test "x$ENTHALPY" = "xyes"; then 364 202 365 HAVE_ENTHALPY=yes 366 203 367 AC_DEFINE([_HAVE_ENTHALPY_],[1],[with Enthalpy capability]) 204 fi 368 369 fi 370 205 371 AM_CONDITIONAL([ENTHALPY], [test x$HAVE_ENTHALPY = xyes]) 372 206 373 AC_MSG_RESULT($HAVE_ENTHALPY) 374 207 375 dnl }}} 208 376 dnl with-HydrologyShreve{{{ 377 209 378 AC_ARG_WITH([HydrologyShreve], 379 210 380 AS_HELP_STRING([--with-HydrologyShreve = YES], [compile with HydrologyShreve capabilities (default is yes)]), 381 211 382 [HYDROLOGYSHREVE=$withval],[HYDROLOGYSHREVE=yes]) 383 212 384 AC_MSG_CHECKING(for HydrologyShreve capability compilation) 213 385 386 214 387 HAVE_HYDROLOGYSHREVE=no 388 215 389 if test "x$HYDROLOGYSHREVE" = "xyes"; then 390 216 391 HAVE_HYDROLOGYSHREVE=yes 392 217 393 AC_DEFINE([_HAVE_HYDROLOGYSHREVE_],[1],[with HydrologyShreve capability]) 218 fi 394 395 fi 396 219 397 AM_CONDITIONAL([HYDROLOGYSHREVE], [test x$HAVE_HYDROLOGYSHREVE = xyes]) 398 220 399 AC_MSG_RESULT($HAVE_HYDROLOGYSHREVE) 400 221 401 dnl }}} 222 402 dnl with-HydrologyDCInefficient{{{ 403 223 404 AC_ARG_WITH([HydrologyDCInefficient], 405 224 406 AS_HELP_STRING([--with-HydrologyDCInefficient = YES], [compile with HydrologyDCInefficient capabilities (default is yes)]), 407 225 408 [HYDROLOGYDCINEFFICIENT=$withval],[HYDROLOGYDCINEFFICIENT=yes]) 409 226 410 AC_MSG_CHECKING(for HydrologyDCInefficient capability compilation) 227 411 412 228 413 HAVE_HYDROLOGYDCINEFFICIENT=no 414 229 415 if test "x$HYDROLOGYDCINEFFICIENT" = "xyes"; then 416 230 417 HAVE_HYDROLOGYDCINEFFICIENT=yes 418 231 419 AC_DEFINE([_HAVE_HYDROLOGYDCINEFFICIENT_],[1],[with HydrologyDCInefficient capability]) 232 fi 420 421 fi 422 233 423 AM_CONDITIONAL([HYDROLOGYDCINEFFICIENT], [test x$HAVE_HYDROLOGYDCINEFFICIENT = xyes]) 424 234 425 AC_MSG_RESULT($HAVE_HYDROLOGYDCINEFFICIENT) 426 235 427 dnl }}} 236 428 dnl with-HydrologyDCEfficient{{{ 429 237 430 AC_ARG_WITH([HydrologyDCEfficient], 431 238 432 AS_HELP_STRING([--with-HydrologyDCEfficient = YES], [compile with HydrologyDCEfficient capabilities (default is yes)]), 433 239 434 [HYDROLOGYDCEFFICIENT=$withval],[HYDROLOGYDCEFFICIENT=yes]) 435 240 436 AC_MSG_CHECKING(for HydrologyDCEfficient capability compilation) 241 437 438 242 439 HAVE_HYDROLOGYDCEFFICIENT=no 440 243 441 if test "x$HYDROLOGYDCEFFICIENT" = "xyes"; then 442 244 443 HAVE_HYDROLOGYDCEFFICIENT=yes 444 245 445 AC_DEFINE([_HAVE_HYDROLOGYDCEFFICIENT_],[1],[with HydrologyDCEfficient capability]) 246 fi 446 447 fi 448 247 449 AM_CONDITIONAL([HYDROLOGYDCEFFICIENT], [test x$HAVE_HYDROLOGYDCEFFICIENT = xyes]) 450 248 451 AC_MSG_RESULT($HAVE_HYDROLOGYDCEFFICIENT) 452 249 453 dnl }}} 250 454 dnl with-Melting{{{ 455 251 456 AC_ARG_WITH([Melting], 457 252 458 AS_HELP_STRING([--with-Melting = YES], [compile with Melting capabilities (default is yes)]), 459 253 460 [MELTING=$withval],[MELTING=yes]) 461 254 462 AC_MSG_CHECKING(for Melting capability compilation) 255 463 464 256 465 HAVE_MELTING=no 466 257 467 if test "x$MELTING" = "xyes"; then 468 258 469 HAVE_MELTING=yes 470 259 471 AC_DEFINE([_HAVE_MELTING_],[1],[with Melting capability]) 260 fi 472 473 fi 474 261 475 AM_CONDITIONAL([MELTING], [test x$HAVE_MELTING = xyes]) 476 262 477 AC_MSG_RESULT($HAVE_MELTING) 478 263 479 dnl }}} 264 480 dnl with-Masstransport{{{ 481 265 482 AC_ARG_WITH([Masstransport], 483 266 484 AS_HELP_STRING([--with-Masstransport = YES], [compile with Masstransport capabilities (default is yes)]), 485 267 486 [MASSTRANSPORT=$withval],[MASSTRANSPORT=yes]) 487 268 488 AC_MSG_CHECKING(for Masstransport capability compilation) 269 489 490 270 491 HAVE_MASSTRANSPORT=no 492 271 493 if test "x$MASSTRANSPORT" = "xyes"; then 494 272 495 HAVE_MASSTRANSPORT=yes 496 273 497 AC_DEFINE([_HAVE_MASSTRANSPORT_],[1],[with Masstransport capability]) 274 fi 498 499 fi 500 275 501 AM_CONDITIONAL([MASSTRANSPORT], [test x$HAVE_MASSTRANSPORT = xyes]) 502 276 503 AC_MSG_RESULT($HAVE_MASSTRANSPORT) 504 277 505 dnl }}} 278 506 dnl with-FreeSurfaceBase{{{ 507 279 508 AC_ARG_WITH([FreeSurfaceBase], 509 280 510 AS_HELP_STRING([--with-FreeSurfaceBase = YES], [compile with FreeSurfaceBase capabilities (default is yes)]), 511 281 512 [FREESURFACEBASE=$withval],[FREESURFACEBASE=yes]) 513 282 514 AC_MSG_CHECKING(for FreeSurfaceBase capability compilation) 283 515 516 284 517 HAVE_FREESURFACEBASE=no 518 285 519 if test "x$FREESURFACEBASE" = "xyes"; then 520 286 521 HAVE_FREESURFACEBASE=yes 522 287 523 AC_DEFINE([_HAVE_FREESURFACEBASE_],[1],[with FreeSurfaceBase capability]) 288 fi 524 525 fi 526 289 527 AM_CONDITIONAL([FREESURFACEBASE], [test x$HAVE_FREESURFACEBASE = xyes]) 528 290 529 AC_MSG_RESULT($HAVE_FREESURFACEBASE) 530 291 531 dnl }}} 292 532 dnl with-FreeSurfaceTop{{{ 533 293 534 AC_ARG_WITH([FreeSurfaceTop], 535 294 536 AS_HELP_STRING([--with-FreeSurfaceTop = YES], [compile with FreeSurfaceTop capabilities (default is yes)]), 537 295 538 [FREESURFACETOP=$withval],[FREESURFACETOP=yes]) 539 296 540 AC_MSG_CHECKING(for FreeSurfaceTop capability compilation) 297 541 542 298 543 HAVE_FREESURFACETOP=no 544 299 545 if test "x$FREESURFACETOP" = "xyes"; then 546 300 547 HAVE_FREESURFACETOP=yes 548 301 549 AC_DEFINE([_HAVE_FREESURFACETOP_],[1],[with FreeSurfaceTop capability]) 302 fi 550 551 fi 552 303 553 AM_CONDITIONAL([FREESURFACETOP], [test x$HAVE_FREESURFACETOP = xyes]) 554 304 555 AC_MSG_RESULT($HAVE_FREESURFACETOP) 556 305 557 dnl }}} 306 558 dnl with-ExtrudeFromBase{{{ 559 307 560 AC_ARG_WITH([ExtrudeFromBase], 561 308 562 AS_HELP_STRING([--with-ExtrudeFromBase = YES], [compile with ExtrudeFromBase capabilities (default is yes)]), 563 309 564 [EXTRUDEFROMBASE=$withval],[EXTRUDEFROMBASE=yes]) 565 310 566 AC_MSG_CHECKING(for ExtrudeFromBase capability compilation) 311 567 568 312 569 HAVE_EXTRUDEFROMBASE=no 570 313 571 if test "x$EXTRUDEFROMBASE" = "xyes"; then 572 314 573 HAVE_EXTRUDEFROMBASE=yes 574 315 575 AC_DEFINE([_HAVE_EXTRUDEFROMBASE_],[1],[with ExtrudeFromBase capability]) 316 fi 576 577 fi 578 317 579 AM_CONDITIONAL([EXTRUDEFROMBASE], [test x$HAVE_EXTRUDEFROMBASE = xyes]) 580 318 581 AC_MSG_RESULT($HAVE_EXTRUDEFROMBASE) 582 319 583 dnl }}} 320 584 dnl with-ExtrudeFromTop{{{ 585 321 586 AC_ARG_WITH([ExtrudeFromTop], 587 322 588 AS_HELP_STRING([--with-ExtrudeFromTop = YES], [compile with ExtrudeFromTop capabilities (default is yes)]), 589 323 590 [EXTRUDEFROMTOP=$withval],[EXTRUDEFROMTOP=yes]) 591 324 592 AC_MSG_CHECKING(for ExtrudeFromTop capability compilation) 325 593 594 326 595 HAVE_EXTRUDEFROMTOP=no 596 327 597 if test "x$EXTRUDEFROMTOP" = "xyes"; then 598 328 599 HAVE_EXTRUDEFROMTOP=yes 600 329 601 AC_DEFINE([_HAVE_EXTRUDEFROMTOP_],[1],[with ExtrudeFromTop capability]) 330 fi 602 603 fi 604 331 605 AM_CONDITIONAL([EXTRUDEFROMTOP], [test x$HAVE_EXTRUDEFROMTOP = xyes]) 606 332 607 AC_MSG_RESULT($HAVE_EXTRUDEFROMTOP) 608 333 609 dnl }}} 334 610 dnl with-DepthAverage{{{ 611 335 612 AC_ARG_WITH([DepthAverage], 613 336 614 AS_HELP_STRING([--with-DepthAverage = YES], [compile with DepthAverage capabilities (default is yes)]), 615 337 616 [DEPTHAVERAGE=$withval],[DEPTHAVERAGE=yes]) 617 338 618 AC_MSG_CHECKING(for DepthAverage capability compilation) 339 619 620 340 621 HAVE_DEPTHAVERAGE=no 622 341 623 if test "x$DEPTHAVERAGE" = "xyes"; then 624 342 625 HAVE_DEPTHAVERAGE=yes 626 343 627 AC_DEFINE([_HAVE_DEPTHAVERAGE_],[1],[with DepthAverage capability]) 344 fi 628 629 fi 630 345 631 AM_CONDITIONAL([DEPTHAVERAGE], [test x$HAVE_DEPTHAVERAGE = xyes]) 632 346 633 AC_MSG_RESULT($HAVE_DEPTHAVERAGE) 634 347 635 dnl }}} 348 636 dnl with-Smooth{{{ 637 349 638 AC_ARG_WITH([Smooth], 639 350 640 AS_HELP_STRING([--with-Smooth = YES], [compile with Smooth capabilities (default is yes)]), 641 351 642 [SMOOTH=$withval],[SMOOTH=yes]) 643 352 644 AC_MSG_CHECKING(for Smooth capability compilation) 353 645 646 354 647 HAVE_SMOOTH=no 648 355 649 if test "x$SMOOTH" = "xyes"; then 650 356 651 HAVE_SMOOTH=yes 652 357 653 AC_DEFINE([_HAVE_SMOOTH_],[1],[with Smooth capability]) 358 fi 654 655 fi 656 359 657 AM_CONDITIONAL([SMOOTH], [test x$HAVE_SMOOTH = xyes]) 658 360 659 AC_MSG_RESULT($HAVE_SMOOTH) 660 361 661 dnl }}} 362 662 dnl with-Thermal{{{ 663 363 664 AC_ARG_WITH([Thermal], 665 364 666 AS_HELP_STRING([--with-Thermal = YES], [compile with Thermal capabilities (default is yes)]), 667 365 668 [THERMAL=$withval],[THERMAL=yes]) 669 366 670 AC_MSG_CHECKING(for Thermal capability compilation) 367 671 672 368 673 HAVE_THERMAL=no 674 369 675 if test "x$THERMAL" = "xyes"; then 676 370 677 HAVE_THERMAL=yes 678 371 679 AC_DEFINE([_HAVE_THERMAL_],[1],[with Thermal capability]) 372 fi 680 681 fi 682 373 683 AM_CONDITIONAL([THERMAL], [test x$HAVE_THERMAL = xyes]) 684 374 685 AC_MSG_RESULT($HAVE_THERMAL) 686 375 687 dnl }}} 376 688 dnl with-UzawaPressure{{{ 689 377 690 AC_ARG_WITH([UzawaPressure], 691 378 692 AS_HELP_STRING([--with-UzawaPressure = YES], [compile with UzawaPressure capabilities (default is yes)]), 693 379 694 [UZAWAPRESSURE=$withval],[UZAWAPRESSURE=yes]) 695 380 696 AC_MSG_CHECKING(for UzawaPressure capability compilation) 381 697 698 382 699 HAVE_UZAWAPRESSURE=no 700 383 701 if test "x$UZAWAPRESSURE" = "xyes"; then 702 384 703 HAVE_UZAWAPRESSURE=yes 704 385 705 AC_DEFINE([_HAVE_UZAWAPRESSURE_],[1],[with UzawaPressure capability]) 386 fi 706 707 fi 708 387 709 AM_CONDITIONAL([UZAWAPRESSURE], [test x$HAVE_UZAWAPRESSURE = xyes]) 710 388 711 AC_MSG_RESULT($HAVE_UZAWAPRESSURE) 712 389 713 dnl }}} 390 714 dnl with-Gia{{{ 715 391 716 AC_ARG_WITH([Gia], 717 392 718 AS_HELP_STRING([--with-Gia = YES], [compile with Gia capabilities (default is yes)]), 719 393 720 [GIA=$withval],[GIA=yes]) 721 394 722 AC_MSG_CHECKING(for Gia capability compilation) 395 723 724 396 725 HAVE_GIA=no 726 397 727 if test "x$GIA" = "xyes"; then 728 398 729 HAVE_GIA=yes 730 399 731 AC_DEFINE([_HAVE_GIA_],[1],[with Gia capability]) 400 fi 732 733 fi 734 401 735 AM_CONDITIONAL([GIA], [test x$HAVE_GIA = xyes]) 736 402 737 AC_MSG_RESULT($HAVE_GIA) 738 403 739 dnl }}} 404 740 dnl with-Meshdeformation{{{ 741 405 742 AC_ARG_WITH([Meshdeformation], 743 406 744 AS_HELP_STRING([--with-Meshdeformation = YES], [compile with Meshdeformation capabilities (default is yes)]), 745 407 746 [MESHDEFORMATION=$withval],[MESHDEFORMATION=yes]) 747 408 748 AC_MSG_CHECKING(for Meshdeformation capability compilation) 409 749 750 410 751 HAVE_MESHDEFORMATION=no 752 411 753 if test "x$MESHDEFORMATION" = "xyes"; then 754 412 755 HAVE_MESHDEFORMATION=yes 756 413 757 AC_DEFINE([_HAVE_MESHDEFORMATION_],[1],[with Meshdeformation capability]) 414 fi 758 759 fi 760 415 761 AM_CONDITIONAL([MESHDEFORMATION], [test x$HAVE_MESHDEFORMATION = xyes]) 762 416 763 AC_MSG_RESULT($HAVE_MESHDEFORMATION) 764 417 765 dnl }}} 418 766 dnl with-Levelset{{{ 767 419 768 AC_ARG_WITH([Levelset], 769 420 770 AS_HELP_STRING([--with-Levelset = YES], [compile with Levelset capabilities (default is yes)]), 771 421 772 [LEVELSET=$withval],[LEVELSET=yes]) 773 422 774 AC_MSG_CHECKING(for Levelset capability compilation) 423 775 776 424 777 HAVE_LEVELSET=no 778 425 779 if test "x$LEVELSET" = "xyes"; then 780 426 781 HAVE_LEVELSET=yes 782 427 783 AC_DEFINE([_HAVE_LEVELSET_],[1],[with Levelset capability]) 428 fi 784 785 fi 786 429 787 AM_CONDITIONAL([LEVELSET], [test x$HAVE_LEVELSET = xyes]) 788 430 789 AC_MSG_RESULT($HAVE_LEVELSET) 790 431 791 dnl }}} 432 792 dnl with-Extrapolation{{{ 793 433 794 AC_ARG_WITH([Extrapolation], 795 434 796 AS_HELP_STRING([--with-Extrapolation = YES], [compile with Extrapolation capabilities (default is yes)]), 797 435 798 [EXTRAPOLATION=$withval],[EXTRAPOLATION=yes]) 799 436 800 AC_MSG_CHECKING(for Extrapolation capability compilation) 437 801 802 438 803 HAVE_EXTRAPOLATION=no 804 439 805 if test "x$EXTRAPOLATION" = "xyes"; then 806 440 807 HAVE_EXTRAPOLATION=yes 808 441 809 AC_DEFINE([_HAVE_EXTRAPOLATION_],[1],[with Extrapolation capability]) 442 fi 810 811 fi 812 443 813 AM_CONDITIONAL([EXTRAPOLATION], [test x$HAVE_EXTRAPOLATION = xyes]) 814 444 815 AC_MSG_RESULT($HAVE_EXTRAPOLATION) 816 445 817 dnl }}} 446 818 dnl with-LsfReinitialization{{{ 819 447 820 AC_ARG_WITH([LsfReinitialization], 821 448 822 AS_HELP_STRING([--with-LsfReinitialization = YES], [compile with LsfReinitialization capabilities (default is yes)]), 823 449 824 [LSFREINITIALIZATION=$withval],[LSFREINITIALIZATION=yes]) 825 450 826 AC_MSG_CHECKING(for LsfReinitialization capability compilation) 451 827 828 452 829 HAVE_LSFREINITIALIZATION=no 830 453 831 if test "x$LSFREINITIALIZATION" = "xyes"; then 832 454 833 HAVE_LSFREINITIALIZATION=yes 834 455 835 AC_DEFINE([_HAVE_LSFREINITIALIZATION_],[1],[with LsfReinitialization capability]) 456 fi 836 837 fi 838 457 839 AM_CONDITIONAL([LSFREINITIALIZATION], [test x$HAVE_LSFREINITIALIZATION = xyes]) 840 458 841 AC_MSG_RESULT($HAVE_LSFREINITIALIZATION) 842 459 843 dnl }}} 460 844 -
issm/trunk-jpl/src/c/classes/Elements/Element.h
r19479 r19518 211 211 virtual void GetVerticesCoordinatesBase(IssmDouble** xyz_list)=0; 212 212 virtual void GetVerticesCoordinatesTop(IssmDouble** xyz_list)=0; 213 virtual IssmDouble GroundedArea(void)=0; 213 214 virtual IssmDouble IceMass(void)=0; 214 215 virtual IssmDouble IceVolume(void)=0; -
issm/trunk-jpl/src/c/classes/Elements/Penta.cpp
r19395 r19518 1163 1163 1164 1164 }/*}}}*/ 1165 IssmDouble Penta::GroundedArea(void){/*{{{*/ 1166 1167 /*Intermediaries*/ 1168 int domaintype; 1169 IssmDouble phi,base_area; 1170 IssmDouble xyz_list[NUMVERTICES][3]; 1171 1172 if(!IsIceInElement() || !IsOnBase())return 0.; 1173 1174 /*Get problem dimension*/ 1175 this->FindParam(&domaintype,DomainTypeEnum); 1176 if(domaintype!=Domain3DEnum) _error_("mesh "<<EnumToStringx(domaintype)<<" not supported yet"); 1177 1178 ::GetVerticesCoordinates(&xyz_list[0][0],vertices,NUMVERTICES); 1179 phi=this->GetGroundedPortion(&xyz_list[0][0]); 1180 base_area= 1./2.*fabs((xyz_list[0][0]-xyz_list[2][0])*(xyz_list[1][1]-xyz_list[0][1]) - (xyz_list[0][0]-xyz_list[1][0])*(xyz_list[2][1]-xyz_list[0][1])); 1181 1182 /*Clean up and return*/ 1183 return phi*base_area; 1184 } 1185 /*}}}*/ 1165 1186 IssmDouble Penta::IceMass(void){/*{{{*/ 1166 1187 -
issm/trunk-jpl/src/c/classes/Elements/Penta.h
r19254 r19518 86 86 void GetVerticesCoordinatesBase(IssmDouble** pxyz_list); 87 87 void GetVerticesCoordinatesTop(IssmDouble** pxyz_list); 88 IssmDouble GroundedArea(void); 88 89 IssmDouble IceMass(void); 89 90 IssmDouble IceVolume(void); -
issm/trunk-jpl/src/c/classes/Elements/Seg.h
r19254 r19518 77 77 void GetVerticesCoordinatesBase(IssmDouble** pxyz_list){_error_("not implemented yet");}; 78 78 void GetVerticesCoordinatesTop(IssmDouble** pxyz_list){_error_("not implemented yet");}; 79 IssmDouble GroundedArea(void){_error_("not implemented yet");}; 79 80 IssmDouble IceMass(void){_error_("not implemented yet");}; 80 81 IssmDouble IceVolume(void){_error_("not implemented yet");}; -
issm/trunk-jpl/src/c/classes/Elements/Tetra.h
r19254 r19518 81 81 void GetVerticesCoordinatesTop(IssmDouble** pxyz_list); 82 82 void GradientIndexing(int* indexing,int control_index){_error_("not implemented yet");}; 83 IssmDouble GroundedArea(void){_error_("not implemented yet");}; 83 84 bool HasFaceOnBase(); 84 85 bool HasFaceOnSurface(); -
issm/trunk-jpl/src/c/classes/Elements/Tria.cpp
r19478 r19518 1593 1593 1594 1594 }/*}}}*/ 1595 IssmDouble Tria::GroundedArea(void){/*{{{*/ 1596 1597 /*Intermediaries*/ 1598 int domaintype; 1599 IssmDouble phi; 1600 IssmDouble *xyz_list = NULL; 1601 1602 if(!IsIceInElement())return 0.; 1603 1604 /*Get problem dimension*/ 1605 this->FindParam(&domaintype,DomainTypeEnum); 1606 if(domaintype!=Domain2DhorizontalEnum && domaintype!=Domain3DEnum) _error_("mesh "<<EnumToStringx(domaintype)<<" not supported yet"); 1607 1608 this->GetVerticesCoordinates(&xyz_list); 1609 phi=this->GetGroundedPortion(xyz_list); 1610 1611 /*Clean up and return*/ 1612 xDelete<IssmDouble>(xyz_list); 1613 return phi*this->GetArea(); 1614 } 1615 /*}}}*/ 1595 1616 bool Tria::HasEdgeOnBase(){/*{{{*/ 1596 1617 -
issm/trunk-jpl/src/c/classes/Elements/Tria.h
r19476 r19518 89 89 void GetVerticesCoordinatesBase(IssmDouble** pxyz_list); 90 90 void GetVerticesCoordinatesTop(IssmDouble** pxyz_list); 91 IssmDouble GroundedArea(void); 91 92 bool HasEdgeOnBase(); 92 93 bool HasEdgeOnSurface(); -
issm/trunk-jpl/src/c/classes/FemModel.cpp
r19476 r19518 993 993 case DivergenceEnum: this->Divergencex(&double_result); break; 994 994 case MaxDivergenceEnum: this->MaxDivergencex(&double_result); break; 995 case IceMassEnum: this->IceMassx(&double_result);break;995 case IceMassEnum: this->IceMassx(&double_result); break; 996 996 case IceVolumeEnum: this->IceVolumex(&double_result); break; 997 997 case IceVolumeAboveFloatationEnum: this->IceVolumeAboveFloatationx(&double_result); break; 998 case GroundedAreaEnum: this->GroundedAreax(&double_result); break; 998 999 case MinVelEnum: this->MinVelx(&double_result); break; 999 1000 case MaxVelEnum: this->MaxVelx(&double_result); break; … … 1611 1612 1612 1613 }/*}}}*/ 1614 void FemModel::GroundedAreax(IssmDouble* pV){/*{{{*/ 1615 1616 IssmDouble local_grounded_area= 0; 1617 IssmDouble total_grounded_area; 1618 1619 for(int i=0;i<this->elements->Size();i++){ 1620 Element* element=xDynamicCast<Element*>(this->elements->GetObjectByOffset(i)); 1621 local_grounded_area+=element->GroundedArea(); 1622 } 1623 ISSM_MPI_Reduce(&local_grounded_area,&total_grounded_area,1,ISSM_MPI_DOUBLE,ISSM_MPI_SUM,0,IssmComm::GetComm() ); 1624 ISSM_MPI_Bcast(&total_grounded_area,1,ISSM_MPI_DOUBLE,0,IssmComm::GetComm()); 1625 1626 /*Assign output pointers: */ 1627 *pV=total_grounded_area; 1628 1629 }/*}}}*/ 1613 1630 void FemModel::IceMassx(IssmDouble* pM){/*{{{*/ 1614 1631 -
issm/trunk-jpl/src/c/classes/FemModel.h
r19476 r19518 82 82 void Divergencex(IssmDouble* pdiv); 83 83 void MaxDivergencex(IssmDouble* pdiv); 84 void GroundedAreax(IssmDouble* pV); 84 85 void IceMassx(IssmDouble* pV); 85 86 void IceVolumex(IssmDouble* pV); -
issm/trunk-jpl/src/c/shared/Enum/EnumDefinitions.h
r19479 r19518 828 828 MaxVzEnum, 829 829 MaxAbsVzEnum, 830 GroundedAreaEnum, 830 831 IceMassEnum, 831 832 IceVolumeEnum, -
issm/trunk-jpl/src/c/shared/Enum/EnumToStringx.cpp
r19479 r19518 809 809 case MaxVzEnum : return "MaxVz"; 810 810 case MaxAbsVzEnum : return "MaxAbsVz"; 811 case GroundedAreaEnum : return "GroundedArea"; 811 812 case IceMassEnum : return "IceMass"; 812 813 case IceVolumeEnum : return "IceVolume"; -
issm/trunk-jpl/src/c/shared/Enum/StringToEnumx.cpp
r19479 r19518 827 827 else if (strcmp(name,"MaxVz")==0) return MaxVzEnum; 828 828 else if (strcmp(name,"MaxAbsVz")==0) return MaxAbsVzEnum; 829 else if (strcmp(name,"GroundedArea")==0) return GroundedAreaEnum; 829 830 else if (strcmp(name,"IceMass")==0) return IceMassEnum; 830 831 else if (strcmp(name,"IceVolume")==0) return IceVolumeEnum; … … 874 875 else if (strcmp(name,"RestartFileName")==0) return RestartFileNameEnum; 875 876 else if (strcmp(name,"ToolkitsOptionsAnalyses")==0) return ToolkitsOptionsAnalysesEnum; 876 else if (strcmp(name,"ToolkitsOptionsStrings")==0) return ToolkitsOptionsStringsEnum;877 877 else stage=8; 878 878 } 879 879 if(stage==8){ 880 if (strcmp(name,"QmuErrName")==0) return QmuErrNameEnum; 880 if (strcmp(name,"ToolkitsOptionsStrings")==0) return ToolkitsOptionsStringsEnum; 881 else if (strcmp(name,"QmuErrName")==0) return QmuErrNameEnum; 881 882 else if (strcmp(name,"QmuInName")==0) return QmuInNameEnum; 882 883 else if (strcmp(name,"QmuOutName")==0) return QmuOutNameEnum; -
issm/trunk-jpl/src/m/enum/EnumDefinitions.py
r19479 r19518 801 801 def MaxVzEnum(): return StringToEnum("MaxVz")[0] 802 802 def MaxAbsVzEnum(): return StringToEnum("MaxAbsVz")[0] 803 def GroundedAreaEnum(): return StringToEnum("GroundedArea")[0] 803 804 def IceMassEnum(): return StringToEnum("IceMass")[0] 804 805 def IceVolumeEnum(): return StringToEnum("IceVolume")[0] -
issm/trunk-jpl/test/NightlyRun/test208.m
r19049 r19518 5 5 md=setflowequation(md,'SSA','all'); 6 6 md.cluster=generic('name',oshostname(),'np',3); 7 md.transient.requested_outputs={'default','GroundedArea'} 7 8 md=solve(md,TransientSolutionEnum()); 8 9 -
issm/trunk-jpl/test/NightlyRun/test210.m
r19049 r19518 6 6 md=setflowequation(md,'HO','all'); 7 7 md.cluster=generic('name',oshostname(),'np',3); 8 md.verbose=verbose('solution',true,'module',true); 9 md.transient.requested_outputs={'default','GroundedArea'}; 8 10 md=solve(md,TransientSolutionEnum()); 9 11 -
issm/trunk-jpl/test/NightlyRun/test314.m
r19049 r19518 1 1 %Test Name: SquareSheetConstrainedTranSIA2d 2 md=triangle(model(),'../Exp/Square.exp', 150000.);2 md=triangle(model(),'../Exp/Square.exp',400000.); 3 3 md=setmask(md,'',''); 4 4 md=parameterize(md,'../Par/SquareSheetConstrained.par'); 5 5 md=setflowequation(md,'SIA','all'); 6 md.cluster=generic('name',oshostname(),'np',3); 6 md.cluster=generic('name',oshostname(),'np',1); 7 md.transient.requested_outputs={'default','GroundedArea','IceVolume'} 8 md.timestepping.final_time=1; 7 9 md=solve(md,TransientSolutionEnum()); 8 10 -
issm/trunk-jpl/test/NightlyRun/test317.m
r19049 r19518 3 3 md=setmask(md,'',''); 4 4 md=parameterize(md,'../Par/SquareSheetConstrained.par'); 5 md=extrude(md, 3,1.);5 md=extrude(md,10,1.); 6 6 md=setflowequation(md,'HO','all'); 7 7 md.cluster=generic('name',oshostname(),'np',3); 8 md.transient.requested_outputs={'default','GroundedArea'}; 8 9 md=solve(md,TransientSolutionEnum()); 9 10
Note:
See TracChangeset
for help on using the changeset viewer.