Changeset 17236


Ignore:
Timestamp:
02/07/14 13:34:30 (11 years ago)
Author:
Mathieu Morlighem
Message:

CHG: adding conditionnal compilation back (based on analyses for now)

Location:
issm/trunk-jpl
Files:
29 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/m4/issm_options.m4

    r17154 r17236  
    15591559        AC_MSG_CHECKING(for kml capability compilation)
    15601560
     1561        HAVE_KML=no
    15611562        if test "x$KML" = "xyes"; then
    15621563                HAVE_KML=yes
    15631564                AC_DEFINE([_HAVE_KML_],[1],[with kml capability])
    1564         else
    1565                 HAVE_KML=no
    15661565        fi
    15671566        AM_CONDITIONAL([KML], [test x$HAVE_KML = xyes])
     
    15741573        AC_MSG_CHECKING(for kriging capability compilation)
    15751574
     1575        HAVE_KRIGING=no
    15761576        if test "x$KRIGING" = "xyes"; then
    15771577                HAVE_KRIGING=yes
    15781578                AC_DEFINE([_HAVE_KRIGING_],[1],[with kriging capability])
    1579         else
    1580                 HAVE_KRIGING=no
    15811579        fi
    15821580        AM_CONDITIONAL([KRIGING], [test x$HAVE_KRIGING = xyes])
    15831581        AC_MSG_RESULT($HAVE_KRIGING)
    15841582        dnl }}}
    1585         dnl with-steadystate{{{
    1586         AC_ARG_WITH([steadystate],
    1587                 AS_HELP_STRING([--with-steadystate = YES],[compile with steadystate capabilities (default is yes)]),
    1588                 [STEADYSTATE=$withval],[STEADYSTATE=yes])
    1589         AC_MSG_CHECKING(for steadystate capability compilation)
    1590 
    1591         if test "x$STEADYSTATE" = "xyes"; then
    1592 
    1593                 dnl defaults
    1594                 HAVE_STEADYSTATE=yes
    1595 
    1596                 AC_DEFINE([_HAVE_STEADYSTATE_],[1],[with steadystate capability])
    1597         else
    1598                 HAVE_STEADYSTATE=no
    1599         fi
    1600         AM_CONDITIONAL([STEADYSTATE], [test x$HAVE_STEADYSTATE = xyes])
    1601         AC_MSG_RESULT($HAVE_STEADYSTATE)
    1602         dnl }}}
    1603         dnl with-transient{{{
    1604         AC_ARG_WITH([transient],
    1605                 AS_HELP_STRING([--with-transient = YES], [compile with transient capabilities (default is yes)]),
    1606                 [TRANSIENT=$withval],[TRANSIENT=yes])
    1607         AC_MSG_CHECKING(for transient capability compilation)
    1608 
    1609         if test "x$TRANSIENT" = "xyes"; then
    1610 
    1611                 dnl defaults
    1612                 HAVE_TRANSIENT=yes
    1613 
    1614                 AC_DEFINE([_HAVE_TRANSIENT_],[1],[with transient capability])
    1615         else
    1616                 HAVE_TRANSIENT=no
    1617         fi
    1618         AM_CONDITIONAL([TRANSIENT], [test x$HAVE_TRANSIENT = xyes])
    1619         AC_MSG_RESULT($HAVE_TRANSIENT)
    1620         dnl }}}
    1621         dnl with-thermal{{{
    1622         AC_ARG_WITH([thermal],
    1623                 AS_HELP_STRING([--with-thermal = YES], [compile with thermal capabilities (default is yes)]),
    1624                 [THERMAL=$withval],[THERMAL=yes])
    1625         AC_MSG_CHECKING(for thermal capability compilation)
    1626 
    1627         if test "x$THERMAL" = "xyes"; then
    1628 
    1629                 dnl defaults
    1630                 HAVE_THERMAL=yes
    1631 
    1632                 AC_DEFINE([_HAVE_THERMAL_],[1],[with thermal capability])
    1633         else
    1634                 HAVE_THERMAL=no
    1635         fi
    1636         AM_CONDITIONAL([THERMAL], [test x$HAVE_THERMAL = xyes])
    1637         AC_MSG_RESULT($HAVE_THERMAL)
    1638         dnl }}}
    1639         dnl with-masstransport{{{
    1640         AC_ARG_WITH([masstransport],
    1641                 AS_HELP_STRING([--with-masstransport = YES], [compile with masstransport capabilities (default is yes)]),
    1642                 [MASSTRANSPORT=$withval],[MASSTRANSPORT=yes])
    1643         AC_MSG_CHECKING(for masstransport capability compilation)
    1644 
    1645         if test "x$MASSTRANSPORT" = "xyes"; then
    1646 
    1647                 dnl defaults
    1648                 HAVE_MASSTRANSPORT=yes
    1649 
    1650                 AC_DEFINE([_HAVE_MASSTRANSPORT_],[1],[with masstransport capability])
    1651         else
    1652                 HAVE_MASSTRANSPORT=no
    1653         fi
    1654         AM_CONDITIONAL([MASSTRANSPORT], [test x$HAVE_MASSTRANSPORT = xyes])
    1655         AC_MSG_RESULT($HAVE_MASSTRANSPORT)
    1656         dnl }}}
    1657         dnl with-control{{{
    1658         AC_ARG_WITH([control],
    1659                 AS_HELP_STRING([--with-control = YES], [compile with control capabilities (default is yes)]),
    1660                 [CONTROL=$withval],[CONTROL=yes])
    1661         AC_MSG_CHECKING(for control capability compilation)
    1662 
    1663         if test "x$CONTROL" = "xyes"; then
    1664 
    1665                 dnl defaults
    1666                 HAVE_CONTROL=yes
    1667 
    1668                 AC_DEFINE([_HAVE_CONTROL_],[1],[with control capability])
    1669         else
    1670                 HAVE_CONTROL=no
    1671         fi
    1672         AM_CONDITIONAL([CONTROL], [test x$HAVE_CONTROL = xyes])
    1673         AC_MSG_RESULT($HAVE_CONTROL)
    1674         dnl }}}
    1675         dnl with-hydrology{{{
    1676         AC_ARG_WITH([hydrology],
    1677                 AS_HELP_STRING([--with-hydrology = YES], [compile with hydrology capabilities (default is yes)]),
    1678                 [HYDROLOGY=$withval],[HYDROLOGY=yes])
    1679         AC_MSG_CHECKING(for hydrology capability compilation)
    1680 
    1681         if test "x$HYDROLOGY" = "xyes"; then
    1682 
    1683                 dnl defaults
    1684                 HAVE_HYDROLOGY=yes
    1685 
    1686                 AC_DEFINE([_HAVE_HYDROLOGY_],[1],[with hydrology capability])
    1687         else
    1688                 HAVE_HYDROLOGY=no
    1689         fi
    1690         AM_CONDITIONAL([HYDROLOGY], [test x$HAVE_HYDROLOGY = xyes])
    1691         AC_MSG_RESULT($HAVE_HYDROLOGY)
     1583        dnl with-gia{{{
     1584                AC_ARG_WITH([gia],
     1585                AS_HELP_STRING([--with-gia = YES], [compile with gia capabilities (default is no)]),
     1586                [GIA=$withval],[GIA=no])
     1587           AC_MSG_CHECKING(for gia capability compilation)
     1588
     1589                HAVE_GIA=no
     1590                if test "x$GIA" = "xyes"; then
     1591                        if test "x$HAVE_MATH77" = "xno"; then
     1592                                 AC_MSG_ERROR([gia requires compilation of math77 library! Reconfigure with --with-math77 option on]);
     1593                        else
     1594                                HAVE_GIA=yes
     1595                                AC_DEFINE([_HAVE_GIA_],[1],[with gia capability])
     1596                   fi
     1597                fi
     1598                AM_CONDITIONAL([GIA], [test x$HAVE_GIA = xyes])
     1599                AC_MSG_RESULT($HAVE_GIA)
     1600                dnl }}}
     1601        dnl with-AdjointBalancethickness{{{
     1602        AC_ARG_WITH([AdjointBalancethickness],
     1603                AS_HELP_STRING([--with-AdjointBalancethickness = YES], [compile with AdjointBalancethickness capabilities (default is yes)]),
     1604                [ADJOINTBALANCETHICKNESS=$withval],[ADJOINTBALANCETHICKNESS=yes])
     1605        AC_MSG_CHECKING(for AdjointBalancethickness capability compilation)
     1606
     1607        HAVE_ADJOINTBALANCETHICKNESS=no
     1608        if test "x$ADJOINTBALANCETHICKNESS" = "xyes"; then
     1609                HAVE_ADJOINTBALANCETHICKNESS=yes
     1610                AC_DEFINE([_HAVE_ADJOINTBALANCETHICKNESS_],[1],[with AdjointBalancethickness capability])
     1611        fi
     1612        AM_CONDITIONAL([ADJOINTBALANCETHICKNESS], [test x$HAVE_ADJOINTBALANCETHICKNESS = xyes])
     1613        AC_MSG_RESULT($HAVE_ADJOINTBALANCETHICKNESS)
     1614        dnl }}}
     1615        dnl with-AdjointHoriz{{{
     1616        AC_ARG_WITH([AdjointHoriz],
     1617                AS_HELP_STRING([--with-AdjointHoriz = YES], [compile with AdjointHoriz capabilities (default is yes)]),
     1618                [ADJOINTHORIZ=$withval],[ADJOINTHORIZ=yes])
     1619        AC_MSG_CHECKING(for AdjointHoriz capability compilation)
     1620
     1621        HAVE_ADJOINTHORIZ=no
     1622        if test "x$ADJOINTHORIZ" = "xyes"; then
     1623                HAVE_ADJOINTHORIZ=yes
     1624                AC_DEFINE([_HAVE_ADJOINTHORIZ_],[1],[with AdjointHoriz capability])
     1625        fi
     1626        AM_CONDITIONAL([ADJOINTHORIZ], [test x$HAVE_ADJOINTHORIZ = xyes])
     1627        AC_MSG_RESULT($HAVE_ADJOINTHORIZ)
     1628        dnl }}}
     1629        dnl with-Balancethickness{{{
     1630        AC_ARG_WITH([Balancethickness],
     1631                AS_HELP_STRING([--with-Balancethickness = YES], [compile with Balancethickness capabilities (default is yes)]),
     1632                [BALANCETHICKNESS=$withval],[BALANCETHICKNESS=yes])
     1633        AC_MSG_CHECKING(for Balancethickness capability compilation)
     1634
     1635        HAVE_BALANCETHICKNESS=no
     1636        if test "x$BALANCETHICKNESS" = "xyes"; then
     1637                HAVE_BALANCETHICKNESS=yes
     1638                AC_DEFINE([_HAVE_BALANCETHICKNESS_],[1],[with Balancethickness capability])
     1639        fi
     1640        AM_CONDITIONAL([BALANCETHICKNESS], [test x$HAVE_BALANCETHICKNESS = xyes])
     1641        AC_MSG_RESULT($HAVE_BALANCETHICKNESS)
     1642        dnl }}}
     1643        dnl with-BalancethicknessSoft{{{
     1644        AC_ARG_WITH([BalancethicknessSoft],
     1645                AS_HELP_STRING([--with-BalancethicknessSoft = YES], [compile with BalancethicknessSoft capabilities (default is yes)]),
     1646                [BALANCETHICKNESSSOFT=$withval],[BALANCETHICKNESSSOFT=yes])
     1647        AC_MSG_CHECKING(for BalancethicknessSoft capability compilation)
     1648
     1649        HAVE_BALANCETHICKNESSSOFT=no
     1650        if test "x$BALANCETHICKNESSSOFT" = "xyes"; then
     1651                HAVE_BALANCETHICKNESSSOFT=yes
     1652                AC_DEFINE([_HAVE_BALANCETHICKNESSSOFT_],[1],[with BalancethicknessSoft capability])
     1653        fi
     1654        AM_CONDITIONAL([BALANCETHICKNESSSOFT], [test x$HAVE_BALANCETHICKNESSSOFT = xyes])
     1655        AC_MSG_RESULT($HAVE_BALANCETHICKNESSSOFT)
     1656        dnl }}}
     1657        dnl with-Balancevelocity{{{
     1658        AC_ARG_WITH([Balancevelocity],
     1659                AS_HELP_STRING([--with-Balancevelocity = YES], [compile with Balancevelocity capabilities (default is yes)]),
     1660                [BALANCEVELOCITY=$withval],[BALANCEVELOCITY=yes])
     1661        AC_MSG_CHECKING(for Balancevelocity capability compilation)
     1662
     1663        HAVE_BALANCEVELOCITY=no
     1664        if test "x$BALANCEVELOCITY" = "xyes"; then
     1665                HAVE_BALANCEVELOCITY=yes
     1666                AC_DEFINE([_HAVE_BALANCEVELOCITY_],[1],[with Balancevelocity capability])
     1667        fi
     1668        AM_CONDITIONAL([BALANCEVELOCITY], [test x$HAVE_BALANCEVELOCITY = xyes])
     1669        AC_MSG_RESULT($HAVE_BALANCEVELOCITY)
     1670        dnl }}}
     1671        dnl with-L2ProjectionBase{{{
     1672        AC_ARG_WITH([L2ProjectionBase],
     1673                AS_HELP_STRING([--with-L2ProjectionBase = YES], [compile with L2ProjectionBase capabilities (default is yes)]),
     1674                [L2PROJECTIONBASE=$withval],[L2PROJECTIONBASE=yes])
     1675        AC_MSG_CHECKING(for L2ProjectionBase capability compilation)
     1676
     1677        HAVE_L2PROJECTIONBASE=no
     1678        if test "x$L2PROJECTIONBASE" = "xyes"; then
     1679                HAVE_L2PROJECTIONBASE=yes
     1680                AC_DEFINE([_HAVE_L2PROJECTIONBASE_],[1],[with L2ProjectionBase capability])
     1681        fi
     1682        AM_CONDITIONAL([L2PROJECTIONBASE], [test x$HAVE_L2PROJECTIONBASE = xyes])
     1683        AC_MSG_RESULT($HAVE_L2PROJECTIONBASE)
     1684        dnl }}}
     1685        dnl with-DamageEvolution{{{
     1686        AC_ARG_WITH([DamageEvolution],
     1687                AS_HELP_STRING([--with-DamageEvolution = YES], [compile with DamageEvolution capabilities (default is yes)]),
     1688                [DAMAGEEVOLUTION=$withval],[DAMAGEEVOLUTION=yes])
     1689        AC_MSG_CHECKING(for DamageEvolution capability compilation)
     1690
     1691        HAVE_DAMAGEEVOLUTION=no
     1692        if test "x$DAMAGEEVOLUTION" = "xyes"; then
     1693                HAVE_DAMAGEEVOLUTION=yes
     1694                AC_DEFINE([_HAVE_DAMAGEEVOLUTION_],[1],[with DamageEvolution capability])
     1695        fi
     1696        AM_CONDITIONAL([DAMAGEEVOLUTION], [test x$HAVE_DAMAGEEVOLUTION = xyes])
     1697        AC_MSG_RESULT($HAVE_DAMAGEEVOLUTION)
    16921698        dnl }}}
    16931699        dnl with-stressbalance{{{
     
    16971703        AC_MSG_CHECKING(for stressbalance capability compilation)
    16981704
     1705        HAVE_STRESSBALANCE=no
    16991706        if test "x$STRESSBALANCE" = "xyes"; then
    1700 
    1701                 dnl defaults
    17021707                HAVE_STRESSBALANCE=yes
    1703 
    17041708                AC_DEFINE([_HAVE_STRESSBALANCE_],[1],[with stressbalance capability])
    1705         else
    1706                 HAVE_STRESSBALANCE=no
    17071709        fi
    17081710        AM_CONDITIONAL([STRESSBALANCE], [test x$HAVE_STRESSBALANCE = xyes])
    17091711        AC_MSG_RESULT($HAVE_STRESSBALANCE)
    17101712        dnl }}}
    1711         dnl with-balanced{{{
    1712         AC_ARG_WITH([balanced],
    1713                 AS_HELP_STRING([--with-balanced = YES], [compile with balanced capabilities (default is yes)]),
    1714                 [BALANCED=$withval],[BALANCED=yes])
    1715         AC_MSG_CHECKING(for balanced capability compilation)
    1716 
    1717         if test "x$BALANCED" = "xyes"; then
    1718 
    1719                 dnl defaults
    1720                 HAVE_BALANCED=yes
    1721 
    1722                 AC_DEFINE([_HAVE_BALANCED_],[1],[with balanced capability])
    1723         else
    1724                 HAVE_BALANCED=no
    1725         fi
    1726         AM_CONDITIONAL([BALANCED], [test x$HAVE_BALANCED = xyes])
    1727         AC_MSG_RESULT($HAVE_BALANCED)
    1728         dnl }}}
    1729         dnl with-damage{{{
    1730         AC_ARG_WITH([damage],
    1731                 AS_HELP_STRING([--with-damage = YES], [compile with damage capabilities (default is yes)]),
    1732                 [DAMAGE=$withval],[DAMAGE=yes])
    1733         AC_MSG_CHECKING(for damage capability compilation)
    1734 
    1735         if test "x$DAMAGE" = "xyes"; then
    1736 
    1737                 dnl defaults
    1738                 HAVE_DAMAGE=yes
    1739 
    1740                 AC_DEFINE([_HAVE_DAMAGE_],[1],[with damage capability])
    1741         else
    1742                 HAVE_DAMAGE=no
    1743         fi
    1744         AM_CONDITIONAL([DAMAGE], [test x$HAVE_DAMAGE = xyes])
    1745         AC_MSG_RESULT($HAVE_DAMAGE)
    1746         dnl }}}
    1747         dnl with-responses{{{
    1748         AC_ARG_WITH([responses],
    1749                 AS_HELP_STRING([--with-responses = YES], [compile with responses capabilities (default is yes)]),
    1750                 [RESPONSES=$withval],[RESPONSES=yes])
    1751         AC_MSG_CHECKING(for responses capability compilation)
    1752 
    1753         if test "x$RESPONSES" = "xyes"; then
    1754 
    1755                 dnl defaults
    1756                 HAVE_RESPONSES=yes
    1757 
    1758                 AC_DEFINE([_HAVE_RESPONSES_],[1],[with responses capability])
    1759         else
    1760                 HAVE_RESPONSES=no
    1761         fi
    1762         AM_CONDITIONAL([RESPONSES], [test x$HAVE_RESPONSES = xyes])
    1763         AC_MSG_RESULT($HAVE_RESPONSES)
    1764         dnl }}}
    1765         dnl with-slope{{{
    1766         AC_ARG_WITH([slope],
    1767                 AS_HELP_STRING([--with-slope = YES], [compile with slope capabilities (default is yes)]),
    1768                 [SLOPE=$withval],[SLOPE=yes])
    1769         AC_MSG_CHECKING(for slope capability compilation)
    1770 
    1771         if test "x$SLOPE" = "xyes"; then
    1772 
    1773                 dnl defaults
    1774                 HAVE_SLOPE=yes
    1775 
    1776                 AC_DEFINE([_HAVE_SLOPE_],[1],[with slope capability])
    1777         else
    1778                 HAVE_SLOPE=no
    1779         fi
    1780         AM_CONDITIONAL([SLOPE], [test x$HAVE_SLOPE = xyes])
    1781         AC_MSG_RESULT($HAVE_SLOPE)
    1782         dnl }}}
    1783         dnl with-meshdeformation{{{
    1784                 AC_ARG_WITH([meshdeformation],
    1785                                         AS_HELP_STRING([--with-meshdeformation = YES], [compile with meshdeformation capabilities (default is yes)]),
    1786                                         [MESHDEFORMATION=$withval],[MESHDEFORMATION=yes])
    1787                   AC_MSG_CHECKING(for meshdeformation capability compilation)
    1788 
    1789                   if test "x$MESHDEFORMATION" = "xyes"; then
    1790 
    1791                         dnl defaults
    1792                           HAVE_MESHDEFORMATION=yes
    1793 
    1794                           AC_DEFINE([_HAVE_MESHDEFORMATION_],[1],[with meshdeformation capability])
    1795                   else
    1796                                 HAVE_MESHDEFORMATION=no
    1797                   fi
    1798           AM_CONDITIONAL([MESHDEFORMATION], [test x$HAVE_MESHDEFORMATION = xyes])
    1799           AC_MSG_RESULT($HAVE_MESHDEFORMATION)
    1800           dnl }}}
    1801         dnl with-groundingline{{{
    1802         AC_ARG_WITH([groundingline],
    1803                 AS_HELP_STRING([--with-groundingline = YES], [compile with groundingline capabilities (default is yes)]),
    1804                 [GROUNDINGLINE=$withval],[GROUNDINGLINE=yes])
    1805         AC_MSG_CHECKING(for groundingline capability compilation)
    1806 
    1807         if test "x$GROUNDINGLINE" = "xyes"; then
    1808 
    1809                 dnl defaults
    1810                 HAVE_GROUNDINGLINE=yes
    1811 
    1812                 AC_DEFINE([_HAVE_GROUNDINGLINE_],[1],[with groundingline capability])
    1813         else
    1814                 HAVE_GROUNDINGLINE=no
    1815         fi
    1816         AM_CONDITIONAL([GROUNDINGLINE], [test x$HAVE_GROUNDINGLINE = xyes])
    1817         AC_MSG_RESULT($HAVE_GROUNDINGLINE)
    1818         dnl }}}
    1819         dnl with-rifts{{{
    1820         AC_ARG_WITH([rifts],
    1821                 AS_HELP_STRING([--with-rifts = YES], [compile with rifts capabilities (default is yes)]),
    1822                 [RIFTS=$withval],[RIFTS=yes])
    1823         AC_MSG_CHECKING(for rifts capability compilation)
    1824 
    1825         if test "x$RIFTS" = "xyes"; then
    1826 
    1827                 dnl defaults
    1828                 HAVE_RIFTS=yes
    1829 
    1830                 AC_DEFINE([_HAVE_RIFTS_],[1],[with rifts capability])
    1831         else
    1832                 HAVE_RIFTS=no
    1833         fi
    1834         AM_CONDITIONAL([RIFTS], [test x$HAVE_RIFTS = xyes])
    1835         AC_MSG_RESULT($HAVE_RIFTS)
    1836         dnl }}}
    1837         dnl with-gia{{{
    1838         AC_ARG_WITH([gia],
    1839                 AS_HELP_STRING([--with-gia = YES], [compile with gia capabilities (default is yes)]),
    1840                 [GIA=$withval],[GIA=no])
    1841         AC_MSG_CHECKING(for gia capability compilation)
    1842 
    1843         if test "x$GIA" = "xyes"; then
    1844          
    1845           if test "x$HAVE_MATH77" = "xno"; then
    1846                   HAVE_GIA=no
    1847                   AC_MSG_ERROR([gia requires compilation of math77 library! Reconfigure with --with-math77 option on]);
    1848           else
    1849                 dnl defaults
    1850                 HAVE_GIA=yes
    1851                 AC_DEFINE([_HAVE_GIA_],[1],[with gia capability])
    1852           fi
    1853 
    1854         else
    1855                 HAVE_GIA=no
    1856         fi
    1857         AM_CONDITIONAL([GIA], [test x$HAVE_GIA = xyes])
    1858         AC_MSG_RESULT($HAVE_GIA)
    1859         dnl }}}
     1713        dnl with-stressbalanceSIA{{{
     1714                AC_ARG_WITH([stressbalanceSIA],
     1715                                        AS_HELP_STRING([--with-stressbalanceSIA = YES], [compile with stressbalanceSIA capabilities (default is yes)]),
     1716                                        [STRESSBALANCESIA=$withval],[STRESSBALANCESIA=yes])
     1717                  AC_MSG_CHECKING(for stressbalanceSIA capability compilation)
     1718
     1719                  HAVE_STRESSBALANCESIA=no
     1720                  if test "x$STRESSBALANCESIA" = "xyes"; then
     1721                        HAVE_STRESSBALANCESIA=yes
     1722                          AC_DEFINE([_HAVE_STRESSBALANCESIA_],[1],[with stressbalanceSIA capability])
     1723                          fi
     1724                          AM_CONDITIONAL([STRESSBALANCESIA], [test x$HAVE_STRESSBALANCESIA = xyes])
     1725                          AC_MSG_RESULT($HAVE_STRESSBALANCESIA)
     1726                          dnl }}}
     1727        dnl with-StressbalanceVertical{{{
     1728        AC_ARG_WITH([StressbalanceVertical],
     1729                AS_HELP_STRING([--with-StressbalanceVertical = YES], [compile with StressbalanceVertical capabilities (default is yes)]),
     1730                [STRESSBALANCEVERTICAL=$withval],[STRESSBALANCEVERTICAL=yes])
     1731        AC_MSG_CHECKING(for StressbalanceVertical capability compilation)
     1732
     1733        HAVE_STRESSBALANCEVERTICAL=no
     1734        if test "x$STRESSBALANCEVERTICAL" = "xyes"; then
     1735                HAVE_STRESSBALANCEVERTICAL=yes
     1736                AC_DEFINE([_HAVE_STRESSBALANCEVERTICAL_],[1],[with StressbalanceVertical capability])
     1737        fi
     1738        AM_CONDITIONAL([STRESSBALANCEVERTICAL], [test x$HAVE_STRESSBALANCEVERTICAL = xyes])
     1739        AC_MSG_RESULT($HAVE_STRESSBALANCEVERTICAL)
     1740        dnl }}}
     1741        dnl with-Enthalpy{{{
     1742        AC_ARG_WITH([Enthalpy],
     1743                AS_HELP_STRING([--with-Enthalpy = YES], [compile with Enthalpy capabilities (default is yes)]),
     1744                [ENTHALPY=$withval],[ENTHALPY=yes])
     1745        AC_MSG_CHECKING(for Enthalpy capability compilation)
     1746
     1747        HAVE_ENTHALPY=no
     1748        if test "x$ENTHALPY" = "xyes"; then
     1749                HAVE_ENTHALPY=yes
     1750                AC_DEFINE([_HAVE_ENTHALPY_],[1],[with Enthalpy capability])
     1751        fi
     1752        AM_CONDITIONAL([ENTHALPY], [test x$HAVE_ENTHALPY = xyes])
     1753        AC_MSG_RESULT($HAVE_ENTHALPY)
     1754        dnl }}}
     1755        dnl with-HydrologyShreve{{{
     1756        AC_ARG_WITH([HydrologyShreve],
     1757                AS_HELP_STRING([--with-HydrologyShreve = YES], [compile with HydrologyShreve capabilities (default is yes)]),
     1758                [HYDROLOGYSHREVE=$withval],[HYDROLOGYSHREVE=yes])
     1759        AC_MSG_CHECKING(for HydrologyShreve capability compilation)
     1760
     1761        HAVE_HYDROLOGYSHREVE=no
     1762        if test "x$HYDROLOGYSHREVE" = "xyes"; then
     1763                HAVE_HYDROLOGYSHREVE=yes
     1764                AC_DEFINE([_HAVE_HYDROLOGYSHREVE_],[1],[with HydrologyShreve capability])
     1765        fi
     1766        AM_CONDITIONAL([HYDROLOGYSHREVE], [test x$HAVE_HYDROLOGYSHREVE = xyes])
     1767        AC_MSG_RESULT($HAVE_HYDROLOGYSHREVE)
     1768        dnl }}}
     1769        dnl with-HydrologyDCInefficient{{{
     1770        AC_ARG_WITH([HydrologyDCInefficient],
     1771                AS_HELP_STRING([--with-HydrologyDCInefficient = YES], [compile with HydrologyDCInefficient capabilities (default is yes)]),
     1772                [HYDROLOGYDCINEFFICIENT=$withval],[HYDROLOGYDCINEFFICIENT=yes])
     1773        AC_MSG_CHECKING(for HydrologyDCInefficient capability compilation)
     1774
     1775        HAVE_HYDROLOGYDCINEFFICIENT=no
     1776        if test "x$HYDROLOGYDCINEFFICIENT" = "xyes"; then
     1777                HAVE_HYDROLOGYDCINEFFICIENT=yes
     1778                AC_DEFINE([_HAVE_HYDROLOGYDCINEFFICIENT_],[1],[with HydrologyDCInefficient capability])
     1779        fi
     1780        AM_CONDITIONAL([HYDROLOGYDCINEFFICIENT], [test x$HAVE_HYDROLOGYDCINEFFICIENT = xyes])
     1781        AC_MSG_RESULT($HAVE_HYDROLOGYDCINEFFICIENT)
     1782        dnl }}}
     1783        dnl with-HydrologyDCEfficient{{{
     1784        AC_ARG_WITH([HydrologyDCEfficient],
     1785                AS_HELP_STRING([--with-HydrologyDCEfficient = YES], [compile with HydrologyDCEfficient capabilities (default is yes)]),
     1786                [HYDROLOGYDCEFFICIENT=$withval],[HYDROLOGYDCEFFICIENT=yes])
     1787        AC_MSG_CHECKING(for HydrologyDCEfficient capability compilation)
     1788
     1789        HAVE_HYDROLOGYDCEFFICIENT=no
     1790        if test "x$HYDROLOGYDCEFFICIENT" = "xyes"; then
     1791                HAVE_HYDROLOGYDCEFFICIENT=yes
     1792                AC_DEFINE([_HAVE_HYDROLOGYDCEFFICIENT_],[1],[with HydrologyDCEfficient capability])
     1793        fi
     1794        AM_CONDITIONAL([HYDROLOGYDCEFFICIENT], [test x$HAVE_HYDROLOGYDCEFFICIENT = xyes])
     1795        AC_MSG_RESULT($HAVE_HYDROLOGYDCEFFICIENT)
     1796        dnl }}}
     1797        dnl with-Melting{{{
     1798        AC_ARG_WITH([Melting],
     1799                AS_HELP_STRING([--with-Melting = YES], [compile with Melting capabilities (default is yes)]),
     1800                [MELTING=$withval],[MELTING=yes])
     1801        AC_MSG_CHECKING(for Melting capability compilation)
     1802
     1803        HAVE_MELTING=no
     1804        if test "x$MELTING" = "xyes"; then
     1805                HAVE_MELTING=yes
     1806                AC_DEFINE([_HAVE_MELTING_],[1],[with Melting capability])
     1807        fi
     1808        AM_CONDITIONAL([MELTING], [test x$HAVE_MELTING = xyes])
     1809        AC_MSG_RESULT($HAVE_MELTING)
     1810        dnl }}}
     1811        dnl with-Masstransport{{{
     1812        AC_ARG_WITH([Masstransport],
     1813                AS_HELP_STRING([--with-Masstransport = YES], [compile with Masstransport capabilities (default is yes)]),
     1814                [MASSTRANSPORT=$withval],[MASSTRANSPORT=yes])
     1815        AC_MSG_CHECKING(for Masstransport capability compilation)
     1816
     1817        HAVE_MASSTRANSPORT=no
     1818        if test "x$MASSTRANSPORT" = "xyes"; then
     1819                HAVE_MASSTRANSPORT=yes
     1820                AC_DEFINE([_HAVE_MASSTRANSPORT_],[1],[with Masstransport capability])
     1821        fi
     1822        AM_CONDITIONAL([MASSTRANSPORT], [test x$HAVE_MASSTRANSPORT = xyes])
     1823        AC_MSG_RESULT($HAVE_MASSTRANSPORT)
     1824        dnl }}}
     1825        dnl with-FreeSurfaceBase{{{
     1826        AC_ARG_WITH([FreeSurfaceBase],
     1827                AS_HELP_STRING([--with-FreeSurfaceBase = YES], [compile with FreeSurfaceBase capabilities (default is yes)]),
     1828                [FREESURFACEBASE=$withval],[FREESURFACEBASE=yes])
     1829        AC_MSG_CHECKING(for FreeSurfaceBase capability compilation)
     1830
     1831        HAVE_FREESURFACEBASE=no
     1832        if test "x$FREESURFACEBASE" = "xyes"; then
     1833                HAVE_FREESURFACEBASE=yes
     1834                AC_DEFINE([_HAVE_FREESURFACEBASE_],[1],[with FreeSurfaceBase capability])
     1835        fi
     1836        AM_CONDITIONAL([FREESURFACEBASE], [test x$HAVE_FREESURFACEBASE = xyes])
     1837        AC_MSG_RESULT($HAVE_FREESURFACEBASE)
     1838        dnl }}}
     1839        dnl with-FreeSurfaceTop{{{
     1840                AC_ARG_WITH([FreeSurfaceTop],
     1841                                        AS_HELP_STRING([--with-FreeSurfaceTop = YES], [compile with FreeSurfaceTop capabilities (default is yes)]),
     1842                                        [FREESURFACETOP=$withval],[FREESURFACETOP=yes])
     1843                  AC_MSG_CHECKING(for FreeSurfaceTop capability compilation)
     1844
     1845                  HAVE_FREESURFACETOP=no
     1846                  if test "x$FREESURFACETOP" = "xyes"; then
     1847                        HAVE_FREESURFACETOP=yes
     1848                          AC_DEFINE([_HAVE_FREESURFACETOP_],[1],[with FreeSurfaceTop capability])
     1849                          fi
     1850                          AM_CONDITIONAL([FREESURFACETOP], [test x$HAVE_FREESURFACETOP = xyes])
     1851                          AC_MSG_RESULT($HAVE_FREESURFACETOP)
     1852                          dnl }}}
     1853        dnl with-ExtrudeFromBase{{{
     1854        AC_ARG_WITH([ExtrudeFromBase],
     1855                AS_HELP_STRING([--with-ExtrudeFromBase = YES], [compile with ExtrudeFromBase capabilities (default is yes)]),
     1856                [EXTRUDEFROMBASE=$withval],[EXTRUDEFROMBASE=yes])
     1857        AC_MSG_CHECKING(for ExtrudeFromBase capability compilation)
     1858
     1859        HAVE_EXTRUDEFROMBASE=no
     1860        if test "x$EXTRUDEFROMBASE" = "xyes"; then
     1861                HAVE_EXTRUDEFROMBASE=yes
     1862                AC_DEFINE([_HAVE_EXTRUDEFROMBASE_],[1],[with ExtrudeFromBase capability])
     1863        fi
     1864        AM_CONDITIONAL([EXTRUDEFROMBASE], [test x$HAVE_EXTRUDEFROMBASE = xyes])
     1865        AC_MSG_RESULT($HAVE_EXTRUDEFROMBASE)
     1866        dnl }}}
     1867        dnl with-ExtrudeFromTop{{{
     1868                AC_ARG_WITH([ExtrudeFromTop],
     1869                                        AS_HELP_STRING([--with-ExtrudeFromTop = YES], [compile with ExtrudeFromTop capabilities (default is yes)]),
     1870                                        [EXTRUDEFROMTOP=$withval],[EXTRUDEFROMTOP=yes])
     1871                  AC_MSG_CHECKING(for ExtrudeFromTop capability compilation)
     1872
     1873                  HAVE_EXTRUDEFROMTOP=no
     1874                  if test "x$EXTRUDEFROMTOP" = "xyes"; then
     1875                        HAVE_EXTRUDEFROMTOP=yes
     1876                          AC_DEFINE([_HAVE_EXTRUDEFROMTOP_],[1],[with ExtrudeFromTop capability])
     1877                          fi
     1878                          AM_CONDITIONAL([EXTRUDEFROMTOP], [test x$HAVE_EXTRUDEFROMTOP = xyes])
     1879                          AC_MSG_RESULT($HAVE_EXTRUDEFROMTOP)
     1880                          dnl }}}
     1881        dnl with-Thermal{{{
     1882        AC_ARG_WITH([Thermal],
     1883                AS_HELP_STRING([--with-Thermal = YES], [compile with Thermal capabilities (default is yes)]),
     1884                [THERMAL=$withval],[THERMAL=yes])
     1885        AC_MSG_CHECKING(for Thermal capability compilation)
     1886
     1887        HAVE_THERMAL=no
     1888        if test "x$THERMAL" = "xyes"; then
     1889                HAVE_THERMAL=yes
     1890                AC_DEFINE([_HAVE_THERMAL_],[1],[with Thermal capability])
     1891        fi
     1892        AM_CONDITIONAL([THERMAL], [test x$HAVE_THERMAL = xyes])
     1893        AC_MSG_RESULT($HAVE_THERMAL)
     1894        dnl }}}
     1895        dnl with-Meshdeformation{{{
     1896        AC_ARG_WITH([Meshdeformation],
     1897                AS_HELP_STRING([--with-Meshdeformation = YES], [compile with Meshdeformation capabilities (default is yes)]),
     1898                [MESHDEFORMATION=$withval],[MESHDEFORMATION=yes])
     1899        AC_MSG_CHECKING(for Meshdeformation capability compilation)
     1900
     1901        HAVE_MESHDEFORMATION=no
     1902        if test "x$MESHDEFORMATION" = "xyes"; then
     1903                HAVE_MESHDEFORMATION=yes
     1904                AC_DEFINE([_HAVE_MESHDEFORMATION_],[1],[with Meshdeformation capability])
     1905        fi
     1906        AM_CONDITIONAL([MESHDEFORMATION], [test x$HAVE_MESHDEFORMATION = xyes])
     1907        AC_MSG_RESULT($HAVE_MESHDEFORMATION)
     1908        dnl }}}
     1909        dnl with-Levelset{{{
     1910        AC_ARG_WITH([Levelset],
     1911                AS_HELP_STRING([--with-Levelset = YES], [compile with Levelset capabilities (default is yes)]),
     1912                [LEVELSET=$withval],[LEVELSET=yes])
     1913        AC_MSG_CHECKING(for Levelset capability compilation)
     1914
     1915        HAVE_LEVELSET=no
     1916        if test "x$LEVELSET" = "xyes"; then
     1917                HAVE_LEVELSET=yes
     1918                AC_DEFINE([_HAVE_LEVELSET_],[1],[with Levelset capability])
     1919        fi
     1920        AM_CONDITIONAL([LEVELSET], [test x$HAVE_LEVELSET = xyes])
     1921        AC_MSG_RESULT($HAVE_LEVELSET)
     1922        dnl }}}
     1923        dnl with-Extrapolation{{{
     1924        AC_ARG_WITH([Extrapolation],
     1925                AS_HELP_STRING([--with-Extrapolation = YES], [compile with Extrapolation capabilities (default is yes)]),
     1926                [EXTRAPOLATION=$withval],[EXTRAPOLATION=yes])
     1927        AC_MSG_CHECKING(for Extrapolation capability compilation)
     1928
     1929        HAVE_EXTRAPOLATION=no
     1930        if test "x$EXTRAPOLATION" = "xyes"; then
     1931                HAVE_EXTRAPOLATION=yes
     1932                AC_DEFINE([_HAVE_EXTRAPOLATION_],[1],[with Extrapolation capability])
     1933        fi
     1934        AM_CONDITIONAL([EXTRAPOLATION], [test x$HAVE_EXTRAPOLATION = xyes])
     1935        AC_MSG_RESULT($HAVE_EXTRAPOLATION)
     1936        dnl }}}
     1937
     1938        dnl Platform specifics
    18601939        dnl with-ios{{{
    18611940        AC_ARG_WITH([ios],
     
    19212000        fi
    19222001        AC_MSG_RESULT($HAVE_ANDROID_NDK)
    1923         dnl }}}
    1924         dnl with-3d{{{
    1925         AC_ARG_WITH([3d],
    1926                 AS_HELP_STRING([--with-3d = YES], [compile with 3d capabilities (default is yes)]),
    1927                 [THREED=$withval],[THREED=yes])
    1928         AC_MSG_CHECKING(for 3d capability compilation)
    1929 
    1930         if test "x$THREED" = "xyes"; then
    1931 
    1932                 dnl defaults
    1933                 HAVE_3D=yes
    1934 
    1935                 AC_DEFINE([_HAVE_3D_],[1],[with 3d capability])
    1936         else
    1937                 HAVE_3D=no
    1938         fi
    1939         AM_CONDITIONAL([THREED], [test x$HAVE_3D = xyes])
    1940         AC_MSG_RESULT($HAVE_3D)
    19412002        dnl }}}
    19422003
     
    20002061                  dnl check that if petsc is requested , mpi should be specified
    20012062                  if test "$HAVE_PETSC" = "yes" ; then
    2002                         if test "$HAVE_MPI" = "NO";  then
    2003                         AC_MSG_ERROR([petsc requires mpi!]);
    2004                 fi
     2063                                if test "$HAVE_MPI" = "NO";  then
     2064                                        AC_MSG_ERROR([petsc requires mpi!]);
     2065                                fi
    20052066                  fi
    20062067
    20072068                  dnl check that we have either python or matlab support if we compile the modules
    20082069                  if test "$MODULES_VALUE" = "yes"  && test "$HAVE_MATLAB" = "no" && test "$HAVE_PYTHON" = "no"; then
    2009                         AC_MSG_ERROR([need at least python or matlab support to compile modules (or use --with-modules=no)]);
    2010                 fi
     2070                                AC_MSG_ERROR([need at least python or matlab support to compile modules (or use --with-modules=no)]);
     2071                  fi
    20112072
    20122073                  dnl check that if we have MPI, we have metis
    20132074                  if test "$HAVE_METIS" = "yes"  && test "$HAVE_MPI" = "no" ; then
    2014                         AC_MSG_ERROR([need mpi if using the metis partitioner!]);
    2015                 fi
     2075                                AC_MSG_ERROR([need mpi if using the metis partitioner!]);
     2076                  fi
    20162077               
    20172078                dnl check that if we run adolc, we don't compile krigging.exe
    2018                   if test "$HAVE_ADOLC" = "yes"  && test "$HAVE_KRIGING" = "yes" ; then
     2079                if test "$HAVE_ADOLC" = "yes"  && test "$HAVE_KRIGING" = "yes" ; then
    20192080                        AC_MSG_ERROR([cannot compile kriging.exe under adolc conditions!]);
    20202081                fi
    20212082                dnl check that if we run meteoio, we have snowpack also
    2022                   if test "$HAVE_METEOIO" = "yes"  && test "$HAVE_SNOWPACK" = "no" ; then
     2083                if test "$HAVE_METEOIO" = "yes"  && test "$HAVE_SNOWPACK" = "no" ; then
    20232084                        AC_MSG_ERROR([cannot compile MeteoIO package without Snowpack!]);
    20242085                fi
    20252086                dnl check that if we run snowpack, we have meteoio also
    2026                   if test "$HAVE_METEOIO" = "no"  && test "$HAVE_SNOWPACK" = "yes" ; then
     2087                if test "$HAVE_METEOIO" = "no"  && test "$HAVE_SNOWPACK" = "yes" ; then
    20272088                        AC_MSG_ERROR([cannot compile Snowpack package without MeteoIO!]);
    20282089                fi
    20292090
    2030 
    2031 
    2032 
    2033 
    2034 
    2035                   AC_MSG_RESULT(done)
    2036                   dnl }}}
     2091                AC_MSG_RESULT(done)
     2092                dnl }}}
    20372093])
  • issm/trunk-jpl/src/c/Makefile.am

    r17230 r17236  
    1818#}}}
    1919
    20 #sources
     20#Core sources
    2121#Core sources{{{
    22 core_sources = ./datastructures/DataSet.h\
     22issm_sources = ./datastructures/DataSet.h\
    2323                                        ./datastructures/DataSet.cpp\
    2424                                        ./datastructures/Object.h\
     
    349349                                        ./classes/Options/OptionUtilities.h\
    350350                                        ./classes/RiftStruct.cpp\
    351                                         ./classes/RiftStruct.h
    352 #}}}
     351                                        ./classes/RiftStruct.h\
     352                                        ./modules/ModelProcessorx/Transient/UpdateElementsTransient.cpp \
     353                                        ./cores/transient_core.cpp\
     354                                        ./cores/steadystate_core.cpp\
     355                                        ./cores/masstransport_core.cpp\
     356                                        ./cores/extrudefrombase_core.cpp\
     357                                        ./cores/extrudefromtop_core.cpp\
     358                                        ./cores/thermal_core.cpp\
     359                                        ./solutionsequences/solutionsequence_thermal_nonlinear.cpp\
     360                                        ./modules/ControlInputGetGradientx/ControlInputGetGradientx.cpp\
     361                                        ./modules/ControlInputGetGradientx/ControlInputGetGradientx.h\
     362                                        ./modules/ControlInputSetGradientx/ControlInputSetGradientx.cpp\
     363                                        ./modules/ControlInputSetGradientx/ControlInputSetGradientx.h\
     364                                        ./modules/ControlInputScaleGradientx/ControlInputScaleGradientx.cpp\
     365                                        ./modules/ControlInputScaleGradientx/ControlInputScaleGradientx.h\
     366                                        ./modules/GetVectorFromControlInputsx/GetVectorFromControlInputsx.cpp\
     367                                        ./modules/GetVectorFromControlInputsx/GetVectorFromControlInputsx.h\
     368                                        ./modules/SetControlInputsFromVectorx/SetControlInputsFromVectorx.cpp\
     369                                        ./modules/SetControlInputsFromVectorx/SetControlInputsFromVectorx.h\
     370                                        ./modules/ModelProcessorx/Control/CreateParametersControl.cpp\
     371                                        ./modules/ModelProcessorx/Control/UpdateElementsAndMaterialsControl.cpp\
     372                                        ./modules/InputControlUpdatex/InputControlUpdatex.h\
     373                                        ./modules/InputControlUpdatex/InputControlUpdatex.cpp\
     374                                        ./modules/SurfaceAbsVelMisfitx/SurfaceAbsVelMisfitx.h\
     375                                        ./modules/SurfaceAbsVelMisfitx/SurfaceAbsVelMisfitx.cpp\
     376                                        ./modules/SurfaceRelVelMisfitx/SurfaceRelVelMisfitx.h\
     377                                        ./modules/SurfaceRelVelMisfitx/SurfaceRelVelMisfitx.cpp\
     378                                        ./modules/SurfaceLogVelMisfitx/SurfaceLogVelMisfitx.h\
     379                                        ./modules/SurfaceLogVelMisfitx/SurfaceLogVelMisfitx.cpp\
     380                                        ./modules/SurfaceLogVxVyMisfitx/SurfaceLogVxVyMisfitx.h\
     381                                        ./modules/SurfaceLogVxVyMisfitx/SurfaceLogVxVyMisfitx.cpp\
     382                                        ./modules/SurfaceAverageVelMisfitx/SurfaceAverageVelMisfitx.h\
     383                                        ./modules/SurfaceAverageVelMisfitx/SurfaceAverageVelMisfitx.cpp\
     384                                        ./modules/ThicknessAbsMisfitx/ThicknessAbsMisfitx.h\
     385                                        ./modules/ThicknessAbsMisfitx/ThicknessAbsMisfitx.cpp\
     386                                        ./modules/Orthx/Orthx.h\
     387                                        ./modules/Orthx/Orthx.cpp\
     388                                        ./modules/Gradjx/Gradjx.h\
     389                                        ./modules/Gradjx/Gradjx.cpp\
     390                                        ./modules/DragCoefficientAbsGradientx/DragCoefficientAbsGradientx.cpp\
     391                                        ./modules/DragCoefficientAbsGradientx/DragCoefficientAbsGradientx.h\
     392                                        ./modules/ThicknessAlongGradientx/ThicknessAlongGradientx.cpp\
     393                                        ./modules/ThicknessAlongGradientx/ThicknessAlongGradientx.h\
     394                                        ./modules/ThicknessAcrossGradientx/ThicknessAcrossGradientx.cpp\
     395                                        ./modules/ThicknessAcrossGradientx/ThicknessAcrossGradientx.h\
     396                                        ./modules/RheologyBbarAbsGradientx/RheologyBbarAbsGradientx.cpp\
     397                                        ./modules/RheologyBbarAbsGradientx/RheologyBbarAbsGradientx.h\
     398                                        ./classes/Inputs/ControlInput.h\
     399                                        ./classes/Inputs/ControlInput.cpp\
     400                                        ./shared/Numerics/BrentSearch.cpp\
     401                                        ./shared/Numerics/OptimalSearch.cpp \
     402                                        ./cores/control_core.cpp\
     403                                        ./cores/controltao_core.cpp\
     404                                        ./cores/objectivefunction.cpp\
     405                                        ./cores/gradient_core.cpp\
     406                                        ./cores/adjointstressbalance_core.cpp\
     407                                        ./cores/adjointbalancethickness_core.cpp\
     408                                        ./cores/AdjointCorePointerFromSolutionEnum.cpp\
     409                                        ./solutionsequences/solutionsequence_adjoint_linear.cpp\
     410                                        ./cores/hydrology_core.cpp\
     411                                        ./solutionsequences/solutionsequence_hydro_nonlinear.cpp\
     412                                        ./cores/stressbalance_core.cpp\
     413                                        ./solutionsequences/solutionsequence_stokescoupling_nonlinear.cpp\
     414                                        ./cores/balancethickness_core.cpp \
     415                                        ./cores/balancevelocity_core.cpp \
     416                                        ./cores/dummy_core.cpp\
     417                                        ./cores/surfaceslope_core.cpp\
     418                                        ./cores/bedslope_core.cpp\
     419                                        ./cores/meshdeformation_core.cpp\
     420                                        ./cores/damage_core.cpp\
     421                                        ./analyses/DamageEvolutionAnalysis.cpp\
     422                                        ./solutionsequences/solutionsequence_damage_nonlinear.cpp\
     423                                        ./modules/GroundinglineMigrationx/GroundinglineMigrationx.cpp\
     424                                        ./classes/Loads/Riftfront.cpp\
     425                                        ./modules/ConstraintsStatex/RiftConstraintsState.cpp\
     426                                        ./classes/Massfluxatgate.h \
     427                                        ./classes/Misfit.h \
     428                                        ./modules/ModelProcessorx/CreateOutputDefinitions.cpp\
     429                                        ./modules/OutputDefinitionsResponsex/OutputDefinitionsResponsex.h\
     430                                        ./modules/OutputDefinitionsResponsex/OutputDefinitionsResponsex.cpp\
     431                                        ./classes/gauss/GaussPenta.h\
     432                                        ./classes/gauss/GaussPenta.cpp\
     433                                        ./classes/Inputs/PentaInput.h\
     434                                        ./classes/Inputs/PentaInput.cpp\
     435                                        ./classes/Elements/Penta.h\
     436                                        ./classes/Elements/Penta.cpp\
     437                                        ./classes/Elements/PentaRef.h\
     438                                        ./classes/Elements/PentaRef.cpp\
     439                                        #}}}
    353440#DAKOTA sources  {{{
    354 dakota_sources = ./modules/InputUpdateFromDakotax/InputUpdateFromDakotax.h\
     441if DAKOTA
     442issm_sources +=  ./modules/InputUpdateFromDakotax/InputUpdateFromDakotax.h\
    355443                                          ./modules/InputUpdateFromDakotax/InputUpdateFromDakotax.cpp\
    356444                                          ./modules/InputUpdateFromVectorDakotax/InputUpdateFromVectorDakotax.h\
     
    365453                                          ./cores/DakotaSpawnCore.h\
    366454                                          ./cores/DakotaSpawnCore.cpp
    367 #}}}
    368 #Transient sources  {{{
    369 transient_sources  = ./modules/ModelProcessorx/Transient/UpdateElementsTransient.cpp \
    370                                                         ./cores/transient_core.cpp\
    371               ./analyses/LevelsetAnalysis.h\
    372               ./analyses/LevelsetAnalysis.cpp\
    373                           ./analyses/ExtrapolationAnalysis.h\
    374                           ./analyses/ExtrapolationAnalysis.cpp
    375 #}}}
    376 #Steadystate sources  {{{
    377 steadystate_sources = ./cores/steadystate_core.cpp
    378 #}}}
    379 #Masstransport sources  {{{
    380 masstransport_sources = ./analyses/ExtrudeFromBaseAnalysis.h\
    381                                                                 ./analyses/ExtrudeFromBaseAnalysis.cpp\
    382                                                                 ./analyses/ExtrudeFromTopAnalysis.h\
    383                                                                 ./analyses/ExtrudeFromTopAnalysis.cpp\
    384                                                                 ./analyses/MasstransportAnalysis.h\
    385                                                                 ./analyses/MasstransportAnalysis.cpp\
    386                                                                 ./analyses/FreeSurfaceBaseAnalysis.h\
    387                                                                 ./analyses/FreeSurfaceBaseAnalysis.cpp\
    388                                                                 ./analyses/FreeSurfaceTopAnalysis.h\
    389                                                                 ./analyses/FreeSurfaceTopAnalysis.cpp\
    390                                                                 ./cores/masstransport_core.cpp\
    391                                                                 ./cores/extrudefrombase_core.cpp\
    392                                                                 ./cores/extrudefromtop_core.cpp
    393 
    394 #}}}
    395 #Thermal sources  {{{
    396 thermal_sources = ./analyses/ThermalAnalysis.h\
    397                                                 ./analyses/ThermalAnalysis.cpp\
    398                                                 ./analyses/EnthalpyAnalysis.h\
    399                                                 ./analyses/EnthalpyAnalysis.cpp\
    400                                                 ./analyses/MeltingAnalysis.h\
    401                                                 ./analyses/MeltingAnalysis.cpp\
    402                                            ./cores/thermal_core.cpp\
    403                                            ./solutionsequences/solutionsequence_thermal_nonlinear.cpp
    404 #}}}
    405 #Control sources  {{{
    406 control_sources= ./modules/ControlInputGetGradientx/ControlInputGetGradientx.cpp\
    407                                           ./modules/ControlInputGetGradientx/ControlInputGetGradientx.h\
    408                                           ./modules/ControlInputSetGradientx/ControlInputSetGradientx.cpp\
    409                                           ./modules/ControlInputSetGradientx/ControlInputSetGradientx.h\
    410                                           ./modules/ControlInputScaleGradientx/ControlInputScaleGradientx.cpp\
    411                                           ./modules/ControlInputScaleGradientx/ControlInputScaleGradientx.h\
    412                                           ./modules/GetVectorFromControlInputsx/GetVectorFromControlInputsx.cpp\
    413                                           ./modules/GetVectorFromControlInputsx/GetVectorFromControlInputsx.h\
    414                                           ./modules/SetControlInputsFromVectorx/SetControlInputsFromVectorx.cpp\
    415                                           ./modules/SetControlInputsFromVectorx/SetControlInputsFromVectorx.h\
    416                                           ./modules/ModelProcessorx/Control/CreateParametersControl.cpp\
    417                                           ./modules/ModelProcessorx/Control/UpdateElementsAndMaterialsControl.cpp\
    418                                           ./modules/InputControlUpdatex/InputControlUpdatex.h\
    419                                           ./modules/InputControlUpdatex/InputControlUpdatex.cpp\
    420                                           ./modules/SurfaceAbsVelMisfitx/SurfaceAbsVelMisfitx.h\
    421                                           ./modules/SurfaceAbsVelMisfitx/SurfaceAbsVelMisfitx.cpp\
    422                                           ./modules/SurfaceRelVelMisfitx/SurfaceRelVelMisfitx.h\
    423                                           ./modules/SurfaceRelVelMisfitx/SurfaceRelVelMisfitx.cpp\
    424                                           ./modules/SurfaceLogVelMisfitx/SurfaceLogVelMisfitx.h\
    425                                           ./modules/SurfaceLogVelMisfitx/SurfaceLogVelMisfitx.cpp\
    426                                           ./modules/SurfaceLogVxVyMisfitx/SurfaceLogVxVyMisfitx.h\
    427                                           ./modules/SurfaceLogVxVyMisfitx/SurfaceLogVxVyMisfitx.cpp\
    428                                           ./modules/SurfaceAverageVelMisfitx/SurfaceAverageVelMisfitx.h\
    429                                           ./modules/SurfaceAverageVelMisfitx/SurfaceAverageVelMisfitx.cpp\
    430                                           ./modules/ThicknessAbsMisfitx/ThicknessAbsMisfitx.h\
    431                                           ./modules/ThicknessAbsMisfitx/ThicknessAbsMisfitx.cpp\
    432                                           ./modules/Orthx/Orthx.h\
    433                                           ./modules/Orthx/Orthx.cpp\
    434                                           ./modules/Gradjx/Gradjx.h\
    435                                           ./modules/Gradjx/Gradjx.cpp\
    436                                           ./modules/DragCoefficientAbsGradientx/DragCoefficientAbsGradientx.cpp\
    437                                           ./modules/DragCoefficientAbsGradientx/DragCoefficientAbsGradientx.h\
    438                                           ./modules/ThicknessAlongGradientx/ThicknessAlongGradientx.cpp\
    439                                           ./modules/ThicknessAlongGradientx/ThicknessAlongGradientx.h\
    440                                           ./modules/ThicknessAcrossGradientx/ThicknessAcrossGradientx.cpp\
    441                                           ./modules/ThicknessAcrossGradientx/ThicknessAcrossGradientx.h\
    442                                           ./modules/RheologyBbarAbsGradientx/RheologyBbarAbsGradientx.cpp\
    443                                           ./modules/RheologyBbarAbsGradientx/RheologyBbarAbsGradientx.h\
    444                                           ./classes/Inputs/ControlInput.h\
    445                                           ./classes/Inputs/ControlInput.cpp\
    446                                           ./shared/Numerics/BrentSearch.cpp\
    447                                           ./shared/Numerics/OptimalSearch.cpp \
    448                                           ./cores/control_core.cpp\
    449                                           ./cores/controltao_core.cpp\
    450                                           ./cores/objectivefunction.cpp\
    451                                           ./cores/gradient_core.cpp\
    452                                           ./cores/adjointstressbalance_core.cpp\
    453                                           ./cores/adjointbalancethickness_core.cpp\
    454                                           ./cores/AdjointCorePointerFromSolutionEnum.cpp\
    455                                           ./analyses/AdjointBalancethicknessAnalysis.h\
    456                                           ./analyses/AdjointBalancethicknessAnalysis.cpp\
    457                                           ./analyses/AdjointHorizAnalysis.h\
    458                                           ./analyses/AdjointHorizAnalysis.cpp\
    459                                           ./solutionsequences/solutionsequence_adjoint_linear.cpp
    460 
    461 #}}}
    462 #Hydrology sources  {{{
    463 hydrology_sources  = ./analyses/HydrologyDCEfficientAnalysis.h\
    464                                                         ./analyses/HydrologyDCEfficientAnalysis.cpp\
    465                                                         ./analyses/HydrologyDCInefficientAnalysis.h\
    466                                                         ./analyses/HydrologyDCInefficientAnalysis.cpp\
    467                                                         ./analyses/HydrologyShreveAnalysis.h\
    468                                                         ./analyses/HydrologyShreveAnalysis.cpp\
    469                                                         ./analyses/L2ProjectionEPLAnalysis.h\
    470                                                 ./analyses/L2ProjectionEPLAnalysis.cpp\
    471                                                         ./cores/hydrology_core.cpp\
    472                                                         ./solutionsequences/solutionsequence_hydro_nonlinear.cpp
    473 #}}}
    474 #Stressbalance sources  {{{
    475 stressbalance_sources = ./analyses/StressbalanceAnalysis.h\
    476                                                         ./analyses/StressbalanceAnalysis.cpp\
    477                                                         ./analyses/StressbalanceSIAAnalysis.h\
    478                                                         ./analyses/StressbalanceSIAAnalysis.cpp\
    479                                                         ./analyses/StressbalanceVerticalAnalysis.h\
    480                                                         ./analyses/StressbalanceVerticalAnalysis.cpp\
    481                                                         ./cores/stressbalance_core.cpp\
    482                                                         ./solutionsequences/solutionsequence_stokescoupling_nonlinear.cpp
    483 #}}}
    484 #Balanced sources  {{{
    485 balanced_sources = ./analyses/BalancevelocityAnalysis.h\
    486                                                  ./analyses/BalancevelocityAnalysis.cpp\
    487                                                  ./analyses/SmoothedSurfaceSlopeXAnalysis.h\
    488                                                  ./analyses/SmoothedSurfaceSlopeXAnalysis.cpp\
    489                                                  ./analyses/SmoothedSurfaceSlopeYAnalysis.h\
    490                                                  ./analyses/SmoothedSurfaceSlopeYAnalysis.cpp\
    491                                                  ./analyses/BalancethicknessAnalysis.h\
    492                                                  ./analyses/BalancethicknessAnalysis.cpp\
    493                                                  ./analyses/BalancethicknessSoftAnalysis.h\
    494                                                  ./analyses/BalancethicknessSoftAnalysis.cpp\
    495                                                  ./cores/balancethickness_core.cpp \
    496                                                  ./cores/balancevelocity_core.cpp \
    497                                                  ./cores/dummy_core.cpp
    498 #}}}
    499 #Slope sources  {{{
    500 slope_sources =  ./analyses/L2ProjectionBaseAnalysis.h\
    501                                           ./analyses/L2ProjectionBaseAnalysis.cpp\
    502                                           ./cores/surfaceslope_core.cpp\
    503                                           ./cores/bedslope_core.cpp
    504 #}}}
    505 #MeshDeformation sources  {{{
    506 meshdeformation_sources = ./analyses/MeshdeformationAnalysis.h\
    507                                           ./analyses/MeshdeformationAnalysis.cpp\
    508                                           ./cores/meshdeformation_core.cpp
    509 #}}}
    510 #Gia sources  {{{
    511 gia_sources =  ./cores/gia_core.cpp\
    512                                         ./analyses/GiaAnalysis.h\
    513                                         ./analyses/GiaAnalysis.cpp\
    514                                         ./modules/GiaDeflectionCorex/GiaDeflectionCorex.cpp\
    515                                         ./modules/GiaDeflectionCorex/GiaDeflectionCorex.h\
    516                                         ./modules/GiaDeflectionCorex/distme.f\
    517                                         ./modules/GiaDeflectionCorex/freed.f\
    518                                         ./modules/GiaDeflectionCorex/ojrule.f\
    519                                         ./modules/GiaDeflectionCorex/pwise.f\
    520                                         ./modules/GiaDeflectionCorex/qwise.f\
    521                                         ./modules/GiaDeflectionCorex/stot.f\
    522                                         ./modules/GiaDeflectionCorex/what0.f\
    523                                         ./classes/GiaDeflectionCoreArgs.h
    524 
    525 #}}}
    526 #Damage sources  {{{
    527 damage_sources =  ./cores/damage_core.cpp\
    528                                                 ./analyses/DamageEvolutionAnalysis.h\
    529                                                 ./analyses/DamageEvolutionAnalysis.cpp\
    530                                                 ./solutionsequences/solutionsequence_damage_nonlinear.cpp
    531 
    532 #}}}
    533 #Groundingline sources  {{{
    534 groundingline_sources= ./modules/GroundinglineMigrationx/GroundinglineMigrationx.cpp\
    535                                                 ./modules/GroundinglineMigrationx/GroundinglineMigrationx.h
    536 #}}}
    537 #Rifts sources  {{{
    538 rifts_sources = ./classes/Loads/Riftfront.cpp\
    539                                     ./classes/Loads/Riftfront.h\
    540                                     ./modules/ConstraintsStatex/RiftConstraintsState.cpp
    541 #}}}
    542 #Responses sources  {{{
    543 responses_sources= ./classes/Massfluxatgate.h \
    544                                    ./classes/Misfit.h \
    545                                    ./modules/ModelProcessorx/CreateOutputDefinitions.cpp\
    546                                    ./modules/OutputDefinitionsResponsex/OutputDefinitionsResponsex.h\
    547                                    ./modules/OutputDefinitionsResponsex/OutputDefinitionsResponsex.cpp
    548 #}}}
    549 #Android sources  {{{
    550 android_sources =
    551 #}}}
    552 #3D sources  {{{
    553 threed_sources = ./classes/gauss/GaussPenta.h\
    554                                      ./classes/gauss/GaussPenta.cpp\
    555                                      ./classes/Inputs/PentaInput.h\
    556                                      ./classes/Inputs/PentaInput.cpp\
    557                                      ./classes/Elements/Penta.h\
    558                                      ./classes/Elements/Penta.cpp\
    559                                      ./classes/Elements/PentaRef.h\
    560                                      ./classes/Elements/PentaRef.cpp
    561 #}}}
    562 #Bamg sources  {{{
    563 bamg_sources =  ./bamg/bamgobjects.h\
    564                                 ./bamg/BamgGeom.h\
    565                                 ./bamg/BamgGeom.cpp\
    566                                 ./bamg/BamgMesh.h\
    567                                 ./bamg/BamgMesh.cpp\
    568                                 ./bamg/BamgOpts.h\
    569                                 ./bamg/BamgOpts.cpp\
    570                                 ./bamg/CrackedEdge.h\
    571                                 ./bamg/CrackedEdge.cpp\
    572                                 ./bamg/Curve.h\
    573                                 ./bamg/Curve.cpp\
    574                                 ./bamg/Direction.h\
    575                                 ./bamg/Direction.cpp\
    576                                 ./bamg/DoubleAndInt.h\
    577                                 ./bamg/Edge.h\
    578                                 ./bamg/Edge.cpp\
    579                                 ./bamg/GeomEdge.h\
    580                                 ./bamg/GeomEdge.cpp\
    581                                 ./bamg/GeomSubDomain.h\
    582                                 ./bamg/GeomSubDomain.cpp\
    583                                 ./bamg/GeomVertex.h\
    584                                 ./bamg/GeomVertex.cpp\
    585                                 ./bamg/Geometry.cpp\
    586                                 ./bamg/Geometry.h\
    587                                 ./bamg/ListofIntersectionTriangles.cpp\
    588                                 ./bamg/ListofIntersectionTriangles.h\
    589                                 ./bamg/EigenMetric.cpp\
    590                                 ./bamg/Metric.cpp\
    591                                 ./bamg/Metric.h\
    592                                 ./bamg/BamgQuadtree.cpp\
    593                                 ./bamg/BamgQuadtree.h\
    594                                 ./bamg/R2.h\
    595                                 ./bamg/SetOfE4.cpp\
    596                                 ./bamg/SetOfE4.h\
    597                                 ./bamg/SubDomain.h\
    598                                 ./bamg/SubDomain.cpp\
    599                                 ./bamg/AdjacentTriangle.h\
    600                                 ./bamg/AdjacentTriangle.cpp\
    601                                 ./bamg/Triangle.cpp\
    602                                 ./bamg/det.h \
    603                                 ./bamg/Triangle.h\
    604                                 ./bamg/BamgVertex.cpp\
    605                                 ./bamg/BamgVertex.h\
    606                                 ./bamg/VertexOnEdge.h\
    607                                 ./bamg/VertexOnEdge.cpp\
    608                                 ./bamg/VertexOnGeom.h\
    609                                 ./bamg/VertexOnGeom.cpp\
    610                                 ./bamg/VertexOnVertex.h\
    611                                 ./bamg/VertexOnVertex.cpp\
    612                                 ./bamg/Mesh.cpp\
    613                                 ./bamg/Mesh.h\
    614                                 ./shared/Bamg/Abs.h \
    615                                 ./shared/Bamg/BigPrimeNumber.h\
    616                                 ./shared/Bamg/BigPrimeNumber.cpp\
    617                                 ./shared/Bamg/BinaryRand.h \
    618                                 ./shared/Bamg/Exchange.h \
    619                                 ./shared/Bamg/extrema.h \
    620                                 ./shared/Bamg/HeapSort.h \
    621                                 ./shared/Bamg/OppositeAngle.h \
    622                                 ./modules/Bamgx/Bamgx.cpp\
    623                                 ./modules/Bamgx/Bamgx.h\
    624                                 ./modules/BamgConvertMeshx/BamgConvertMeshx.cpp\
    625                                 ./modules/BamgConvertMeshx/BamgConvertMeshx.h\
    626                                 ./modules/BamgTriangulatex/BamgTriangulatex.cpp\
    627                                 ./modules/BamgTriangulatex/BamgTriangulatex.h
    628 #}}}
    629 #Kriging sources  {{{
    630 kriging_sources = ./classes/kriging/Observations.h\
    631                                                 ./classes/kriging/Observations.cpp\
    632                                                 ./classes/kriging/Variogram.h \
    633                                                 ./classes/kriging/GaussianVariogram.h\
    634                                                 ./classes/kriging/GaussianVariogram.cpp\
    635                                                 ./classes/kriging/ExponentialVariogram.h\
    636                                                 ./classes/kriging/ExponentialVariogram.cpp\
    637                                                 ./classes/kriging/SphericalVariogram.h\
    638                                                 ./classes/kriging/SphericalVariogram.cpp\
    639                                                 ./classes/kriging/PowerVariogram.h\
    640                                                 ./classes/kriging/PowerVariogram.cpp\
    641                                                 ./classes/kriging/Quadtree.h\
    642                                                 ./classes/kriging/Quadtree.cpp\
    643                                                 ./classes/kriging/Observation.h\
    644                                                 ./classes/kriging/Observation.cpp\
    645                                                 ./modules/Krigingx/Krigingx.cpp\
    646                                                 ./modules/Krigingx/Krigingx.h
    647 
    648 #For parallel kriging, only difference is ./modules/Krigingx/pKrigingx.cpp with no multithreading
    649 pkriging_sources = ./classes/kriging/Observations.h\
    650                                                 ./classes/kriging/Observations.cpp\
    651                                                 ./classes/kriging/Variogram.h \
    652                                                 ./classes/kriging/GaussianVariogram.h\
    653                                                 ./classes/kriging/GaussianVariogram.cpp\
    654                                                 ./classes/kriging/ExponentialVariogram.h\
    655                                                 ./classes/kriging/ExponentialVariogram.cpp\
    656                                                 ./classes/kriging/SphericalVariogram.h\
    657                                                 ./classes/kriging/SphericalVariogram.cpp\
    658                                                 ./classes/kriging/PowerVariogram.h\
    659                                                 ./classes/kriging/PowerVariogram.cpp\
    660                                                 ./classes/kriging/Quadtree.h\
    661                                                 ./classes/kriging/Quadtree.cpp\
    662                                                 ./classes/kriging/Observation.h\
    663                                                 ./classes/kriging/Observation.cpp\
    664                                                 ./modules/Krigingx/pKrigingx.cpp\
    665                                                 ./modules/Krigingx/Krigingx.h
    666 
    667 #}}}
    668 #Kml sources  {{{
    669 kml_sources = ./modules/Exp2Kmlx/Exp2Kmlx.h\
    670                              ./modules/Exp2Kmlx/Exp2Kmlx.cpp\
    671                              ./modules/Kml2Expx/Kml2Expx.h\
    672                              ./modules/Kml2Expx/Kml2Expx.cpp\
    673                              ./modules/Shp2Kmlx/Shp2Kmlx.h\
    674                              ./modules/Shp2Kmlx/Shp2Kmlx.cpp\
    675                              ./modules/KMLFileReadx/KMLFileReadx.h\
    676                              ./modules/KMLFileReadx/KMLFileReadx.cpp\
    677                              ./modules/KMLMeshWritex/KMLMeshWritex.h\
    678                              ./modules/KMLMeshWritex/KMLMeshWritex.cpp\
    679                              ./modules/KMLOverlayx/KMLOverlayx.h\
    680                              ./modules/KMLOverlayx/KMLOverlayx.cpp\
    681                              ./kml/kmlobjects.h\
    682                              ./kml/KML_Attribute.cpp\
    683                              ./kml/KML_Attribute.h\
    684                              ./kml/KML_Comment.cpp\
    685                              ./kml/KML_Comment.h\
    686                              ./kml/KML_ColorStyle.cpp\
    687                              ./kml/KML_ColorStyle.h\
    688                              ./kml/KML_Container.cpp\
    689                              ./kml/KML_Container.h\
    690                              ./kml/KML_Document.cpp\
    691                              ./kml/KML_Document.h\
    692                              ./kml/KML_Feature.cpp\
    693                              ./kml/KML_Feature.h\
    694                              ./kml/KML_File.cpp\
    695                              ./kml/KML_File.h\
    696                              ./kml/KML_Folder.cpp\
    697                              ./kml/KML_Folder.h\
    698                              ./kml/KML_Geometry.cpp\
    699                              ./kml/KML_Geometry.h\
    700                              ./kml/KML_GroundOverlay.cpp\
    701                              ./kml/KML_GroundOverlay.h\
    702                              ./kml/KML_Icon.cpp\
    703                              ./kml/KML_Icon.h\
    704                              ./kml/KML_LatLonBox.cpp\
    705                              ./kml/KML_LatLonBox.h\
    706                              ./kml/KML_LinearRing.cpp\
    707                              ./kml/KML_LinearRing.h\
    708                              ./kml/KML_LineString.cpp\
    709                              ./kml/KML_LineString.h\
    710                              ./kml/KML_LineStyle.cpp\
    711                              ./kml/KML_LineStyle.h\
    712                              ./kml/KML_MultiGeometry.cpp\
    713                              ./kml/KML_MultiGeometry.h\
    714                              ./kml/KML_Object.cpp\
    715                              ./kml/KML_Object.h\
    716                              ./kml/KML_Overlay.cpp\
    717                              ./kml/KML_Overlay.h\
    718                              ./kml/KML_Point.cpp\
    719                              ./kml/KML_Point.h\
    720                              ./kml/KML_Placemark.cpp\
    721                              ./kml/KML_Placemark.h\
    722                              ./kml/KML_Polygon.cpp\
    723                              ./kml/KML_Polygon.h\
    724                              ./kml/KML_PolyStyle.cpp\
    725                              ./kml/KML_PolyStyle.h\
    726                              ./kml/KML_Style.cpp\
    727                              ./kml/KML_Style.h\
    728                              ./kml/KML_StyleSelector.cpp\
    729                              ./kml/KML_StyleSelector.h\
    730                              ./kml/KML_SubStyle.cpp\
    731                              ./kml/KML_SubStyle.h\
    732                              ./kml/KML_Unknown.cpp\
    733                              ./kml/KML_Unknown.h\
    734                              ./kml/KMLFileReadUtils.cpp\
    735                              ./kml/KMLFileReadUtils.h
     455endif
    736456#}}}
    737457#Petsc sources  {{{
    738 petsc_sources= ./toolkits/petsc\
     458if PETSC
     459issm_sources += ./toolkits/petsc\
    739460                                        ./toolkits/petsc/patches\
    740461                                        ./toolkits/petsc/patches/SolverEnum.h\
     
    762483                                        ./toolkits/petsc/objects/PetscSolver.h\
    763484                                        ./toolkits/petsc/petscincludes.h
    764 
     485endif
    765486#}}}
    766487#Mumps sources  {{{
    767 mumps_sources=      ./toolkits/mumps\
     488if MUMPS
     489issm_sources += ./toolkits/mumps\
    768490                                        ./toolkits/mumps/mumpsincludes.h\
    769491                                        ./toolkits/mumps/MumpsSolve.cpp
     492endif
    770493#}}}
    771494#Gsl sources  {{{
    772 gsl_sources=      ./toolkits/gsl\
     495if GSL
     496issm_sources += ./toolkits/gsl\
    773497                                        ./toolkits/gsl/gslincludes.h\
    774498                                        ./toolkits/gsl/DenseGslSolve.cpp
     499endif
     500#}}}
     501#Analyses{{{
     502if ADJOINTBALANCETHICKNESS
     503issm_sources += ./analyses/AdjointBalancethicknessAnalysis.cpp
     504endif
     505if ADJOINTHORIZ
     506issm_sources += ./analyses/AdjointHorizAnalysis.cpp
     507endif
     508if BALANCETHICKNESS
     509issm_sources += ./analyses/BalancethicknessAnalysis.cpp
     510endif
     511if BALANCETHICKNESSSOFT
     512issm_sources += ./analyses/BalancethicknessSoftAnalysis.cpp
     513endif
     514if BALANCEVELOCITY
     515issm_sources += ./analyses/BalancevelocityAnalysis.cpp
     516endif
     517if L2PROJECTIONBASE
     518issm_sources += ./analyses/L2ProjectionBaseAnalysis.cpp
     519endif
     520if DAMAGEEVOLUTION
     521issm_sources += ./analyses/DamageEvolutionAnalysis.cpp
     522endif
     523if STRESSBALANCE
     524issm_sources += ./analyses/StressbalanceAnalysis.cpp
     525endif
     526if STRESSBALANCESIA
     527issm_sources += ./analyses/StressbalanceSIAAnalysis.cpp
     528endif
     529if STRESSBALANCEVERTICAL
     530issm_sources += ./analyses/StressbalanceVerticalAnalysis.cpp
     531endif
     532if ENTHALPY
     533issm_sources += ./analyses/EnthalpyAnalysis.cpp
     534endif
     535if HYDROLOGYSHREVE
     536issm_sources += ./analyses/HydrologyShreveAnalysis.cpp
     537endif
     538if HYDROLOGYDCINEFFICIENT
     539issm_sources += ./analyses/HydrologyDCInefficientAnalysis.cpp
     540endif
     541if HYDROLOGYDCEFFICIENT
     542issm_sources += ./analyses/HydrologyDCEfficientAnalysis.cpp
     543endif
     544if MELTING
     545issm_sources += ./analyses/MeltingAnalysis.cpp
     546endif
     547if MASSTRANSPORT
     548issm_sources += ./analyses/MasstransportAnalysis.cpp
     549endif
     550if FREESURFACEBASE
     551issm_sources += ./analyses/FreeSurfaceBaseAnalysis.cpp
     552endif
     553if FREESURFACETOP
     554issm_sources += ./analyses/FreeSurfaceTopAnalysis.cpp
     555endif
     556if EXTRUDEFROMBASE
     557issm_sources += ./analyses/ExtrudeFromBaseAnalysis.cpp
     558endif
     559if EXTRUDEFROMTOP
     560issm_sources += ./analyses/ExtrudeFromTopAnalysis.cpp
     561endif
     562if THERMAL
     563issm_sources += ./analyses/ThermalAnalysis.cpp
     564endif
     565if MESHDEFORMATION
     566issm_sources += ./analyses/MeshdeformationAnalysis.cpp
     567endif
     568if LEVELSET
     569issm_sources += ./analyses/LevelsetAnalysis.cpp
     570endif
     571if EXTRAPOLATION
     572issm_sources += ./analyses/ExtrapolationAnalysis.cpp
     573endif
     574#}}}
     575#Gia sources  {{{
     576if GIA
     577issm_sources +=  ./cores/gia_core.cpp\
     578                                        ./analyses/GiaAnalysis.cpp\
     579                                        ./modules/GiaDeflectionCorex/GiaDeflectionCorex.cpp\
     580                                        ./modules/GiaDeflectionCorex/distme.f\
     581                                        ./modules/GiaDeflectionCorex/freed.f\
     582                                        ./modules/GiaDeflectionCorex/ojrule.f\
     583                                        ./modules/GiaDeflectionCorex/pwise.f\
     584                                        ./modules/GiaDeflectionCorex/qwise.f\
     585                                        ./modules/GiaDeflectionCorex/stot.f\
     586                                        ./modules/GiaDeflectionCorex/what0.f
     587endif
    775588#}}}
    776589#Mpi sources  {{{
    777 mpi_sources= ./toolkits/issm/IssmMpiDenseMat.h\
    778                                 ./toolkits/issm/IssmMpiVec.h
     590if MPI
     591issm_sources += ./toolkits/issm/IssmMpiDenseMat.h\
     592                                         ./toolkits/issm/IssmMpiVec.h
     593endif
    779594#}}}
    780595#Metis sources  {{{
    781 metis_sources= ./toolkits/metis/patches/metispatches.h\
     596if METIS
     597issm_sources += ./toolkits/metis/patches/metispatches.h\
    782598                                        ./toolkits/metis/patches/METIS_PartMeshNodalPatch.cpp
     599endif
     600#}}}
     601
     602#Wrapper sources
     603#Bamg sources  {{{
     604bamg_sources =  ./bamg/bamgobjects.h\
     605                                         ./bamg/BamgGeom.h\
     606                                         ./bamg/BamgGeom.cpp\
     607                                         ./bamg/BamgMesh.h\
     608                                         ./bamg/BamgMesh.cpp\
     609                                         ./bamg/BamgOpts.h\
     610                                         ./bamg/BamgOpts.cpp\
     611                                         ./bamg/CrackedEdge.h\
     612                                         ./bamg/CrackedEdge.cpp\
     613                                         ./bamg/Curve.h\
     614                                         ./bamg/Curve.cpp\
     615                                         ./bamg/Direction.h\
     616                                         ./bamg/Direction.cpp\
     617                                         ./bamg/DoubleAndInt.h\
     618                                         ./bamg/Edge.h\
     619                                         ./bamg/Edge.cpp\
     620                                         ./bamg/GeomEdge.h\
     621                                         ./bamg/GeomEdge.cpp\
     622                                         ./bamg/GeomSubDomain.h\
     623                                         ./bamg/GeomSubDomain.cpp\
     624                                         ./bamg/GeomVertex.h\
     625                                         ./bamg/GeomVertex.cpp\
     626                                         ./bamg/Geometry.cpp\
     627                                         ./bamg/Geometry.h\
     628                                         ./bamg/ListofIntersectionTriangles.cpp\
     629                                         ./bamg/ListofIntersectionTriangles.h\
     630                                         ./bamg/EigenMetric.cpp\
     631                                         ./bamg/Metric.cpp\
     632                                         ./bamg/Metric.h\
     633                                         ./bamg/BamgQuadtree.cpp\
     634                                         ./bamg/BamgQuadtree.h\
     635                                         ./bamg/R2.h\
     636                                         ./bamg/SetOfE4.cpp\
     637                                         ./bamg/SetOfE4.h\
     638                                         ./bamg/SubDomain.h\
     639                                         ./bamg/SubDomain.cpp\
     640                                         ./bamg/AdjacentTriangle.h\
     641                                         ./bamg/AdjacentTriangle.cpp\
     642                                         ./bamg/Triangle.cpp\
     643                                         ./bamg/det.h \
     644                                         ./bamg/Triangle.h\
     645                                         ./bamg/BamgVertex.cpp\
     646                                         ./bamg/BamgVertex.h\
     647                                         ./bamg/VertexOnEdge.h\
     648                                         ./bamg/VertexOnEdge.cpp\
     649                                         ./bamg/VertexOnGeom.h\
     650                                         ./bamg/VertexOnGeom.cpp\
     651                                         ./bamg/VertexOnVertex.h\
     652                                         ./bamg/VertexOnVertex.cpp\
     653                                         ./bamg/Mesh.cpp\
     654                                         ./bamg/Mesh.h\
     655                                         ./shared/Bamg/Abs.h \
     656                                         ./shared/Bamg/BigPrimeNumber.h\
     657                                         ./shared/Bamg/BigPrimeNumber.cpp\
     658                                         ./shared/Bamg/BinaryRand.h \
     659                                         ./shared/Bamg/Exchange.h \
     660                                         ./shared/Bamg/extrema.h \
     661                                         ./shared/Bamg/HeapSort.h \
     662                                         ./shared/Bamg/OppositeAngle.h \
     663                                         ./modules/Bamgx/Bamgx.cpp\
     664                                         ./modules/Bamgx/Bamgx.h\
     665                                         ./modules/BamgConvertMeshx/BamgConvertMeshx.cpp\
     666                                         ./modules/BamgConvertMeshx/BamgConvertMeshx.h\
     667                                         ./modules/BamgTriangulatex/BamgTriangulatex.cpp\
     668                                         ./modules/BamgTriangulatex/BamgTriangulatex.h
     669#}}}
     670#Kriging sources  {{{
     671if KRIGING
     672kriging_sources = ./classes/kriging/Observations.h\
     673                                        ./classes/kriging/Observations.cpp\
     674                                        ./classes/kriging/Variogram.h \
     675                                        ./classes/kriging/GaussianVariogram.h\
     676                                        ./classes/kriging/GaussianVariogram.cpp\
     677                                        ./classes/kriging/ExponentialVariogram.h\
     678                                        ./classes/kriging/ExponentialVariogram.cpp\
     679                                        ./classes/kriging/SphericalVariogram.h\
     680                                        ./classes/kriging/SphericalVariogram.cpp\
     681                                        ./classes/kriging/PowerVariogram.h\
     682                                        ./classes/kriging/PowerVariogram.cpp\
     683                                        ./classes/kriging/Quadtree.h\
     684                                        ./classes/kriging/Quadtree.cpp\
     685                                        ./classes/kriging/Observation.h\
     686                                        ./classes/kriging/Observation.cpp\
     687                                        ./modules/Krigingx/Krigingx.cpp\
     688                                        ./modules/Krigingx/Krigingx.h
     689issm_sources +=$(kriging_sources)
     690issm_sources +=./modules/Krigingx/pKrigingx.cpp
     691endif
     692#}}}
     693#Kml sources  {{{
     694kml_sources = ./modules/Exp2Kmlx/Exp2Kmlx.h\
     695                                  ./modules/Exp2Kmlx/Exp2Kmlx.cpp\
     696                                  ./modules/Kml2Expx/Kml2Expx.h\
     697                                  ./modules/Kml2Expx/Kml2Expx.cpp\
     698                                  ./modules/Shp2Kmlx/Shp2Kmlx.h\
     699                                  ./modules/Shp2Kmlx/Shp2Kmlx.cpp\
     700                                  ./modules/KMLFileReadx/KMLFileReadx.h\
     701                                  ./modules/KMLFileReadx/KMLFileReadx.cpp\
     702                                  ./modules/KMLMeshWritex/KMLMeshWritex.h\
     703                                  ./modules/KMLMeshWritex/KMLMeshWritex.cpp\
     704                                  ./modules/KMLOverlayx/KMLOverlayx.h\
     705                                  ./modules/KMLOverlayx/KMLOverlayx.cpp\
     706                                  ./kml/kmlobjects.h\
     707                                  ./kml/KML_Attribute.cpp\
     708                                  ./kml/KML_Attribute.h\
     709                                  ./kml/KML_Comment.cpp\
     710                                  ./kml/KML_Comment.h\
     711                                  ./kml/KML_ColorStyle.cpp\
     712                                  ./kml/KML_ColorStyle.h\
     713                                  ./kml/KML_Container.cpp\
     714                                  ./kml/KML_Container.h\
     715                                  ./kml/KML_Document.cpp\
     716                                  ./kml/KML_Document.h\
     717                                  ./kml/KML_Feature.cpp\
     718                                  ./kml/KML_Feature.h\
     719                                  ./kml/KML_File.cpp\
     720                                  ./kml/KML_File.h\
     721                                  ./kml/KML_Folder.cpp\
     722                                  ./kml/KML_Folder.h\
     723                                  ./kml/KML_Geometry.cpp\
     724                                  ./kml/KML_Geometry.h\
     725                                  ./kml/KML_GroundOverlay.cpp\
     726                                  ./kml/KML_GroundOverlay.h\
     727                                  ./kml/KML_Icon.cpp\
     728                                  ./kml/KML_Icon.h\
     729                                  ./kml/KML_LatLonBox.cpp\
     730                                  ./kml/KML_LatLonBox.h\
     731                                  ./kml/KML_LinearRing.cpp\
     732                                  ./kml/KML_LinearRing.h\
     733                                  ./kml/KML_LineString.cpp\
     734                                  ./kml/KML_LineString.h\
     735                                  ./kml/KML_LineStyle.cpp\
     736                                  ./kml/KML_LineStyle.h\
     737                                  ./kml/KML_MultiGeometry.cpp\
     738                                  ./kml/KML_MultiGeometry.h\
     739                                  ./kml/KML_Object.cpp\
     740                                  ./kml/KML_Object.h\
     741                                  ./kml/KML_Overlay.cpp\
     742                                  ./kml/KML_Overlay.h\
     743                                  ./kml/KML_Point.cpp\
     744                                  ./kml/KML_Point.h\
     745                                  ./kml/KML_Placemark.cpp\
     746                                  ./kml/KML_Placemark.h\
     747                                  ./kml/KML_Polygon.cpp\
     748                                  ./kml/KML_Polygon.h\
     749                                  ./kml/KML_PolyStyle.cpp\
     750                                  ./kml/KML_PolyStyle.h\
     751                                  ./kml/KML_Style.cpp\
     752                                  ./kml/KML_Style.h\
     753                                  ./kml/KML_StyleSelector.cpp\
     754                                  ./kml/KML_StyleSelector.h\
     755                                  ./kml/KML_SubStyle.cpp\
     756                                  ./kml/KML_SubStyle.h\
     757                                  ./kml/KML_Unknown.cpp\
     758                                  ./kml/KML_Unknown.h\
     759                                  ./kml/KMLFileReadUtils.cpp\
     760                                  ./kml/KMLFileReadUtils.h
    783761#}}}
    784762#Modules sources{{{
     
    847825endif
    848826#}}}
    849 
    850 #{{{ Conditional build-up of sources
    851 #ISSM sources are a combination of core sources and sources related to specific capabilities (which can
    852 #be activated by autotools conditionals
    853 
    854 #First the core
    855 issm_sources  =  $(core_sources)
    856 
    857 #Now the optional source
    858 if DAKOTA
    859 issm_sources  +=  $(dakota_sources)
    860 endif
    861 
    862 if PETSC
    863 issm_sources  +=  $(petsc_sources)
    864 endif
    865 
    866 if MUMPS
    867 issm_sources  +=  $(mumps_sources)
    868 endif
    869 
    870 if GSL
    871 issm_sources  +=  $(gsl_sources)
    872 endif
    873 
    874 if TRANSIENT
    875 issm_sources  +=  $(transient_sources)
    876 endif
    877 
    878 if STEADYSTATE
    879 issm_sources  +=  $(steadystate_sources)
    880 endif
    881 
    882 if MASSTRANSPORT
    883 issm_sources  +=  $(masstransport_sources)
    884 endif
    885 
    886 if THERMAL
    887 issm_sources  +=  $(thermal_sources)
    888 endif
    889 
    890 if GIA
    891 issm_sources  +=  $(gia_sources)
    892 endif
    893 
    894 if CONTROL
    895 issm_sources  +=  $(control_sources)
    896 endif
    897 
    898 if HYDROLOGY
    899 issm_sources  +=  $(hydrology_sources)
    900 endif
    901 
    902 if STRESSBALANCE
    903 issm_sources  +=  $(stressbalance_sources)
    904 endif
    905 
    906 if BALANCED
    907 issm_sources  +=  $(balanced_sources)
    908 endif
    909 
    910 if SLOPE
    911 issm_sources  +=  $(slope_sources)
    912 endif
    913 
    914 if MESHDEFORMATION
    915 issm_sources  +=  $(meshdeformation_sources)
    916 endif
    917 
    918 if GROUNDINGLINE
    919 issm_sources +=  $(groundingline_sources)
    920 endif
    921 
    922 if RIFTS
    923 issm_sources +=  $(rifts_sources)
    924 endif
    925 
    926 if RESPONSES
    927 issm_sources +=  $(responses_sources)
    928 endif
    929 
    930 if ANDROID
    931 issm_sources +=  $(android_sources)
    932 endif
    933 
    934 if THREED
    935 issm_sources +=  $(threed_sources)
    936 endif
    937 
    938 if MPI
    939 issm_sources +=  $(mpi_sources)
    940 endif
    941 
    942 if METIS
    943 issm_sources +=  $(metis_sources)
    944 endif
    945 
    946 if KRIGING
    947 issm_sources +=  $(pkriging_sources)
    948 endif
    949 
    950 if DAMAGE
    951 issm_sources +=  $(damage_sources)
    952 endif
    953827#}}}
    954828#Library flags and sources {{{
     
    971845libISSMModules_a_SOURCES = $(modules_sources)
    972846libISSMModules_a_SOURCES += $(bamg_sources)
    973 if KRIGING
    974 libISSMModules_a_SOURCES += $(kriging_sources)
    975 endif
    976847if KML
    977848libISSMModules_a_SOURCES += $(kml_sources)
     
    1026897endif
    1027898#}}}
    1028 #Automatic differentiation: append this fold to the end of the src/c/Makefile.am to get this Makefile.am {{{
     899#Automatic differentiation (must be done at the end) {{{
    1029900if ADIC2
    1030901lib_LIBRARIES += libAD.a libISSMRose.a
     
    1034905libAD_a_SOURCES =
    1035906libAD_a_CFLAGS = -fPIC -D_C_ $(COPTFLAGS)
    1036 
    1037907
    1038908#test rose preprocessing
     
    1042912libISSMRose_a_CXXFLAGS= -fPIC -D_C_ $(CXXOPTFLAGS)
    1043913
    1044 
    1045 
    1046914#Automatic differentiation rules:
    1047915%.ad.c: %.c
    1048916        adic2 -mforward  $< --nary
    1049 
    1050 
    1051917
    1052918#Executable
  • issm/trunk-jpl/src/c/analyses/EnumToAnalysis.cpp

    r17159 r17236  
    1414
    1515        switch(analysis_enum){
     16                #ifdef _HAVE_ADJOINTBALANCETHICKNESS_
    1617                case AdjointBalancethicknessAnalysisEnum : return new AdjointBalancethicknessAnalysis();
     18                #endif
     19                #ifdef _HAVE_ADJOINTHORIZ_
    1720                case AdjointHorizAnalysisEnum : return new AdjointHorizAnalysis();
     21                #endif
     22                #ifdef _HAVE_BALANCETHICKNESS_
    1823                case BalancethicknessAnalysisEnum : return new BalancethicknessAnalysis();
     24                #endif
     25                #ifdef _HAVE_BALANCETHICKNESSSOFT_
    1926                case BalancethicknessSoftAnalysisEnum : return new BalancethicknessSoftAnalysis();
     27                #endif
     28                #ifdef _HAVE_BALANCEVELOCITY_
    2029                case BalancevelocityAnalysisEnum : return new BalancevelocityAnalysis();
     30                #endif
     31                #ifdef _HAVE_L2PROJECTIONEPL_
     32                case L2ProjectionEPLAnalysisEnum : return new L2ProjectionEPLAnalysis();
     33                #endif
     34                #ifdef _HAVE_L2PROJECTIONBASE_
    2135                case L2ProjectionBaseAnalysisEnum : return new L2ProjectionBaseAnalysis();
    22                 case L2ProjectionEPLAnalysisEnum : return new L2ProjectionEPLAnalysis();
     36                #endif
     37                #ifdef _HAVE_DAMAGEEVOLUTION_
    2338                case DamageEvolutionAnalysisEnum : return new DamageEvolutionAnalysis();
     39                #endif
     40                #ifdef _HAVE_STRESSBALANCE_
    2441                case StressbalanceAnalysisEnum : return new StressbalanceAnalysis();
     42                #endif
     43                #ifdef _HAVE_STRESSBALANCESIA_
    2544                case StressbalanceSIAAnalysisEnum : return new StressbalanceSIAAnalysis();
     45                #endif
     46                #ifdef _HAVE_STRESSBALANCEVERTICAL_
    2647                case StressbalanceVerticalAnalysisEnum : return new StressbalanceVerticalAnalysis();
     48                #endif
     49                #ifdef _HAVE_ENTHALPY_
    2750                case EnthalpyAnalysisEnum : return new EnthalpyAnalysis();
     51                #endif
     52                #ifdef _HAVE_HYDROLOGYSHREVE_
    2853                case HydrologyShreveAnalysisEnum : return new HydrologyShreveAnalysis();
     54                #endif
     55                #ifdef _HAVE_HYDROLOGYDCINEFFICIENT_
    2956                case HydrologyDCInefficientAnalysisEnum : return new HydrologyDCInefficientAnalysis();
     57                #endif
     58                #ifdef _HAVE_HYDROLOGYDCEFFICIENT_
    3059                case HydrologyDCEfficientAnalysisEnum : return new HydrologyDCEfficientAnalysis();
     60                #endif
     61                #ifdef _HAVE_MELTING_
    3162                case MeltingAnalysisEnum : return new MeltingAnalysis();
     63                #endif
     64                #ifdef _HAVE_MASSTRANSPORT_
    3265                case MasstransportAnalysisEnum : return new MasstransportAnalysis();
     66                #endif
     67                #ifdef _HAVE_FREESURFACEBASE_
    3368                case FreeSurfaceBaseAnalysisEnum : return new FreeSurfaceBaseAnalysis();
     69                #endif
     70                #ifdef _HAVE_FREESURFACETOP_
    3471                case FreeSurfaceTopAnalysisEnum : return new FreeSurfaceTopAnalysis();
     72                #endif
     73                #ifdef _HAVE_EXTRUDEFROMBASE_
    3574                case ExtrudeFromBaseAnalysisEnum : return new ExtrudeFromBaseAnalysis();
     75                #endif
     76                #ifdef _HAVE_EXTRUDEFROMTOP_
    3677                case ExtrudeFromTopAnalysisEnum : return new ExtrudeFromTopAnalysis();
     78                #endif
     79                #ifdef _HAVE_SMOOTHEDSURFACESLOPEX_
     80                case SmoothedSurfaceSlopeXAnalysisEnum : return new SmoothedSurfaceSlopeXAnalysis();
     81                #endif
     82                #ifdef _HAVE_SMOOTHEDSURFACESLOPEY_
     83                case SmoothedSurfaceSlopeYAnalysisEnum : return new SmoothedSurfaceSlopeYAnalysis();
     84                #endif
     85                #ifdef _HAVE_THERMAL_
    3786                case ThermalAnalysisEnum : return new ThermalAnalysis();
    38                 case LevelsetAnalysisEnum : return new LevelsetAnalysis();
    39                 case ExtrapolationAnalysisEnum : return new ExtrapolationAnalysis();
     87                #endif
    4088                #ifdef _HAVE_GIA_
    4189                case GiaAnalysisEnum : return new GiaAnalysis();
     
    4492                case MeshdeformationAnalysisEnum : return new MeshdeformationAnalysis();
    4593                #endif
    46                 case SmoothedSurfaceSlopeXAnalysisEnum: return new SmoothedSurfaceSlopeXAnalysis();
    47                 case SmoothedSurfaceSlopeYAnalysisEnum: return new SmoothedSurfaceSlopeYAnalysis();
     94                #ifdef _HAVE_LEVELSET_
     95                case LevelsetAnalysisEnum : return new LevelsetAnalysis();
     96                #endif
     97                #ifdef _HAVE_EXTRAPOLATION_
     98                case ExtrapolationAnalysisEnum : return new ExtrapolationAnalysis();
     99                #endif
    48100                default : _error_("enum provided not supported ("<<EnumToStringx(analysis_enum)<<")");
    49101        }
  • issm/trunk-jpl/src/c/classes/Elements/Element.h

    r17230 r17236  
    224224                virtual void   GetNormalFromLSF(IssmDouble *pnormal)=0;
    225225
    226                 #ifdef _HAVE_RESPONSES_
    227226                virtual void   AverageOntoPartition(Vector<IssmDouble>* partition_contributions,Vector<IssmDouble>* partition_areas,IssmDouble* vertex_response,IssmDouble* qmu_part)=0;
    228227                virtual void   MinVel(IssmDouble* pminvel)=0;
     
    247246                virtual int    VertexConnectivity(int vertexindex)=0;
    248247                virtual void   VerticalSegmentIndices(int** pindices,int* pnumseg)=0;
    249                 #endif
    250248
    251249                #ifdef _HAVE_GIA_
     
    253251                #endif
    254252
    255                 #ifdef _HAVE_CONTROL_
    256253                virtual void   Gradj(Vector<IssmDouble>* gradient,int control_type,int control_index)=0;
    257254                virtual IssmDouble ThicknessAbsMisfit(void)=0;
     
    274271                virtual void   SetControlInputsFromVector(IssmDouble* vector,int control_enum,int control_index)=0;
    275272                virtual void   InputControlUpdate(IssmDouble scalar,bool save_parameter)=0;
    276                 #endif
    277273
    278274                virtual void UpdateConstraintsExtrudeFromBase(void)=0;
    279275                virtual void UpdateConstraintsExtrudeFromTop(void)=0;
    280276
    281                 #ifdef _HAVE_HYDROLOGY_
    282277                virtual void GetHydrologyDCInefficientHmax(IssmDouble* ph_max,int index)=0;
    283278                virtual void GetHydrologyDCInefficientHmax(IssmDouble* ph_max, Node* innode)=0;
     
    286281                virtual void HydrologyEPLGetActive(Vector<IssmDouble>* active)=0;
    287282                virtual void ComputeEPLThickness(void)=0;
    288                 #endif
    289 
    290                 #ifdef _HAVE_GROUNDINGLINE_
     283
    291284                virtual void   MigrateGroundingLine(IssmDouble* sheet_ungrounding)=0;
    292285                virtual void   PotentialUngrounding(Vector<IssmDouble>* potential_sheet_ungrounding)=0;
    293286                virtual int    UpdatePotentialUngrounding(IssmDouble* potential_sheet_ungrounding,Vector<IssmDouble>* vec_nodes_on_iceshelf,IssmDouble* nodes_on_iceshelf)=0;
    294                 #endif
    295287
    296288};
  • issm/trunk-jpl/src/c/classes/Elements/Penta.cpp

    r17232 r17236  
    17391739
    17401740        /*Control Inputs*/
    1741         #ifdef _HAVE_CONTROL_
    17421741        if (control_analysis && iomodel->Data(InversionControlParametersEnum)){
    17431742                for(i=0;i<num_control_type;i++){
     
    17831782                }
    17841783        }
    1785         #endif
    17861784
    17871785        /*Need to know the type of approximation for this element*/
     
    31773175/*}}}*/
    31783176
    3179 #ifdef _HAVE_RESPONSES_
    31803177/*FUNCTION Penta::AverageOntoPartition {{{*/
    31813178void  Penta::AverageOntoPartition(Vector<IssmDouble>* partition_contributions,Vector<IssmDouble>* partition_areas,IssmDouble* vertex_response,IssmDouble* qmu_part){
     
    34563453}
    34573454/*}}}*/
    3458 #endif
    34593455
    34603456#ifdef _HAVE_GIA_
     
    34663462#endif
    34673463
    3468 #ifdef _HAVE_CONTROL_
    34693464/*FUNCTION Penta::ControlInputGetGradient{{{*/
    34703465void Penta::ControlInputGetGradient(Vector<IssmDouble>* gradient,int enum_type,int control_index){
     
    42634258}
    42644259/*}}}*/
    4265 #endif
    42664260
    42674261#ifdef _HAVE_DAKOTA_
     
    44084402#endif
    44094403
    4410 #ifdef _HAVE_HYDROLOGY_
    44114404/*FUNCTION Penta::CreateEPLDomainMassMatrix {{{*/
    44124405ElementMatrix* Penta::CreateEPLDomainMassMatrix(void){
     
    45724565}
    45734566/*}}}*/
    4574 #endif
    4575 
    4576 #ifdef _HAVE_GROUNDINGLINE_
     4567
    45774568/*FUNCTION Penta::MigrateGroundingLine{{{*/
    45784569void  Penta::MigrateGroundingLine(IssmDouble* phi_ungrounding){
     
    47284719}
    47294720/*}}}*/
    4730 #endif
  • issm/trunk-jpl/src/c/classes/Elements/Penta.h

    r17230 r17236  
    134134                void   ViscousHeating(IssmDouble* pphi,IssmDouble* xyz_list,Gauss* gauss,Input* vx_input,Input* vy_input,Input* vz_input);
    135135
    136                  #ifdef _HAVE_RESPONSES_
    137136                void   AverageOntoPartition(Vector<IssmDouble>* partition_contributions,Vector<IssmDouble>* partition_areas,IssmDouble* vertex_response,IssmDouble* qmu_part);
    138137                IssmDouble IceVolume(void);
     
    153152                void   MaxVy(IssmDouble* pmaxvy);
    154153                void   MaxVz(IssmDouble* pmaxvz);
    155                 #endif
    156154
    157155                #ifdef _HAVE_GIA_
     
    159157                #endif
    160158
    161                 #ifdef _HAVE_CONTROL_
    162159                IssmDouble DragCoefficientAbsGradient(void);
    163160                void   GradientIndexing(int* indexing,int control_index);
     
    189186                IssmDouble Misfit(int modelenum,int observationenum,int weightsenum){_error_("not implemented yet");};
    190187                IssmDouble MisfitArea(int weightsenum){_error_("not implemented yet");};
    191                 #endif
    192 
    193                 #ifdef _HAVE_GROUNDINGLINE_
     188
    194189                void   MigrateGroundingLine(IssmDouble* sheet_ungrounding);
    195190                void   PotentialUngrounding(Vector<IssmDouble>* potential_sheet_ungrounding);
    196191                int    UpdatePotentialUngrounding(IssmDouble* potential_sheet_ungrounding,Vector<IssmDouble>* vec_nodes_on_iceshelf,IssmDouble* nodes_on_iceshelf);
    197                 #endif
    198 
    199192                /*}}}*/
    200193                /*Penta specific routines:{{{*/
     
    262255                IssmDouble     StabilizationParameter(IssmDouble u, IssmDouble v, IssmDouble w, IssmDouble diameter, IssmDouble kappa);
    263256
    264                 #ifdef _HAVE_HYDROLOGY_
    265257                ElementMatrix* CreateEPLDomainMassMatrix(void);
    266258                void           GetHydrologyDCInefficientHmax(IssmDouble* ph_max, Node* innode);
     
    270262                void           HydrologyEPLGetMask(Vector<IssmDouble>* vec_mask);
    271263                void           ComputeEPLThickness(void);
    272                 #endif
    273264
    274265                void           UpdateConstraintsExtrudeFromBase(void);
  • issm/trunk-jpl/src/c/classes/Elements/Seg.h

    r17230 r17236  
    163163                void        GetNormalFromLSF(IssmDouble *pnormal){_error_("not implemented yet");};
    164164
    165                 #ifdef _HAVE_HYDROLOGY_
    166165                void    GetHydrologyDCInefficientHmax(IssmDouble* ph_max, Node* innode){_error_("not implemented yet");};
    167166                void    GetHydrologyDCInefficientHmax(IssmDouble* ph_max,int index){_error_("not implemented yet");};
     
    170169                void    HydrologyEPLGetMask(Vector<IssmDouble>* vec_mask){_error_("not implemented yet");};
    171170                void    ComputeEPLThickness(void){_error_("not implemented yet");};
    172                 #endif
    173171                void        GetSolutionFromInputsOneDof(Vector<IssmDouble>* solution,int enum_type){_error_("not implemented yet");};
    174172                void        GetVectorFromInputs(Vector<IssmDouble>* vector, int name_enum){_error_("not implemented yet");};
     
    190188                void UpdateConstraintsExtrudeFromTop(){_error_("not implemented");};
    191189
    192 #ifdef _HAVE_RESPONSES_
    193190                void       AverageOntoPartition(Vector<IssmDouble>* partition_contributions,Vector<IssmDouble>* partition_areas,IssmDouble* vertex_response,IssmDouble* qmu_part){_error_("not implemented yet");};
    194191                IssmDouble IceVolume(void){_error_("not implemented yet");};
     
    211208                IssmDouble Misfit(int modelenum,int observationenum,int weightsenum){_error_("not implemented yet");};
    212209                IssmDouble MisfitArea(int weightsenum){_error_("not implemented yet");};
    213 #endif
    214210
    215211#ifdef _HAVE_GIA_
     
    217213#endif
    218214
    219 #ifdef _HAVE_CONTROL_
    220215                IssmDouble DragCoefficientAbsGradient(void){_error_("not implemented yet");};
    221216                void       GradientIndexing(int* indexing,int control_index){_error_("not implemented yet");};
     
    250245                IssmDouble SurfaceAverageVelMisfit(void){_error_("not implemented yet");};
    251246                void       InputControlUpdate(IssmDouble scalar,bool save_parameter){_error_("not implemented yet");};
    252 #endif
    253 
    254 #ifdef _HAVE_GROUNDINGLINE_
     247
    255248                void   PotentialUngrounding(Vector<IssmDouble>* potential_sheet_ungrounding){_error_("not implemented yet");};
    256249                void   MigrateGroundingLine(IssmDouble* sheet_ungrounding){_error_("not implemented yet");};
    257250                int    UpdatePotentialUngrounding(IssmDouble* vertices_potentially_ungrounding,Vector<IssmDouble>* vec_nodes_on_iceshelf,IssmDouble* nodes_on_iceshelf){_error_("not implemented yet");};
    258 #endif
    259251                /*}}}*/
    260252};
  • issm/trunk-jpl/src/c/classes/Elements/Tria.cpp

    r17232 r17236  
    925925
    926926        /* Intermediaries */
    927         const int dim=2;
    928         int i,counter;
     927        int         i;
     928        const int   dim=2;
    929929        IssmDouble* xyz_list = NULL;
    930930        IssmDouble  dlevelset[dim], norm_dlevelset;
     
    935935        this->GetVerticesCoordinates(&xyz_list);
    936936       
    937         counter=0;
     937        IssmDouble counter=0.;
    938938        Gauss* gauss = this->NewGauss(2);
    939939        for(int ig=gauss->begin();ig<gauss->end();ig++){
     
    946946                counter++;
    947947        }
    948         _assert_(counter>0);
    949         for(i=0;i<dim;i++) normal[i]/counter;
     948        _assert_(counter>0.);
     949        for(i=0;i<dim;i++) normal[i] = normal[i]/counter;
    950950       
    951951        pnormal=&normal[0];
     
    13561356
    13571357        /*Control Inputs*/
    1358         #ifdef _HAVE_CONTROL_
    13591358        if (control_analysis && iomodel->Data(InversionControlParametersEnum)){
    13601359                for(i=0;i<num_control_type;i++){
     
    14081407                }
    14091408        }
    1410         #endif
    14111409
    14121410        /*DatasetInputs*/
     
    23842382
    23852383        /*Get for Vx and Vy, the max of abs value: */
    2386         #ifdef _HAVE_RESPONSES_
    23872384        this->MaxAbsVx(&maxabsvx);
    23882385        this->MaxAbsVy(&maxabsvy);
    2389         #else
    2390                 _error_("ISSM was not compiled with responses compiled in, exiting!");
    2391         #endif
    23922386
    23932387        /* Get node coordinates and dof list: */
     
    25952589/*}}}*/
    25962590
    2597 #ifdef _HAVE_RESPONSES_
    25982591/*FUNCTION Tria::AverageOntoPartition {{{*/
    25992592void  Tria::AverageOntoPartition(Vector<IssmDouble>* partition_contributions,Vector<IssmDouble>* partition_areas,IssmDouble* vertex_response,IssmDouble* qmu_part){
     
    30723065}
    30733066/*}}}*/
    3074 #endif
    30753067
    30763068#ifdef _HAVE_GIA_
     
    32033195#endif
    32043196
    3205 #ifdef _HAVE_CONTROL_
    32063197/*FUNCTION Tria::BalancethicknessMisfit{{{*/
    32073198IssmDouble Tria::BalancethicknessMisfit(void){
     
    46004591}
    46014592/*}}}*/
    4602 #endif
    4603 
    4604 #ifdef _HAVE_HYDROLOGY_
     4593
    46054594/*FUNCTION Tria::CreateHydrologyWaterVelocityInput {{{*/
    46064595void Tria::CreateHydrologyWaterVelocityInput(void){
     
    50505039}
    50515040/*}}}*/
    5052 #endif
    50535041
    50545042#ifdef _HAVE_DAKOTA_
     
    51835171#endif
    51845172
    5185 #ifdef _HAVE_GROUNDINGLINE_
    51865173/*FUNCTION Tria::MigrateGroundingLine{{{*/
    51875174void  Tria::MigrateGroundingLine(IssmDouble* phi_ungrounding){
     
    53325319}
    53335320/*}}}*/
    5334 #endif
  • issm/trunk-jpl/src/c/classes/Elements/Tria.h

    r17230 r17236  
    135135                bool        IsZeroLevelset(int levelset_enum);
    136136
    137                 #ifdef _HAVE_RESPONSES_
    138137                void       AverageOntoPartition(Vector<IssmDouble>* partition_contributions,Vector<IssmDouble>* partition_areas,IssmDouble* vertex_response,IssmDouble* qmu_part);
    139138                IssmDouble IceVolume(void);
     
    156155                IssmDouble Misfit(int modelenum,int observationenum,int weightsenum);
    157156                IssmDouble MisfitArea(int weightsenum);
    158                 #endif
    159157
    160158                #ifdef _HAVE_GIA_
     
    162160                #endif
    163161
    164                 #ifdef _HAVE_CONTROL_
    165162                IssmDouble DragCoefficientAbsGradient(void);
    166163                void       GradientIndexing(int* indexing,int control_index);
     
    195192                IssmDouble SurfaceAverageVelMisfit(void);
    196193                void       InputControlUpdate(IssmDouble scalar,bool save_parameter);
    197                 #endif
    198 
    199                 #ifdef _HAVE_GROUNDINGLINE_
     194
    200195                void   PotentialUngrounding(Vector<IssmDouble>* potential_sheet_ungrounding);
    201196                void   MigrateGroundingLine(IssmDouble* sheet_ungrounding);
    202197                int    UpdatePotentialUngrounding(IssmDouble* vertices_potentially_ungrounding,Vector<IssmDouble>* vec_nodes_on_iceshelf,IssmDouble* nodes_on_iceshelf);
    203                 #endif
    204198
    205199                /*}}}*/
     
    272266                void UpdateConstraintsExtrudeFromTop(void);
    273267
    274                 #ifdef _HAVE_HYDROLOGY_
    275268                ElementMatrix* CreateEPLDomainMassMatrix(void);
    276269                void           CreateHydrologyWaterVelocityInput(void);
     
    281274                void           HydrologyEPLGetMask(Vector<IssmDouble>* vec_mask);
    282275                void           ComputeEPLThickness(void);
    283                 #endif
    284276                /*}}}*/
    285277
  • issm/trunk-jpl/src/c/classes/FemModel.cpp

    r17230 r17236  
    428428        switch (response_descriptor_enum){
    429429
    430                 #ifdef _HAVE_RESPONSES_
    431430                case IceVolumeEnum:                this->IceVolumex(responses); break;
    432431                case IceVolumeAboveFloatationEnum: this->IceVolumeAboveFloatationx(responses); break;
     
    443442                case MaxAbsVzEnum:                 this->MaxAbsVzx(                responses); break;
    444443                case MassFluxEnum:                 this->MassFluxx(         responses); break;
    445                 #ifdef _HAVE_CONTROL_
    446444                case SurfaceAbsVelMisfitEnum:      SurfaceAbsVelMisfitx(responses, elements,nodes, vertices, loads, materials,parameters); break;
    447445                case SurfaceRelVelMisfitEnum:      SurfaceRelVelMisfitx(responses, elements,nodes, vertices, loads, materials,parameters); break;
     
    456454                case DragCoefficientAbsGradientEnum:DragCoefficientAbsGradientx(responses, elements,nodes, vertices, loads, materials, parameters); break;
    457455                case BalancethicknessMisfitEnum:   BalancethicknessMisfitx(responses); break;
    458                 #endif
    459456                case TotalSmbEnum:                                        this->TotalSmbx(responses); break;
    460457                case MaterialsRheologyBbarEnum:    this->ElementResponsex(responses,MaterialsRheologyBbarEnum); break;
    461458                case VelEnum:                      this->ElementResponsex(responses,VelEnum); break;
    462459                case FrictionCoefficientEnum:      NodalValuex(responses, FrictionCoefficientEnum,elements,nodes, vertices, loads, materials, parameters); break;
    463                 default: _error_("response descriptor \"" << EnumToStringx(response_descriptor_enum) << "\" not supported yet!"); break;
    464                 #else
    465                 default: _error_("ISSM was not compiled with responses capabilities, exiting!");
    466                 #endif
    467460        }
    468461
     
    505498                        switch(output_enum){
    506499
    507                                 #ifdef _HAVE_RESPONSES_
    508500                                /*Scalar output*/
    509501                                case IceVolumeEnum:                this->IceVolumex(&double_result);                break;
     
    524516
    525517                           /*Scalar control output*/
    526                                 #ifdef _HAVE_CONTROL_
    527518                                case SurfaceAbsVelMisfitEnum:       SurfaceAbsVelMisfitx(&double_result,elements,nodes,vertices,loads,materials,parameters);        break;
    528519                                case SurfaceRelVelMisfitEnum:       SurfaceRelVelMisfitx(&double_result,elements,nodes,vertices,loads,materials,parameters);        break;
     
    537528                                case DragCoefficientAbsGradientEnum:DragCoefficientAbsGradientx(&double_result,elements,nodes,vertices,loads,materials,parameters); break;
    538529                                case BalancethicknessMisfitEnum:    BalancethicknessMisfitx(&double_result);                                                        break;
    539                                 #endif
    540530
    541531                           /*Vector */
     
    594584                                        isvec = true;
    595585                                        break;
    596 
    597                                 #else
    598                                 default: _error_("ISSM was not compiled with responses capabilities, exiting!");
    599                                 #endif
    600586                        }
    601587                }
     
    713699}
    714700/*}}}*/
    715 #ifdef _HAVE_RESPONSES_
    716701void FemModel::MassFluxx(IssmDouble* pmass_flux){/*{{{*/
    717702
     
    11241109
    11251110}/*}}}*/
    1126 #endif
    1127 #ifdef _HAVE_CONTROL_
    11281111void FemModel::BalancethicknessMisfitx(IssmDouble* presponse){/*{{{*/
    11291112
     
    12481231}
    12491232/*}}}*/
    1250 #endif
    12511233#ifdef  _HAVE_DAKOTA_
    12521234void FemModel::DakotaResponsesx(double* d_responses,char** responses_descriptors,int numresponsedescriptors,int d_numresponses){/*{{{*/
     
    13611343/*}}}*/
    13621344#endif
    1363 #ifdef _HAVE_HYDROLOGY_
    13641345void FemModel::HydrologyEPLupdateDomainx(void){ /*{{{*/
    13651346
     
    14431424}
    14441425/*}}}*/
    1445 
    14461426void FemModel::HydrologyEPLThicknessx(void){ /*{{{*/
    14471427
     
    14521432}
    14531433/*}}}*/
    1454 
    14551434void FemModel::UpdateConstraintsL2ProjectionEPLx(void){ /*{{{*/
    14561435
     
    14951474}
    14961475/*}}}*/
    1497 #endif
  • issm/trunk-jpl/src/c/classes/FemModel.h

    r17064 r17236  
    5959
    6060                /*Modules*/
    61                 #ifdef _HAVE_RESPONSES_
    6261                void MassFluxx(IssmDouble* presponse);
    6362                void MaxAbsVxx(IssmDouble* presponse);
     
    7776                void ElementResponsex(IssmDouble* presponse,int response_enum);
    7877                void BalancethicknessMisfitx(IssmDouble* pV);
    79                 #endif
    8078                #ifdef  _HAVE_DAKOTA_
    8179                void DakotaResponsesx(double* d_responses,char** responses_descriptors,int numresponsedescriptors,int d_numresponses);
     
    8684                void Responsex(IssmDouble* presponse,int response_descriptor_enum);
    8785                void Responsex(IssmDouble* presponse,const char* response_descriptor);
    88                 #ifdef _HAVE_CONTROL_
    8986                void OutputControlsx(Results **presults);
    9087                void CostFunctionx( IssmDouble* pJ);
    9188                void ThicknessAbsGradientx( IssmDouble* pJ);
    92                 #endif
    9389                #ifdef _HAVE_GIA_
    9490                void Deflection(Vector<IssmDouble>* wg,Vector<IssmDouble>* dwgdt, IssmDouble* x, IssmDouble* y);
     
    9995                void UpdateConstraintsExtrudeFromBasex();
    10096                void UpdateConstraintsExtrudeFromTopx();
    101                 #ifdef _HAVE_HYDROLOGY_
    10297                void HydrologyTransferx(void);
    10398                void HydrologyEPLupdateDomainx(void);
    10499                void HydrologyEPLThicknessx(void);
    105100                void UpdateConstraintsL2ProjectionEPLx(void);
    106                 #endif
    107101};
    108102
  • issm/trunk-jpl/src/c/classes/Loads/Pengrid.cpp

    r16788 r17236  
    230230
    231231        switch(analysis_type){
    232                 #ifdef _HAVE_THERMAL_
    233232                case ThermalAnalysisEnum:
    234233                        Ke=PenaltyCreateKMatrixThermal(kmax);
     
    237236                        Ke=PenaltyCreateKMatrixMelting(kmax);
    238237                        break;
    239                 #endif
    240                 #ifdef _HAVE_HYDROLOGY_
    241238                case HydrologyDCInefficientAnalysisEnum:
    242239                        Ke=PenaltyCreateKMatrixHydrologyDCInefficient(kmax);
    243240                        break;
    244                 #endif
    245                 #ifdef _HAVE_DAMAGE_
    246241                case DamageEvolutionAnalysisEnum:
    247242                        Ke=PenaltyCreateKMatrixDamageEvolution(kmax);
    248243                        break;
    249                 #endif
    250244                default:
    251245                        _error_("analysis " << analysis_type << " (" << EnumToStringx(analysis_type) << ") not supported yet");
     
    268262
    269263        switch(analysis_type){
    270                 #ifdef _HAVE_THERMAL_
    271264                case ThermalAnalysisEnum:
    272265                        pe=PenaltyCreatePVectorThermal(kmax);
     
    277270                case StressbalanceAnalysisEnum: case AdjointHorizAnalysisEnum:
    278271                        break;
    279                 #endif
    280                 #ifdef _HAVE_HYDROLOGY_
    281272                case HydrologyDCInefficientAnalysisEnum:
    282273                        pe=PenaltyCreatePVectorHydrologyDCInefficient(kmax);
    283274                        break;
    284                 #endif
    285                 #ifdef _HAVE_DAMAGE_
    286275                case DamageEvolutionAnalysisEnum:
    287276                        pe=PenaltyCreatePVectorDamageEvolution(kmax);
    288277                        break;
    289                 #endif
    290 
    291278                default:
    292279                        _error_("analysis " << analysis_type << " (" << EnumToStringx(analysis_type) << ") not supported yet");
     
    421408                return;
    422409        }
    423         #ifdef _HAVE_THERMAL_
    424410        else if (analysis_type==ThermalAnalysisEnum){
    425411                ConstraintActivateThermal(punstable);
     
    429415                return;
    430416        }
    431         #endif
    432         #ifdef _HAVE_HYDROLOGY_
    433417        else if (analysis_type==HydrologyDCInefficientAnalysisEnum){
    434418                ConstraintActivateHydrologyDCInefficient(punstable);
    435419                return;
    436420        }
    437         #endif
    438         #ifdef _HAVE_DAMAGE_
    439421        else if (analysis_type==DamageEvolutionAnalysisEnum){
    440422                ConstraintActivateDamageEvolution(punstable);
    441423                return;
    442424        }
    443         #endif
    444425
    445426        else{
     
    449430}
    450431/*}}}*/
    451 #ifdef _HAVE_THERMAL_
    452432/*FUNCTION Pengrid::ConstraintActivateThermal {{{*/
    453433void  Pengrid::ConstraintActivateThermal(int* punstable){
     
    629609}
    630610/*}}}*/
    631 #endif
    632 #ifdef _HAVE_HYDROLOGY_
    633611/*FUNCTION Pengrid::ConstraintActivateHydrologyDCInefficient{{{*/
    634612void  Pengrid::ConstraintActivateHydrologyDCInefficient(int* punstable){
     
    728706}
    729707/*}}}*/
    730 #endif
    731 #ifdef _HAVE_DAMAGE_
    732708/*FUNCTION Pengrid::ConstraintActivateDamageEvolution {{{*/
    733709void  Pengrid::ConstraintActivateDamageEvolution(int* punstable){
     
    828804}
    829805/*}}}*/
    830 #endif
    831 
    832806/*FUNCTION Pengrid::ResetConstraint {{{*/
    833807void  Pengrid::ResetConstraint(void){
  • issm/trunk-jpl/src/c/classes/Loads/Pengrid.h

    r16783 r17236  
    8383                /*}}}*/
    8484                /*Pengrid management {{{*/
    85                 #ifdef _HAVE_THERMAL_
    8685                ElementMatrix* PenaltyCreateKMatrixThermal(IssmDouble kmax);
    8786                ElementMatrix* PenaltyCreateKMatrixMelting(IssmDouble kmax);
     
    8988                ElementVector* PenaltyCreatePVectorMelting(IssmDouble kmax);
    9089                void           ConstraintActivateThermal(int* punstable);
    91                 #endif
    92                 #ifdef _HAVE_DAMAGE_
    9390                ElementMatrix* PenaltyCreateKMatrixDamageEvolution(IssmDouble kmax);
    9491                ElementVector* PenaltyCreatePVectorDamageEvolution(IssmDouble kmax);
    9592                void           ConstraintActivateDamageEvolution(int* punstable);
    96                 #endif
    97 
    98                 #ifdef _HAVE_HYDROLOGY_
    9993                ElementMatrix* PenaltyCreateKMatrixHydrologyDCInefficient(IssmDouble kmax);
    10094                ElementVector* PenaltyCreatePVectorHydrologyDCInefficient(IssmDouble kmax);
    10195                void           ConstraintActivateHydrologyDCInefficient(int* punstable);
    102                 #endif
    10396                void  ConstraintActivate(int* punstable);
    10497                void  ResetConstraint(void);
  • issm/trunk-jpl/src/c/classes/Materials/Matice.cpp

    r16783 r17236  
    763763                                        return;
    764764                                }
    765                                 #ifdef _HAVE_3D_
    766765                                case PentaEnum: {
    767766                                        IssmDouble valuesp[6];
     
    770769                                        return;
    771770                                }
    772                                 #endif
    773771                                default: _error_("element " << EnumToStringx(element->ObjectEnum()) << " not implemented yet");
    774772                        }
     
    819817                                        return;
    820818                                }
    821                                 #ifdef _HAVE_3D_
    822819                                case PentaEnum:{
    823820                                        IssmDouble valuesp[6];
     
    826823                                        return;
    827824                                }
    828                                 # endif
    829825                                default: _error_("element " << EnumToStringx(element->ObjectEnum()) << " not implemented yet");
    830826                        }
     
    892888
    893889                /*Control Inputs*/
    894                 #ifdef _HAVE_CONTROL_
    895890                if (control_analysis && iomodel->Data(InversionControlParametersEnum)){
    896891                        for(i=0;i<num_control_type;i++){
     
    917912                        }
    918913                }
    919                 #endif
    920914        }
    921915        else if(iomodel->meshtype==Mesh2DverticalEnum){
     
    945939                }
    946940        }
    947         #ifdef _HAVE_3D_
    948941        else if(iomodel->meshtype==Mesh3DEnum){
    949942
     
    973966               
    974967                /*Control Inputs*/
    975                 #ifdef _HAVE_CONTROL_
    976968                if (control_analysis && iomodel->Data(InversionControlParametersEnum)){
    977969                        for(i=0;i<num_control_type;i++){
     
    999991                        }
    1000992                }
    1001                 #endif
    1002         }
    1003         #endif
     993        }
    1004994        else{
    1005995                _error_("Mesh type not supported yet!");
  • issm/trunk-jpl/src/c/classes/Node.cpp

    r16534 r17236  
    5454
    5555        /*Stressbalance Horiz*/
    56         #ifdef _HAVE_STRESSBALANCE_
    5756        if(analysis_enum==StressbalanceAnalysisEnum){
    5857
     
    8887                }
    8988        }
    90         #endif
    9189
    9290        /*2d solutions in 3d, we need to constrain all the nodes that are not on base*/
     
    110108        }
    111109        if(
    112                                 analysis_enum==FreeSurfaceTopAnalysisEnum ||
    113                                 analysis_enum==L2ProjectionTopAnalysisEnum
     110                                analysis_enum==FreeSurfaceTopAnalysisEnum
    114111                                ){
    115112                if(iomodel->meshtype==Mesh3DEnum || iomodel->meshtype==Mesh2DverticalEnum){
     
    363360}
    364361/*}}}*/
    365 #ifdef _HAVE_STRESSBALANCE_
    366362/*FUNCTION Node::GetCoordinateSystem{{{*/
    367363void Node::GetCoordinateSystem(IssmDouble* coord_system_out){
     
    372368}
    373369/*}}}*/
    374 #endif
    375370/*FUNCTION Node::InAnalysis{{{*/
    376371bool Node::InAnalysis(int in_analysis_enum){
     
    901896}
    902897/*}}}*/
    903 #ifdef _HAVE_STRESSBALANCE_
    904898void TransformInvStiffnessMatrixCoord(ElementMatrix* Ke,Node** nodes,int numnodes,int cs_enum){/*{{{*/
    905899
     
    11731167}
    11741168/*}}}*/
    1175 #endif
  • issm/trunk-jpl/src/c/classes/Node.h

    r16534 r17236  
    5656                int   Sid(void);
    5757                int   Lid(void);
    58 #ifdef _HAVE_STRESSBALANCE_
    5958                void  GetCoordinateSystem(IssmDouble* coord_system_out);
    60 #endif
    6159                bool  InAnalysis(int analysis_enum);
    6260                int   GetApproximation();
     
    9189int* GetGlobalDofList(Node** nodes,int numnodes,int setenum,int approximation);
    9290int  GetNumberOfDofs(Node** nodes,int numnodes,int setenum,int approximation);
    93 #ifdef _HAVE_STRESSBALANCE_
    9491void TransformInvStiffnessMatrixCoord(ElementMatrix* Ke,Node** nodes,int numnodes,int cs_enum);
    9592void TransformInvStiffnessMatrixCoord(ElementMatrix* Ke,Node** nodes,int numnodes,int* cs_array);
     
    10198void TransformStiffnessMatrixCoord(ElementMatrix* Ke,Node** nodes,int numnodes,int* cs_array);
    10299void CoordinateSystemTransform(IssmDouble** ptransform,Node** nodes,int numnodes,int* cs_array);
    103 #endif
    104100
    105101#endif  /* _NODE_H_ */
  • issm/trunk-jpl/src/c/cores/CorePointerFromSolutionEnum.cpp

    r16518 r17236  
    2424
    2525                case StressbalanceSolutionEnum:
    26                         #ifdef _HAVE_STRESSBALANCE_
    2726                        solutioncore=&stressbalance_core;
    28                         #else
    29                         _error_("ISSM was not compiled with stressbalance capabilities. Exiting");
    30                         #endif
    3127                        break;
    3228                case SteadystateSolutionEnum:
    33                         #ifdef _HAVE_STEADYSTATE_
    3429                        solutioncore=&steadystate_core;
    35                         #else
    36                         _error_("ISSM was not compiled with steady state capabilities. Exiting");
    37                         #endif
    3830                        break;
    3931                case ThermalSolutionEnum:
    40                         #ifdef _HAVE_THERMAL_
    4132                        solutioncore=&thermal_core;
    42                         #else
    43                         _error_("ISSM was not compiled with thermal capabilities. Exiting");
    44                         #endif
    4533                        break;
    4634                case BalancethicknessSolutionEnum:
    47                         #ifdef _HAVE_BALANCED_
    4835                        solutioncore=&balancethickness_core;
    49                         #else
    50                         _error_("ISSM was not compiled with balanced capabilities. Exiting");
    51                         #endif
    5236                        break;
    5337                case BalancethicknessSoftSolutionEnum:
    54                         #ifdef _HAVE_BALANCED_
    5538                        solutioncore=&dummy_core;
    56                         #else
    57                         _error_("ISSM was not compiled with balanced capabilities. Exiting");
    58                         #endif
    5939                        break;
    6040                case BalancevelocitySolutionEnum:
    61                         #ifdef _HAVE_BALANCED_
    6241                        solutioncore=&balancevelocity_core;
    63                         #else
    64                         _error_("ISSM was not compiled with balanced capabilities. Exiting");
    65                         #endif
    6642                        break;
    6743                case HydrologySolutionEnum:
    68                         #ifdef _HAVE_HYDROLOGY_
    6944                        solutioncore=&hydrology_core;
    70                         #else
    71                         _error_("ISSM was not compiled with hydrology capabilities. Exiting");
    72                         #endif
    7345                        break;
    7446                case SurfaceSlopeSolutionEnum:
    75                         #ifdef _HAVE_SLOPE_
    7647                        solutioncore=&surfaceslope_core;
    77                         #else
    78                         _error_("ISSM was not compiled with slope capabilities. Exiting");
    79                         #endif
    8048                        break;
    8149                case BedSlopeSolutionEnum:
    82                         #ifdef _HAVE_SLOPE_
    8350                        solutioncore=&bedslope_core;
    84                         #else
    85                         _error_("ISSM was not compiled with slope capabilities. Exiting");
    86                         #endif
    8751                        break;
    8852                case TransientSolutionEnum:
    89                         #ifdef _HAVE_TRANSIENT_
    9053                        solutioncore=&transient_core;
    91                         #else
    92                         _error_("ISSM was not compiled with transient capabilities. Exiting");
    93                         #endif
    9454                        break;
    9555                case MasstransportSolutionEnum:
    96                         #ifdef _HAVE_MASSTRANSPORT_
    9756                        solutioncore=&masstransport_core;
    98                         #else
    99                         _error_("ISSM was not compiled with masstransport capabilities. Exiting");
    100                         #endif
    10157                        break;
    102 
    10358                case GiaSolutionEnum:
    104                         #ifdef _HAVE_GIA_
     59                        #if _HAVE_GIA_
    10560                        solutioncore=&gia_core;
    10661                        #else
    107                         _error_("ISSM was not compiled with gia capabilities. Exiting");
     62                        _error_("ISSM not compiled with Gia capability");
    10863                        #endif
    10964                        break;
    11065                case DamageEvolutionSolutionEnum:
    111                         #ifdef _HAVE_DAMAGE_
    11266                        solutioncore=&damage_core;
    113                         #else
    114                         _error_("ISSM was not compiled with damage evolution capabilities. Exiting");
    115                         #endif
    11667                        break;
    117 
    11868                default:
    11969                        _error_("solution type: " << EnumToStringx(solutiontype) << " not supported yet!");
     
    12474        _assert_(psolutioncore);
    12575        *psolutioncore=solutioncore;
    126 
    12776}
  • issm/trunk-jpl/src/c/cores/WrapperCorePointerFromSolutionEnum.cpp

    r16518 r17236  
    4242        }
    4343        else if(control_analysis){
    44                 #ifdef _HAVE_CONTROL_
    4544                if(tao_analysis) solutioncore=controltao_core;
    4645                else solutioncore=control_core;
    47                 #else
    48                 _error_("ISSM was not compiled with control support, cannot carry out control analysis!");
    49                 #endif
    5046        }
    5147        else CorePointerFromSolutionEnum(&solutioncore,parameters,solutiontype);  /*This means we retrieve a core solution that is not a wrapper*/
  • issm/trunk-jpl/src/c/cores/steadystate_core.cpp

    r16742 r17236  
    5050
    5151                if(VerboseSolution()) _printf0_("   computing temperature and velocity for step: " << step << "\n");
    52                 #ifdef _HAVE_THERMAL_
    5352                thermal_core(femmodel);
    5453                if(!isenthalpy)femmodel->SetCurrentConfiguration(ThermalAnalysisEnum);/*Could be MeltingAnalysis...*/
    5554                GetSolutionFromInputsx(&tg,femmodel);
    56                 #else
    57                 _error_("ISSM was not compiled with thermal capabilities. Exiting");
    58                 #endif
    5955
    6056                if(VerboseSolution()) _printf0_("   computing new velocity\n");
  • issm/trunk-jpl/src/c/cores/transient_core.cpp

    r17230 r17236  
    115115                if(isthermal && meshtype==Mesh3DEnum){
    116116                        if(VerboseSolution()) _printf0_("   computing thermal regime\n");
    117                         #ifdef _HAVE_THERMAL_
    118117                        thermal_core(femmodel);
    119                         #else
    120                         _error_("ISSM was not compiled with thermal capabilities. Exiting");
    121                         #endif
    122118                }
    123119
    124120                if(isstressbalance){
    125121                        if(VerboseSolution()) _printf0_("   computing new velocity\n");
    126                         #ifdef _HAVE_STRESSBALANCE_
    127122                        stressbalance_core(femmodel);
    128                         #else
    129                         _error_("ISSM was not compiled with stressbalance capabilities. Exiting");
    130                         #endif
    131123                }
    132124
     
    140132                if(isgroundingline){
    141133                        if(VerboseSolution()) _printf0_("   computing new grounding line position\n");
    142                         #ifdef _HAVE_GROUNDINGLINE_
    143134                        GroundinglineMigrationx(femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters);
    144                         #else
    145                         _error_("ISSM was not compiled with grounding line migration capabilities. Exiting");
    146                         #endif
    147135                        if(save_results){
    148136                                int outputs[3] = {SurfaceEnum,BedEnum,MaskGroundediceLevelsetEnum};
  • issm/trunk-jpl/src/c/modules/ConstraintsStatex/ConstraintsStatex.cpp

    r16200 r17236  
    2626
    2727        /*Rift penalties first*/
    28         #ifdef _HAVE_RIFTS_
    2928        if(RiftIsPresent(femmodel->loads,analysis_type)){
    3029                RiftConstraintsState(&converged,&num_unstable_constraints,femmodel->loads,min_mechanical_constraints,analysis_type);
    3130        }
    32         #endif
    3331
    3432        /*Deal with pengrid*/
  • issm/trunk-jpl/src/c/modules/ModelProcessorx/CreateElementsVerticesAndMaterials.cpp

    r16542 r17236  
    3838                        }
    3939                        break;
    40                 #ifdef _HAVE_3D_
    4140                case Mesh3DEnum:
    4241                        iomodel->FetchData(2,MeshUpperelementsEnum,MeshLowerelementsEnum);
     
    4544                        }
    4645                        break;
    47                 #endif
    4846                default:
    4947                        _error_("Mesh not supported yet");
     
    6058                                                materials->InputDuplicate(MaterialsRheologyBbarEnum,QmuMaterialsRheologyBEnum);
    6159                                                break;
    62                                    #ifdef _HAVE_3D_
    6360                                        case Mesh3DEnum:
    6461                                                materials->InputDuplicate(MaterialsRheologyBEnum,QmuMaterialsRheologyBEnum);
    6562                                                break;
    66                                    #endif
    6763                                        default:
    6864                                                _error_("Mesh not supported yet");
  • issm/trunk-jpl/src/c/modules/ModelProcessorx/CreateParameters.cpp

    r17114 r17236  
    209209       
    210210        /*Before returning, create parameters in case we are running Qmu or control types runs: */
    211         #ifdef _HAVE_CONTROL_
    212211        CreateParametersControl(parameters,iomodel,solution_type);
    213         #endif
    214212
    215213        #ifdef _HAVE_DAKOTA_
  • issm/trunk-jpl/src/c/modules/ModelProcessorx/ModelProcessorx.cpp

    r17159 r17236  
    9797
    9898        /*Solution specific updates*/
    99         #ifdef _HAVE_CONTROL_
    10099        UpdateElementsAndMaterialsControl(elements,materials,iomodel);
    101         #endif
    102100        #ifdef _HAVE_DAKOTA_
    103101        UpdateElementsAndMaterialsDakota(elements,materials,iomodel);
    104102        #endif
    105         #ifdef _HAVE_TRANSIENT_
    106103        if(solution_enum==TransientSolutionEnum){
    107104                UpdateElementsTransient(elements,parameters,iomodel,analysis_enum);
    108105        }
    109         #endif
    110106
    111107        /*Output definitions dataset: */
  • issm/trunk-jpl/src/c/modules/ResetConstraintsx/ResetConstraintsx.cpp

    r16206 r17236  
    2424
    2525        /*Deal with rift first*/
    26         #ifdef _HAVE_RIFTS_
    2726        if(RiftIsPresent(femmodel->loads,analysis_type)){
    2827                _error_("rift constraints reset not supported yet!");
    2928        }
    30         #endif
    3129
    3230        /*Reset pengrid to inactive mode*/
  • issm/trunk-jpl/src/c/shared/Enum/EnumDefinitions.h

    r17222 r17236  
    342342        ExtrudeFromTopAnalysisEnum,
    343343        SteadystateSolutionEnum,
    344         L2ProjectionTopAnalysisEnum,
    345344        SurfaceSlopeSolutionEnum,
    346345        SmoothedSurfaceSlopeXAnalysisEnum,
  • issm/trunk-jpl/src/c/shared/Enum/EnumToStringx.cpp

    r17222 r17236  
    343343                case ExtrudeFromTopAnalysisEnum : return "ExtrudeFromTopAnalysis";
    344344                case SteadystateSolutionEnum : return "SteadystateSolution";
    345                 case L2ProjectionTopAnalysisEnum : return "L2ProjectionTopAnalysis";
    346345                case SurfaceSlopeSolutionEnum : return "SurfaceSlopeSolution";
    347346                case SmoothedSurfaceSlopeXAnalysisEnum : return "SmoothedSurfaceSlopeXAnalysis";
  • issm/trunk-jpl/src/c/shared/Enum/StringToEnumx.cpp

    r17222 r17236  
    349349              else if (strcmp(name,"ExtrudeFromTopAnalysis")==0) return ExtrudeFromTopAnalysisEnum;
    350350              else if (strcmp(name,"SteadystateSolution")==0) return SteadystateSolutionEnum;
    351               else if (strcmp(name,"L2ProjectionTopAnalysis")==0) return L2ProjectionTopAnalysisEnum;
    352351              else if (strcmp(name,"SurfaceSlopeSolution")==0) return SurfaceSlopeSolutionEnum;
    353352              else if (strcmp(name,"SmoothedSurfaceSlopeXAnalysis")==0) return SmoothedSurfaceSlopeXAnalysisEnum;
     
    383382              else if (strcmp(name,"Results")==0) return ResultsEnum;
    384383              else if (strcmp(name,"GenericParam")==0) return GenericParamEnum;
     384              else if (strcmp(name,"AdolcParam")==0) return AdolcParamEnum;
    385385         else stage=4;
    386386   }
    387387   if(stage==4){
    388               if (strcmp(name,"AdolcParam")==0) return AdolcParamEnum;
    389               else if (strcmp(name,"BoolInput")==0) return BoolInputEnum;
     388              if (strcmp(name,"BoolInput")==0) return BoolInputEnum;
    390389              else if (strcmp(name,"BoolParam")==0) return BoolParamEnum;
    391390              else if (strcmp(name,"Contour")==0) return ContourEnum;
     
    506505              else if (strcmp(name,"VzMesh")==0) return VzMeshEnum;
    507506              else if (strcmp(name,"Enthalpy")==0) return EnthalpyEnum;
     507              else if (strcmp(name,"EnthalpyPicard")==0) return EnthalpyPicardEnum;
    508508         else stage=5;
    509509   }
    510510   if(stage==5){
    511               if (strcmp(name,"EnthalpyPicard")==0) return EnthalpyPicardEnum;
    512               else if (strcmp(name,"ThicknessAbsGradient")==0) return ThicknessAbsGradientEnum;
     511              if (strcmp(name,"ThicknessAbsGradient")==0) return ThicknessAbsGradientEnum;
    513512              else if (strcmp(name,"ThicknessAlongGradient")==0) return ThicknessAlongGradientEnum;
    514513              else if (strcmp(name,"ThicknessAcrossGradient")==0) return ThicknessAcrossGradientEnum;
     
    629628              else if (strcmp(name,"Sset")==0) return SsetEnum;
    630629              else if (strcmp(name,"Verbose")==0) return VerboseEnum;
     630              else if (strcmp(name,"TriangleInterp")==0) return TriangleInterpEnum;
    631631         else stage=6;
    632632   }
    633633   if(stage==6){
    634               if (strcmp(name,"TriangleInterp")==0) return TriangleInterpEnum;
    635               else if (strcmp(name,"BilinearInterp")==0) return BilinearInterpEnum;
     634              if (strcmp(name,"BilinearInterp")==0) return BilinearInterpEnum;
    636635              else if (strcmp(name,"NearestInterp")==0) return NearestInterpEnum;
    637636              else if (strcmp(name,"XY")==0) return XYEnum;
  • issm/trunk-jpl/src/c/shared/Enum/Synchronize.sh

    r16534 r17236  
    104104END
    105105#}}}
    106 ##Build EnumToAnalysis.cpp {{{
    107 ##Header
    108 #cat <<END > $ISSM_DIR/src/c/analyses/EnumToAnalysis.cpp
    109 #/*
    110 #* \file EnumToAnalysis.cpp
    111 #* \brief: output class depending on enum
    112 #*
    113 #*   WARNING: DO NOT MODIFY THIS FILE
    114 #*            this file has been automatically generated by Synchronize.sh
    115 #*            Please read README for more information
    116 #*/
    117 #
    118 ##include "./analyses.h"
    119 ##include "../shared/shared.h"
    120 #
    121 #Analysis* EnumToAnalysis(int analysis_enum){
    122 #
    123 #       switch(analysis_enum){
    124 #END
    125 ##core
    126 #cat temp | grep [a-z]Analysis | \
    127 #       grep -v DefaultAnalysis | grep -v FlaimAnalysis | grep -v SurfaceSlopeAnalysis | grep -v BedSlopeAnalysis | \
    128 #       awk '{print "\t\t#ifdef _HAVE_"toupper(substr($1,1,length($1)-12))"_\n\t\t" "case " $1" : return new " substr($1,1,length($1)-4) "();\n\t\t#endif"}' \
    129 #               >> $ISSM_DIR/src/c/analyses/EnumToAnalysis.cpp
    130 #
    131 ##Footer
    132 #cat <<END >> $ISSM_DIR/src/c/analyses/EnumToAnalysis.cpp
    133 #default : _error_("enum provided not supported ("<<EnumToStringx(analysis_enum)<<")");
    134 #       }
    135 #}
    136 #END
    137 ##}}}
     106#Build EnumToAnalysis.cpp {{{
     107#Header
     108cat <<END > $ISSM_DIR/src/c/analyses/EnumToAnalysis.cpp
     109/*
     110* \file EnumToAnalysis.cpp
     111* \brief: output class depending on enum
     112*
     113*   WARNING: DO NOT MODIFY THIS FILE
     114*            this file has been automatically generated by Synchronize.sh
     115*            Please read README for more information
     116*/
     117
     118#include "./analyses.h"
     119#include "../shared/shared.h"
     120
     121Analysis* EnumToAnalysis(int analysis_enum){
     122
     123        switch(analysis_enum){
     124END
     125#core
     126cat temp | grep [a-zA-Z]Analysis | \
     127        grep -v DefaultAnalysis | grep -v FlaimAnalysis | grep -v SurfaceSlopeAnalysis | grep -v BedSlopeAnalysis | \
     128        awk '{print "\t\t#ifdef _HAVE_"toupper(substr($1,1,length($1)-12))"_\n\t\t" "case " $1" : return new " substr($1,1,length($1)-4) "();\n\t\t#endif"}' \
     129                >> $ISSM_DIR/src/c/analyses/EnumToAnalysis.cpp
     130
     131#Footer
     132cat <<END >> $ISSM_DIR/src/c/analyses/EnumToAnalysis.cpp
     133                default : _error_("enum provided not supported ("<<EnumToStringx(analysis_enum)<<")");
     134        }
     135}
     136END
     137#}}}
    138138#Build EnumDefinitions.py{{{
    139139cat <<END > $ISSM_DIR/src/m/enum/EnumDefinitions.py
Note: See TracChangeset for help on using the changeset viewer.