Changeset 21657


Ignore:
Timestamp:
04/04/17 05:04:06 (8 years ago)
Author:
bdef
Message:

CHG: adding case in load for future matlab compatibility

Location:
issm/trunk-jpl
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/etc/environment.sh

    r21492 r21657  
    124124pathappend "$SSH_DIR"
    125125
    126 VALGRIND_DIR="$ISSM_DIR/externalpackages/valgrind/install"
     126VALGRIND_DIR="/usr/bin/valgrind"
    127127pathprepend "$VALGRIND_DIR/bin"
    128128
  • issm/trunk-jpl/externalpackages/valgrind/install-linux64.sh

    r18510 r21657  
    22set -eu
    33
     4#old version (Kernel issue)
     5# #Some cleanup
     6# rm -rf install valgrind-3.10.0
     7# mkdir install
     8
     9
     10# #Download from ISSM server
     11# # $ISSM_DIR/scripts/DownloadExternalPackage.py 'http://issm.jpl.nasa.gov/files/externalpackages/valgrind-3.10.0.tar.bz2' 'valgrind-3.10.0.tar.bz2'
     12
     13# #Untar
     14# tar -jxvf  valgrind-3.10.0.tar.bz2
     15
     16# #Move valgrind into install directory
     17# mv valgrind-3.10.0/* install
     18# rm -rf valgrind-3.10.0
     19
     20# #configure
     21# cd install
     22# ./configure  --prefix="$ISSM_DIR/externalpackages/valgrind/install"
     23
     24# #Compile valgrind
     25# make  -j 4
     26# make install
     27
     28# #final thing: if mpi is compiled in, soft link its target to a simpler name
     29# cd lib
     30# ln -s valgrind/libmpiwrap-*  ./libmpidebug.so
     31
     32#New way cloned on mac
     33
    434#Some cleanup
    5 rm -rf install valgrind-3.10.0
    6 mkdir install
     35rm -rf install
    736
    8 #Download from ISSM server
    9 $ISSM_DIR/scripts/DownloadExternalPackage.py 'http://issm.jpl.nasa.gov/files/externalpackages/valgrind-3.10.0.tar.bz2' 'valgrind-3.10.0.tar.bz2'
    10 
    11 #Untar
    12 tar -jxvf  valgrind-3.10.0.tar.bz2
    13 
    14 #Move valgrind into install directory
    15 mv valgrind-3.10.0/* install
    16 rm -rf valgrind-3.10.0
     37#Download development version, the current release never supports the latest OS X releases
     38svn co svn://svn.valgrind.org/valgrind/trunk install
    1739
    1840#configure
    1941cd install
    20 ./configure  --prefix="$ISSM_DIR/externalpackages/valgrind/install"
     42./autogen.sh
     43./configure  --prefix="$ISSM_DIR/externalpackages/valgrind/install" --enable-only64bit
    2144
    2245#Compile valgrind
    23 make  -j 4
     46
     47make  -j 8
    2448make install
    25 
    26 #final thing: if mpi is compiled in, soft link its target to a simpler name
    27 cd lib
    28 ln -s valgrind/libmpiwrap-*  ./libmpidebug.so
  • issm/trunk-jpl/m4/analyses.m4

    r21534 r21657  
    1111
    1212dnl with-Smb{{{
    13 
    1413AC_ARG_WITH([Smb],
    15 
    1614        AS_HELP_STRING([--with-Smb = YES], [compile with Smb capabilities (default is yes)]),
    17 
    1815        [SMB=$withval],[SMB=yes])
    19 
    2016AC_MSG_CHECKING(for Smb capability compilation)
    2117
    22 
    2318HAVE_SMB=no
    24 
    2519if test "x$SMB" = "xyes"; then
    26 
    2720        HAVE_SMB=yes
    28 
    2921        AC_DEFINE([_HAVE_SMB_],[1],[with Smb capability])
    30 
    31 fi
    32 
     22fi
    3323AM_CONDITIONAL([SMB], [test x$HAVE_SMB = xyes])
    34 
    3524AC_MSG_RESULT($HAVE_SMB)
    36 
    3725dnl }}}
    3826dnl with-AdjointBalancethickness{{{
    39 
    4027AC_ARG_WITH([AdjointBalancethickness],
    41 
    4228        AS_HELP_STRING([--with-AdjointBalancethickness = YES], [compile with AdjointBalancethickness capabilities (default is yes)]),
    43 
    4429        [ADJOINTBALANCETHICKNESS=$withval],[ADJOINTBALANCETHICKNESS=yes])
    45 
    4630AC_MSG_CHECKING(for AdjointBalancethickness capability compilation)
    4731
    48 
    4932HAVE_ADJOINTBALANCETHICKNESS=no
    50 
    5133if test "x$ADJOINTBALANCETHICKNESS" = "xyes"; then
    52 
    5334        HAVE_ADJOINTBALANCETHICKNESS=yes
    54 
    5535        AC_DEFINE([_HAVE_ADJOINTBALANCETHICKNESS_],[1],[with AdjointBalancethickness capability])
    56 
    57 fi
    58 
     36fi
    5937AM_CONDITIONAL([ADJOINTBALANCETHICKNESS], [test x$HAVE_ADJOINTBALANCETHICKNESS = xyes])
    60 
    6138AC_MSG_RESULT($HAVE_ADJOINTBALANCETHICKNESS)
    62 
    6339dnl }}}
    6440dnl with-AdjointBalancethickness2{{{
    65 
    6641AC_ARG_WITH([AdjointBalancethickness2],
    67 
    6842        AS_HELP_STRING([--with-AdjointBalancethickness2 = YES], [compile with AdjointBalancethickness2 capabilities (default is yes)]),
    69 
    7043        [ADJOINTBALANCETHICKNESS2=$withval],[ADJOINTBALANCETHICKNESS2=yes])
    71 
    7244AC_MSG_CHECKING(for AdjointBalancethickness2 capability compilation)
    7345
    74 
    7546HAVE_ADJOINTBALANCETHICKNESS2=no
    76 
    7747if test "x$ADJOINTBALANCETHICKNESS2" = "xyes"; then
    78 
    7948        HAVE_ADJOINTBALANCETHICKNESS2=yes
    80 
    8149        AC_DEFINE([_HAVE_ADJOINTBALANCETHICKNESS2_],[1],[with AdjointBalancethickness2 capability])
    82 
    83 fi
    84 
     50fi
    8551AM_CONDITIONAL([ADJOINTBALANCETHICKNESS2], [test x$HAVE_ADJOINTBALANCETHICKNESS2 = xyes])
    86 
    8752AC_MSG_RESULT($HAVE_ADJOINTBALANCETHICKNESS2)
    88 
    8953dnl }}}
    9054dnl with-AdjointHoriz{{{
    91 
    9255AC_ARG_WITH([AdjointHoriz],
    93 
    9456        AS_HELP_STRING([--with-AdjointHoriz = YES], [compile with AdjointHoriz capabilities (default is yes)]),
    95 
    9657        [ADJOINTHORIZ=$withval],[ADJOINTHORIZ=yes])
    97 
    9858AC_MSG_CHECKING(for AdjointHoriz capability compilation)
    9959
    100 
    10160HAVE_ADJOINTHORIZ=no
    102 
    10361if test "x$ADJOINTHORIZ" = "xyes"; then
    104 
    10562        HAVE_ADJOINTHORIZ=yes
    106 
    10763        AC_DEFINE([_HAVE_ADJOINTHORIZ_],[1],[with AdjointHoriz capability])
    108 
    109 fi
    110 
     64fi
    11165AM_CONDITIONAL([ADJOINTHORIZ], [test x$HAVE_ADJOINTHORIZ = xyes])
    112 
    11366AC_MSG_RESULT($HAVE_ADJOINTHORIZ)
    114 
    11567dnl }}}
    11668dnl with-Balancethickness{{{
    117 
    11869AC_ARG_WITH([Balancethickness],
    119 
    12070        AS_HELP_STRING([--with-Balancethickness = YES], [compile with Balancethickness capabilities (default is yes)]),
    121 
    12271        [BALANCETHICKNESS=$withval],[BALANCETHICKNESS=yes])
    123 
    12472AC_MSG_CHECKING(for Balancethickness capability compilation)
    12573
    126 
    12774HAVE_BALANCETHICKNESS=no
    128 
    12975if test "x$BALANCETHICKNESS" = "xyes"; then
    130 
    13176        HAVE_BALANCETHICKNESS=yes
    132 
    13377        AC_DEFINE([_HAVE_BALANCETHICKNESS_],[1],[with Balancethickness capability])
    134 
    135 fi
    136 
     78fi
    13779AM_CONDITIONAL([BALANCETHICKNESS], [test x$HAVE_BALANCETHICKNESS = xyes])
    138 
    13980AC_MSG_RESULT($HAVE_BALANCETHICKNESS)
    140 
    14181dnl }}}
    14282dnl with-Balancethickness2{{{
    143 
    14483AC_ARG_WITH([Balancethickness2],
    145 
    14684        AS_HELP_STRING([--with-Balancethickness2 = YES], [compile with Balancethickness2 capabilities (default is yes)]),
    147 
    14885        [BALANCETHICKNESS2=$withval],[BALANCETHICKNESS2=yes])
    149 
    15086AC_MSG_CHECKING(for Balancethickness2 capability compilation)
    15187
    152 
    15388HAVE_BALANCETHICKNESS2=no
    154 
    15589if test "x$BALANCETHICKNESS2" = "xyes"; then
    156 
    15790        HAVE_BALANCETHICKNESS2=yes
    158 
    15991        AC_DEFINE([_HAVE_BALANCETHICKNESS2_],[1],[with Balancethickness2 capability])
    160 
    161 fi
    162 
     92fi
    16393AM_CONDITIONAL([BALANCETHICKNESS2], [test x$HAVE_BALANCETHICKNESS2 = xyes])
    164 
    16594AC_MSG_RESULT($HAVE_BALANCETHICKNESS2)
    166 
    16795dnl }}}
    16896dnl with-BalancethicknessSoft{{{
    169 
    17097AC_ARG_WITH([BalancethicknessSoft],
    171 
    17298        AS_HELP_STRING([--with-BalancethicknessSoft = YES], [compile with BalancethicknessSoft capabilities (default is yes)]),
    173 
    17499        [BALANCETHICKNESSSOFT=$withval],[BALANCETHICKNESSSOFT=yes])
    175 
    176100AC_MSG_CHECKING(for BalancethicknessSoft capability compilation)
    177101
    178 
    179102HAVE_BALANCETHICKNESSSOFT=no
    180 
    181103if test "x$BALANCETHICKNESSSOFT" = "xyes"; then
    182 
    183104        HAVE_BALANCETHICKNESSSOFT=yes
    184 
    185105        AC_DEFINE([_HAVE_BALANCETHICKNESSSOFT_],[1],[with BalancethicknessSoft capability])
    186 
    187 fi
    188 
     106fi
    189107AM_CONDITIONAL([BALANCETHICKNESSSOFT], [test x$HAVE_BALANCETHICKNESSSOFT = xyes])
    190 
    191108AC_MSG_RESULT($HAVE_BALANCETHICKNESSSOFT)
    192 
    193109dnl }}}
    194110dnl with-Balancevelocity{{{
    195 
    196111AC_ARG_WITH([Balancevelocity],
    197 
    198112        AS_HELP_STRING([--with-Balancevelocity = YES], [compile with Balancevelocity capabilities (default is yes)]),
    199 
    200113        [BALANCEVELOCITY=$withval],[BALANCEVELOCITY=yes])
    201 
    202114AC_MSG_CHECKING(for Balancevelocity capability compilation)
    203115
    204 
    205116HAVE_BALANCEVELOCITY=no
    206 
    207117if test "x$BALANCEVELOCITY" = "xyes"; then
    208 
    209118        HAVE_BALANCEVELOCITY=yes
    210 
    211119        AC_DEFINE([_HAVE_BALANCEVELOCITY_],[1],[with Balancevelocity capability])
    212 
    213 fi
    214 
     120fi
    215121AM_CONDITIONAL([BALANCEVELOCITY], [test x$HAVE_BALANCEVELOCITY = xyes])
    216 
    217122AC_MSG_RESULT($HAVE_BALANCEVELOCITY)
    218 
    219123dnl }}}
    220124dnl with-L2ProjectionEPL{{{
    221 
    222125AC_ARG_WITH([L2ProjectionEPL],
    223 
    224126        AS_HELP_STRING([--with-L2ProjectionEPL = YES], [compile with L2ProjectionEPL capabilities (default is yes)]),
    225 
    226127        [L2PROJECTIONEPL=$withval],[L2PROJECTIONEPL=yes])
    227 
    228128AC_MSG_CHECKING(for L2ProjectionEPL capability compilation)
    229129
    230 
    231130HAVE_L2PROJECTIONEPL=no
    232 
    233131if test "x$L2PROJECTIONEPL" = "xyes"; then
    234 
    235132        HAVE_L2PROJECTIONEPL=yes
    236 
    237133        AC_DEFINE([_HAVE_L2PROJECTIONEPL_],[1],[with L2ProjectionEPL capability])
    238 
    239 fi
    240 
     134fi
    241135AM_CONDITIONAL([L2PROJECTIONEPL], [test x$HAVE_L2PROJECTIONEPL = xyes])
    242 
    243136AC_MSG_RESULT($HAVE_L2PROJECTIONEPL)
    244 
    245137dnl }}}
    246138dnl with-L2ProjectionBase{{{
    247 
    248139AC_ARG_WITH([L2ProjectionBase],
    249 
    250140        AS_HELP_STRING([--with-L2ProjectionBase = YES], [compile with L2ProjectionBase capabilities (default is yes)]),
    251 
    252141        [L2PROJECTIONBASE=$withval],[L2PROJECTIONBASE=yes])
    253 
    254142AC_MSG_CHECKING(for L2ProjectionBase capability compilation)
    255143
    256 
    257144HAVE_L2PROJECTIONBASE=no
    258 
    259145if test "x$L2PROJECTIONBASE" = "xyes"; then
    260 
    261146        HAVE_L2PROJECTIONBASE=yes
    262 
    263147        AC_DEFINE([_HAVE_L2PROJECTIONBASE_],[1],[with L2ProjectionBase capability])
    264 
    265 fi
    266 
     148fi
    267149AM_CONDITIONAL([L2PROJECTIONBASE], [test x$HAVE_L2PROJECTIONBASE = xyes])
    268 
    269150AC_MSG_RESULT($HAVE_L2PROJECTIONBASE)
    270 
    271151dnl }}}
    272152dnl with-DamageEvolution{{{
    273 
    274153AC_ARG_WITH([DamageEvolution],
    275 
    276154        AS_HELP_STRING([--with-DamageEvolution = YES], [compile with DamageEvolution capabilities (default is yes)]),
    277 
    278155        [DAMAGEEVOLUTION=$withval],[DAMAGEEVOLUTION=yes])
    279 
    280156AC_MSG_CHECKING(for DamageEvolution capability compilation)
    281157
    282 
    283158HAVE_DAMAGEEVOLUTION=no
    284 
    285159if test "x$DAMAGEEVOLUTION" = "xyes"; then
    286 
    287160        HAVE_DAMAGEEVOLUTION=yes
    288 
    289161        AC_DEFINE([_HAVE_DAMAGEEVOLUTION_],[1],[with DamageEvolution capability])
    290 
    291 fi
    292 
     162fi
    293163AM_CONDITIONAL([DAMAGEEVOLUTION], [test x$HAVE_DAMAGEEVOLUTION = xyes])
    294 
    295164AC_MSG_RESULT($HAVE_DAMAGEEVOLUTION)
    296 
    297165dnl }}}
    298166dnl with-Stressbalance{{{
    299 
    300167AC_ARG_WITH([Stressbalance],
    301 
    302168        AS_HELP_STRING([--with-Stressbalance = YES], [compile with Stressbalance capabilities (default is yes)]),
    303 
    304169        [STRESSBALANCE=$withval],[STRESSBALANCE=yes])
    305 
    306170AC_MSG_CHECKING(for Stressbalance capability compilation)
    307171
    308 
    309172HAVE_STRESSBALANCE=no
    310 
    311173if test "x$STRESSBALANCE" = "xyes"; then
    312 
    313174        HAVE_STRESSBALANCE=yes
    314 
    315175        AC_DEFINE([_HAVE_STRESSBALANCE_],[1],[with Stressbalance capability])
    316 
    317 fi
    318 
     176fi
    319177AM_CONDITIONAL([STRESSBALANCE], [test x$HAVE_STRESSBALANCE = xyes])
    320 
    321178AC_MSG_RESULT($HAVE_STRESSBALANCE)
    322 
    323179dnl }}}
    324180dnl with-StressbalanceSIA{{{
    325 
    326181AC_ARG_WITH([StressbalanceSIA],
    327 
    328182        AS_HELP_STRING([--with-StressbalanceSIA = YES], [compile with StressbalanceSIA capabilities (default is yes)]),
    329 
    330183        [STRESSBALANCESIA=$withval],[STRESSBALANCESIA=yes])
    331 
    332184AC_MSG_CHECKING(for StressbalanceSIA capability compilation)
    333185
    334 
    335186HAVE_STRESSBALANCESIA=no
    336 
    337187if test "x$STRESSBALANCESIA" = "xyes"; then
    338 
    339188        HAVE_STRESSBALANCESIA=yes
    340 
    341189        AC_DEFINE([_HAVE_STRESSBALANCESIA_],[1],[with StressbalanceSIA capability])
    342 
    343 fi
    344 
     190fi
    345191AM_CONDITIONAL([STRESSBALANCESIA], [test x$HAVE_STRESSBALANCESIA = xyes])
    346 
    347192AC_MSG_RESULT($HAVE_STRESSBALANCESIA)
    348 
    349193dnl }}}
    350194dnl with-StressbalanceVertical{{{
    351 
    352195AC_ARG_WITH([StressbalanceVertical],
    353 
    354196        AS_HELP_STRING([--with-StressbalanceVertical = YES], [compile with StressbalanceVertical capabilities (default is yes)]),
    355 
    356197        [STRESSBALANCEVERTICAL=$withval],[STRESSBALANCEVERTICAL=yes])
    357 
    358198AC_MSG_CHECKING(for StressbalanceVertical capability compilation)
    359199
    360 
    361200HAVE_STRESSBALANCEVERTICAL=no
    362 
    363201if test "x$STRESSBALANCEVERTICAL" = "xyes"; then
    364 
    365202        HAVE_STRESSBALANCEVERTICAL=yes
    366 
    367203        AC_DEFINE([_HAVE_STRESSBALANCEVERTICAL_],[1],[with StressbalanceVertical capability])
    368 
    369 fi
    370 
     204fi
    371205AM_CONDITIONAL([STRESSBALANCEVERTICAL], [test x$HAVE_STRESSBALANCEVERTICAL = xyes])
    372 
    373206AC_MSG_RESULT($HAVE_STRESSBALANCEVERTICAL)
    374 
    375207dnl }}}
    376208dnl with-Enthalpy{{{
    377 
    378209AC_ARG_WITH([Enthalpy],
    379 
    380210        AS_HELP_STRING([--with-Enthalpy = YES], [compile with Enthalpy capabilities (default is yes)]),
    381 
    382211        [ENTHALPY=$withval],[ENTHALPY=yes])
    383 
    384212AC_MSG_CHECKING(for Enthalpy capability compilation)
    385213
    386 
    387214HAVE_ENTHALPY=no
    388 
    389215if test "x$ENTHALPY" = "xyes"; then
    390 
    391216        HAVE_ENTHALPY=yes
    392 
    393217        AC_DEFINE([_HAVE_ENTHALPY_],[1],[with Enthalpy capability])
    394 
    395 fi
    396 
     218fi
    397219AM_CONDITIONAL([ENTHALPY], [test x$HAVE_ENTHALPY = xyes])
    398 
    399220AC_MSG_RESULT($HAVE_ENTHALPY)
    400 
    401221dnl }}}
    402222dnl with-HydrologyShreve{{{
    403 
    404223AC_ARG_WITH([HydrologyShreve],
    405 
    406224        AS_HELP_STRING([--with-HydrologyShreve = YES], [compile with HydrologyShreve capabilities (default is yes)]),
    407 
    408225        [HYDROLOGYSHREVE=$withval],[HYDROLOGYSHREVE=yes])
    409 
    410226AC_MSG_CHECKING(for HydrologyShreve capability compilation)
    411227
    412 
    413228HAVE_HYDROLOGYSHREVE=no
    414 
    415229if test "x$HYDROLOGYSHREVE" = "xyes"; then
    416 
    417230        HAVE_HYDROLOGYSHREVE=yes
    418 
    419231        AC_DEFINE([_HAVE_HYDROLOGYSHREVE_],[1],[with HydrologyShreve capability])
    420 
    421 fi
    422 
     232fi
    423233AM_CONDITIONAL([HYDROLOGYSHREVE], [test x$HAVE_HYDROLOGYSHREVE = xyes])
    424 
    425234AC_MSG_RESULT($HAVE_HYDROLOGYSHREVE)
    426 
    427235dnl }}}
    428236dnl with-HydrologyDCInefficient{{{
    429 
    430237AC_ARG_WITH([HydrologyDCInefficient],
    431 
    432238        AS_HELP_STRING([--with-HydrologyDCInefficient = YES], [compile with HydrologyDCInefficient capabilities (default is yes)]),
    433 
    434239        [HYDROLOGYDCINEFFICIENT=$withval],[HYDROLOGYDCINEFFICIENT=yes])
    435 
    436240AC_MSG_CHECKING(for HydrologyDCInefficient capability compilation)
    437241
    438 
    439242HAVE_HYDROLOGYDCINEFFICIENT=no
    440 
    441243if test "x$HYDROLOGYDCINEFFICIENT" = "xyes"; then
    442 
    443244        HAVE_HYDROLOGYDCINEFFICIENT=yes
    444 
    445245        AC_DEFINE([_HAVE_HYDROLOGYDCINEFFICIENT_],[1],[with HydrologyDCInefficient capability])
    446 
    447 fi
    448 
     246fi
    449247AM_CONDITIONAL([HYDROLOGYDCINEFFICIENT], [test x$HAVE_HYDROLOGYDCINEFFICIENT = xyes])
    450 
    451248AC_MSG_RESULT($HAVE_HYDROLOGYDCINEFFICIENT)
    452 
    453249dnl }}}
    454250dnl with-HydrologyDCEfficient{{{
    455 
    456251AC_ARG_WITH([HydrologyDCEfficient],
    457 
    458252        AS_HELP_STRING([--with-HydrologyDCEfficient = YES], [compile with HydrologyDCEfficient capabilities (default is yes)]),
    459 
    460253        [HYDROLOGYDCEFFICIENT=$withval],[HYDROLOGYDCEFFICIENT=yes])
    461 
    462254AC_MSG_CHECKING(for HydrologyDCEfficient capability compilation)
    463255
    464 
    465256HAVE_HYDROLOGYDCEFFICIENT=no
    466 
    467257if test "x$HYDROLOGYDCEFFICIENT" = "xyes"; then
    468 
    469258        HAVE_HYDROLOGYDCEFFICIENT=yes
    470 
    471259        AC_DEFINE([_HAVE_HYDROLOGYDCEFFICIENT_],[1],[with HydrologyDCEfficient capability])
    472 
    473 fi
    474 
     260fi
    475261AM_CONDITIONAL([HYDROLOGYDCEFFICIENT], [test x$HAVE_HYDROLOGYDCEFFICIENT = xyes])
    476 
    477262AC_MSG_RESULT($HAVE_HYDROLOGYDCEFFICIENT)
    478 
    479263dnl }}}
    480264dnl with-HydrologySommers{{{
    481 
    482265AC_ARG_WITH([HydrologySommers],
    483 
    484266        AS_HELP_STRING([--with-HydrologySommers = YES], [compile with HydrologySommers capabilities (default is yes)]),
    485 
    486267        [HYDROLOGYSOMMERS=$withval],[HYDROLOGYSOMMERS=yes])
    487 
    488268AC_MSG_CHECKING(for HydrologySommers capability compilation)
    489269
    490 
    491270HAVE_HYDROLOGYSOMMERS=no
    492 
    493271if test "x$HYDROLOGYSOMMERS" = "xyes"; then
    494 
    495272        HAVE_HYDROLOGYSOMMERS=yes
    496 
    497273        AC_DEFINE([_HAVE_HYDROLOGYSOMMERS_],[1],[with HydrologySommers capability])
    498 
    499 fi
    500 
     274fi
    501275AM_CONDITIONAL([HYDROLOGYSOMMERS], [test x$HAVE_HYDROLOGYSOMMERS = xyes])
    502 
    503276AC_MSG_RESULT($HAVE_HYDROLOGYSOMMERS)
    504 
    505277dnl }}}
    506278dnl with-Melting{{{
    507 
    508279AC_ARG_WITH([Melting],
    509 
    510280        AS_HELP_STRING([--with-Melting = YES], [compile with Melting capabilities (default is yes)]),
    511 
    512281        [MELTING=$withval],[MELTING=yes])
    513 
    514282AC_MSG_CHECKING(for Melting capability compilation)
    515283
    516 
    517284HAVE_MELTING=no
    518 
    519285if test "x$MELTING" = "xyes"; then
    520 
    521286        HAVE_MELTING=yes
    522 
    523287        AC_DEFINE([_HAVE_MELTING_],[1],[with Melting capability])
    524 
    525 fi
    526 
     288fi
    527289AM_CONDITIONAL([MELTING], [test x$HAVE_MELTING = xyes])
    528 
    529290AC_MSG_RESULT($HAVE_MELTING)
    530 
    531291dnl }}}
    532292dnl with-Masstransport{{{
    533 
    534293AC_ARG_WITH([Masstransport],
    535 
    536294        AS_HELP_STRING([--with-Masstransport = YES], [compile with Masstransport capabilities (default is yes)]),
    537 
    538295        [MASSTRANSPORT=$withval],[MASSTRANSPORT=yes])
    539 
    540296AC_MSG_CHECKING(for Masstransport capability compilation)
    541297
    542 
    543298HAVE_MASSTRANSPORT=no
    544 
    545299if test "x$MASSTRANSPORT" = "xyes"; then
    546 
    547300        HAVE_MASSTRANSPORT=yes
    548 
    549301        AC_DEFINE([_HAVE_MASSTRANSPORT_],[1],[with Masstransport capability])
    550 
    551 fi
    552 
     302fi
    553303AM_CONDITIONAL([MASSTRANSPORT], [test x$HAVE_MASSTRANSPORT = xyes])
    554 
    555304AC_MSG_RESULT($HAVE_MASSTRANSPORT)
    556 
    557305dnl }}}
    558306dnl with-FreeSurfaceBase{{{
    559 
    560307AC_ARG_WITH([FreeSurfaceBase],
    561 
    562308        AS_HELP_STRING([--with-FreeSurfaceBase = YES], [compile with FreeSurfaceBase capabilities (default is yes)]),
    563 
    564309        [FREESURFACEBASE=$withval],[FREESURFACEBASE=yes])
    565 
    566310AC_MSG_CHECKING(for FreeSurfaceBase capability compilation)
    567311
    568 
    569312HAVE_FREESURFACEBASE=no
    570 
    571313if test "x$FREESURFACEBASE" = "xyes"; then
    572 
    573314        HAVE_FREESURFACEBASE=yes
    574 
    575315        AC_DEFINE([_HAVE_FREESURFACEBASE_],[1],[with FreeSurfaceBase capability])
    576 
    577 fi
    578 
     316fi
    579317AM_CONDITIONAL([FREESURFACEBASE], [test x$HAVE_FREESURFACEBASE = xyes])
    580 
    581318AC_MSG_RESULT($HAVE_FREESURFACEBASE)
    582 
    583319dnl }}}
    584320dnl with-FreeSurfaceTop{{{
    585 
    586321AC_ARG_WITH([FreeSurfaceTop],
    587 
    588322        AS_HELP_STRING([--with-FreeSurfaceTop = YES], [compile with FreeSurfaceTop capabilities (default is yes)]),
    589 
    590323        [FREESURFACETOP=$withval],[FREESURFACETOP=yes])
    591 
    592324AC_MSG_CHECKING(for FreeSurfaceTop capability compilation)
    593325
    594 
    595326HAVE_FREESURFACETOP=no
    596 
    597327if test "x$FREESURFACETOP" = "xyes"; then
    598 
    599328        HAVE_FREESURFACETOP=yes
    600 
    601329        AC_DEFINE([_HAVE_FREESURFACETOP_],[1],[with FreeSurfaceTop capability])
    602 
    603 fi
    604 
     330fi
    605331AM_CONDITIONAL([FREESURFACETOP], [test x$HAVE_FREESURFACETOP = xyes])
    606 
    607332AC_MSG_RESULT($HAVE_FREESURFACETOP)
    608 
    609333dnl }}}
    610334dnl with-ExtrudeFromBase{{{
    611 
    612335AC_ARG_WITH([ExtrudeFromBase],
    613 
    614336        AS_HELP_STRING([--with-ExtrudeFromBase = YES], [compile with ExtrudeFromBase capabilities (default is yes)]),
    615 
    616337        [EXTRUDEFROMBASE=$withval],[EXTRUDEFROMBASE=yes])
    617 
    618338AC_MSG_CHECKING(for ExtrudeFromBase capability compilation)
    619339
    620 
    621340HAVE_EXTRUDEFROMBASE=no
    622 
    623341if test "x$EXTRUDEFROMBASE" = "xyes"; then
    624 
    625342        HAVE_EXTRUDEFROMBASE=yes
    626 
    627343        AC_DEFINE([_HAVE_EXTRUDEFROMBASE_],[1],[with ExtrudeFromBase capability])
    628 
    629 fi
    630 
     344fi
    631345AM_CONDITIONAL([EXTRUDEFROMBASE], [test x$HAVE_EXTRUDEFROMBASE = xyes])
    632 
    633346AC_MSG_RESULT($HAVE_EXTRUDEFROMBASE)
    634 
    635347dnl }}}
    636348dnl with-ExtrudeFromTop{{{
    637 
    638349AC_ARG_WITH([ExtrudeFromTop],
    639 
    640350        AS_HELP_STRING([--with-ExtrudeFromTop = YES], [compile with ExtrudeFromTop capabilities (default is yes)]),
    641 
    642351        [EXTRUDEFROMTOP=$withval],[EXTRUDEFROMTOP=yes])
    643 
    644352AC_MSG_CHECKING(for ExtrudeFromTop capability compilation)
    645353
    646 
    647354HAVE_EXTRUDEFROMTOP=no
    648 
    649355if test "x$EXTRUDEFROMTOP" = "xyes"; then
    650 
    651356        HAVE_EXTRUDEFROMTOP=yes
    652 
    653357        AC_DEFINE([_HAVE_EXTRUDEFROMTOP_],[1],[with ExtrudeFromTop capability])
    654 
    655 fi
    656 
     358fi
    657359AM_CONDITIONAL([EXTRUDEFROMTOP], [test x$HAVE_EXTRUDEFROMTOP = xyes])
    658 
    659360AC_MSG_RESULT($HAVE_EXTRUDEFROMTOP)
    660 
    661361dnl }}}
    662362dnl with-DepthAverage{{{
    663 
    664363AC_ARG_WITH([DepthAverage],
    665 
    666364        AS_HELP_STRING([--with-DepthAverage = YES], [compile with DepthAverage capabilities (default is yes)]),
    667 
    668365        [DEPTHAVERAGE=$withval],[DEPTHAVERAGE=yes])
    669 
    670366AC_MSG_CHECKING(for DepthAverage capability compilation)
    671367
    672 
    673368HAVE_DEPTHAVERAGE=no
    674 
    675369if test "x$DEPTHAVERAGE" = "xyes"; then
    676 
    677370        HAVE_DEPTHAVERAGE=yes
    678 
    679371        AC_DEFINE([_HAVE_DEPTHAVERAGE_],[1],[with DepthAverage capability])
    680 
    681 fi
    682 
     372fi
    683373AM_CONDITIONAL([DEPTHAVERAGE], [test x$HAVE_DEPTHAVERAGE = xyes])
    684 
    685374AC_MSG_RESULT($HAVE_DEPTHAVERAGE)
    686 
    687375dnl }}}
    688376dnl with-Sealevelrise{{{
    689 
    690377AC_ARG_WITH([Sealevelrise],
    691 
    692378        AS_HELP_STRING([--with-Sealevelrise = YES], [compile with Sealevelrise capabilities (default is yes)]),
    693 
    694379        [SEALEVELRISE=$withval],[SEALEVELRISE=yes])
    695 
    696380AC_MSG_CHECKING(for Sealevelrise capability compilation)
    697381
    698 
    699382HAVE_SEALEVELRISE=no
    700 
    701383if test "x$SEALEVELRISE" = "xyes"; then
    702 
    703384        HAVE_SEALEVELRISE=yes
    704 
    705385        AC_DEFINE([_HAVE_SEALEVELRISE_],[1],[with Sealevelrise capability])
    706 
    707 fi
    708 
     386fi
    709387AM_CONDITIONAL([SEALEVELRISE], [test x$HAVE_SEALEVELRISE = xyes])
    710 
    711388AC_MSG_RESULT($HAVE_SEALEVELRISE)
    712 
    713389dnl }}}
    714390dnl with-Smooth{{{
    715 
    716391AC_ARG_WITH([Smooth],
    717 
    718392        AS_HELP_STRING([--with-Smooth = YES], [compile with Smooth capabilities (default is yes)]),
    719 
    720393        [SMOOTH=$withval],[SMOOTH=yes])
    721 
    722394AC_MSG_CHECKING(for Smooth capability compilation)
    723395
    724 
    725396HAVE_SMOOTH=no
    726 
    727397if test "x$SMOOTH" = "xyes"; then
    728 
    729398        HAVE_SMOOTH=yes
    730 
    731399        AC_DEFINE([_HAVE_SMOOTH_],[1],[with Smooth capability])
    732 
    733 fi
    734 
     400fi
    735401AM_CONDITIONAL([SMOOTH], [test x$HAVE_SMOOTH = xyes])
    736 
    737402AC_MSG_RESULT($HAVE_SMOOTH)
    738 
    739403dnl }}}
    740404dnl with-Thermal{{{
    741 
    742405AC_ARG_WITH([Thermal],
    743 
    744406        AS_HELP_STRING([--with-Thermal = YES], [compile with Thermal capabilities (default is yes)]),
    745 
    746407        [THERMAL=$withval],[THERMAL=yes])
    747 
    748408AC_MSG_CHECKING(for Thermal capability compilation)
    749409
    750 
    751410HAVE_THERMAL=no
    752 
    753411if test "x$THERMAL" = "xyes"; then
    754 
    755412        HAVE_THERMAL=yes
    756 
    757413        AC_DEFINE([_HAVE_THERMAL_],[1],[with Thermal capability])
    758 
    759 fi
    760 
     414fi
    761415AM_CONDITIONAL([THERMAL], [test x$HAVE_THERMAL = xyes])
    762 
    763416AC_MSG_RESULT($HAVE_THERMAL)
    764 
    765417dnl }}}
    766418dnl with-UzawaPressure{{{
    767 
    768419AC_ARG_WITH([UzawaPressure],
    769 
    770420        AS_HELP_STRING([--with-UzawaPressure = YES], [compile with UzawaPressure capabilities (default is yes)]),
    771 
    772421        [UZAWAPRESSURE=$withval],[UZAWAPRESSURE=yes])
    773 
    774422AC_MSG_CHECKING(for UzawaPressure capability compilation)
    775423
    776 
    777424HAVE_UZAWAPRESSURE=no
    778 
    779425if test "x$UZAWAPRESSURE" = "xyes"; then
    780 
    781426        HAVE_UZAWAPRESSURE=yes
    782 
    783427        AC_DEFINE([_HAVE_UZAWAPRESSURE_],[1],[with UzawaPressure capability])
    784 
    785 fi
    786 
     428fi
    787429AM_CONDITIONAL([UZAWAPRESSURE], [test x$HAVE_UZAWAPRESSURE = xyes])
    788 
    789430AC_MSG_RESULT($HAVE_UZAWAPRESSURE)
    790 
    791431dnl }}}
    792432dnl with-GiaIvins{{{
    793 
    794433AC_ARG_WITH([GiaIvins],
    795 
    796434        AS_HELP_STRING([--with-GiaIvins = YES], [compile with GiaIvins capabilities (default is yes)]),
    797 
    798435        [GIAIVINS=$withval],[GIAIVINS=yes])
    799 
    800436AC_MSG_CHECKING(for GiaIvins capability compilation)
    801437
    802 
    803438HAVE_GIAIVINS=no
    804 
    805439if test "x$GIAIVINS" = "xyes"; then
    806 
    807440        HAVE_GIAIVINS=yes
    808 
    809441        AC_DEFINE([_HAVE_GIAIVINS_],[1],[with GiaIvins capability])
    810 
    811 fi
    812 
     442fi
    813443AM_CONDITIONAL([GIAIVINS], [test x$HAVE_GIAIVINS = xyes])
    814 
    815444AC_MSG_RESULT($HAVE_GIAIVINS)
    816 
    817445dnl }}}
    818446dnl with-Esa{{{
    819 
    820447AC_ARG_WITH([Esa],
    821 
    822448        AS_HELP_STRING([--with-Esa = YES], [compile with Esa capabilities (default is yes)]),
    823 
    824449        [ESA=$withval],[ESA=yes])
    825 
    826450AC_MSG_CHECKING(for Esa capability compilation)
    827451
    828 
    829452HAVE_ESA=no
    830 
    831453if test "x$ESA" = "xyes"; then
    832 
    833454        HAVE_ESA=yes
    834 
    835455        AC_DEFINE([_HAVE_ESA_],[1],[with Esa capability])
    836 
    837 fi
    838 
     456fi
    839457AM_CONDITIONAL([ESA], [test x$HAVE_ESA = xyes])
    840 
    841458AC_MSG_RESULT($HAVE_ESA)
    842 
    843459dnl }}}
    844460dnl with-Meshdeformation{{{
    845 
    846461AC_ARG_WITH([Meshdeformation],
    847 
    848462        AS_HELP_STRING([--with-Meshdeformation = YES], [compile with Meshdeformation capabilities (default is yes)]),
    849 
    850463        [MESHDEFORMATION=$withval],[MESHDEFORMATION=yes])
    851 
    852464AC_MSG_CHECKING(for Meshdeformation capability compilation)
    853465
    854 
    855466HAVE_MESHDEFORMATION=no
    856 
    857467if test "x$MESHDEFORMATION" = "xyes"; then
    858 
    859468        HAVE_MESHDEFORMATION=yes
    860 
    861469        AC_DEFINE([_HAVE_MESHDEFORMATION_],[1],[with Meshdeformation capability])
    862 
    863 fi
    864 
     470fi
    865471AM_CONDITIONAL([MESHDEFORMATION], [test x$HAVE_MESHDEFORMATION = xyes])
    866 
    867472AC_MSG_RESULT($HAVE_MESHDEFORMATION)
    868 
    869473dnl }}}
    870474dnl with-Levelset{{{
    871 
    872475AC_ARG_WITH([Levelset],
    873 
    874476        AS_HELP_STRING([--with-Levelset = YES], [compile with Levelset capabilities (default is yes)]),
    875 
    876477        [LEVELSET=$withval],[LEVELSET=yes])
    877 
    878478AC_MSG_CHECKING(for Levelset capability compilation)
    879479
    880 
    881480HAVE_LEVELSET=no
    882 
    883481if test "x$LEVELSET" = "xyes"; then
    884 
    885482        HAVE_LEVELSET=yes
    886 
    887483        AC_DEFINE([_HAVE_LEVELSET_],[1],[with Levelset capability])
    888 
    889 fi
    890 
     484fi
    891485AM_CONDITIONAL([LEVELSET], [test x$HAVE_LEVELSET = xyes])
    892 
    893486AC_MSG_RESULT($HAVE_LEVELSET)
    894 
    895487dnl }}}
    896488dnl with-Extrapolation{{{
    897 
    898489AC_ARG_WITH([Extrapolation],
    899 
    900490        AS_HELP_STRING([--with-Extrapolation = YES], [compile with Extrapolation capabilities (default is yes)]),
    901 
    902491        [EXTRAPOLATION=$withval],[EXTRAPOLATION=yes])
    903 
    904492AC_MSG_CHECKING(for Extrapolation capability compilation)
    905493
    906 
    907494HAVE_EXTRAPOLATION=no
    908 
    909495if test "x$EXTRAPOLATION" = "xyes"; then
    910 
    911496        HAVE_EXTRAPOLATION=yes
    912 
    913497        AC_DEFINE([_HAVE_EXTRAPOLATION_],[1],[with Extrapolation capability])
    914 
    915 fi
    916 
     498fi
    917499AM_CONDITIONAL([EXTRAPOLATION], [test x$HAVE_EXTRAPOLATION = xyes])
    918 
    919500AC_MSG_RESULT($HAVE_EXTRAPOLATION)
    920 
    921501dnl }}}
    922502
  • issm/trunk-jpl/src/m/io/loadvars.py

    r21568 r21657  
    228228                                classe=str(group)+'.'+str(subgroup)
    229229                                class_dict[classe]=[str(getattr(NCData.groups[group].groups[subgroup],'classtype')),]
    230                                 if class_dict[classe][0] not in ['dict','list']:
     230                                if class_dict[classe][0] not in ['dict','list','cell']:
    231231                                        class_dict[classe].append(__import__(class_dict[classe][0]))
    232232                                class_tree[classe]=[group,subgroup]
     
    235235                        try:
    236236                                class_dict[classe]=[str(getattr(NCData.groups[group],'classtype')),]
    237                                 if class_dict[classe][0] not in ['dict','list']:
     237                                if class_dict[classe][0] not in ['dict','list','cell']:
    238238                                        class_dict[classe].append(__import__(class_dict[classe][0]))
    239239                                        class_tree[classe]=[group,]
  • issm/trunk-jpl/test/Par/SquareSheetConstrained.py

    r21585 r21657  
    11import os.path
    2 import numpy
     2import numpy as np
    33import inspect
    44from verbose import verbose
     
    1313hmin=300.
    1414hmax=1000.
    15 ymin=numpy.min(md.mesh.y)
    16 ymax=numpy.max(md.mesh.y)
    17 xmin=min(md.mesh.x)
    18 xmax=max(md.mesh.x)
     15ymin=np.min(md.mesh.y)
     16ymax=np.max(md.mesh.y)
     17xmin=np.min(md.mesh.x)
     18xmax=np.max(md.mesh.x)
    1919md.geometry.thickness=hmax+(hmin-hmax)*(md.mesh.y-ymin)/(ymax-ymin)+0.1*(hmin-hmax)*(md.mesh.x-xmin)/(xmax-xmin)
    2020md.geometry.base=-md.materials.rho_ice/md.materials.rho_water*md.geometry.thickness+20.
     
    2222
    2323#Initial velocity
    24 x         = numpy.array(archread('../Data/SquareSheetConstrained.arch','x'))
    25 y         = numpy.array(archread('../Data/SquareSheetConstrained.arch','y'))
    26 vx        = numpy.array(archread('../Data/SquareSheetConstrained.arch','vx'));
    27 vy        = numpy.array(archread('../Data/SquareSheetConstrained.arch','vy'));
     24x         = np.array(archread('../Data/SquareSheetConstrained.arch','x'))
     25y         = np.array(archread('../Data/SquareSheetConstrained.arch','y'))
     26vx        = np.array(archread('../Data/SquareSheetConstrained.arch','vx'));
     27vy        = np.array(archread('../Data/SquareSheetConstrained.arch','vy'));
    2828index     = archread('../Data/SquareSheetConstrained.arch','index').astype(int);
    2929
    30 [md.initialization.vx]=InterpFromMeshToMesh2d(index,x,y,vx,md.mesh.x,md.mesh.y)
    31 [md.initialization.vy]=InterpFromMeshToMesh2d(index,x,y,vy,md.mesh.x,md.mesh.y)
    32 md.initialization.vz=numpy.zeros((md.mesh.numberofvertices))
    33 md.initialization.pressure=numpy.zeros((md.mesh.numberofvertices))
     30md.initialization.vx=InterpFromMeshToMesh2d(index,x,y,vx,md.mesh.x,md.mesh.y)[0]
     31md.initialization.vy=InterpFromMeshToMesh2d(index,x,y,vy,md.mesh.x,md.mesh.y)[0]
     32md.initialization.vz=np.zeros((md.mesh.numberofvertices))
     33md.initialization.pressure=np.zeros((md.mesh.numberofvertices))
    3434
    3535#Materials
    36 md.initialization.temperature=(273.-20.)*numpy.ones((md.mesh.numberofvertices))
     36md.initialization.temperature=(273.-20.)*np.ones((md.mesh.numberofvertices))
    3737md.materials.rheology_B=paterson(md.initialization.temperature)
    38 md.materials.rheology_n=3.*numpy.ones((md.mesh.numberofelements))
     38md.materials.rheology_n=3.*np.ones((md.mesh.numberofelements))
    3939
    4040#Calving
    41 md.calving.calvingrate=0.*numpy.ones((md.mesh.numberofvertices))
    42 md.levelset.spclevelset=float('NaN')*numpy.ones((md.mesh.numberofvertices))
     41md.calving.calvingrate=np.zeros((md.mesh.numberofvertices))
     42md.levelset.spclevelset=np.nan*np.ones((md.mesh.numberofvertices))
    4343
    4444#Friction
    45 md.friction.coefficient=20.*numpy.ones((md.mesh.numberofvertices))
    46 md.friction.coefficient[numpy.nonzero(md.mask.groundedice_levelset<0.)[0]]=0.
    47 md.friction.p=numpy.ones((md.mesh.numberofelements))
    48 md.friction.q=numpy.ones((md.mesh.numberofelements))
     45md.friction.coefficient=20.*np.ones((md.mesh.numberofvertices))
     46md.friction.coefficient[np.where(md.mask.groundedice_levelset<0.)[0]]=0.
     47md.friction.p=np.ones((md.mesh.numberofelements))
     48md.friction.q=np.ones((md.mesh.numberofelements))
    4949
    5050#Numerical parameters
     
    5757md.steadystate.reltol=0.05
    5858md.stressbalance.reltol=0.05
    59 md.stressbalance.abstol=float('NaN')
     59md.stressbalance.abstol=np.nan
    6060md.timestepping.time_step=1.
    6161md.timestepping.final_time=3.
    6262
    6363#GIA:
    64 md.gia.lithosphere_thickness=100.*numpy.ones((md.mesh.numberofvertices)); # in km
    65 md.gia.mantle_viscosity=1.*10**21*numpy.ones((md.mesh.numberofvertices)); # in Pa.s
     64md.gia.lithosphere_thickness=100.*np.ones((md.mesh.numberofvertices)); # in km
     65md.gia.mantle_viscosity=1.*10**21*np.ones((md.mesh.numberofvertices)); # in Pa.s
    6666md.materials.lithosphere_shear_modulus=6.7*10**10;                          # in Pa
    6767md.materials.lithosphere_density=3.32;                                      # in g/cm^-3
Note: See TracChangeset for help on using the changeset viewer.