Changeset 19518


Ignore:
Timestamp:
08/25/15 16:59:29 (10 years ago)
Author:
seroussi
Message:

NEW: added GroundedArea in possible outputs

Location:
issm/trunk-jpl
Files:
1 added
19 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/externalpackages/cmake/install.sh

    r19511 r19518  
    44
    55#Some cleanup
    6 rm -rf install cmake-$VER
     6rm -rf install cmake-3.3.1
    77mkdir install
    88
    99#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'
    1111
    1212#Untar
    13 tar -zxvf  cmake-$VER.tar.gz
     13tar -zxvf  cmake-3.3.1.tar.gz
    1414
    1515#Move cmake into install directory
    16 mv cmake-$VER/* install
    17 rm -rf cmake-$VER
     16mv cmake-3.3.1/* install
     17rm -rf cmake-3.3.1
    1818
    1919#Compile cmake
  • issm/trunk-jpl/m4/analyses.m4

    r19172 r19518  
    1111
    1212dnl with-AdjointBalancethickness{{{
     13
    1314AC_ARG_WITH([AdjointBalancethickness],
     15
    1416        AS_HELP_STRING([--with-AdjointBalancethickness = YES], [compile with AdjointBalancethickness capabilities (default is yes)]),
     17
    1518        [ADJOINTBALANCETHICKNESS=$withval],[ADJOINTBALANCETHICKNESS=yes])
     19
    1620AC_MSG_CHECKING(for AdjointBalancethickness capability compilation)
    1721
     22
    1823HAVE_ADJOINTBALANCETHICKNESS=no
     24
    1925if test "x$ADJOINTBALANCETHICKNESS" = "xyes"; then
     26
    2027        HAVE_ADJOINTBALANCETHICKNESS=yes
     28
    2129        AC_DEFINE([_HAVE_ADJOINTBALANCETHICKNESS_],[1],[with AdjointBalancethickness capability])
    22 fi
     30
     31fi
     32
    2333AM_CONDITIONAL([ADJOINTBALANCETHICKNESS], [test x$HAVE_ADJOINTBALANCETHICKNESS = xyes])
     34
    2435AC_MSG_RESULT($HAVE_ADJOINTBALANCETHICKNESS)
     36
    2537dnl }}}
    2638dnl with-AdjointBalancethickness2{{{
     39
    2740AC_ARG_WITH([AdjointBalancethickness2],
     41
    2842        AS_HELP_STRING([--with-AdjointBalancethickness2 = YES], [compile with AdjointBalancethickness2 capabilities (default is yes)]),
     43
    2944        [ADJOINTBALANCETHICKNESS2=$withval],[ADJOINTBALANCETHICKNESS2=yes])
     45
    3046AC_MSG_CHECKING(for AdjointBalancethickness2 capability compilation)
    3147
     48
    3249HAVE_ADJOINTBALANCETHICKNESS2=no
     50
    3351if test "x$ADJOINTBALANCETHICKNESS2" = "xyes"; then
     52
    3453        HAVE_ADJOINTBALANCETHICKNESS2=yes
     54
    3555        AC_DEFINE([_HAVE_ADJOINTBALANCETHICKNESS2_],[1],[with AdjointBalancethickness2 capability])
    36 fi
     56
     57fi
     58
    3759AM_CONDITIONAL([ADJOINTBALANCETHICKNESS2], [test x$HAVE_ADJOINTBALANCETHICKNESS2 = xyes])
     60
    3861AC_MSG_RESULT($HAVE_ADJOINTBALANCETHICKNESS2)
     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-Balancethickness{{{
     91
    5592AC_ARG_WITH([Balancethickness],
     93
    5694        AS_HELP_STRING([--with-Balancethickness = YES], [compile with Balancethickness capabilities (default is yes)]),
     95
    5796        [BALANCETHICKNESS=$withval],[BALANCETHICKNESS=yes])
     97
    5898AC_MSG_CHECKING(for Balancethickness capability compilation)
    5999
     100
    60101HAVE_BALANCETHICKNESS=no
     102
    61103if test "x$BALANCETHICKNESS" = "xyes"; then
     104
    62105        HAVE_BALANCETHICKNESS=yes
     106
    63107        AC_DEFINE([_HAVE_BALANCETHICKNESS_],[1],[with Balancethickness capability])
    64 fi
     108
     109fi
     110
    65111AM_CONDITIONAL([BALANCETHICKNESS], [test x$HAVE_BALANCETHICKNESS = xyes])
     112
    66113AC_MSG_RESULT($HAVE_BALANCETHICKNESS)
     114
    67115dnl }}}
    68116dnl with-Balancethickness2{{{
     117
    69118AC_ARG_WITH([Balancethickness2],
     119
    70120        AS_HELP_STRING([--with-Balancethickness2 = YES], [compile with Balancethickness2 capabilities (default is yes)]),
     121
    71122        [BALANCETHICKNESS2=$withval],[BALANCETHICKNESS2=yes])
     123
    72124AC_MSG_CHECKING(for Balancethickness2 capability compilation)
    73125
     126
    74127HAVE_BALANCETHICKNESS2=no
     128
    75129if test "x$BALANCETHICKNESS2" = "xyes"; then
     130
    76131        HAVE_BALANCETHICKNESS2=yes
     132
    77133        AC_DEFINE([_HAVE_BALANCETHICKNESS2_],[1],[with Balancethickness2 capability])
    78 fi
     134
     135fi
     136
    79137AM_CONDITIONAL([BALANCETHICKNESS2], [test x$HAVE_BALANCETHICKNESS2 = xyes])
     138
    80139AC_MSG_RESULT($HAVE_BALANCETHICKNESS2)
     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-L2ProjectionEPL{{{
     195
    111196AC_ARG_WITH([L2ProjectionEPL],
     197
    112198        AS_HELP_STRING([--with-L2ProjectionEPL = YES], [compile with L2ProjectionEPL capabilities (default is yes)]),
     199
    113200        [L2PROJECTIONEPL=$withval],[L2PROJECTIONEPL=yes])
     201
    114202AC_MSG_CHECKING(for L2ProjectionEPL capability compilation)
    115203
     204
    116205HAVE_L2PROJECTIONEPL=no
     206
    117207if test "x$L2PROJECTIONEPL" = "xyes"; then
     208
    118209        HAVE_L2PROJECTIONEPL=yes
     210
    119211        AC_DEFINE([_HAVE_L2PROJECTIONEPL_],[1],[with L2ProjectionEPL capability])
    120 fi
     212
     213fi
     214
    121215AM_CONDITIONAL([L2PROJECTIONEPL], [test x$HAVE_L2PROJECTIONEPL = xyes])
     216
    122217AC_MSG_RESULT($HAVE_L2PROJECTIONEPL)
     218
    123219dnl }}}
    124220dnl with-L2ProjectionBase{{{
     221
    125222AC_ARG_WITH([L2ProjectionBase],
     223
    126224        AS_HELP_STRING([--with-L2ProjectionBase = YES], [compile with L2ProjectionBase capabilities (default is yes)]),
     225
    127226        [L2PROJECTIONBASE=$withval],[L2PROJECTIONBASE=yes])
     227
    128228AC_MSG_CHECKING(for L2ProjectionBase capability compilation)
    129229
     230
    130231HAVE_L2PROJECTIONBASE=no
     232
    131233if test "x$L2PROJECTIONBASE" = "xyes"; then
     234
    132235        HAVE_L2PROJECTIONBASE=yes
     236
    133237        AC_DEFINE([_HAVE_L2PROJECTIONBASE_],[1],[with L2ProjectionBase capability])
    134 fi
     238
     239fi
     240
    135241AM_CONDITIONAL([L2PROJECTIONBASE], [test x$HAVE_L2PROJECTIONBASE = xyes])
     242
    136243AC_MSG_RESULT($HAVE_L2PROJECTIONBASE)
     244
    137245dnl }}}
    138246dnl with-DamageEvolution{{{
     247
    139248AC_ARG_WITH([DamageEvolution],
     249
    140250        AS_HELP_STRING([--with-DamageEvolution = YES], [compile with DamageEvolution capabilities (default is yes)]),
     251
    141252        [DAMAGEEVOLUTION=$withval],[DAMAGEEVOLUTION=yes])
     253
    142254AC_MSG_CHECKING(for DamageEvolution capability compilation)
    143255
     256
    144257HAVE_DAMAGEEVOLUTION=no
     258
    145259if test "x$DAMAGEEVOLUTION" = "xyes"; then
     260
    146261        HAVE_DAMAGEEVOLUTION=yes
     262
    147263        AC_DEFINE([_HAVE_DAMAGEEVOLUTION_],[1],[with DamageEvolution capability])
    148 fi
     264
     265fi
     266
    149267AM_CONDITIONAL([DAMAGEEVOLUTION], [test x$HAVE_DAMAGEEVOLUTION = xyes])
     268
    150269AC_MSG_RESULT($HAVE_DAMAGEEVOLUTION)
     270
    151271dnl }}}
    152272dnl with-Stressbalance{{{
     273
    153274AC_ARG_WITH([Stressbalance],
     275
    154276        AS_HELP_STRING([--with-Stressbalance = YES], [compile with Stressbalance capabilities (default is yes)]),
     277
    155278        [STRESSBALANCE=$withval],[STRESSBALANCE=yes])
     279
    156280AC_MSG_CHECKING(for Stressbalance capability compilation)
    157281
     282
    158283HAVE_STRESSBALANCE=no
     284
    159285if test "x$STRESSBALANCE" = "xyes"; then
     286
    160287        HAVE_STRESSBALANCE=yes
     288
    161289        AC_DEFINE([_HAVE_STRESSBALANCE_],[1],[with Stressbalance capability])
    162 fi
     290
     291fi
     292
    163293AM_CONDITIONAL([STRESSBALANCE], [test x$HAVE_STRESSBALANCE = xyes])
     294
    164295AC_MSG_RESULT($HAVE_STRESSBALANCE)
     296
    165297dnl }}}
    166298dnl with-StressbalanceSIA{{{
     299
    167300AC_ARG_WITH([StressbalanceSIA],
     301
    168302        AS_HELP_STRING([--with-StressbalanceSIA = YES], [compile with StressbalanceSIA capabilities (default is yes)]),
     303
    169304        [STRESSBALANCESIA=$withval],[STRESSBALANCESIA=yes])
     305
    170306AC_MSG_CHECKING(for StressbalanceSIA capability compilation)
    171307
     308
    172309HAVE_STRESSBALANCESIA=no
     310
    173311if test "x$STRESSBALANCESIA" = "xyes"; then
     312
    174313        HAVE_STRESSBALANCESIA=yes
     314
    175315        AC_DEFINE([_HAVE_STRESSBALANCESIA_],[1],[with StressbalanceSIA capability])
    176 fi
     316
     317fi
     318
    177319AM_CONDITIONAL([STRESSBALANCESIA], [test x$HAVE_STRESSBALANCESIA = xyes])
     320
    178321AC_MSG_RESULT($HAVE_STRESSBALANCESIA)
     322
    179323dnl }}}
    180324dnl with-StressbalanceVertical{{{
     325
    181326AC_ARG_WITH([StressbalanceVertical],
     327
    182328        AS_HELP_STRING([--with-StressbalanceVertical = YES], [compile with StressbalanceVertical capabilities (default is yes)]),
     329
    183330        [STRESSBALANCEVERTICAL=$withval],[STRESSBALANCEVERTICAL=yes])
     331
    184332AC_MSG_CHECKING(for StressbalanceVertical capability compilation)
    185333
     334
    186335HAVE_STRESSBALANCEVERTICAL=no
     336
    187337if test "x$STRESSBALANCEVERTICAL" = "xyes"; then
     338
    188339        HAVE_STRESSBALANCEVERTICAL=yes
     340
    189341        AC_DEFINE([_HAVE_STRESSBALANCEVERTICAL_],[1],[with StressbalanceVertical capability])
    190 fi
     342
     343fi
     344
    191345AM_CONDITIONAL([STRESSBALANCEVERTICAL], [test x$HAVE_STRESSBALANCEVERTICAL = xyes])
     346
    192347AC_MSG_RESULT($HAVE_STRESSBALANCEVERTICAL)
     348
    193349dnl }}}
    194350dnl with-Enthalpy{{{
     351
    195352AC_ARG_WITH([Enthalpy],
     353
    196354        AS_HELP_STRING([--with-Enthalpy = YES], [compile with Enthalpy capabilities (default is yes)]),
     355
    197356        [ENTHALPY=$withval],[ENTHALPY=yes])
     357
    198358AC_MSG_CHECKING(for Enthalpy capability compilation)
    199359
     360
    200361HAVE_ENTHALPY=no
     362
    201363if test "x$ENTHALPY" = "xyes"; then
     364
    202365        HAVE_ENTHALPY=yes
     366
    203367        AC_DEFINE([_HAVE_ENTHALPY_],[1],[with Enthalpy capability])
    204 fi
     368
     369fi
     370
    205371AM_CONDITIONAL([ENTHALPY], [test x$HAVE_ENTHALPY = xyes])
     372
    206373AC_MSG_RESULT($HAVE_ENTHALPY)
     374
    207375dnl }}}
    208376dnl with-HydrologyShreve{{{
     377
    209378AC_ARG_WITH([HydrologyShreve],
     379
    210380        AS_HELP_STRING([--with-HydrologyShreve = YES], [compile with HydrologyShreve capabilities (default is yes)]),
     381
    211382        [HYDROLOGYSHREVE=$withval],[HYDROLOGYSHREVE=yes])
     383
    212384AC_MSG_CHECKING(for HydrologyShreve capability compilation)
    213385
     386
    214387HAVE_HYDROLOGYSHREVE=no
     388
    215389if test "x$HYDROLOGYSHREVE" = "xyes"; then
     390
    216391        HAVE_HYDROLOGYSHREVE=yes
     392
    217393        AC_DEFINE([_HAVE_HYDROLOGYSHREVE_],[1],[with HydrologyShreve capability])
    218 fi
     394
     395fi
     396
    219397AM_CONDITIONAL([HYDROLOGYSHREVE], [test x$HAVE_HYDROLOGYSHREVE = xyes])
     398
    220399AC_MSG_RESULT($HAVE_HYDROLOGYSHREVE)
     400
    221401dnl }}}
    222402dnl with-HydrologyDCInefficient{{{
     403
    223404AC_ARG_WITH([HydrologyDCInefficient],
     405
    224406        AS_HELP_STRING([--with-HydrologyDCInefficient = YES], [compile with HydrologyDCInefficient capabilities (default is yes)]),
     407
    225408        [HYDROLOGYDCINEFFICIENT=$withval],[HYDROLOGYDCINEFFICIENT=yes])
     409
    226410AC_MSG_CHECKING(for HydrologyDCInefficient capability compilation)
    227411
     412
    228413HAVE_HYDROLOGYDCINEFFICIENT=no
     414
    229415if test "x$HYDROLOGYDCINEFFICIENT" = "xyes"; then
     416
    230417        HAVE_HYDROLOGYDCINEFFICIENT=yes
     418
    231419        AC_DEFINE([_HAVE_HYDROLOGYDCINEFFICIENT_],[1],[with HydrologyDCInefficient capability])
    232 fi
     420
     421fi
     422
    233423AM_CONDITIONAL([HYDROLOGYDCINEFFICIENT], [test x$HAVE_HYDROLOGYDCINEFFICIENT = xyes])
     424
    234425AC_MSG_RESULT($HAVE_HYDROLOGYDCINEFFICIENT)
     426
    235427dnl }}}
    236428dnl with-HydrologyDCEfficient{{{
     429
    237430AC_ARG_WITH([HydrologyDCEfficient],
     431
    238432        AS_HELP_STRING([--with-HydrologyDCEfficient = YES], [compile with HydrologyDCEfficient capabilities (default is yes)]),
     433
    239434        [HYDROLOGYDCEFFICIENT=$withval],[HYDROLOGYDCEFFICIENT=yes])
     435
    240436AC_MSG_CHECKING(for HydrologyDCEfficient capability compilation)
    241437
     438
    242439HAVE_HYDROLOGYDCEFFICIENT=no
     440
    243441if test "x$HYDROLOGYDCEFFICIENT" = "xyes"; then
     442
    244443        HAVE_HYDROLOGYDCEFFICIENT=yes
     444
    245445        AC_DEFINE([_HAVE_HYDROLOGYDCEFFICIENT_],[1],[with HydrologyDCEfficient capability])
    246 fi
     446
     447fi
     448
    247449AM_CONDITIONAL([HYDROLOGYDCEFFICIENT], [test x$HAVE_HYDROLOGYDCEFFICIENT = xyes])
     450
    248451AC_MSG_RESULT($HAVE_HYDROLOGYDCEFFICIENT)
     452
    249453dnl }}}
    250454dnl with-Melting{{{
     455
    251456AC_ARG_WITH([Melting],
     457
    252458        AS_HELP_STRING([--with-Melting = YES], [compile with Melting capabilities (default is yes)]),
     459
    253460        [MELTING=$withval],[MELTING=yes])
     461
    254462AC_MSG_CHECKING(for Melting capability compilation)
    255463
     464
    256465HAVE_MELTING=no
     466
    257467if test "x$MELTING" = "xyes"; then
     468
    258469        HAVE_MELTING=yes
     470
    259471        AC_DEFINE([_HAVE_MELTING_],[1],[with Melting capability])
    260 fi
     472
     473fi
     474
    261475AM_CONDITIONAL([MELTING], [test x$HAVE_MELTING = xyes])
     476
    262477AC_MSG_RESULT($HAVE_MELTING)
     478
    263479dnl }}}
    264480dnl with-Masstransport{{{
     481
    265482AC_ARG_WITH([Masstransport],
     483
    266484        AS_HELP_STRING([--with-Masstransport = YES], [compile with Masstransport capabilities (default is yes)]),
     485
    267486        [MASSTRANSPORT=$withval],[MASSTRANSPORT=yes])
     487
    268488AC_MSG_CHECKING(for Masstransport capability compilation)
    269489
     490
    270491HAVE_MASSTRANSPORT=no
     492
    271493if test "x$MASSTRANSPORT" = "xyes"; then
     494
    272495        HAVE_MASSTRANSPORT=yes
     496
    273497        AC_DEFINE([_HAVE_MASSTRANSPORT_],[1],[with Masstransport capability])
    274 fi
     498
     499fi
     500
    275501AM_CONDITIONAL([MASSTRANSPORT], [test x$HAVE_MASSTRANSPORT = xyes])
     502
    276503AC_MSG_RESULT($HAVE_MASSTRANSPORT)
     504
    277505dnl }}}
    278506dnl with-FreeSurfaceBase{{{
     507
    279508AC_ARG_WITH([FreeSurfaceBase],
     509
    280510        AS_HELP_STRING([--with-FreeSurfaceBase = YES], [compile with FreeSurfaceBase capabilities (default is yes)]),
     511
    281512        [FREESURFACEBASE=$withval],[FREESURFACEBASE=yes])
     513
    282514AC_MSG_CHECKING(for FreeSurfaceBase capability compilation)
    283515
     516
    284517HAVE_FREESURFACEBASE=no
     518
    285519if test "x$FREESURFACEBASE" = "xyes"; then
     520
    286521        HAVE_FREESURFACEBASE=yes
     522
    287523        AC_DEFINE([_HAVE_FREESURFACEBASE_],[1],[with FreeSurfaceBase capability])
    288 fi
     524
     525fi
     526
    289527AM_CONDITIONAL([FREESURFACEBASE], [test x$HAVE_FREESURFACEBASE = xyes])
     528
    290529AC_MSG_RESULT($HAVE_FREESURFACEBASE)
     530
    291531dnl }}}
    292532dnl with-FreeSurfaceTop{{{
     533
    293534AC_ARG_WITH([FreeSurfaceTop],
     535
    294536        AS_HELP_STRING([--with-FreeSurfaceTop = YES], [compile with FreeSurfaceTop capabilities (default is yes)]),
     537
    295538        [FREESURFACETOP=$withval],[FREESURFACETOP=yes])
     539
    296540AC_MSG_CHECKING(for FreeSurfaceTop capability compilation)
    297541
     542
    298543HAVE_FREESURFACETOP=no
     544
    299545if test "x$FREESURFACETOP" = "xyes"; then
     546
    300547        HAVE_FREESURFACETOP=yes
     548
    301549        AC_DEFINE([_HAVE_FREESURFACETOP_],[1],[with FreeSurfaceTop capability])
    302 fi
     550
     551fi
     552
    303553AM_CONDITIONAL([FREESURFACETOP], [test x$HAVE_FREESURFACETOP = xyes])
     554
    304555AC_MSG_RESULT($HAVE_FREESURFACETOP)
     556
    305557dnl }}}
    306558dnl with-ExtrudeFromBase{{{
     559
    307560AC_ARG_WITH([ExtrudeFromBase],
     561
    308562        AS_HELP_STRING([--with-ExtrudeFromBase = YES], [compile with ExtrudeFromBase capabilities (default is yes)]),
     563
    309564        [EXTRUDEFROMBASE=$withval],[EXTRUDEFROMBASE=yes])
     565
    310566AC_MSG_CHECKING(for ExtrudeFromBase capability compilation)
    311567
     568
    312569HAVE_EXTRUDEFROMBASE=no
     570
    313571if test "x$EXTRUDEFROMBASE" = "xyes"; then
     572
    314573        HAVE_EXTRUDEFROMBASE=yes
     574
    315575        AC_DEFINE([_HAVE_EXTRUDEFROMBASE_],[1],[with ExtrudeFromBase capability])
    316 fi
     576
     577fi
     578
    317579AM_CONDITIONAL([EXTRUDEFROMBASE], [test x$HAVE_EXTRUDEFROMBASE = xyes])
     580
    318581AC_MSG_RESULT($HAVE_EXTRUDEFROMBASE)
     582
    319583dnl }}}
    320584dnl with-ExtrudeFromTop{{{
     585
    321586AC_ARG_WITH([ExtrudeFromTop],
     587
    322588        AS_HELP_STRING([--with-ExtrudeFromTop = YES], [compile with ExtrudeFromTop capabilities (default is yes)]),
     589
    323590        [EXTRUDEFROMTOP=$withval],[EXTRUDEFROMTOP=yes])
     591
    324592AC_MSG_CHECKING(for ExtrudeFromTop capability compilation)
    325593
     594
    326595HAVE_EXTRUDEFROMTOP=no
     596
    327597if test "x$EXTRUDEFROMTOP" = "xyes"; then
     598
    328599        HAVE_EXTRUDEFROMTOP=yes
     600
    329601        AC_DEFINE([_HAVE_EXTRUDEFROMTOP_],[1],[with ExtrudeFromTop capability])
    330 fi
     602
     603fi
     604
    331605AM_CONDITIONAL([EXTRUDEFROMTOP], [test x$HAVE_EXTRUDEFROMTOP = xyes])
     606
    332607AC_MSG_RESULT($HAVE_EXTRUDEFROMTOP)
     608
    333609dnl }}}
    334610dnl with-DepthAverage{{{
     611
    335612AC_ARG_WITH([DepthAverage],
     613
    336614        AS_HELP_STRING([--with-DepthAverage = YES], [compile with DepthAverage capabilities (default is yes)]),
     615
    337616        [DEPTHAVERAGE=$withval],[DEPTHAVERAGE=yes])
     617
    338618AC_MSG_CHECKING(for DepthAverage capability compilation)
    339619
     620
    340621HAVE_DEPTHAVERAGE=no
     622
    341623if test "x$DEPTHAVERAGE" = "xyes"; then
     624
    342625        HAVE_DEPTHAVERAGE=yes
     626
    343627        AC_DEFINE([_HAVE_DEPTHAVERAGE_],[1],[with DepthAverage capability])
    344 fi
     628
     629fi
     630
    345631AM_CONDITIONAL([DEPTHAVERAGE], [test x$HAVE_DEPTHAVERAGE = xyes])
     632
    346633AC_MSG_RESULT($HAVE_DEPTHAVERAGE)
     634
    347635dnl }}}
    348636dnl with-Smooth{{{
     637
    349638AC_ARG_WITH([Smooth],
     639
    350640        AS_HELP_STRING([--with-Smooth = YES], [compile with Smooth capabilities (default is yes)]),
     641
    351642        [SMOOTH=$withval],[SMOOTH=yes])
     643
    352644AC_MSG_CHECKING(for Smooth capability compilation)
    353645
     646
    354647HAVE_SMOOTH=no
     648
    355649if test "x$SMOOTH" = "xyes"; then
     650
    356651        HAVE_SMOOTH=yes
     652
    357653        AC_DEFINE([_HAVE_SMOOTH_],[1],[with Smooth capability])
    358 fi
     654
     655fi
     656
    359657AM_CONDITIONAL([SMOOTH], [test x$HAVE_SMOOTH = xyes])
     658
    360659AC_MSG_RESULT($HAVE_SMOOTH)
     660
    361661dnl }}}
    362662dnl with-Thermal{{{
     663
    363664AC_ARG_WITH([Thermal],
     665
    364666        AS_HELP_STRING([--with-Thermal = YES], [compile with Thermal capabilities (default is yes)]),
     667
    365668        [THERMAL=$withval],[THERMAL=yes])
     669
    366670AC_MSG_CHECKING(for Thermal capability compilation)
    367671
     672
    368673HAVE_THERMAL=no
     674
    369675if test "x$THERMAL" = "xyes"; then
     676
    370677        HAVE_THERMAL=yes
     678
    371679        AC_DEFINE([_HAVE_THERMAL_],[1],[with Thermal capability])
    372 fi
     680
     681fi
     682
    373683AM_CONDITIONAL([THERMAL], [test x$HAVE_THERMAL = xyes])
     684
    374685AC_MSG_RESULT($HAVE_THERMAL)
     686
    375687dnl }}}
    376688dnl with-UzawaPressure{{{
     689
    377690AC_ARG_WITH([UzawaPressure],
     691
    378692        AS_HELP_STRING([--with-UzawaPressure = YES], [compile with UzawaPressure capabilities (default is yes)]),
     693
    379694        [UZAWAPRESSURE=$withval],[UZAWAPRESSURE=yes])
     695
    380696AC_MSG_CHECKING(for UzawaPressure capability compilation)
    381697
     698
    382699HAVE_UZAWAPRESSURE=no
     700
    383701if test "x$UZAWAPRESSURE" = "xyes"; then
     702
    384703        HAVE_UZAWAPRESSURE=yes
     704
    385705        AC_DEFINE([_HAVE_UZAWAPRESSURE_],[1],[with UzawaPressure capability])
    386 fi
     706
     707fi
     708
    387709AM_CONDITIONAL([UZAWAPRESSURE], [test x$HAVE_UZAWAPRESSURE = xyes])
     710
    388711AC_MSG_RESULT($HAVE_UZAWAPRESSURE)
     712
    389713dnl }}}
    390714dnl with-Gia{{{
     715
    391716AC_ARG_WITH([Gia],
     717
    392718        AS_HELP_STRING([--with-Gia = YES], [compile with Gia capabilities (default is yes)]),
     719
    393720        [GIA=$withval],[GIA=yes])
     721
    394722AC_MSG_CHECKING(for Gia capability compilation)
    395723
     724
    396725HAVE_GIA=no
     726
    397727if test "x$GIA" = "xyes"; then
     728
    398729        HAVE_GIA=yes
     730
    399731        AC_DEFINE([_HAVE_GIA_],[1],[with Gia capability])
    400 fi
     732
     733fi
     734
    401735AM_CONDITIONAL([GIA], [test x$HAVE_GIA = xyes])
     736
    402737AC_MSG_RESULT($HAVE_GIA)
     738
    403739dnl }}}
    404740dnl with-Meshdeformation{{{
     741
    405742AC_ARG_WITH([Meshdeformation],
     743
    406744        AS_HELP_STRING([--with-Meshdeformation = YES], [compile with Meshdeformation capabilities (default is yes)]),
     745
    407746        [MESHDEFORMATION=$withval],[MESHDEFORMATION=yes])
     747
    408748AC_MSG_CHECKING(for Meshdeformation capability compilation)
    409749
     750
    410751HAVE_MESHDEFORMATION=no
     752
    411753if test "x$MESHDEFORMATION" = "xyes"; then
     754
    412755        HAVE_MESHDEFORMATION=yes
     756
    413757        AC_DEFINE([_HAVE_MESHDEFORMATION_],[1],[with Meshdeformation capability])
    414 fi
     758
     759fi
     760
    415761AM_CONDITIONAL([MESHDEFORMATION], [test x$HAVE_MESHDEFORMATION = xyes])
     762
    416763AC_MSG_RESULT($HAVE_MESHDEFORMATION)
     764
    417765dnl }}}
    418766dnl with-Levelset{{{
     767
    419768AC_ARG_WITH([Levelset],
     769
    420770        AS_HELP_STRING([--with-Levelset = YES], [compile with Levelset capabilities (default is yes)]),
     771
    421772        [LEVELSET=$withval],[LEVELSET=yes])
     773
    422774AC_MSG_CHECKING(for Levelset capability compilation)
    423775
     776
    424777HAVE_LEVELSET=no
     778
    425779if test "x$LEVELSET" = "xyes"; then
     780
    426781        HAVE_LEVELSET=yes
     782
    427783        AC_DEFINE([_HAVE_LEVELSET_],[1],[with Levelset capability])
    428 fi
     784
     785fi
     786
    429787AM_CONDITIONAL([LEVELSET], [test x$HAVE_LEVELSET = xyes])
     788
    430789AC_MSG_RESULT($HAVE_LEVELSET)
     790
    431791dnl }}}
    432792dnl with-Extrapolation{{{
     793
    433794AC_ARG_WITH([Extrapolation],
     795
    434796        AS_HELP_STRING([--with-Extrapolation = YES], [compile with Extrapolation capabilities (default is yes)]),
     797
    435798        [EXTRAPOLATION=$withval],[EXTRAPOLATION=yes])
     799
    436800AC_MSG_CHECKING(for Extrapolation capability compilation)
    437801
     802
    438803HAVE_EXTRAPOLATION=no
     804
    439805if test "x$EXTRAPOLATION" = "xyes"; then
     806
    440807        HAVE_EXTRAPOLATION=yes
     808
    441809        AC_DEFINE([_HAVE_EXTRAPOLATION_],[1],[with Extrapolation capability])
    442 fi
     810
     811fi
     812
    443813AM_CONDITIONAL([EXTRAPOLATION], [test x$HAVE_EXTRAPOLATION = xyes])
     814
    444815AC_MSG_RESULT($HAVE_EXTRAPOLATION)
     816
    445817dnl }}}
    446818dnl with-LsfReinitialization{{{
     819
    447820AC_ARG_WITH([LsfReinitialization],
     821
    448822        AS_HELP_STRING([--with-LsfReinitialization = YES], [compile with LsfReinitialization capabilities (default is yes)]),
     823
    449824        [LSFREINITIALIZATION=$withval],[LSFREINITIALIZATION=yes])
     825
    450826AC_MSG_CHECKING(for LsfReinitialization capability compilation)
    451827
     828
    452829HAVE_LSFREINITIALIZATION=no
     830
    453831if test "x$LSFREINITIALIZATION" = "xyes"; then
     832
    454833        HAVE_LSFREINITIALIZATION=yes
     834
    455835        AC_DEFINE([_HAVE_LSFREINITIALIZATION_],[1],[with LsfReinitialization capability])
    456 fi
     836
     837fi
     838
    457839AM_CONDITIONAL([LSFREINITIALIZATION], [test x$HAVE_LSFREINITIALIZATION = xyes])
     840
    458841AC_MSG_RESULT($HAVE_LSFREINITIALIZATION)
     842
    459843dnl }}}
    460844
  • issm/trunk-jpl/src/c/classes/Elements/Element.h

    r19479 r19518  
    211211                virtual void       GetVerticesCoordinatesBase(IssmDouble** xyz_list)=0;
    212212                virtual void       GetVerticesCoordinatesTop(IssmDouble** xyz_list)=0;
     213                virtual IssmDouble GroundedArea(void)=0;
    213214                virtual IssmDouble IceMass(void)=0;
    214215                virtual IssmDouble IceVolume(void)=0;
  • issm/trunk-jpl/src/c/classes/Elements/Penta.cpp

    r19395 r19518  
    11631163
    11641164}/*}}}*/
     1165IssmDouble 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/*}}}*/
    11651186IssmDouble Penta::IceMass(void){/*{{{*/
    11661187
  • issm/trunk-jpl/src/c/classes/Elements/Penta.h

    r19254 r19518  
    8686                void           GetVerticesCoordinatesBase(IssmDouble** pxyz_list);
    8787                void           GetVerticesCoordinatesTop(IssmDouble** pxyz_list);
     88                IssmDouble     GroundedArea(void);
    8889                IssmDouble     IceMass(void);
    8990                IssmDouble     IceVolume(void);
  • issm/trunk-jpl/src/c/classes/Elements/Seg.h

    r19254 r19518  
    7777                void        GetVerticesCoordinatesBase(IssmDouble** pxyz_list){_error_("not implemented yet");};
    7878                void        GetVerticesCoordinatesTop(IssmDouble** pxyz_list){_error_("not implemented yet");};
     79                IssmDouble  GroundedArea(void){_error_("not implemented yet");};
    7980                IssmDouble  IceMass(void){_error_("not implemented yet");};
    8081                IssmDouble  IceVolume(void){_error_("not implemented yet");};
  • issm/trunk-jpl/src/c/classes/Elements/Tetra.h

    r19254 r19518  
    8181                void        GetVerticesCoordinatesTop(IssmDouble** pxyz_list);
    8282                void        GradientIndexing(int* indexing,int control_index){_error_("not implemented yet");};
     83                IssmDouble  GroundedArea(void){_error_("not implemented yet");};
    8384                bool        HasFaceOnBase();
    8485                bool        HasFaceOnSurface();
  • issm/trunk-jpl/src/c/classes/Elements/Tria.cpp

    r19478 r19518  
    15931593
    15941594}/*}}}*/
     1595IssmDouble 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/*}}}*/
    15951616bool       Tria::HasEdgeOnBase(){/*{{{*/
    15961617
  • issm/trunk-jpl/src/c/classes/Elements/Tria.h

    r19476 r19518  
    8989                void        GetVerticesCoordinatesBase(IssmDouble** pxyz_list);
    9090                void        GetVerticesCoordinatesTop(IssmDouble** pxyz_list);
     91                IssmDouble  GroundedArea(void);
    9192                bool        HasEdgeOnBase();
    9293                bool        HasEdgeOnSurface();
  • issm/trunk-jpl/src/c/classes/FemModel.cpp

    r19476 r19518  
    993993                                        case DivergenceEnum:               this->Divergencex(&double_result);               break;
    994994                                        case MaxDivergenceEnum:            this->MaxDivergencex(&double_result);            break;
    995                                         case IceMassEnum:                this->IceMassx(&double_result);                break;
     995                                        case IceMassEnum:                  this->IceMassx(&double_result);                  break;
    996996                                        case IceVolumeEnum:                this->IceVolumex(&double_result);                break;
    997997                                        case IceVolumeAboveFloatationEnum: this->IceVolumeAboveFloatationx(&double_result); break;
     998                                        case GroundedAreaEnum:             this->GroundedAreax(&double_result);             break;
    998999                                        case MinVelEnum:                   this->MinVelx(&double_result);                   break;
    9991000                                        case MaxVelEnum:                   this->MaxVelx(&double_result);                   break;
     
    16111612
    16121613}/*}}}*/
     1614void 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}/*}}}*/
    16131630void FemModel::IceMassx(IssmDouble* pM){/*{{{*/
    16141631
  • issm/trunk-jpl/src/c/classes/FemModel.h

    r19476 r19518  
    8282                void Divergencex(IssmDouble* pdiv);
    8383                void MaxDivergencex(IssmDouble* pdiv);
     84                void GroundedAreax(IssmDouble* pV);
    8485                void IceMassx(IssmDouble* pV);
    8586                void IceVolumex(IssmDouble* pV);
  • issm/trunk-jpl/src/c/shared/Enum/EnumDefinitions.h

    r19479 r19518  
    828828        MaxVzEnum,
    829829        MaxAbsVzEnum,
     830        GroundedAreaEnum,
    830831        IceMassEnum,
    831832        IceVolumeEnum,
  • issm/trunk-jpl/src/c/shared/Enum/EnumToStringx.cpp

    r19479 r19518  
    809809                case MaxVzEnum : return "MaxVz";
    810810                case MaxAbsVzEnum : return "MaxAbsVz";
     811                case GroundedAreaEnum : return "GroundedArea";
    811812                case IceMassEnum : return "IceMass";
    812813                case IceVolumeEnum : return "IceVolume";
  • issm/trunk-jpl/src/c/shared/Enum/StringToEnumx.cpp

    r19479 r19518  
    827827              else if (strcmp(name,"MaxVz")==0) return MaxVzEnum;
    828828              else if (strcmp(name,"MaxAbsVz")==0) return MaxAbsVzEnum;
     829              else if (strcmp(name,"GroundedArea")==0) return GroundedAreaEnum;
    829830              else if (strcmp(name,"IceMass")==0) return IceMassEnum;
    830831              else if (strcmp(name,"IceVolume")==0) return IceVolumeEnum;
     
    874875              else if (strcmp(name,"RestartFileName")==0) return RestartFileNameEnum;
    875876              else if (strcmp(name,"ToolkitsOptionsAnalyses")==0) return ToolkitsOptionsAnalysesEnum;
    876               else if (strcmp(name,"ToolkitsOptionsStrings")==0) return ToolkitsOptionsStringsEnum;
    877877         else stage=8;
    878878   }
    879879   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;
    881882              else if (strcmp(name,"QmuInName")==0) return QmuInNameEnum;
    882883              else if (strcmp(name,"QmuOutName")==0) return QmuOutNameEnum;
  • issm/trunk-jpl/src/m/enum/EnumDefinitions.py

    r19479 r19518  
    801801def MaxVzEnum(): return StringToEnum("MaxVz")[0]
    802802def MaxAbsVzEnum(): return StringToEnum("MaxAbsVz")[0]
     803def GroundedAreaEnum(): return StringToEnum("GroundedArea")[0]
    803804def IceMassEnum(): return StringToEnum("IceMass")[0]
    804805def IceVolumeEnum(): return StringToEnum("IceVolume")[0]
  • issm/trunk-jpl/test/NightlyRun/test208.m

    r19049 r19518  
    55md=setflowequation(md,'SSA','all');
    66md.cluster=generic('name',oshostname(),'np',3);
     7md.transient.requested_outputs={'default','GroundedArea'}
    78md=solve(md,TransientSolutionEnum());
    89
  • issm/trunk-jpl/test/NightlyRun/test210.m

    r19049 r19518  
    66md=setflowequation(md,'HO','all');
    77md.cluster=generic('name',oshostname(),'np',3);
     8md.verbose=verbose('solution',true,'module',true);
     9md.transient.requested_outputs={'default','GroundedArea'};
    810md=solve(md,TransientSolutionEnum());
    911
  • issm/trunk-jpl/test/NightlyRun/test314.m

    r19049 r19518  
    11%Test Name: SquareSheetConstrainedTranSIA2d
    2 md=triangle(model(),'../Exp/Square.exp',150000.);
     2md=triangle(model(),'../Exp/Square.exp',400000.);
    33md=setmask(md,'','');
    44md=parameterize(md,'../Par/SquareSheetConstrained.par');
    55md=setflowequation(md,'SIA','all');
    6 md.cluster=generic('name',oshostname(),'np',3);
     6md.cluster=generic('name',oshostname(),'np',1);
     7md.transient.requested_outputs={'default','GroundedArea','IceVolume'}
     8md.timestepping.final_time=1;
    79md=solve(md,TransientSolutionEnum());
    810
  • issm/trunk-jpl/test/NightlyRun/test317.m

    r19049 r19518  
    33md=setmask(md,'','');
    44md=parameterize(md,'../Par/SquareSheetConstrained.par');
    5 md=extrude(md,3,1.);
     5md=extrude(md,10,1.);
    66md=setflowequation(md,'HO','all');
    77md.cluster=generic('name',oshostname(),'np',3);
     8md.transient.requested_outputs={'default','GroundedArea'};
    89md=solve(md,TransientSolutionEnum());
    910
Note: See TracChangeset for help on using the changeset viewer.