Changeset 23108


Ignore:
Timestamp:
08/17/18 11:44:26 (7 years ago)
Author:
Mathieu Morlighem
Message:

CHG: reverting commit

Location:
issm/trunk-jpl
Files:
20 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/configure.ac

    r23107 r23108  
    33#AUTOCONF
    44AC_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])  #Put config files in aux-config
    6 AC_CONFIG_MACRO_DIR([m4])          #m4 macros are located in m4
     5AC_CONFIG_AUX_DIR([./aux-config])         #Put config files in aux-config
     6AC_CONFIG_MACRO_DIR([m4])                 #m4 macros are located in m4
    77m4_include([m4/issm_options.m4])
    88
     
    2525#Initialize automake and declare foreign so that we don't need a ChangeLog, INSTALL, etc
    2626AM_INIT_AUTOMAKE([foreign])
    27 AC_CONFIG_HEADERS([./config.h])  #Config file must be config.h
     27AC_CONFIG_HEADERS([./config.h])   #Config file must be config.h
    2828AM_SILENT_RULES([yes])           #Do not show compilation command by default
    2929AM_PROG_AR
  • issm/trunk-jpl/etc/environment.sh

    r23107 r23108  
    235235
    236236PYTHON_DIR="$ISSM_DIR/externalpackages/python/install"
    237 #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
     237if [ -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"
     242fi
    243243
    244244MODELE_DIR="$ISSM_DIR/externalpackages/modelE/install"
  • issm/trunk-jpl/examples/Inversion/runme.m

    r23107 r23108  
    1 step=1:4;
     1step=1;
    22if any(step==1)
    33        %Generate observations
  • issm/trunk-jpl/externalpackages/dem/dem.m

    r23107 r23108  
    119119decim = 0;
    120120
    121 %novalue_color = [0,0,0];
    122 novalue_color = [1,1,1];
     121novalue_color = [0,0,0];
    123122
    124123if ~isnumeric(x) | ~isnumeric(y) | ~isnumeric(z)
  • issm/trunk-jpl/m4/analyses.m4

    r23107 r23108  
    1111
    1212dnl with-AdjointBalancethickness2{{{
     13
    1314AC_ARG_WITH([AdjointBalancethickness2],
     15
    1416        AS_HELP_STRING([--with-AdjointBalancethickness2 = YES], [compile with AdjointBalancethickness2 capabilities (default is yes)]),
     17
    1518        [ADJOINTBALANCETHICKNESS2=$withval],[ADJOINTBALANCETHICKNESS2=yes])
     19
    1620AC_MSG_CHECKING(for AdjointBalancethickness2 capability compilation)
    1721
     22
    1823HAVE_ADJOINTBALANCETHICKNESS2=no
     24
    1925if test "x$ADJOINTBALANCETHICKNESS2" = "xyes"; then
     26
    2027        HAVE_ADJOINTBALANCETHICKNESS2=yes
     28
    2129        AC_DEFINE([_HAVE_ADJOINTBALANCETHICKNESS2_],[1],[with AdjointBalancethickness2 capability])
    22 fi
     30
     31fi
     32
    2333AM_CONDITIONAL([ADJOINTBALANCETHICKNESS2], [test x$HAVE_ADJOINTBALANCETHICKNESS2 = xyes])
     34
    2435AC_MSG_RESULT($HAVE_ADJOINTBALANCETHICKNESS2)
     36
    2537dnl }}}
    2638dnl with-AdjointBalancethickness{{{
     39
    2740AC_ARG_WITH([AdjointBalancethickness],
     41
    2842        AS_HELP_STRING([--with-AdjointBalancethickness = YES], [compile with AdjointBalancethickness capabilities (default is yes)]),
     43
    2944        [ADJOINTBALANCETHICKNESS=$withval],[ADJOINTBALANCETHICKNESS=yes])
     45
    3046AC_MSG_CHECKING(for AdjointBalancethickness capability compilation)
    3147
     48
    3249HAVE_ADJOINTBALANCETHICKNESS=no
     50
    3351if test "x$ADJOINTBALANCETHICKNESS" = "xyes"; then
     52
    3453        HAVE_ADJOINTBALANCETHICKNESS=yes
     54
    3555        AC_DEFINE([_HAVE_ADJOINTBALANCETHICKNESS_],[1],[with AdjointBalancethickness capability])
    36 fi
     56
     57fi
     58
    3759AM_CONDITIONAL([ADJOINTBALANCETHICKNESS], [test x$HAVE_ADJOINTBALANCETHICKNESS = xyes])
     60
    3861AC_MSG_RESULT($HAVE_ADJOINTBALANCETHICKNESS)
     62
    3963dnl }}}
    4064dnl with-AdjointHoriz{{{
     65
    4166AC_ARG_WITH([AdjointHoriz],
     67
    4268        AS_HELP_STRING([--with-AdjointHoriz = YES], [compile with AdjointHoriz capabilities (default is yes)]),
     69
    4370        [ADJOINTHORIZ=$withval],[ADJOINTHORIZ=yes])
     71
    4472AC_MSG_CHECKING(for AdjointHoriz capability compilation)
    4573
     74
    4675HAVE_ADJOINTHORIZ=no
     76
    4777if test "x$ADJOINTHORIZ" = "xyes"; then
     78
    4879        HAVE_ADJOINTHORIZ=yes
     80
    4981        AC_DEFINE([_HAVE_ADJOINTHORIZ_],[1],[with AdjointHoriz capability])
    50 fi
     82
     83fi
     84
    5185AM_CONDITIONAL([ADJOINTHORIZ], [test x$HAVE_ADJOINTHORIZ = xyes])
     86
    5287AC_MSG_RESULT($HAVE_ADJOINTHORIZ)
     88
    5389dnl }}}
    5490dnl with-Balancethickness2{{{
     91
    5592AC_ARG_WITH([Balancethickness2],
     93
    5694        AS_HELP_STRING([--with-Balancethickness2 = YES], [compile with Balancethickness2 capabilities (default is yes)]),
     95
    5796        [BALANCETHICKNESS2=$withval],[BALANCETHICKNESS2=yes])
     97
    5898AC_MSG_CHECKING(for Balancethickness2 capability compilation)
    5999
     100
    60101HAVE_BALANCETHICKNESS2=no
     102
    61103if test "x$BALANCETHICKNESS2" = "xyes"; then
     104
    62105        HAVE_BALANCETHICKNESS2=yes
     106
    63107        AC_DEFINE([_HAVE_BALANCETHICKNESS2_],[1],[with Balancethickness2 capability])
    64 fi
     108
     109fi
     110
    65111AM_CONDITIONAL([BALANCETHICKNESS2], [test x$HAVE_BALANCETHICKNESS2 = xyes])
     112
    66113AC_MSG_RESULT($HAVE_BALANCETHICKNESS2)
     114
    67115dnl }}}
    68116dnl with-Balancethickness{{{
     117
    69118AC_ARG_WITH([Balancethickness],
     119
    70120        AS_HELP_STRING([--with-Balancethickness = YES], [compile with Balancethickness capabilities (default is yes)]),
     121
    71122        [BALANCETHICKNESS=$withval],[BALANCETHICKNESS=yes])
     123
    72124AC_MSG_CHECKING(for Balancethickness capability compilation)
    73125
     126
    74127HAVE_BALANCETHICKNESS=no
     128
    75129if test "x$BALANCETHICKNESS" = "xyes"; then
     130
    76131        HAVE_BALANCETHICKNESS=yes
     132
    77133        AC_DEFINE([_HAVE_BALANCETHICKNESS_],[1],[with Balancethickness capability])
    78 fi
     134
     135fi
     136
    79137AM_CONDITIONAL([BALANCETHICKNESS], [test x$HAVE_BALANCETHICKNESS = xyes])
     138
    80139AC_MSG_RESULT($HAVE_BALANCETHICKNESS)
     140
    81141dnl }}}
    82142dnl with-BalancethicknessSoft{{{
     143
    83144AC_ARG_WITH([BalancethicknessSoft],
     145
    84146        AS_HELP_STRING([--with-BalancethicknessSoft = YES], [compile with BalancethicknessSoft capabilities (default is yes)]),
     147
    85148        [BALANCETHICKNESSSOFT=$withval],[BALANCETHICKNESSSOFT=yes])
     149
    86150AC_MSG_CHECKING(for BalancethicknessSoft capability compilation)
    87151
     152
    88153HAVE_BALANCETHICKNESSSOFT=no
     154
    89155if test "x$BALANCETHICKNESSSOFT" = "xyes"; then
     156
    90157        HAVE_BALANCETHICKNESSSOFT=yes
     158
    91159        AC_DEFINE([_HAVE_BALANCETHICKNESSSOFT_],[1],[with BalancethicknessSoft capability])
    92 fi
     160
     161fi
     162
    93163AM_CONDITIONAL([BALANCETHICKNESSSOFT], [test x$HAVE_BALANCETHICKNESSSOFT = xyes])
     164
    94165AC_MSG_RESULT($HAVE_BALANCETHICKNESSSOFT)
     166
    95167dnl }}}
    96168dnl with-Balancevelocity{{{
     169
    97170AC_ARG_WITH([Balancevelocity],
     171
    98172        AS_HELP_STRING([--with-Balancevelocity = YES], [compile with Balancevelocity capabilities (default is yes)]),
     173
    99174        [BALANCEVELOCITY=$withval],[BALANCEVELOCITY=yes])
     175
    100176AC_MSG_CHECKING(for Balancevelocity capability compilation)
    101177
     178
    102179HAVE_BALANCEVELOCITY=no
     180
    103181if test "x$BALANCEVELOCITY" = "xyes"; then
     182
    104183        HAVE_BALANCEVELOCITY=yes
     184
    105185        AC_DEFINE([_HAVE_BALANCEVELOCITY_],[1],[with Balancevelocity capability])
    106 fi
     186
     187fi
     188
    107189AM_CONDITIONAL([BALANCEVELOCITY], [test x$HAVE_BALANCEVELOCITY = xyes])
     190
    108191AC_MSG_RESULT($HAVE_BALANCEVELOCITY)
     192
    109193dnl }}}
    110194dnl with-DamageEvolution{{{
     195
    111196AC_ARG_WITH([DamageEvolution],
     197
    112198        AS_HELP_STRING([--with-DamageEvolution = YES], [compile with DamageEvolution capabilities (default is yes)]),
     199
    113200        [DAMAGEEVOLUTION=$withval],[DAMAGEEVOLUTION=yes])
     201
    114202AC_MSG_CHECKING(for DamageEvolution capability compilation)
    115203
     204
    116205HAVE_DAMAGEEVOLUTION=no
     206
    117207if test "x$DAMAGEEVOLUTION" = "xyes"; then
     208
    118209        HAVE_DAMAGEEVOLUTION=yes
     210
    119211        AC_DEFINE([_HAVE_DAMAGEEVOLUTION_],[1],[with DamageEvolution capability])
    120 fi
     212
     213fi
     214
    121215AM_CONDITIONAL([DAMAGEEVOLUTION], [test x$HAVE_DAMAGEEVOLUTION = xyes])
     216
    122217AC_MSG_RESULT($HAVE_DAMAGEEVOLUTION)
     218
    123219dnl }}}
    124220dnl with-DepthAverage{{{
     221
    125222AC_ARG_WITH([DepthAverage],
     223
    126224        AS_HELP_STRING([--with-DepthAverage = YES], [compile with DepthAverage capabilities (default is yes)]),
     225
    127226        [DEPTHAVERAGE=$withval],[DEPTHAVERAGE=yes])
     227
    128228AC_MSG_CHECKING(for DepthAverage capability compilation)
    129229
     230
    130231HAVE_DEPTHAVERAGE=no
     232
    131233if test "x$DEPTHAVERAGE" = "xyes"; then
     234
    132235        HAVE_DEPTHAVERAGE=yes
     236
    133237        AC_DEFINE([_HAVE_DEPTHAVERAGE_],[1],[with DepthAverage capability])
    134 fi
     238
     239fi
     240
    135241AM_CONDITIONAL([DEPTHAVERAGE], [test x$HAVE_DEPTHAVERAGE = xyes])
     242
    136243AC_MSG_RESULT($HAVE_DEPTHAVERAGE)
     244
    137245dnl }}}
    138246dnl with-Enthalpy{{{
     247
    139248AC_ARG_WITH([Enthalpy],
     249
    140250        AS_HELP_STRING([--with-Enthalpy = YES], [compile with Enthalpy capabilities (default is yes)]),
     251
    141252        [ENTHALPY=$withval],[ENTHALPY=yes])
     253
    142254AC_MSG_CHECKING(for Enthalpy capability compilation)
    143255
     256
    144257HAVE_ENTHALPY=no
     258
    145259if test "x$ENTHALPY" = "xyes"; then
     260
    146261        HAVE_ENTHALPY=yes
     262
    147263        AC_DEFINE([_HAVE_ENTHALPY_],[1],[with Enthalpy capability])
    148 fi
     264
     265fi
     266
    149267AM_CONDITIONAL([ENTHALPY], [test x$HAVE_ENTHALPY = xyes])
     268
    150269AC_MSG_RESULT($HAVE_ENTHALPY)
     270
    151271dnl }}}
    152272dnl with-Esa{{{
     273
    153274AC_ARG_WITH([Esa],
     275
    154276        AS_HELP_STRING([--with-Esa = YES], [compile with Esa capabilities (default is yes)]),
     277
    155278        [ESA=$withval],[ESA=yes])
     279
    156280AC_MSG_CHECKING(for Esa capability compilation)
    157281
     282
    158283HAVE_ESA=no
     284
    159285if test "x$ESA" = "xyes"; then
     286
    160287        HAVE_ESA=yes
     288
    161289        AC_DEFINE([_HAVE_ESA_],[1],[with Esa capability])
    162 fi
     290
     291fi
     292
    163293AM_CONDITIONAL([ESA], [test x$HAVE_ESA = xyes])
     294
    164295AC_MSG_RESULT($HAVE_ESA)
     296
    165297dnl }}}
    166298dnl with-Extrapolation{{{
     299
    167300AC_ARG_WITH([Extrapolation],
     301
    168302        AS_HELP_STRING([--with-Extrapolation = YES], [compile with Extrapolation capabilities (default is yes)]),
     303
    169304        [EXTRAPOLATION=$withval],[EXTRAPOLATION=yes])
     305
    170306AC_MSG_CHECKING(for Extrapolation capability compilation)
    171307
     308
    172309HAVE_EXTRAPOLATION=no
     310
    173311if test "x$EXTRAPOLATION" = "xyes"; then
     312
    174313        HAVE_EXTRAPOLATION=yes
     314
    175315        AC_DEFINE([_HAVE_EXTRAPOLATION_],[1],[with Extrapolation capability])
    176 fi
     316
     317fi
     318
    177319AM_CONDITIONAL([EXTRAPOLATION], [test x$HAVE_EXTRAPOLATION = xyes])
     320
    178321AC_MSG_RESULT($HAVE_EXTRAPOLATION)
     322
    179323dnl }}}
    180324dnl with-ExtrudeFromBase{{{
     325
    181326AC_ARG_WITH([ExtrudeFromBase],
     327
    182328        AS_HELP_STRING([--with-ExtrudeFromBase = YES], [compile with ExtrudeFromBase capabilities (default is yes)]),
     329
    183330        [EXTRUDEFROMBASE=$withval],[EXTRUDEFROMBASE=yes])
     331
    184332AC_MSG_CHECKING(for ExtrudeFromBase capability compilation)
    185333
     334
    186335HAVE_EXTRUDEFROMBASE=no
     336
    187337if test "x$EXTRUDEFROMBASE" = "xyes"; then
     338
    188339        HAVE_EXTRUDEFROMBASE=yes
     340
    189341        AC_DEFINE([_HAVE_EXTRUDEFROMBASE_],[1],[with ExtrudeFromBase capability])
    190 fi
     342
     343fi
     344
    191345AM_CONDITIONAL([EXTRUDEFROMBASE], [test x$HAVE_EXTRUDEFROMBASE = xyes])
     346
    192347AC_MSG_RESULT($HAVE_EXTRUDEFROMBASE)
     348
    193349dnl }}}
    194350dnl with-ExtrudeFromTop{{{
     351
    195352AC_ARG_WITH([ExtrudeFromTop],
     353
    196354        AS_HELP_STRING([--with-ExtrudeFromTop = YES], [compile with ExtrudeFromTop capabilities (default is yes)]),
     355
    197356        [EXTRUDEFROMTOP=$withval],[EXTRUDEFROMTOP=yes])
     357
    198358AC_MSG_CHECKING(for ExtrudeFromTop capability compilation)
    199359
     360
    200361HAVE_EXTRUDEFROMTOP=no
     362
    201363if test "x$EXTRUDEFROMTOP" = "xyes"; then
     364
    202365        HAVE_EXTRUDEFROMTOP=yes
     366
    203367        AC_DEFINE([_HAVE_EXTRUDEFROMTOP_],[1],[with ExtrudeFromTop capability])
    204 fi
     368
     369fi
     370
    205371AM_CONDITIONAL([EXTRUDEFROMTOP], [test x$HAVE_EXTRUDEFROMTOP = xyes])
     372
    206373AC_MSG_RESULT($HAVE_EXTRUDEFROMTOP)
     374
    207375dnl }}}
    208376dnl with-FreeSurfaceBase{{{
     377
    209378AC_ARG_WITH([FreeSurfaceBase],
     379
    210380        AS_HELP_STRING([--with-FreeSurfaceBase = YES], [compile with FreeSurfaceBase capabilities (default is yes)]),
     381
    211382        [FREESURFACEBASE=$withval],[FREESURFACEBASE=yes])
     383
    212384AC_MSG_CHECKING(for FreeSurfaceBase capability compilation)
    213385
     386
    214387HAVE_FREESURFACEBASE=no
     388
    215389if test "x$FREESURFACEBASE" = "xyes"; then
     390
    216391        HAVE_FREESURFACEBASE=yes
     392
    217393        AC_DEFINE([_HAVE_FREESURFACEBASE_],[1],[with FreeSurfaceBase capability])
    218 fi
     394
     395fi
     396
    219397AM_CONDITIONAL([FREESURFACEBASE], [test x$HAVE_FREESURFACEBASE = xyes])
     398
    220399AC_MSG_RESULT($HAVE_FREESURFACEBASE)
     400
    221401dnl }}}
    222402dnl with-FreeSurfaceTop{{{
     403
    223404AC_ARG_WITH([FreeSurfaceTop],
     405
    224406        AS_HELP_STRING([--with-FreeSurfaceTop = YES], [compile with FreeSurfaceTop capabilities (default is yes)]),
     407
    225408        [FREESURFACETOP=$withval],[FREESURFACETOP=yes])
     409
    226410AC_MSG_CHECKING(for FreeSurfaceTop capability compilation)
    227411
     412
    228413HAVE_FREESURFACETOP=no
     414
    229415if test "x$FREESURFACETOP" = "xyes"; then
     416
    230417        HAVE_FREESURFACETOP=yes
     418
    231419        AC_DEFINE([_HAVE_FREESURFACETOP_],[1],[with FreeSurfaceTop capability])
    232 fi
     420
     421fi
     422
    233423AM_CONDITIONAL([FREESURFACETOP], [test x$HAVE_FREESURFACETOP = xyes])
     424
    234425AC_MSG_RESULT($HAVE_FREESURFACETOP)
     426
    235427dnl }}}
    236428dnl with-GLheightadvection{{{
     429
    237430AC_ARG_WITH([GLheightadvection],
     431
    238432        AS_HELP_STRING([--with-GLheightadvection = YES], [compile with GLheightadvection capabilities (default is yes)]),
     433
    239434        [GLHEIGHTADVECTION=$withval],[GLHEIGHTADVECTION=yes])
     435
    240436AC_MSG_CHECKING(for GLheightadvection capability compilation)
    241437
     438
    242439HAVE_GLHEIGHTADVECTION=no
     440
    243441if test "x$GLHEIGHTADVECTION" = "xyes"; then
     442
    244443        HAVE_GLHEIGHTADVECTION=yes
     444
    245445        AC_DEFINE([_HAVE_GLHEIGHTADVECTION_],[1],[with GLheightadvection capability])
    246 fi
     446
     447fi
     448
    247449AM_CONDITIONAL([GLHEIGHTADVECTION], [test x$HAVE_GLHEIGHTADVECTION = xyes])
     450
    248451AC_MSG_RESULT($HAVE_GLHEIGHTADVECTION)
     452
    249453dnl }}}
    250454dnl with-GiaIvins{{{
     455
    251456AC_ARG_WITH([GiaIvins],
     457
    252458        AS_HELP_STRING([--with-GiaIvins = YES], [compile with GiaIvins capabilities (default is yes)]),
     459
    253460        [GIAIVINS=$withval],[GIAIVINS=yes])
     461
    254462AC_MSG_CHECKING(for GiaIvins capability compilation)
    255463
     464
    256465HAVE_GIAIVINS=no
     466
    257467if test "x$GIAIVINS" = "xyes"; then
     468
    258469        HAVE_GIAIVINS=yes
     470
    259471        AC_DEFINE([_HAVE_GIAIVINS_],[1],[with GiaIvins capability])
    260 fi
     472
     473fi
     474
    261475AM_CONDITIONAL([GIAIVINS], [test x$HAVE_GIAIVINS = xyes])
     476
    262477AC_MSG_RESULT($HAVE_GIAIVINS)
     478
    263479dnl }}}
    264480dnl with-HydrologyDCEfficient{{{
     481
    265482AC_ARG_WITH([HydrologyDCEfficient],
     483
    266484        AS_HELP_STRING([--with-HydrologyDCEfficient = YES], [compile with HydrologyDCEfficient capabilities (default is yes)]),
     485
    267486        [HYDROLOGYDCEFFICIENT=$withval],[HYDROLOGYDCEFFICIENT=yes])
     487
    268488AC_MSG_CHECKING(for HydrologyDCEfficient capability compilation)
    269489
     490
    270491HAVE_HYDROLOGYDCEFFICIENT=no
     492
    271493if test "x$HYDROLOGYDCEFFICIENT" = "xyes"; then
     494
    272495        HAVE_HYDROLOGYDCEFFICIENT=yes
     496
    273497        AC_DEFINE([_HAVE_HYDROLOGYDCEFFICIENT_],[1],[with HydrologyDCEfficient capability])
    274 fi
     498
     499fi
     500
    275501AM_CONDITIONAL([HYDROLOGYDCEFFICIENT], [test x$HAVE_HYDROLOGYDCEFFICIENT = xyes])
     502
    276503AC_MSG_RESULT($HAVE_HYDROLOGYDCEFFICIENT)
     504
    277505dnl }}}
    278506dnl with-HydrologyDCInefficient{{{
     507
    279508AC_ARG_WITH([HydrologyDCInefficient],
     509
    280510        AS_HELP_STRING([--with-HydrologyDCInefficient = YES], [compile with HydrologyDCInefficient capabilities (default is yes)]),
     511
    281512        [HYDROLOGYDCINEFFICIENT=$withval],[HYDROLOGYDCINEFFICIENT=yes])
     513
    282514AC_MSG_CHECKING(for HydrologyDCInefficient capability compilation)
    283515
     516
    284517HAVE_HYDROLOGYDCINEFFICIENT=no
     518
    285519if test "x$HYDROLOGYDCINEFFICIENT" = "xyes"; then
     520
    286521        HAVE_HYDROLOGYDCINEFFICIENT=yes
     522
    287523        AC_DEFINE([_HAVE_HYDROLOGYDCINEFFICIENT_],[1],[with HydrologyDCInefficient capability])
    288 fi
     524
     525fi
     526
    289527AM_CONDITIONAL([HYDROLOGYDCINEFFICIENT], [test x$HAVE_HYDROLOGYDCINEFFICIENT = xyes])
     528
    290529AC_MSG_RESULT($HAVE_HYDROLOGYDCINEFFICIENT)
     530
    291531dnl }}}
    292532dnl with-HydrologyShreve{{{
     533
    293534AC_ARG_WITH([HydrologyShreve],
     535
    294536        AS_HELP_STRING([--with-HydrologyShreve = YES], [compile with HydrologyShreve capabilities (default is yes)]),
     537
    295538        [HYDROLOGYSHREVE=$withval],[HYDROLOGYSHREVE=yes])
     539
    296540AC_MSG_CHECKING(for HydrologyShreve capability compilation)
    297541
     542
    298543HAVE_HYDROLOGYSHREVE=no
     544
    299545if test "x$HYDROLOGYSHREVE" = "xyes"; then
     546
    300547        HAVE_HYDROLOGYSHREVE=yes
     548
    301549        AC_DEFINE([_HAVE_HYDROLOGYSHREVE_],[1],[with HydrologyShreve capability])
    302 fi
     550
     551fi
     552
    303553AM_CONDITIONAL([HYDROLOGYSHREVE], [test x$HAVE_HYDROLOGYSHREVE = xyes])
     554
    304555AC_MSG_RESULT($HAVE_HYDROLOGYSHREVE)
     556
    305557dnl }}}
    306558dnl with-HydrologyShakti{{{
     559
    307560AC_ARG_WITH([HydrologyShakti],
     561
    308562        AS_HELP_STRING([--with-HydrologyShakti = YES], [compile with HydrologyShakti capabilities (default is yes)]),
     563
    309564        [HYDROLOGYSHAKTI=$withval],[HYDROLOGYSHAKTI=yes])
     565
    310566AC_MSG_CHECKING(for HydrologyShakti capability compilation)
    311567
     568
    312569HAVE_HYDROLOGYSHAKTI=no
     570
    313571if test "x$HYDROLOGYSHAKTI" = "xyes"; then
     572
    314573        HAVE_HYDROLOGYSHAKTI=yes
     574
    315575        AC_DEFINE([_HAVE_HYDROLOGYSHAKTI_],[1],[with HydrologyShakti capability])
    316 fi
     576
     577fi
     578
    317579AM_CONDITIONAL([HYDROLOGYSHAKTI], [test x$HAVE_HYDROLOGYSHAKTI = xyes])
     580
    318581AC_MSG_RESULT($HAVE_HYDROLOGYSHAKTI)
     582
    319583dnl }}}
    320584dnl with-HydrologyPism{{{
     585
    321586AC_ARG_WITH([HydrologyPism],
     587
    322588        AS_HELP_STRING([--with-HydrologyPism = YES], [compile with HydrologyPism capabilities (default is yes)]),
     589
    323590        [HYDROLOGYPISM=$withval],[HYDROLOGYPISM=yes])
     591
    324592AC_MSG_CHECKING(for HydrologyPism capability compilation)
    325593
     594
    326595HAVE_HYDROLOGYPISM=no
     596
    327597if test "x$HYDROLOGYPISM" = "xyes"; then
     598
    328599        HAVE_HYDROLOGYPISM=yes
     600
    329601        AC_DEFINE([_HAVE_HYDROLOGYPISM_],[1],[with HydrologyPism capability])
    330 fi
     602
     603fi
     604
    331605AM_CONDITIONAL([HYDROLOGYPISM], [test x$HAVE_HYDROLOGYPISM = xyes])
     606
    332607AC_MSG_RESULT($HAVE_HYDROLOGYPISM)
     608
    333609dnl }}}
    334610dnl with-L2ProjectionBase{{{
     611
    335612AC_ARG_WITH([L2ProjectionBase],
     613
    336614        AS_HELP_STRING([--with-L2ProjectionBase = YES], [compile with L2ProjectionBase capabilities (default is yes)]),
     615
    337616        [L2PROJECTIONBASE=$withval],[L2PROJECTIONBASE=yes])
     617
    338618AC_MSG_CHECKING(for L2ProjectionBase capability compilation)
    339619
     620
    340621HAVE_L2PROJECTIONBASE=no
     622
    341623if test "x$L2PROJECTIONBASE" = "xyes"; then
     624
    342625        HAVE_L2PROJECTIONBASE=yes
     626
    343627        AC_DEFINE([_HAVE_L2PROJECTIONBASE_],[1],[with L2ProjectionBase capability])
    344 fi
     628
     629fi
     630
    345631AM_CONDITIONAL([L2PROJECTIONBASE], [test x$HAVE_L2PROJECTIONBASE = xyes])
     632
    346633AC_MSG_RESULT($HAVE_L2PROJECTIONBASE)
     634
    347635dnl }}}
    348636dnl with-L2ProjectionEPL{{{
     637
    349638AC_ARG_WITH([L2ProjectionEPL],
     639
    350640        AS_HELP_STRING([--with-L2ProjectionEPL = YES], [compile with L2ProjectionEPL capabilities (default is yes)]),
     641
    351642        [L2PROJECTIONEPL=$withval],[L2PROJECTIONEPL=yes])
     643
    352644AC_MSG_CHECKING(for L2ProjectionEPL capability compilation)
    353645
     646
    354647HAVE_L2PROJECTIONEPL=no
     648
    355649if test "x$L2PROJECTIONEPL" = "xyes"; then
     650
    356651        HAVE_L2PROJECTIONEPL=yes
     652
    357653        AC_DEFINE([_HAVE_L2PROJECTIONEPL_],[1],[with L2ProjectionEPL capability])
    358 fi
     654
     655fi
     656
    359657AM_CONDITIONAL([L2PROJECTIONEPL], [test x$HAVE_L2PROJECTIONEPL = xyes])
     658
    360659AC_MSG_RESULT($HAVE_L2PROJECTIONEPL)
     660
    361661dnl }}}
    362662dnl with-Levelset{{{
     663
    363664AC_ARG_WITH([Levelset],
     665
    364666        AS_HELP_STRING([--with-Levelset = YES], [compile with Levelset capabilities (default is yes)]),
     667
    365668        [LEVELSET=$withval],[LEVELSET=yes])
     669
    366670AC_MSG_CHECKING(for Levelset capability compilation)
    367671
     672
    368673HAVE_LEVELSET=no
     674
    369675if test "x$LEVELSET" = "xyes"; then
     676
    370677        HAVE_LEVELSET=yes
     678
    371679        AC_DEFINE([_HAVE_LEVELSET_],[1],[with Levelset capability])
    372 fi
     680
     681fi
     682
    373683AM_CONDITIONAL([LEVELSET], [test x$HAVE_LEVELSET = xyes])
     684
    374685AC_MSG_RESULT($HAVE_LEVELSET)
     686
    375687dnl }}}
    376688dnl with-Love{{{
     689
    377690AC_ARG_WITH([Love],
     691
    378692        AS_HELP_STRING([--with-Love = YES], [compile with Love capabilities (default is yes)]),
     693
    379694        [LOVE=$withval],[LOVE=yes])
     695
    380696AC_MSG_CHECKING(for Love capability compilation)
    381697
     698
    382699HAVE_LOVE=no
     700
    383701if test "x$LOVE" = "xyes"; then
     702
    384703        HAVE_LOVE=yes
     704
    385705        AC_DEFINE([_HAVE_LOVE_],[1],[with Love capability])
    386 fi
     706
     707fi
     708
    387709AM_CONDITIONAL([LOVE], [test x$HAVE_LOVE = xyes])
     710
    388711AC_MSG_RESULT($HAVE_LOVE)
     712
    389713dnl }}}
    390714dnl with-Masstransport{{{
     715
    391716AC_ARG_WITH([Masstransport],
     717
    392718        AS_HELP_STRING([--with-Masstransport = YES], [compile with Masstransport capabilities (default is yes)]),
     719
    393720        [MASSTRANSPORT=$withval],[MASSTRANSPORT=yes])
     721
    394722AC_MSG_CHECKING(for Masstransport capability compilation)
    395723
     724
    396725HAVE_MASSTRANSPORT=no
     726
    397727if test "x$MASSTRANSPORT" = "xyes"; then
     728
    398729        HAVE_MASSTRANSPORT=yes
     730
    399731        AC_DEFINE([_HAVE_MASSTRANSPORT_],[1],[with Masstransport capability])
    400 fi
     732
     733fi
     734
    401735AM_CONDITIONAL([MASSTRANSPORT], [test x$HAVE_MASSTRANSPORT = xyes])
     736
    402737AC_MSG_RESULT($HAVE_MASSTRANSPORT)
     738
    403739dnl }}}
    404740dnl with-Melting{{{
     741
    405742AC_ARG_WITH([Melting],
     743
    406744        AS_HELP_STRING([--with-Melting = YES], [compile with Melting capabilities (default is yes)]),
     745
    407746        [MELTING=$withval],[MELTING=yes])
     747
    408748AC_MSG_CHECKING(for Melting capability compilation)
    409749
     750
    410751HAVE_MELTING=no
     752
    411753if test "x$MELTING" = "xyes"; then
     754
    412755        HAVE_MELTING=yes
     756
    413757        AC_DEFINE([_HAVE_MELTING_],[1],[with Melting capability])
    414 fi
     758
     759fi
     760
    415761AM_CONDITIONAL([MELTING], [test x$HAVE_MELTING = xyes])
     762
    416763AC_MSG_RESULT($HAVE_MELTING)
     764
    417765dnl }}}
    418766dnl with-Sealevelrise{{{
     767
    419768AC_ARG_WITH([Sealevelrise],
     769
    420770        AS_HELP_STRING([--with-Sealevelrise = YES], [compile with Sealevelrise capabilities (default is yes)]),
     771
    421772        [SEALEVELRISE=$withval],[SEALEVELRISE=yes])
     773
    422774AC_MSG_CHECKING(for Sealevelrise capability compilation)
    423775
     776
    424777HAVE_SEALEVELRISE=no
     778
    425779if test "x$SEALEVELRISE" = "xyes"; then
     780
    426781        HAVE_SEALEVELRISE=yes
     782
    427783        AC_DEFINE([_HAVE_SEALEVELRISE_],[1],[with Sealevelrise capability])
    428 fi
     784
     785fi
     786
    429787AM_CONDITIONAL([SEALEVELRISE], [test x$HAVE_SEALEVELRISE = xyes])
     788
    430789AC_MSG_RESULT($HAVE_SEALEVELRISE)
     790
    431791dnl }}}
    432792dnl with-Smb{{{
     793
    433794AC_ARG_WITH([Smb],
     795
    434796        AS_HELP_STRING([--with-Smb = YES], [compile with Smb capabilities (default is yes)]),
     797
    435798        [SMB=$withval],[SMB=yes])
     799
    436800AC_MSG_CHECKING(for Smb capability compilation)
    437801
     802
    438803HAVE_SMB=no
     804
    439805if test "x$SMB" = "xyes"; then
     806
    440807        HAVE_SMB=yes
     808
    441809        AC_DEFINE([_HAVE_SMB_],[1],[with Smb capability])
    442 fi
     810
     811fi
     812
    443813AM_CONDITIONAL([SMB], [test x$HAVE_SMB = xyes])
     814
    444815AC_MSG_RESULT($HAVE_SMB)
     816
    445817dnl }}}
    446818dnl with-Smooth{{{
     819
    447820AC_ARG_WITH([Smooth],
     821
    448822        AS_HELP_STRING([--with-Smooth = YES], [compile with Smooth capabilities (default is yes)]),
     823
    449824        [SMOOTH=$withval],[SMOOTH=yes])
     825
    450826AC_MSG_CHECKING(for Smooth capability compilation)
    451827
     828
    452829HAVE_SMOOTH=no
     830
    453831if test "x$SMOOTH" = "xyes"; then
     832
    454833        HAVE_SMOOTH=yes
     834
    455835        AC_DEFINE([_HAVE_SMOOTH_],[1],[with Smooth capability])
    456 fi
     836
     837fi
     838
    457839AM_CONDITIONAL([SMOOTH], [test x$HAVE_SMOOTH = xyes])
     840
    458841AC_MSG_RESULT($HAVE_SMOOTH)
     842
    459843dnl }}}
    460844dnl with-Stressbalance{{{
     845
    461846AC_ARG_WITH([Stressbalance],
     847
    462848        AS_HELP_STRING([--with-Stressbalance = YES], [compile with Stressbalance capabilities (default is yes)]),
     849
    463850        [STRESSBALANCE=$withval],[STRESSBALANCE=yes])
     851
    464852AC_MSG_CHECKING(for Stressbalance capability compilation)
    465853
     854
    466855HAVE_STRESSBALANCE=no
     856
    467857if test "x$STRESSBALANCE" = "xyes"; then
     858
    468859        HAVE_STRESSBALANCE=yes
     860
    469861        AC_DEFINE([_HAVE_STRESSBALANCE_],[1],[with Stressbalance capability])
    470 fi
     862
     863fi
     864
    471865AM_CONDITIONAL([STRESSBALANCE], [test x$HAVE_STRESSBALANCE = xyes])
     866
    472867AC_MSG_RESULT($HAVE_STRESSBALANCE)
     868
    473869dnl }}}
    474870dnl with-StressbalanceSIA{{{
     871
    475872AC_ARG_WITH([StressbalanceSIA],
     873
    476874        AS_HELP_STRING([--with-StressbalanceSIA = YES], [compile with StressbalanceSIA capabilities (default is yes)]),
     875
    477876        [STRESSBALANCESIA=$withval],[STRESSBALANCESIA=yes])
     877
    478878AC_MSG_CHECKING(for StressbalanceSIA capability compilation)
    479879
     880
    480881HAVE_STRESSBALANCESIA=no
     882
    481883if test "x$STRESSBALANCESIA" = "xyes"; then
     884
    482885        HAVE_STRESSBALANCESIA=yes
     886
    483887        AC_DEFINE([_HAVE_STRESSBALANCESIA_],[1],[with StressbalanceSIA capability])
    484 fi
     888
     889fi
     890
    485891AM_CONDITIONAL([STRESSBALANCESIA], [test x$HAVE_STRESSBALANCESIA = xyes])
     892
    486893AC_MSG_RESULT($HAVE_STRESSBALANCESIA)
     894
    487895dnl }}}
    488896dnl with-StressbalanceVertical{{{
     897
    489898AC_ARG_WITH([StressbalanceVertical],
     899
    490900        AS_HELP_STRING([--with-StressbalanceVertical = YES], [compile with StressbalanceVertical capabilities (default is yes)]),
     901
    491902        [STRESSBALANCEVERTICAL=$withval],[STRESSBALANCEVERTICAL=yes])
     903
    492904AC_MSG_CHECKING(for StressbalanceVertical capability compilation)
    493905
     906
    494907HAVE_STRESSBALANCEVERTICAL=no
     908
    495909if test "x$STRESSBALANCEVERTICAL" = "xyes"; then
     910
    496911        HAVE_STRESSBALANCEVERTICAL=yes
     912
    497913        AC_DEFINE([_HAVE_STRESSBALANCEVERTICAL_],[1],[with StressbalanceVertical capability])
    498 fi
     914
     915fi
     916
    499917AM_CONDITIONAL([STRESSBALANCEVERTICAL], [test x$HAVE_STRESSBALANCEVERTICAL = xyes])
     918
    500919AC_MSG_RESULT($HAVE_STRESSBALANCEVERTICAL)
     920
    501921dnl }}}
    502922dnl with-Thermal{{{
     923
    503924AC_ARG_WITH([Thermal],
     925
    504926        AS_HELP_STRING([--with-Thermal = YES], [compile with Thermal capabilities (default is yes)]),
     927
    505928        [THERMAL=$withval],[THERMAL=yes])
     929
    506930AC_MSG_CHECKING(for Thermal capability compilation)
    507931
     932
    508933HAVE_THERMAL=no
     934
    509935if test "x$THERMAL" = "xyes"; then
     936
    510937        HAVE_THERMAL=yes
     938
    511939        AC_DEFINE([_HAVE_THERMAL_],[1],[with Thermal capability])
    512 fi
     940
     941fi
     942
    513943AM_CONDITIONAL([THERMAL], [test x$HAVE_THERMAL = xyes])
     944
    514945AC_MSG_RESULT($HAVE_THERMAL)
     946
    515947dnl }}}
    516948dnl with-UzawaPressure{{{
     949
    517950AC_ARG_WITH([UzawaPressure],
     951
    518952        AS_HELP_STRING([--with-UzawaPressure = YES], [compile with UzawaPressure capabilities (default is yes)]),
     953
    519954        [UZAWAPRESSURE=$withval],[UZAWAPRESSURE=yes])
     955
    520956AC_MSG_CHECKING(for UzawaPressure capability compilation)
    521957
     958
    522959HAVE_UZAWAPRESSURE=no
     960
    523961if test "x$UZAWAPRESSURE" = "xyes"; then
     962
    524963        HAVE_UZAWAPRESSURE=yes
     964
    525965        AC_DEFINE([_HAVE_UZAWAPRESSURE_],[1],[with UzawaPressure capability])
    526 fi
     966
     967fi
     968
    527969AM_CONDITIONAL([UZAWAPRESSURE], [test x$HAVE_UZAWAPRESSURE = xyes])
     970
    528971AC_MSG_RESULT($HAVE_UZAWAPRESSURE)
     972
    529973dnl }}}
    530974
  • issm/trunk-jpl/scripts/cppcheck.sh

    r23107 r23108  
    22
    33#comprehensive check, except unusedFunction
    4 #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
     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.err
    55
    66#unused function only (slow)
    7 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
     7cppcheck --include=$ISSM_DIR/config.h -DHAVE_CONFIG_H -D_HAVE_ADOLC_ -D_HAVE_DAKOTA_ --enable=unusedFunction $ISSM_DIR/src 2> CPPCHECK.err
  • issm/trunk-jpl/src/m/classes/clusters/generic.m

    r23107 r23108  
    111111                                else
    112112                                        %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);
    114114                                        if ismac,
    115115                                                if IssmConfig('_HAVE_MPI_'),
    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 ',...
     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 ',...
    117117                                                        cluster.np,cluster.valgrind,cluster.valgrindsup,cluster.codepath,executable,solution,[cluster.executionpath '/' dirname], modelname,modelname,modelname);
    118118                                                else
     
    122122                                        else
    123123                                                if IssmConfig('_HAVE_MPI_'),
    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 ',...
     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 ',...
    125125                                                        cluster.np,cluster.valgrind,cluster.valgrindsup,cluster.codepath,executable,solution,[cluster.executionpath '/' dirname],modelname,modelname,modelname);
    126126                                                else
  • issm/trunk-jpl/src/m/classes/clusters/pfe.m

    r23107 r23108  
    1111                 name           = 'pfe'
    1212                 login          = '';
    13                  modules        = {'comp-intel/2018.0.128' 'mpi-sgi/mpt'};
     13                 modules        = {'comp-intel/2016.2.181' 'mpi-sgi/mpt'};
    1414                 numnodes       = 20;
    1515                 cpuspernode    = 8;
     
    163163                         fprintf(fid,'#PBS -e %s.errlog \n\n',[cluster.executionpath '/' dirname '/' modelname]);
    164164                         fprintf(fid,'. /usr/share/modules/init/bash\n\n');
    165                          for i=1:numel(cluster.modules),
    166                                  fprintf(fid,['module load ' cluster.modules{i} '\n']);
    167                          end
     165                         fprintf(fid,'module load comp-intel/2016.2.181\n');
     166                         fprintf(fid,'module load mpi-sgi/mpt\n');
    168167                         fprintf(fid,'export PATH="$PATH:."\n\n');
    169168                         fprintf(fid,'export MPI_GROUP_MAX=64\n\n');
    170                          fprintf(fid,'export MKL_NUM_THREADS=2\n\n');
    171169                         fprintf(fid,'export ISSM_DIR="%s/../"\n',cluster.codepath); %FIXME
    172170                         fprintf(fid,'source $ISSM_DIR/etc/environment.sh\n');       %FIXME
     
    228226                         fprintf(fid,'#PBS -e %s.errlog \n\n',[cluster.executionpath '/' dirname '/' modelname]);
    229227                         fprintf(fid,'. /usr/share/modules/init/bash\n\n');
    230                          for i=1:numel(cluster.modules),
    231                                  fprintf(fid,['module load ' cluster.modules{i} '\n']);
    232                          end
     228                         fprintf(fid,'module load comp-intel/2016.2.181\n');
     229                         fprintf(fid,'module load mpi-sgi/mpt\n');
    233230                         fprintf(fid,'export PATH="$PATH:."\n\n');
    234231                         fprintf(fid,'export MPI_GROUP_MAX=64\n\n');
     
    356353                         fprintf(fid,'#PBS -e %s.errlog \n\n',modelname);
    357354                         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
    361355                         fprintf(fid,'module load comp-intel/2016.2.181\n');
    362356                         fprintf(fid,'module load netcdf/4.4.1.1_mpt\n');
  • issm/trunk-jpl/src/m/consistency/ismodelselfconsistent.m

    r23107 r23108  
    7171                analyses={'EsaAnalysis'};
    7272        elseif strcmp(solutiontype,'TransientSolution')
    73                 analyses={'StressbalanceAnalysis','StressbalanceVerticalAnalysis','StressbalanceSIAAnalysis','L2ProjectionBaseAnalysis','ThermalAnalysis','MeltingAnalysis','EnthalpyAnalysis','MasstransportAnalysis','HydrologyShaktiAnalysis','HydrologyPismAnalysis'};
     73                analyses={'StressbalanceAnalysis','StressbalanceVerticalAnalysis','StressbalanceSIAAnalysis','L2ProjectionBaseAnalysis','ThermalAnalysis','MeltingAnalysis','EnthalpyAnalysis','MasstransportAnalysis','HydrologyShaktiAnalysis'};
    7474        elseif strcmp(solutiontype,'SealevelriseSolution')
    7575                analyses={'SealevelriseAnalysis'};
  • issm/trunk-jpl/src/m/exp/expread.m

    r23107 r23108  
    2828%initialize number of profile
    2929count=0;
    30 Struct = struct();
    3130
    3231%open file
  • issm/trunk-jpl/src/m/exp/exptool.m

    r23107 r23108  
    105105                P=get(gcf,'position');
    106106                Fp=get(gca,'position');
    107                 h = findobj(gcf,'type','axes');
    108107                F=getframe(gca);
    109108                F=F.cdata;
     
    115114                y_m=linspace(ylim(2),ylim(1),size(F,1)); %getframe reverse axis...
    116115                %plot the data in another figure
    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);
     116                figure; set(gcf,'position',P);
     117                imagesc(x_m,y_m,F); set(gca,'Ydir','normal','Position',Fp,'Xlim',xlim,'Ylim',ylim);
    122118                prevplot=1;
    123119                prevplot2=1;
  • issm/trunk-jpl/src/m/inversions/marshallcostfunctions.m

    r23107 r23108  
    1515        pos=find(cost_functions==510); data(pos) = {'ThicknessPositive'};
    1616        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

    r23107 r23108  
    22
    33        list = {...
    4                 'BalancethicknessSpcthickness',...
    54                'BalancethicknessThickeningRate',...
    65                'FrictionCoefficient',...
  • issm/trunk-jpl/src/m/plot/manualcb.m

    r23107 r23108  
    7878hold on
    7979numcolors=size(cmap,1);
    80 if 0,
     80if 1,
    8181        %disappears somtimes
    8282        if strcmpi(getfieldvalue(options,'orientation','vertical'),'vertical'),
  • issm/trunk-jpl/src/m/plot/scaleruler.m

    r23107 r23108  
    1111fontsize   = getfieldvalue(options,'scaleruler_fontsize',16);
    1212unitscale  = getfieldvalue(options,'unit',1.);
    13 fontcolor = 'w';
    1413
    1514%Go through structure and fill missing arguments
  • issm/trunk-jpl/src/m/plot/subplotmodel.m

    r23107 r23108  
    3030                if(((i-1)*ncols+j)==num)
    3131                        ha = axes('Units','normalized', ...
    32                                 'Position',[xmin ymin width height]);%,'XTickLabel','','YTickLabel','','Visible','off');
     32                                'Position',[xmin ymin width height],'XTickLabel','','YTickLabel','','Visible','off');
    3333                        return
    3434                end
  • issm/trunk-jpl/src/m/solvers/mumpsoptions.m

    r23107 r23108  
    2727        mumps.pc_factor_mat_solver_package=getfieldvalue(options,'pc_factor_mat_solver_package','mumps');
    2828        mumps.mat_mumps_icntl_14=getfieldvalue(options,'mat_mumps_icntl_14',120);
    29 
    30         %Seems like this one is not needed anymore
    3129        mumps.pc_factor_shift_positive_definite=getfieldvalue(options,'pc_factor_shift_positive_definite','true');
    3230
    3331        %These 2 lines make raijin break (ptwgts error during solver with PETSc 3.3)
    34         %mumps.mat_mumps_icntl_28=2; %1=serial, 2=parallel
    35         %mumps.mat_mumps_icntl_29=2; %parallel ordering 1 = ptscotch, 2 = parmetis
     32        mumps.mat_mumps_icntl_28=2; %1=serial, 2=parallel
     33        mumps.mat_mumps_icntl_29=2; %parallel ordering 1 = ptscotch, 2 = parmetis
    3634end
  • issm/trunk-jpl/test/NightlyRun/test201.m

    r23107 r23108  
    11%Test Name: SquareShelfStressSSA2d
    2 if 0
    3 md=triangle(model(),'../Exp/Square.exp',10000.);
     2md=triangle(model(),'../Exp/Square.exp',150000.);
    43md=setmask(md,'all','');
    54md=parameterize(md,'../Par/SquareShelf.par');
    65md=setflowequation(md,'SSA','all');
    7 md.cluster=generic('name',oshostname(),'np',5);
     6md.cluster=generic('name',oshostname(),'np',3);
    87md=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
    478
    489%Fields and tolerances to track changes
  • issm/trunk-jpl/test/NightlyRun/test308.m

    r23107 r23108  
    11%Test Name: SquareSheetConstrainedStressFS
    22md=triangle(model(),'../Exp/Square.exp',180000.);
    3 %md=bamg(model(),'domain','../Exp/Square.exp','hmax',180000.);
    43md=setmask(md,'','');
    54md=parameterize(md,'../Par/SquareSheetConstrained.par');
     
    76md=setflowequation(md,'FS','all');
    87md.cluster=generic('name',oshostname(),'np',3);
    9 
    10 md.flowequation.fe_FS = 'TaylorHood';
    118md=solve(md,'Stressbalance');
    129
  • issm/trunk-jpl/test/NightlyRun/test401.m

    r23107 r23108  
    11%Test Name: SquareSheetShelfStressSSA2d
    2 md=triangle(model(),'../Exp/Square.exp',50000.);
     2md=triangle(model(),'../Exp/Square.exp',150000.);
    33md=setmask(md,'../Exp/SquareShelf.exp','');
    44md=parameterize(md,'../Par/SquareSheetShelf.par');
Note: See TracChangeset for help on using the changeset viewer.