Changeset 23107
- Timestamp:
- 08/17/18 11:41:40 (7 years ago)
- Location:
- issm/trunk-jpl
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/configure.ac
r22760 r23107 3 3 #AUTOCONF 4 4 AC_INIT([Ice Sheet System Model (ISSM)],[4.14],[issm@jpl.nasa.gov],[issm],[http://issm.jpl.nasa.gov]) #Initializing configure 5 AC_CONFIG_AUX_DIR([./aux-config]) 6 AC_CONFIG_MACRO_DIR([m4]) 5 AC_CONFIG_AUX_DIR([./aux-config]) #Put config files in aux-config 6 AC_CONFIG_MACRO_DIR([m4]) #m4 macros are located in m4 7 7 m4_include([m4/issm_options.m4]) 8 8 … … 25 25 #Initialize automake and declare foreign so that we don't need a ChangeLog, INSTALL, etc 26 26 AM_INIT_AUTOMAKE([foreign]) 27 AC_CONFIG_HEADERS([./config.h]) 27 AC_CONFIG_HEADERS([./config.h]) #Config file must be config.h 28 28 AM_SILENT_RULES([yes]) #Do not show compilation command by default 29 29 AM_PROG_AR -
issm/trunk-jpl/etc/environment.sh
r21905 r23107 235 235 236 236 PYTHON_DIR="$ISSM_DIR/externalpackages/python/install" 237 if [ -d "$PYTHON_DIR" ]; then238 export PYTHONPATH="$PYTHONPATH:$ISSM_DIR/lib"239 pathprepend "$PYTHON_DIR/bin"240 libpathprepend "$PYTHON_DIR/lib"241 libpathprepend "$ISSM_DIR/lib"242 fi237 #if [ -d "$PYTHON_DIR" ]; then 238 #export PYTHONPATH="$PYTHONPATH:$ISSM_DIR/lib" 239 #pathprepend "$PYTHON_DIR/bin" 240 #libpathprepend "$PYTHON_DIR/lib" 241 #libpathprepend "$ISSM_DIR/lib" 242 #fi 243 243 244 244 MODELE_DIR="$ISSM_DIR/externalpackages/modelE/install" -
issm/trunk-jpl/examples/Inversion/runme.m
r21153 r23107 1 step=1 ;1 step=1:4; 2 2 if any(step==1) 3 3 %Generate observations -
issm/trunk-jpl/externalpackages/dem/dem.m
r14224 r23107 119 119 decim = 0; 120 120 121 novalue_color = [0,0,0]; 121 %novalue_color = [0,0,0]; 122 novalue_color = [1,1,1]; 122 123 123 124 if ~isnumeric(x) | ~isnumeric(y) | ~isnumeric(z) -
issm/trunk-jpl/m4/analyses.m4
r23021 r23107 11 11 12 12 dnl with-AdjointBalancethickness2{{{ 13 14 13 AC_ARG_WITH([AdjointBalancethickness2], 15 16 14 AS_HELP_STRING([--with-AdjointBalancethickness2 = YES], [compile with AdjointBalancethickness2 capabilities (default is yes)]), 17 18 15 [ADJOINTBALANCETHICKNESS2=$withval],[ADJOINTBALANCETHICKNESS2=yes]) 19 20 16 AC_MSG_CHECKING(for AdjointBalancethickness2 capability compilation) 21 17 22 23 18 HAVE_ADJOINTBALANCETHICKNESS2=no 24 25 19 if test "x$ADJOINTBALANCETHICKNESS2" = "xyes"; then 26 27 20 HAVE_ADJOINTBALANCETHICKNESS2=yes 28 29 21 AC_DEFINE([_HAVE_ADJOINTBALANCETHICKNESS2_],[1],[with AdjointBalancethickness2 capability]) 30 31 fi 32 22 fi 33 23 AM_CONDITIONAL([ADJOINTBALANCETHICKNESS2], [test x$HAVE_ADJOINTBALANCETHICKNESS2 = xyes]) 34 35 24 AC_MSG_RESULT($HAVE_ADJOINTBALANCETHICKNESS2) 36 37 25 dnl }}} 38 26 dnl with-AdjointBalancethickness{{{ 39 40 27 AC_ARG_WITH([AdjointBalancethickness], 41 42 28 AS_HELP_STRING([--with-AdjointBalancethickness = YES], [compile with AdjointBalancethickness capabilities (default is yes)]), 43 44 29 [ADJOINTBALANCETHICKNESS=$withval],[ADJOINTBALANCETHICKNESS=yes]) 45 46 30 AC_MSG_CHECKING(for AdjointBalancethickness capability compilation) 47 31 48 49 32 HAVE_ADJOINTBALANCETHICKNESS=no 50 51 33 if test "x$ADJOINTBALANCETHICKNESS" = "xyes"; then 52 53 34 HAVE_ADJOINTBALANCETHICKNESS=yes 54 55 35 AC_DEFINE([_HAVE_ADJOINTBALANCETHICKNESS_],[1],[with AdjointBalancethickness capability]) 56 57 fi 58 36 fi 59 37 AM_CONDITIONAL([ADJOINTBALANCETHICKNESS], [test x$HAVE_ADJOINTBALANCETHICKNESS = xyes]) 60 61 38 AC_MSG_RESULT($HAVE_ADJOINTBALANCETHICKNESS) 62 63 39 dnl }}} 64 40 dnl with-AdjointHoriz{{{ 65 66 41 AC_ARG_WITH([AdjointHoriz], 67 68 42 AS_HELP_STRING([--with-AdjointHoriz = YES], [compile with AdjointHoriz capabilities (default is yes)]), 69 70 43 [ADJOINTHORIZ=$withval],[ADJOINTHORIZ=yes]) 71 72 44 AC_MSG_CHECKING(for AdjointHoriz capability compilation) 73 45 74 75 46 HAVE_ADJOINTHORIZ=no 76 77 47 if test "x$ADJOINTHORIZ" = "xyes"; then 78 79 48 HAVE_ADJOINTHORIZ=yes 80 81 49 AC_DEFINE([_HAVE_ADJOINTHORIZ_],[1],[with AdjointHoriz capability]) 82 83 fi 84 50 fi 85 51 AM_CONDITIONAL([ADJOINTHORIZ], [test x$HAVE_ADJOINTHORIZ = xyes]) 86 87 52 AC_MSG_RESULT($HAVE_ADJOINTHORIZ) 88 89 53 dnl }}} 90 54 dnl with-Balancethickness2{{{ 91 92 55 AC_ARG_WITH([Balancethickness2], 93 94 56 AS_HELP_STRING([--with-Balancethickness2 = YES], [compile with Balancethickness2 capabilities (default is yes)]), 95 96 57 [BALANCETHICKNESS2=$withval],[BALANCETHICKNESS2=yes]) 97 98 58 AC_MSG_CHECKING(for Balancethickness2 capability compilation) 99 59 100 101 60 HAVE_BALANCETHICKNESS2=no 102 103 61 if test "x$BALANCETHICKNESS2" = "xyes"; then 104 105 62 HAVE_BALANCETHICKNESS2=yes 106 107 63 AC_DEFINE([_HAVE_BALANCETHICKNESS2_],[1],[with Balancethickness2 capability]) 108 109 fi 110 64 fi 111 65 AM_CONDITIONAL([BALANCETHICKNESS2], [test x$HAVE_BALANCETHICKNESS2 = xyes]) 112 113 66 AC_MSG_RESULT($HAVE_BALANCETHICKNESS2) 114 115 67 dnl }}} 116 68 dnl with-Balancethickness{{{ 117 118 69 AC_ARG_WITH([Balancethickness], 119 120 70 AS_HELP_STRING([--with-Balancethickness = YES], [compile with Balancethickness capabilities (default is yes)]), 121 122 71 [BALANCETHICKNESS=$withval],[BALANCETHICKNESS=yes]) 123 124 72 AC_MSG_CHECKING(for Balancethickness capability compilation) 125 73 126 127 74 HAVE_BALANCETHICKNESS=no 128 129 75 if test "x$BALANCETHICKNESS" = "xyes"; then 130 131 76 HAVE_BALANCETHICKNESS=yes 132 133 77 AC_DEFINE([_HAVE_BALANCETHICKNESS_],[1],[with Balancethickness capability]) 134 135 fi 136 78 fi 137 79 AM_CONDITIONAL([BALANCETHICKNESS], [test x$HAVE_BALANCETHICKNESS = xyes]) 138 139 80 AC_MSG_RESULT($HAVE_BALANCETHICKNESS) 140 141 81 dnl }}} 142 82 dnl with-BalancethicknessSoft{{{ 143 144 83 AC_ARG_WITH([BalancethicknessSoft], 145 146 84 AS_HELP_STRING([--with-BalancethicknessSoft = YES], [compile with BalancethicknessSoft capabilities (default is yes)]), 147 148 85 [BALANCETHICKNESSSOFT=$withval],[BALANCETHICKNESSSOFT=yes]) 149 150 86 AC_MSG_CHECKING(for BalancethicknessSoft capability compilation) 151 87 152 153 88 HAVE_BALANCETHICKNESSSOFT=no 154 155 89 if test "x$BALANCETHICKNESSSOFT" = "xyes"; then 156 157 90 HAVE_BALANCETHICKNESSSOFT=yes 158 159 91 AC_DEFINE([_HAVE_BALANCETHICKNESSSOFT_],[1],[with BalancethicknessSoft capability]) 160 161 fi 162 92 fi 163 93 AM_CONDITIONAL([BALANCETHICKNESSSOFT], [test x$HAVE_BALANCETHICKNESSSOFT = xyes]) 164 165 94 AC_MSG_RESULT($HAVE_BALANCETHICKNESSSOFT) 166 167 95 dnl }}} 168 96 dnl with-Balancevelocity{{{ 169 170 97 AC_ARG_WITH([Balancevelocity], 171 172 98 AS_HELP_STRING([--with-Balancevelocity = YES], [compile with Balancevelocity capabilities (default is yes)]), 173 174 99 [BALANCEVELOCITY=$withval],[BALANCEVELOCITY=yes]) 175 176 100 AC_MSG_CHECKING(for Balancevelocity capability compilation) 177 101 178 179 102 HAVE_BALANCEVELOCITY=no 180 181 103 if test "x$BALANCEVELOCITY" = "xyes"; then 182 183 104 HAVE_BALANCEVELOCITY=yes 184 185 105 AC_DEFINE([_HAVE_BALANCEVELOCITY_],[1],[with Balancevelocity capability]) 186 187 fi 188 106 fi 189 107 AM_CONDITIONAL([BALANCEVELOCITY], [test x$HAVE_BALANCEVELOCITY = xyes]) 190 191 108 AC_MSG_RESULT($HAVE_BALANCEVELOCITY) 192 193 109 dnl }}} 194 110 dnl with-DamageEvolution{{{ 195 196 111 AC_ARG_WITH([DamageEvolution], 197 198 112 AS_HELP_STRING([--with-DamageEvolution = YES], [compile with DamageEvolution capabilities (default is yes)]), 199 200 113 [DAMAGEEVOLUTION=$withval],[DAMAGEEVOLUTION=yes]) 201 202 114 AC_MSG_CHECKING(for DamageEvolution capability compilation) 203 115 204 205 116 HAVE_DAMAGEEVOLUTION=no 206 207 117 if test "x$DAMAGEEVOLUTION" = "xyes"; then 208 209 118 HAVE_DAMAGEEVOLUTION=yes 210 211 119 AC_DEFINE([_HAVE_DAMAGEEVOLUTION_],[1],[with DamageEvolution capability]) 212 213 fi 214 120 fi 215 121 AM_CONDITIONAL([DAMAGEEVOLUTION], [test x$HAVE_DAMAGEEVOLUTION = xyes]) 216 217 122 AC_MSG_RESULT($HAVE_DAMAGEEVOLUTION) 218 219 123 dnl }}} 220 124 dnl with-DepthAverage{{{ 221 222 125 AC_ARG_WITH([DepthAverage], 223 224 126 AS_HELP_STRING([--with-DepthAverage = YES], [compile with DepthAverage capabilities (default is yes)]), 225 226 127 [DEPTHAVERAGE=$withval],[DEPTHAVERAGE=yes]) 227 228 128 AC_MSG_CHECKING(for DepthAverage capability compilation) 229 129 230 231 130 HAVE_DEPTHAVERAGE=no 232 233 131 if test "x$DEPTHAVERAGE" = "xyes"; then 234 235 132 HAVE_DEPTHAVERAGE=yes 236 237 133 AC_DEFINE([_HAVE_DEPTHAVERAGE_],[1],[with DepthAverage capability]) 238 239 fi 240 134 fi 241 135 AM_CONDITIONAL([DEPTHAVERAGE], [test x$HAVE_DEPTHAVERAGE = xyes]) 242 243 136 AC_MSG_RESULT($HAVE_DEPTHAVERAGE) 244 245 137 dnl }}} 246 138 dnl with-Enthalpy{{{ 247 248 139 AC_ARG_WITH([Enthalpy], 249 250 140 AS_HELP_STRING([--with-Enthalpy = YES], [compile with Enthalpy capabilities (default is yes)]), 251 252 141 [ENTHALPY=$withval],[ENTHALPY=yes]) 253 254 142 AC_MSG_CHECKING(for Enthalpy capability compilation) 255 143 256 257 144 HAVE_ENTHALPY=no 258 259 145 if test "x$ENTHALPY" = "xyes"; then 260 261 146 HAVE_ENTHALPY=yes 262 263 147 AC_DEFINE([_HAVE_ENTHALPY_],[1],[with Enthalpy capability]) 264 265 fi 266 148 fi 267 149 AM_CONDITIONAL([ENTHALPY], [test x$HAVE_ENTHALPY = xyes]) 268 269 150 AC_MSG_RESULT($HAVE_ENTHALPY) 270 271 151 dnl }}} 272 152 dnl with-Esa{{{ 273 274 153 AC_ARG_WITH([Esa], 275 276 154 AS_HELP_STRING([--with-Esa = YES], [compile with Esa capabilities (default is yes)]), 277 278 155 [ESA=$withval],[ESA=yes]) 279 280 156 AC_MSG_CHECKING(for Esa capability compilation) 281 157 282 283 158 HAVE_ESA=no 284 285 159 if test "x$ESA" = "xyes"; then 286 287 160 HAVE_ESA=yes 288 289 161 AC_DEFINE([_HAVE_ESA_],[1],[with Esa capability]) 290 291 fi 292 162 fi 293 163 AM_CONDITIONAL([ESA], [test x$HAVE_ESA = xyes]) 294 295 164 AC_MSG_RESULT($HAVE_ESA) 296 297 165 dnl }}} 298 166 dnl with-Extrapolation{{{ 299 300 167 AC_ARG_WITH([Extrapolation], 301 302 168 AS_HELP_STRING([--with-Extrapolation = YES], [compile with Extrapolation capabilities (default is yes)]), 303 304 169 [EXTRAPOLATION=$withval],[EXTRAPOLATION=yes]) 305 306 170 AC_MSG_CHECKING(for Extrapolation capability compilation) 307 171 308 309 172 HAVE_EXTRAPOLATION=no 310 311 173 if test "x$EXTRAPOLATION" = "xyes"; then 312 313 174 HAVE_EXTRAPOLATION=yes 314 315 175 AC_DEFINE([_HAVE_EXTRAPOLATION_],[1],[with Extrapolation capability]) 316 317 fi 318 176 fi 319 177 AM_CONDITIONAL([EXTRAPOLATION], [test x$HAVE_EXTRAPOLATION = xyes]) 320 321 178 AC_MSG_RESULT($HAVE_EXTRAPOLATION) 322 323 179 dnl }}} 324 180 dnl with-ExtrudeFromBase{{{ 325 326 181 AC_ARG_WITH([ExtrudeFromBase], 327 328 182 AS_HELP_STRING([--with-ExtrudeFromBase = YES], [compile with ExtrudeFromBase capabilities (default is yes)]), 329 330 183 [EXTRUDEFROMBASE=$withval],[EXTRUDEFROMBASE=yes]) 331 332 184 AC_MSG_CHECKING(for ExtrudeFromBase capability compilation) 333 185 334 335 186 HAVE_EXTRUDEFROMBASE=no 336 337 187 if test "x$EXTRUDEFROMBASE" = "xyes"; then 338 339 188 HAVE_EXTRUDEFROMBASE=yes 340 341 189 AC_DEFINE([_HAVE_EXTRUDEFROMBASE_],[1],[with ExtrudeFromBase capability]) 342 343 fi 344 190 fi 345 191 AM_CONDITIONAL([EXTRUDEFROMBASE], [test x$HAVE_EXTRUDEFROMBASE = xyes]) 346 347 192 AC_MSG_RESULT($HAVE_EXTRUDEFROMBASE) 348 349 193 dnl }}} 350 194 dnl with-ExtrudeFromTop{{{ 351 352 195 AC_ARG_WITH([ExtrudeFromTop], 353 354 196 AS_HELP_STRING([--with-ExtrudeFromTop = YES], [compile with ExtrudeFromTop capabilities (default is yes)]), 355 356 197 [EXTRUDEFROMTOP=$withval],[EXTRUDEFROMTOP=yes]) 357 358 198 AC_MSG_CHECKING(for ExtrudeFromTop capability compilation) 359 199 360 361 200 HAVE_EXTRUDEFROMTOP=no 362 363 201 if test "x$EXTRUDEFROMTOP" = "xyes"; then 364 365 202 HAVE_EXTRUDEFROMTOP=yes 366 367 203 AC_DEFINE([_HAVE_EXTRUDEFROMTOP_],[1],[with ExtrudeFromTop capability]) 368 369 fi 370 204 fi 371 205 AM_CONDITIONAL([EXTRUDEFROMTOP], [test x$HAVE_EXTRUDEFROMTOP = xyes]) 372 373 206 AC_MSG_RESULT($HAVE_EXTRUDEFROMTOP) 374 375 207 dnl }}} 376 208 dnl with-FreeSurfaceBase{{{ 377 378 209 AC_ARG_WITH([FreeSurfaceBase], 379 380 210 AS_HELP_STRING([--with-FreeSurfaceBase = YES], [compile with FreeSurfaceBase capabilities (default is yes)]), 381 382 211 [FREESURFACEBASE=$withval],[FREESURFACEBASE=yes]) 383 384 212 AC_MSG_CHECKING(for FreeSurfaceBase capability compilation) 385 213 386 387 214 HAVE_FREESURFACEBASE=no 388 389 215 if test "x$FREESURFACEBASE" = "xyes"; then 390 391 216 HAVE_FREESURFACEBASE=yes 392 393 217 AC_DEFINE([_HAVE_FREESURFACEBASE_],[1],[with FreeSurfaceBase capability]) 394 395 fi 396 218 fi 397 219 AM_CONDITIONAL([FREESURFACEBASE], [test x$HAVE_FREESURFACEBASE = xyes]) 398 399 220 AC_MSG_RESULT($HAVE_FREESURFACEBASE) 400 401 221 dnl }}} 402 222 dnl with-FreeSurfaceTop{{{ 403 404 223 AC_ARG_WITH([FreeSurfaceTop], 405 406 224 AS_HELP_STRING([--with-FreeSurfaceTop = YES], [compile with FreeSurfaceTop capabilities (default is yes)]), 407 408 225 [FREESURFACETOP=$withval],[FREESURFACETOP=yes]) 409 410 226 AC_MSG_CHECKING(for FreeSurfaceTop capability compilation) 411 227 412 413 228 HAVE_FREESURFACETOP=no 414 415 229 if test "x$FREESURFACETOP" = "xyes"; then 416 417 230 HAVE_FREESURFACETOP=yes 418 419 231 AC_DEFINE([_HAVE_FREESURFACETOP_],[1],[with FreeSurfaceTop capability]) 420 421 fi 422 232 fi 423 233 AM_CONDITIONAL([FREESURFACETOP], [test x$HAVE_FREESURFACETOP = xyes]) 424 425 234 AC_MSG_RESULT($HAVE_FREESURFACETOP) 426 427 235 dnl }}} 428 236 dnl with-GLheightadvection{{{ 429 430 237 AC_ARG_WITH([GLheightadvection], 431 432 238 AS_HELP_STRING([--with-GLheightadvection = YES], [compile with GLheightadvection capabilities (default is yes)]), 433 434 239 [GLHEIGHTADVECTION=$withval],[GLHEIGHTADVECTION=yes]) 435 436 240 AC_MSG_CHECKING(for GLheightadvection capability compilation) 437 241 438 439 242 HAVE_GLHEIGHTADVECTION=no 440 441 243 if test "x$GLHEIGHTADVECTION" = "xyes"; then 442 443 244 HAVE_GLHEIGHTADVECTION=yes 444 445 245 AC_DEFINE([_HAVE_GLHEIGHTADVECTION_],[1],[with GLheightadvection capability]) 446 447 fi 448 246 fi 449 247 AM_CONDITIONAL([GLHEIGHTADVECTION], [test x$HAVE_GLHEIGHTADVECTION = xyes]) 450 451 248 AC_MSG_RESULT($HAVE_GLHEIGHTADVECTION) 452 453 249 dnl }}} 454 250 dnl with-GiaIvins{{{ 455 456 251 AC_ARG_WITH([GiaIvins], 457 458 252 AS_HELP_STRING([--with-GiaIvins = YES], [compile with GiaIvins capabilities (default is yes)]), 459 460 253 [GIAIVINS=$withval],[GIAIVINS=yes]) 461 462 254 AC_MSG_CHECKING(for GiaIvins capability compilation) 463 255 464 465 256 HAVE_GIAIVINS=no 466 467 257 if test "x$GIAIVINS" = "xyes"; then 468 469 258 HAVE_GIAIVINS=yes 470 471 259 AC_DEFINE([_HAVE_GIAIVINS_],[1],[with GiaIvins capability]) 472 473 fi 474 260 fi 475 261 AM_CONDITIONAL([GIAIVINS], [test x$HAVE_GIAIVINS = xyes]) 476 477 262 AC_MSG_RESULT($HAVE_GIAIVINS) 478 479 263 dnl }}} 480 264 dnl with-HydrologyDCEfficient{{{ 481 482 265 AC_ARG_WITH([HydrologyDCEfficient], 483 484 266 AS_HELP_STRING([--with-HydrologyDCEfficient = YES], [compile with HydrologyDCEfficient capabilities (default is yes)]), 485 486 267 [HYDROLOGYDCEFFICIENT=$withval],[HYDROLOGYDCEFFICIENT=yes]) 487 488 268 AC_MSG_CHECKING(for HydrologyDCEfficient capability compilation) 489 269 490 491 270 HAVE_HYDROLOGYDCEFFICIENT=no 492 493 271 if test "x$HYDROLOGYDCEFFICIENT" = "xyes"; then 494 495 272 HAVE_HYDROLOGYDCEFFICIENT=yes 496 497 273 AC_DEFINE([_HAVE_HYDROLOGYDCEFFICIENT_],[1],[with HydrologyDCEfficient capability]) 498 499 fi 500 274 fi 501 275 AM_CONDITIONAL([HYDROLOGYDCEFFICIENT], [test x$HAVE_HYDROLOGYDCEFFICIENT = xyes]) 502 503 276 AC_MSG_RESULT($HAVE_HYDROLOGYDCEFFICIENT) 504 505 277 dnl }}} 506 278 dnl with-HydrologyDCInefficient{{{ 507 508 279 AC_ARG_WITH([HydrologyDCInefficient], 509 510 280 AS_HELP_STRING([--with-HydrologyDCInefficient = YES], [compile with HydrologyDCInefficient capabilities (default is yes)]), 511 512 281 [HYDROLOGYDCINEFFICIENT=$withval],[HYDROLOGYDCINEFFICIENT=yes]) 513 514 282 AC_MSG_CHECKING(for HydrologyDCInefficient capability compilation) 515 283 516 517 284 HAVE_HYDROLOGYDCINEFFICIENT=no 518 519 285 if test "x$HYDROLOGYDCINEFFICIENT" = "xyes"; then 520 521 286 HAVE_HYDROLOGYDCINEFFICIENT=yes 522 523 287 AC_DEFINE([_HAVE_HYDROLOGYDCINEFFICIENT_],[1],[with HydrologyDCInefficient capability]) 524 525 fi 526 288 fi 527 289 AM_CONDITIONAL([HYDROLOGYDCINEFFICIENT], [test x$HAVE_HYDROLOGYDCINEFFICIENT = xyes]) 528 529 290 AC_MSG_RESULT($HAVE_HYDROLOGYDCINEFFICIENT) 530 531 291 dnl }}} 532 292 dnl with-HydrologyShreve{{{ 533 534 293 AC_ARG_WITH([HydrologyShreve], 535 536 294 AS_HELP_STRING([--with-HydrologyShreve = YES], [compile with HydrologyShreve capabilities (default is yes)]), 537 538 295 [HYDROLOGYSHREVE=$withval],[HYDROLOGYSHREVE=yes]) 539 540 296 AC_MSG_CHECKING(for HydrologyShreve capability compilation) 541 297 542 543 298 HAVE_HYDROLOGYSHREVE=no 544 545 299 if test "x$HYDROLOGYSHREVE" = "xyes"; then 546 547 300 HAVE_HYDROLOGYSHREVE=yes 548 549 301 AC_DEFINE([_HAVE_HYDROLOGYSHREVE_],[1],[with HydrologyShreve capability]) 550 551 fi 552 302 fi 553 303 AM_CONDITIONAL([HYDROLOGYSHREVE], [test x$HAVE_HYDROLOGYSHREVE = xyes]) 554 555 304 AC_MSG_RESULT($HAVE_HYDROLOGYSHREVE) 556 557 305 dnl }}} 558 306 dnl with-HydrologyShakti{{{ 559 560 307 AC_ARG_WITH([HydrologyShakti], 561 562 308 AS_HELP_STRING([--with-HydrologyShakti = YES], [compile with HydrologyShakti capabilities (default is yes)]), 563 564 309 [HYDROLOGYSHAKTI=$withval],[HYDROLOGYSHAKTI=yes]) 565 566 310 AC_MSG_CHECKING(for HydrologyShakti capability compilation) 567 311 568 569 312 HAVE_HYDROLOGYSHAKTI=no 570 571 313 if test "x$HYDROLOGYSHAKTI" = "xyes"; then 572 573 314 HAVE_HYDROLOGYSHAKTI=yes 574 575 315 AC_DEFINE([_HAVE_HYDROLOGYSHAKTI_],[1],[with HydrologyShakti capability]) 576 577 fi 578 316 fi 579 317 AM_CONDITIONAL([HYDROLOGYSHAKTI], [test x$HAVE_HYDROLOGYSHAKTI = xyes]) 580 581 318 AC_MSG_RESULT($HAVE_HYDROLOGYSHAKTI) 582 583 319 dnl }}} 584 320 dnl with-HydrologyPism{{{ 585 586 321 AC_ARG_WITH([HydrologyPism], 587 588 322 AS_HELP_STRING([--with-HydrologyPism = YES], [compile with HydrologyPism capabilities (default is yes)]), 589 590 323 [HYDROLOGYPISM=$withval],[HYDROLOGYPISM=yes]) 591 592 324 AC_MSG_CHECKING(for HydrologyPism capability compilation) 593 325 594 595 326 HAVE_HYDROLOGYPISM=no 596 597 327 if test "x$HYDROLOGYPISM" = "xyes"; then 598 599 328 HAVE_HYDROLOGYPISM=yes 600 601 329 AC_DEFINE([_HAVE_HYDROLOGYPISM_],[1],[with HydrologyPism capability]) 602 603 fi 604 330 fi 605 331 AM_CONDITIONAL([HYDROLOGYPISM], [test x$HAVE_HYDROLOGYPISM = xyes]) 606 607 332 AC_MSG_RESULT($HAVE_HYDROLOGYPISM) 608 609 333 dnl }}} 610 334 dnl with-L2ProjectionBase{{{ 611 612 335 AC_ARG_WITH([L2ProjectionBase], 613 614 336 AS_HELP_STRING([--with-L2ProjectionBase = YES], [compile with L2ProjectionBase capabilities (default is yes)]), 615 616 337 [L2PROJECTIONBASE=$withval],[L2PROJECTIONBASE=yes]) 617 618 338 AC_MSG_CHECKING(for L2ProjectionBase capability compilation) 619 339 620 621 340 HAVE_L2PROJECTIONBASE=no 622 623 341 if test "x$L2PROJECTIONBASE" = "xyes"; then 624 625 342 HAVE_L2PROJECTIONBASE=yes 626 627 343 AC_DEFINE([_HAVE_L2PROJECTIONBASE_],[1],[with L2ProjectionBase capability]) 628 629 fi 630 344 fi 631 345 AM_CONDITIONAL([L2PROJECTIONBASE], [test x$HAVE_L2PROJECTIONBASE = xyes]) 632 633 346 AC_MSG_RESULT($HAVE_L2PROJECTIONBASE) 634 635 347 dnl }}} 636 348 dnl with-L2ProjectionEPL{{{ 637 638 349 AC_ARG_WITH([L2ProjectionEPL], 639 640 350 AS_HELP_STRING([--with-L2ProjectionEPL = YES], [compile with L2ProjectionEPL capabilities (default is yes)]), 641 642 351 [L2PROJECTIONEPL=$withval],[L2PROJECTIONEPL=yes]) 643 644 352 AC_MSG_CHECKING(for L2ProjectionEPL capability compilation) 645 353 646 647 354 HAVE_L2PROJECTIONEPL=no 648 649 355 if test "x$L2PROJECTIONEPL" = "xyes"; then 650 651 356 HAVE_L2PROJECTIONEPL=yes 652 653 357 AC_DEFINE([_HAVE_L2PROJECTIONEPL_],[1],[with L2ProjectionEPL capability]) 654 655 fi 656 358 fi 657 359 AM_CONDITIONAL([L2PROJECTIONEPL], [test x$HAVE_L2PROJECTIONEPL = xyes]) 658 659 360 AC_MSG_RESULT($HAVE_L2PROJECTIONEPL) 660 661 361 dnl }}} 662 362 dnl with-Levelset{{{ 663 664 363 AC_ARG_WITH([Levelset], 665 666 364 AS_HELP_STRING([--with-Levelset = YES], [compile with Levelset capabilities (default is yes)]), 667 668 365 [LEVELSET=$withval],[LEVELSET=yes]) 669 670 366 AC_MSG_CHECKING(for Levelset capability compilation) 671 367 672 673 368 HAVE_LEVELSET=no 674 675 369 if test "x$LEVELSET" = "xyes"; then 676 677 370 HAVE_LEVELSET=yes 678 679 371 AC_DEFINE([_HAVE_LEVELSET_],[1],[with Levelset capability]) 680 681 fi 682 372 fi 683 373 AM_CONDITIONAL([LEVELSET], [test x$HAVE_LEVELSET = xyes]) 684 685 374 AC_MSG_RESULT($HAVE_LEVELSET) 686 687 375 dnl }}} 688 376 dnl with-Love{{{ 689 690 377 AC_ARG_WITH([Love], 691 692 378 AS_HELP_STRING([--with-Love = YES], [compile with Love capabilities (default is yes)]), 693 694 379 [LOVE=$withval],[LOVE=yes]) 695 696 380 AC_MSG_CHECKING(for Love capability compilation) 697 381 698 699 382 HAVE_LOVE=no 700 701 383 if test "x$LOVE" = "xyes"; then 702 703 384 HAVE_LOVE=yes 704 705 385 AC_DEFINE([_HAVE_LOVE_],[1],[with Love capability]) 706 707 fi 708 386 fi 709 387 AM_CONDITIONAL([LOVE], [test x$HAVE_LOVE = xyes]) 710 711 388 AC_MSG_RESULT($HAVE_LOVE) 712 713 389 dnl }}} 714 390 dnl with-Masstransport{{{ 715 716 391 AC_ARG_WITH([Masstransport], 717 718 392 AS_HELP_STRING([--with-Masstransport = YES], [compile with Masstransport capabilities (default is yes)]), 719 720 393 [MASSTRANSPORT=$withval],[MASSTRANSPORT=yes]) 721 722 394 AC_MSG_CHECKING(for Masstransport capability compilation) 723 395 724 725 396 HAVE_MASSTRANSPORT=no 726 727 397 if test "x$MASSTRANSPORT" = "xyes"; then 728 729 398 HAVE_MASSTRANSPORT=yes 730 731 399 AC_DEFINE([_HAVE_MASSTRANSPORT_],[1],[with Masstransport capability]) 732 733 fi 734 400 fi 735 401 AM_CONDITIONAL([MASSTRANSPORT], [test x$HAVE_MASSTRANSPORT = xyes]) 736 737 402 AC_MSG_RESULT($HAVE_MASSTRANSPORT) 738 739 403 dnl }}} 740 404 dnl with-Melting{{{ 741 742 405 AC_ARG_WITH([Melting], 743 744 406 AS_HELP_STRING([--with-Melting = YES], [compile with Melting capabilities (default is yes)]), 745 746 407 [MELTING=$withval],[MELTING=yes]) 747 748 408 AC_MSG_CHECKING(for Melting capability compilation) 749 409 750 751 410 HAVE_MELTING=no 752 753 411 if test "x$MELTING" = "xyes"; then 754 755 412 HAVE_MELTING=yes 756 757 413 AC_DEFINE([_HAVE_MELTING_],[1],[with Melting capability]) 758 759 fi 760 414 fi 761 415 AM_CONDITIONAL([MELTING], [test x$HAVE_MELTING = xyes]) 762 763 416 AC_MSG_RESULT($HAVE_MELTING) 764 765 417 dnl }}} 766 418 dnl with-Sealevelrise{{{ 767 768 419 AC_ARG_WITH([Sealevelrise], 769 770 420 AS_HELP_STRING([--with-Sealevelrise = YES], [compile with Sealevelrise capabilities (default is yes)]), 771 772 421 [SEALEVELRISE=$withval],[SEALEVELRISE=yes]) 773 774 422 AC_MSG_CHECKING(for Sealevelrise capability compilation) 775 423 776 777 424 HAVE_SEALEVELRISE=no 778 779 425 if test "x$SEALEVELRISE" = "xyes"; then 780 781 426 HAVE_SEALEVELRISE=yes 782 783 427 AC_DEFINE([_HAVE_SEALEVELRISE_],[1],[with Sealevelrise capability]) 784 785 fi 786 428 fi 787 429 AM_CONDITIONAL([SEALEVELRISE], [test x$HAVE_SEALEVELRISE = xyes]) 788 789 430 AC_MSG_RESULT($HAVE_SEALEVELRISE) 790 791 431 dnl }}} 792 432 dnl with-Smb{{{ 793 794 433 AC_ARG_WITH([Smb], 795 796 434 AS_HELP_STRING([--with-Smb = YES], [compile with Smb capabilities (default is yes)]), 797 798 435 [SMB=$withval],[SMB=yes]) 799 800 436 AC_MSG_CHECKING(for Smb capability compilation) 801 437 802 803 438 HAVE_SMB=no 804 805 439 if test "x$SMB" = "xyes"; then 806 807 440 HAVE_SMB=yes 808 809 441 AC_DEFINE([_HAVE_SMB_],[1],[with Smb capability]) 810 811 fi 812 442 fi 813 443 AM_CONDITIONAL([SMB], [test x$HAVE_SMB = xyes]) 814 815 444 AC_MSG_RESULT($HAVE_SMB) 816 817 445 dnl }}} 818 446 dnl with-Smooth{{{ 819 820 447 AC_ARG_WITH([Smooth], 821 822 448 AS_HELP_STRING([--with-Smooth = YES], [compile with Smooth capabilities (default is yes)]), 823 824 449 [SMOOTH=$withval],[SMOOTH=yes]) 825 826 450 AC_MSG_CHECKING(for Smooth capability compilation) 827 451 828 829 452 HAVE_SMOOTH=no 830 831 453 if test "x$SMOOTH" = "xyes"; then 832 833 454 HAVE_SMOOTH=yes 834 835 455 AC_DEFINE([_HAVE_SMOOTH_],[1],[with Smooth capability]) 836 837 fi 838 456 fi 839 457 AM_CONDITIONAL([SMOOTH], [test x$HAVE_SMOOTH = xyes]) 840 841 458 AC_MSG_RESULT($HAVE_SMOOTH) 842 843 459 dnl }}} 844 460 dnl with-Stressbalance{{{ 845 846 461 AC_ARG_WITH([Stressbalance], 847 848 462 AS_HELP_STRING([--with-Stressbalance = YES], [compile with Stressbalance capabilities (default is yes)]), 849 850 463 [STRESSBALANCE=$withval],[STRESSBALANCE=yes]) 851 852 464 AC_MSG_CHECKING(for Stressbalance capability compilation) 853 465 854 855 466 HAVE_STRESSBALANCE=no 856 857 467 if test "x$STRESSBALANCE" = "xyes"; then 858 859 468 HAVE_STRESSBALANCE=yes 860 861 469 AC_DEFINE([_HAVE_STRESSBALANCE_],[1],[with Stressbalance capability]) 862 863 fi 864 470 fi 865 471 AM_CONDITIONAL([STRESSBALANCE], [test x$HAVE_STRESSBALANCE = xyes]) 866 867 472 AC_MSG_RESULT($HAVE_STRESSBALANCE) 868 869 473 dnl }}} 870 474 dnl with-StressbalanceSIA{{{ 871 872 475 AC_ARG_WITH([StressbalanceSIA], 873 874 476 AS_HELP_STRING([--with-StressbalanceSIA = YES], [compile with StressbalanceSIA capabilities (default is yes)]), 875 876 477 [STRESSBALANCESIA=$withval],[STRESSBALANCESIA=yes]) 877 878 478 AC_MSG_CHECKING(for StressbalanceSIA capability compilation) 879 479 880 881 480 HAVE_STRESSBALANCESIA=no 882 883 481 if test "x$STRESSBALANCESIA" = "xyes"; then 884 885 482 HAVE_STRESSBALANCESIA=yes 886 887 483 AC_DEFINE([_HAVE_STRESSBALANCESIA_],[1],[with StressbalanceSIA capability]) 888 889 fi 890 484 fi 891 485 AM_CONDITIONAL([STRESSBALANCESIA], [test x$HAVE_STRESSBALANCESIA = xyes]) 892 893 486 AC_MSG_RESULT($HAVE_STRESSBALANCESIA) 894 895 487 dnl }}} 896 488 dnl with-StressbalanceVertical{{{ 897 898 489 AC_ARG_WITH([StressbalanceVertical], 899 900 490 AS_HELP_STRING([--with-StressbalanceVertical = YES], [compile with StressbalanceVertical capabilities (default is yes)]), 901 902 491 [STRESSBALANCEVERTICAL=$withval],[STRESSBALANCEVERTICAL=yes]) 903 904 492 AC_MSG_CHECKING(for StressbalanceVertical capability compilation) 905 493 906 907 494 HAVE_STRESSBALANCEVERTICAL=no 908 909 495 if test "x$STRESSBALANCEVERTICAL" = "xyes"; then 910 911 496 HAVE_STRESSBALANCEVERTICAL=yes 912 913 497 AC_DEFINE([_HAVE_STRESSBALANCEVERTICAL_],[1],[with StressbalanceVertical capability]) 914 915 fi 916 498 fi 917 499 AM_CONDITIONAL([STRESSBALANCEVERTICAL], [test x$HAVE_STRESSBALANCEVERTICAL = xyes]) 918 919 500 AC_MSG_RESULT($HAVE_STRESSBALANCEVERTICAL) 920 921 501 dnl }}} 922 502 dnl with-Thermal{{{ 923 924 503 AC_ARG_WITH([Thermal], 925 926 504 AS_HELP_STRING([--with-Thermal = YES], [compile with Thermal capabilities (default is yes)]), 927 928 505 [THERMAL=$withval],[THERMAL=yes]) 929 930 506 AC_MSG_CHECKING(for Thermal capability compilation) 931 507 932 933 508 HAVE_THERMAL=no 934 935 509 if test "x$THERMAL" = "xyes"; then 936 937 510 HAVE_THERMAL=yes 938 939 511 AC_DEFINE([_HAVE_THERMAL_],[1],[with Thermal capability]) 940 941 fi 942 512 fi 943 513 AM_CONDITIONAL([THERMAL], [test x$HAVE_THERMAL = xyes]) 944 945 514 AC_MSG_RESULT($HAVE_THERMAL) 946 947 515 dnl }}} 948 516 dnl with-UzawaPressure{{{ 949 950 517 AC_ARG_WITH([UzawaPressure], 951 952 518 AS_HELP_STRING([--with-UzawaPressure = YES], [compile with UzawaPressure capabilities (default is yes)]), 953 954 519 [UZAWAPRESSURE=$withval],[UZAWAPRESSURE=yes]) 955 956 520 AC_MSG_CHECKING(for UzawaPressure capability compilation) 957 521 958 959 522 HAVE_UZAWAPRESSURE=no 960 961 523 if test "x$UZAWAPRESSURE" = "xyes"; then 962 963 524 HAVE_UZAWAPRESSURE=yes 964 965 525 AC_DEFINE([_HAVE_UZAWAPRESSURE_],[1],[with UzawaPressure capability]) 966 967 fi 968 526 fi 969 527 AM_CONDITIONAL([UZAWAPRESSURE], [test x$HAVE_UZAWAPRESSURE = xyes]) 970 971 528 AC_MSG_RESULT($HAVE_UZAWAPRESSURE) 972 973 529 dnl }}} 974 530 -
issm/trunk-jpl/scripts/cppcheck.sh
r16239 r23107 2 2 3 3 #comprehensive check, except unusedFunction 4 #cppcheck -j 32 --include=$ISSM_DIR/config.h -DHAVE_CONFIG_H -D_HAVE_ADOLC_ -D_HAVE_DAKOTA_ - -enable=all$ISSM_DIR/src/c 2> CPPCHECK.err4 #cppcheck -j 32 --include=$ISSM_DIR/config.h -DHAVE_CONFIG_H -D_HAVE_ADOLC_ -D_HAVE_DAKOTA_ -D_HAVE_JAVASCRIPT_ --enable=warning --enable=style --enable=performance --enable=portability --enable=information --enable=missingInclude $ISSM_DIR/src/c 2> CPPCHECK.err 5 5 6 6 #unused function only (slow) 7 cppcheck --include=$ISSM_DIR/config.h -DHAVE_CONFIG_H -D_HAVE_ADOLC_ -D_HAVE_DAKOTA_ - -enable=unusedFunction $ISSM_DIR/src 2> CPPCHECK.err7 cppcheck --include=$ISSM_DIR/config.h -DHAVE_CONFIG_H -D_HAVE_ADOLC_ -D_HAVE_DAKOTA_ -D_HAVE_JAVASCRIPT_ --enable=unusedFunction $ISSM_DIR/src 2> CPPCHECK.err -
issm/trunk-jpl/src/m/classes/clusters/generic.m
r22777 r23107 111 111 else 112 112 %Add --gen-suppressions=all to get suppression lines 113 fprintf(fid,'LD_PRELOAD=%s \\\n',cluster.valgrindlib);113 %fprintf(fid,'LD_PRELOAD=%s \\\n',cluster.valgrindlib); 114 114 if ismac, 115 115 if IssmConfig('_HAVE_MPI_'), 116 fprintf(fid,'mpiexec -np %i %s --leak-check=full -- error-limit=no --dsymutil=yes --suppressions=%s %s/%s %s %s %s 2> %s.errlog >%s.outlog ',...116 fprintf(fid,'mpiexec -np %i %s --leak-check=full --gen-suppressions=all --error-limit=no --dsymutil=yes --suppressions=%s %s/%s %s %s %s 2> %s.errlog >%s.outlog ',... 117 117 cluster.np,cluster.valgrind,cluster.valgrindsup,cluster.codepath,executable,solution,[cluster.executionpath '/' dirname], modelname,modelname,modelname); 118 118 else … … 122 122 else 123 123 if IssmConfig('_HAVE_MPI_'), 124 fprintf(fid,'mpiexec -np %i %s --leak-check=full -- error-limit=no --suppressions=%s %s/%s %s %s %s 2> %s.errlog >%s.outlog ',...124 fprintf(fid,'mpiexec -np %i %s --leak-check=full --gen-suppressions=all --error-limit=no --suppressions=%s %s/%s %s %s %s 2> %s.errlog >%s.outlog ',... 125 125 cluster.np,cluster.valgrind,cluster.valgrindsup,cluster.codepath,executable,solution,[cluster.executionpath '/' dirname],modelname,modelname,modelname); 126 126 else -
issm/trunk-jpl/src/m/classes/clusters/pfe.m
r22770 r23107 11 11 name = 'pfe' 12 12 login = ''; 13 modules = {'comp-intel/201 6.2.181' 'mpi-sgi/mpt'};13 modules = {'comp-intel/2018.0.128' 'mpi-sgi/mpt'}; 14 14 numnodes = 20; 15 15 cpuspernode = 8; … … 163 163 fprintf(fid,'#PBS -e %s.errlog \n\n',[cluster.executionpath '/' dirname '/' modelname]); 164 164 fprintf(fid,'. /usr/share/modules/init/bash\n\n'); 165 fprintf(fid,'module load comp-intel/2016.2.181\n'); 166 fprintf(fid,'module load mpi-sgi/mpt\n'); 165 for i=1:numel(cluster.modules), 166 fprintf(fid,['module load ' cluster.modules{i} '\n']); 167 end 167 168 fprintf(fid,'export PATH="$PATH:."\n\n'); 168 169 fprintf(fid,'export MPI_GROUP_MAX=64\n\n'); 170 fprintf(fid,'export MKL_NUM_THREADS=2\n\n'); 169 171 fprintf(fid,'export ISSM_DIR="%s/../"\n',cluster.codepath); %FIXME 170 172 fprintf(fid,'source $ISSM_DIR/etc/environment.sh\n'); %FIXME … … 226 228 fprintf(fid,'#PBS -e %s.errlog \n\n',[cluster.executionpath '/' dirname '/' modelname]); 227 229 fprintf(fid,'. /usr/share/modules/init/bash\n\n'); 228 fprintf(fid,'module load comp-intel/2016.2.181\n'); 229 fprintf(fid,'module load mpi-sgi/mpt\n'); 230 for i=1:numel(cluster.modules), 231 fprintf(fid,['module load ' cluster.modules{i} '\n']); 232 end 230 233 fprintf(fid,'export PATH="$PATH:."\n\n'); 231 234 fprintf(fid,'export MPI_GROUP_MAX=64\n\n'); … … 353 356 fprintf(fid,'#PBS -e %s.errlog \n\n',modelname); 354 357 fprintf(fid,'. /usr/share/modules/init/bash\n\n'); 358 %for i=1:numel(cluster.modules), 359 % fprintf(fid,['module load ' cluster.modules{i} '\n']); 360 %end 355 361 fprintf(fid,'module load comp-intel/2016.2.181\n'); 356 362 fprintf(fid,'module load netcdf/4.4.1.1_mpt\n'); -
issm/trunk-jpl/src/m/consistency/ismodelselfconsistent.m
r23020 r23107 71 71 analyses={'EsaAnalysis'}; 72 72 elseif strcmp(solutiontype,'TransientSolution') 73 analyses={'StressbalanceAnalysis','StressbalanceVerticalAnalysis','StressbalanceSIAAnalysis','L2ProjectionBaseAnalysis','ThermalAnalysis','MeltingAnalysis','EnthalpyAnalysis','MasstransportAnalysis','HydrologyShaktiAnalysis' };73 analyses={'StressbalanceAnalysis','StressbalanceVerticalAnalysis','StressbalanceSIAAnalysis','L2ProjectionBaseAnalysis','ThermalAnalysis','MeltingAnalysis','EnthalpyAnalysis','MasstransportAnalysis','HydrologyShaktiAnalysis','HydrologyPismAnalysis'}; 74 74 elseif strcmp(solutiontype,'SealevelriseSolution') 75 75 analyses={'SealevelriseAnalysis'}; -
issm/trunk-jpl/src/m/exp/expread.m
r22930 r23107 28 28 %initialize number of profile 29 29 count=0; 30 Struct = struct(); 30 31 31 32 %open file -
issm/trunk-jpl/src/m/exp/exptool.m
r21780 r23107 105 105 P=get(gcf,'position'); 106 106 Fp=get(gca,'position'); 107 h = findobj(gcf,'type','axes'); 107 108 F=getframe(gca); 108 109 F=F.cdata; … … 114 115 y_m=linspace(ylim(2),ylim(1),size(F,1)); %getframe reverse axis... 115 116 %plot the data in another figure 116 figure; set(gcf,'position',P); 117 imagesc(x_m,y_m,F); set(gca,'Ydir','normal','Position',Fp,'Xlim',xlim,'Ylim',ylim); 117 f2= figure; 118 s = copyobj(h,f2); 119 set(gcf,'position',P); 120 imagesc(x_m,y_m,F); 121 set(gca,'Ydir','normal','Position',Fp,'Xlim',xlim,'Ylim',ylim); 118 122 prevplot=1; 119 123 prevplot2=1; -
issm/trunk-jpl/src/m/inversions/marshallcostfunctions.m
r22770 r23107 15 15 pos=find(cost_functions==510); data(pos) = {'ThicknessPositive'}; 16 16 pos=find(cost_functions==601); data(pos) = {'SurfaceAbsMisfit'}; 17 pos=find(cost_functions==602); data(pos) = {'OmegaAbsGradient'}; 18 pos=find(cost_functions==603); data(pos) = {'EtaDiff'}; -
issm/trunk-jpl/src/m/inversions/supportedcontrols.m
r22770 r23107 2 2 3 3 list = {... 4 'BalancethicknessSpcthickness',... 4 5 'BalancethicknessThickeningRate',... 5 6 'FrictionCoefficient',... -
issm/trunk-jpl/src/m/plot/manualcb.m
r21993 r23107 78 78 hold on 79 79 numcolors=size(cmap,1); 80 if 1,80 if 0, 81 81 %disappears somtimes 82 82 if strcmpi(getfieldvalue(options,'orientation','vertical'),'vertical'), -
issm/trunk-jpl/src/m/plot/scaleruler.m
r21725 r23107 11 11 fontsize = getfieldvalue(options,'scaleruler_fontsize',16); 12 12 unitscale = getfieldvalue(options,'unit',1.); 13 fontcolor = 'w'; 13 14 14 15 %Go through structure and fill missing arguments -
issm/trunk-jpl/src/m/plot/subplotmodel.m
r22770 r23107 30 30 if(((i-1)*ncols+j)==num) 31 31 ha = axes('Units','normalized', ... 32 'Position',[xmin ymin width height] ,'XTickLabel','','YTickLabel','','Visible','off');32 'Position',[xmin ymin width height]);%,'XTickLabel','','YTickLabel','','Visible','off'); 33 33 return 34 34 end -
issm/trunk-jpl/src/m/solvers/mumpsoptions.m
r22770 r23107 27 27 mumps.pc_factor_mat_solver_package=getfieldvalue(options,'pc_factor_mat_solver_package','mumps'); 28 28 mumps.mat_mumps_icntl_14=getfieldvalue(options,'mat_mumps_icntl_14',120); 29 30 %Seems like this one is not needed anymore 29 31 mumps.pc_factor_shift_positive_definite=getfieldvalue(options,'pc_factor_shift_positive_definite','true'); 30 32 31 33 %These 2 lines make raijin break (ptwgts error during solver with PETSc 3.3) 32 mumps.mat_mumps_icntl_28=2; %1=serial, 2=parallel33 mumps.mat_mumps_icntl_29=2; %parallel ordering 1 = ptscotch, 2 = parmetis34 %mumps.mat_mumps_icntl_28=2; %1=serial, 2=parallel 35 %mumps.mat_mumps_icntl_29=2; %parallel ordering 1 = ptscotch, 2 = parmetis 34 36 end -
issm/trunk-jpl/test/NightlyRun/test201.m
r21056 r23107 1 1 %Test Name: SquareShelfStressSSA2d 2 md=triangle(model(),'../Exp/Square.exp',150000.); 2 if 0 3 md=triangle(model(),'../Exp/Square.exp',10000.); 3 4 md=setmask(md,'all',''); 4 5 md=parameterize(md,'../Par/SquareShelf.par'); 5 6 md=setflowequation(md,'SSA','all'); 6 md.cluster=generic('name',oshostname(),'np', 3);7 md.cluster=generic('name',oshostname(),'np',5); 7 8 md=solve(md,'Stressbalance'); 9 else 10 clf 11 md=bamg(model(),'domain','../Exp/Square.exp','hmax',10000.); 12 newdomain = '../Exp/Square_temp.exp'; 13 resolution = 10000; 14 distance=abs(ExpToLevelSet(md.mesh.x,md.mesh.y,newdomain)); 15 pos=find(ContourToNodes(md.mesh.x,md.mesh.y,newdomain,2)); 16 distance(pos) = -distance(pos); 17 pos=find(distance<-resolution); 18 %md2=bamg(model(),'domain','../Exp/Square_temp.exp','hmax',10000.,'RequiredVertices',[md.mesh.x(pos) md.mesh.y(pos) pos],'hmin',10000); 19 md2=bamg(model(),'domain','../Exp/Square_temp.exp','RequiredVertices',[md.mesh.x(pos) md.mesh.y(pos) pos],'hmax',resolution); 20 patch( 'Faces',[md.mesh.elements], 'Vertices', [md.mesh.x md.mesh.y],'FaceVertexCData',zeros(size(md.mesh.x)),'FaceColor','none','EdgeColor','k'); 21 hold on 22 patch( 'Faces',[md2.mesh.elements], 'Vertices', [md2.mesh.x md2.mesh.y],'FaceVertexCData',zeros(size(md2.mesh.x)),'FaceColor','none','EdgeColor','r'); 23 error('S'); 24 %md=bamg(model(),'domain','../Exp/Square_temp2.exp','hmax',10000.); 25 md=setmask(md,'all',''); 26 md=parameterize(md,'../Par/SquareShelf.par'); 27 md=setflowequation(md,'SSA','all'); 28 pos = find((md.mesh.x>10 & md.mesh.x<max(md.mesh.x)-10) & md.mesh.y>10); 29 md.stressbalance.spcvx(pos)=NaN; 30 md.stressbalance.spcvy(pos)=NaN; 31 pos = find(md.mesh.vertexonboundary); 32 md.mask.ice_levelset(pos)=0; 33 %pos = find(md.mesh.y>10); 34 %md.stressbalance.spcvy(pos)=NaN; 35 md.cluster=generic('name',oshostname(),'np',5); 36 md=solve(md,'Stressbalance'); 37 38 %Compute vm stress 39 md=mechanicalproperties(md,md.results.StressbalanceSolution.Vx,md.results.StressbalanceSolution.Vy); 40 lambda1 = max(md.results.strainrate.principalvalue1,0.); 41 lambda2 = max(md.results.strainrate.principalvalue2,0.); 42 epse_2 = 1./2. *(lambda1.*lambda1 + lambda2.*lambda2); 43 n=3; 44 vm=sqrt(3.) * md.materials.rheology_B(1).* epse_2.^(1./(2.*n)); 45 46 end 8 47 9 48 %Fields and tolerances to track changes -
issm/trunk-jpl/test/NightlyRun/test308.m
r21056 r23107 1 1 %Test Name: SquareSheetConstrainedStressFS 2 2 md=triangle(model(),'../Exp/Square.exp',180000.); 3 %md=bamg(model(),'domain','../Exp/Square.exp','hmax',180000.); 3 4 md=setmask(md,'',''); 4 5 md=parameterize(md,'../Par/SquareSheetConstrained.par'); … … 6 7 md=setflowequation(md,'FS','all'); 7 8 md.cluster=generic('name',oshostname(),'np',3); 9 10 md.flowequation.fe_FS = 'TaylorHood'; 8 11 md=solve(md,'Stressbalance'); 9 12 -
issm/trunk-jpl/test/NightlyRun/test401.m
r21056 r23107 1 1 %Test Name: SquareSheetShelfStressSSA2d 2 md=triangle(model(),'../Exp/Square.exp', 150000.);2 md=triangle(model(),'../Exp/Square.exp',50000.); 3 3 md=setmask(md,'../Exp/SquareShelf.exp',''); 4 4 md=parameterize(md,'../Par/SquareSheetShelf.par');
Note:
See TracChangeset
for help on using the changeset viewer.