Changeset 17236
- Timestamp:
- 02/07/14 13:34:30 (11 years ago)
- Location:
- issm/trunk-jpl
- Files:
-
- 29 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/m4/issm_options.m4
r17154 r17236 1559 1559 AC_MSG_CHECKING(for kml capability compilation) 1560 1560 1561 HAVE_KML=no 1561 1562 if test "x$KML" = "xyes"; then 1562 1563 HAVE_KML=yes 1563 1564 AC_DEFINE([_HAVE_KML_],[1],[with kml capability]) 1564 else1565 HAVE_KML=no1566 1565 fi 1567 1566 AM_CONDITIONAL([KML], [test x$HAVE_KML = xyes]) … … 1574 1573 AC_MSG_CHECKING(for kriging capability compilation) 1575 1574 1575 HAVE_KRIGING=no 1576 1576 if test "x$KRIGING" = "xyes"; then 1577 1577 HAVE_KRIGING=yes 1578 1578 AC_DEFINE([_HAVE_KRIGING_],[1],[with kriging capability]) 1579 else1580 HAVE_KRIGING=no1581 1579 fi 1582 1580 AM_CONDITIONAL([KRIGING], [test x$HAVE_KRIGING = xyes]) 1583 1581 AC_MSG_RESULT($HAVE_KRIGING) 1584 1582 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) 1692 1698 dnl }}} 1693 1699 dnl with-stressbalance{{{ … … 1697 1703 AC_MSG_CHECKING(for stressbalance capability compilation) 1698 1704 1705 HAVE_STRESSBALANCE=no 1699 1706 if test "x$STRESSBALANCE" = "xyes"; then 1700 1701 dnl defaults1702 1707 HAVE_STRESSBALANCE=yes 1703 1704 1708 AC_DEFINE([_HAVE_STRESSBALANCE_],[1],[with stressbalance capability]) 1705 else1706 HAVE_STRESSBALANCE=no1707 1709 fi 1708 1710 AM_CONDITIONAL([STRESSBALANCE], [test x$HAVE_STRESSBALANCE = xyes]) 1709 1711 AC_MSG_RESULT($HAVE_STRESSBALANCE) 1710 1712 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 1860 1939 dnl with-ios{{{ 1861 1940 AC_ARG_WITH([ios], … … 1921 2000 fi 1922 2001 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"; then1931 1932 dnl defaults1933 HAVE_3D=yes1934 1935 AC_DEFINE([_HAVE_3D_],[1],[with 3d capability])1936 else1937 HAVE_3D=no1938 fi1939 AM_CONDITIONAL([THREED], [test x$HAVE_3D = xyes])1940 AC_MSG_RESULT($HAVE_3D)1941 2002 dnl }}} 1942 2003 … … 2000 2061 dnl check that if petsc is requested , mpi should be specified 2001 2062 if test "$HAVE_PETSC" = "yes" ; then 2002 if test "$HAVE_MPI" = "NO"; then2003 AC_MSG_ERROR([petsc requires mpi!]);2004 fi2063 if test "$HAVE_MPI" = "NO"; then 2064 AC_MSG_ERROR([petsc requires mpi!]); 2065 fi 2005 2066 fi 2006 2067 2007 2068 dnl check that we have either python or matlab support if we compile the modules 2008 2069 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 fi2070 AC_MSG_ERROR([need at least python or matlab support to compile modules (or use --with-modules=no)]); 2071 fi 2011 2072 2012 2073 dnl check that if we have MPI, we have metis 2013 2074 if test "$HAVE_METIS" = "yes" && test "$HAVE_MPI" = "no" ; then 2014 AC_MSG_ERROR([need mpi if using the metis partitioner!]);2015 fi2075 AC_MSG_ERROR([need mpi if using the metis partitioner!]); 2076 fi 2016 2077 2017 2078 dnl check that if we run adolc, we don't compile krigging.exe 2018 2079 if test "$HAVE_ADOLC" = "yes" && test "$HAVE_KRIGING" = "yes" ; then 2019 2080 AC_MSG_ERROR([cannot compile kriging.exe under adolc conditions!]); 2020 2081 fi 2021 2082 dnl check that if we run meteoio, we have snowpack also 2022 2083 if test "$HAVE_METEOIO" = "yes" && test "$HAVE_SNOWPACK" = "no" ; then 2023 2084 AC_MSG_ERROR([cannot compile MeteoIO package without Snowpack!]); 2024 2085 fi 2025 2086 dnl check that if we run snowpack, we have meteoio also 2026 2087 if test "$HAVE_METEOIO" = "no" && test "$HAVE_SNOWPACK" = "yes" ; then 2027 2088 AC_MSG_ERROR([cannot compile Snowpack package without MeteoIO!]); 2028 2089 fi 2029 2090 2030 2031 2032 2033 2034 2035 AC_MSG_RESULT(done) 2036 dnl }}} 2091 AC_MSG_RESULT(done) 2092 dnl }}} 2037 2093 ]) -
issm/trunk-jpl/src/c/Makefile.am
r17230 r17236 18 18 #}}} 19 19 20 # sources20 #Core sources 21 21 #Core sources{{{ 22 core_sources = ./datastructures/DataSet.h\22 issm_sources = ./datastructures/DataSet.h\ 23 23 ./datastructures/DataSet.cpp\ 24 24 ./datastructures/Object.h\ … … 349 349 ./classes/Options/OptionUtilities.h\ 350 350 ./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 #}}} 353 440 #DAKOTA sources {{{ 354 dakota_sources = ./modules/InputUpdateFromDakotax/InputUpdateFromDakotax.h\ 441 if DAKOTA 442 issm_sources += ./modules/InputUpdateFromDakotax/InputUpdateFromDakotax.h\ 355 443 ./modules/InputUpdateFromDakotax/InputUpdateFromDakotax.cpp\ 356 444 ./modules/InputUpdateFromVectorDakotax/InputUpdateFromVectorDakotax.h\ … … 365 453 ./cores/DakotaSpawnCore.h\ 366 454 ./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 455 endif 736 456 #}}} 737 457 #Petsc sources {{{ 738 petsc_sources= ./toolkits/petsc\ 458 if PETSC 459 issm_sources += ./toolkits/petsc\ 739 460 ./toolkits/petsc/patches\ 740 461 ./toolkits/petsc/patches/SolverEnum.h\ … … 762 483 ./toolkits/petsc/objects/PetscSolver.h\ 763 484 ./toolkits/petsc/petscincludes.h 764 485 endif 765 486 #}}} 766 487 #Mumps sources {{{ 767 mumps_sources= ./toolkits/mumps\ 488 if MUMPS 489 issm_sources += ./toolkits/mumps\ 768 490 ./toolkits/mumps/mumpsincludes.h\ 769 491 ./toolkits/mumps/MumpsSolve.cpp 492 endif 770 493 #}}} 771 494 #Gsl sources {{{ 772 gsl_sources= ./toolkits/gsl\ 495 if GSL 496 issm_sources += ./toolkits/gsl\ 773 497 ./toolkits/gsl/gslincludes.h\ 774 498 ./toolkits/gsl/DenseGslSolve.cpp 499 endif 500 #}}} 501 #Analyses{{{ 502 if ADJOINTBALANCETHICKNESS 503 issm_sources += ./analyses/AdjointBalancethicknessAnalysis.cpp 504 endif 505 if ADJOINTHORIZ 506 issm_sources += ./analyses/AdjointHorizAnalysis.cpp 507 endif 508 if BALANCETHICKNESS 509 issm_sources += ./analyses/BalancethicknessAnalysis.cpp 510 endif 511 if BALANCETHICKNESSSOFT 512 issm_sources += ./analyses/BalancethicknessSoftAnalysis.cpp 513 endif 514 if BALANCEVELOCITY 515 issm_sources += ./analyses/BalancevelocityAnalysis.cpp 516 endif 517 if L2PROJECTIONBASE 518 issm_sources += ./analyses/L2ProjectionBaseAnalysis.cpp 519 endif 520 if DAMAGEEVOLUTION 521 issm_sources += ./analyses/DamageEvolutionAnalysis.cpp 522 endif 523 if STRESSBALANCE 524 issm_sources += ./analyses/StressbalanceAnalysis.cpp 525 endif 526 if STRESSBALANCESIA 527 issm_sources += ./analyses/StressbalanceSIAAnalysis.cpp 528 endif 529 if STRESSBALANCEVERTICAL 530 issm_sources += ./analyses/StressbalanceVerticalAnalysis.cpp 531 endif 532 if ENTHALPY 533 issm_sources += ./analyses/EnthalpyAnalysis.cpp 534 endif 535 if HYDROLOGYSHREVE 536 issm_sources += ./analyses/HydrologyShreveAnalysis.cpp 537 endif 538 if HYDROLOGYDCINEFFICIENT 539 issm_sources += ./analyses/HydrologyDCInefficientAnalysis.cpp 540 endif 541 if HYDROLOGYDCEFFICIENT 542 issm_sources += ./analyses/HydrologyDCEfficientAnalysis.cpp 543 endif 544 if MELTING 545 issm_sources += ./analyses/MeltingAnalysis.cpp 546 endif 547 if MASSTRANSPORT 548 issm_sources += ./analyses/MasstransportAnalysis.cpp 549 endif 550 if FREESURFACEBASE 551 issm_sources += ./analyses/FreeSurfaceBaseAnalysis.cpp 552 endif 553 if FREESURFACETOP 554 issm_sources += ./analyses/FreeSurfaceTopAnalysis.cpp 555 endif 556 if EXTRUDEFROMBASE 557 issm_sources += ./analyses/ExtrudeFromBaseAnalysis.cpp 558 endif 559 if EXTRUDEFROMTOP 560 issm_sources += ./analyses/ExtrudeFromTopAnalysis.cpp 561 endif 562 if THERMAL 563 issm_sources += ./analyses/ThermalAnalysis.cpp 564 endif 565 if MESHDEFORMATION 566 issm_sources += ./analyses/MeshdeformationAnalysis.cpp 567 endif 568 if LEVELSET 569 issm_sources += ./analyses/LevelsetAnalysis.cpp 570 endif 571 if EXTRAPOLATION 572 issm_sources += ./analyses/ExtrapolationAnalysis.cpp 573 endif 574 #}}} 575 #Gia sources {{{ 576 if GIA 577 issm_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 587 endif 775 588 #}}} 776 589 #Mpi sources {{{ 777 mpi_sources= ./toolkits/issm/IssmMpiDenseMat.h\ 778 ./toolkits/issm/IssmMpiVec.h 590 if MPI 591 issm_sources += ./toolkits/issm/IssmMpiDenseMat.h\ 592 ./toolkits/issm/IssmMpiVec.h 593 endif 779 594 #}}} 780 595 #Metis sources {{{ 781 metis_sources= ./toolkits/metis/patches/metispatches.h\ 596 if METIS 597 issm_sources += ./toolkits/metis/patches/metispatches.h\ 782 598 ./toolkits/metis/patches/METIS_PartMeshNodalPatch.cpp 599 endif 600 #}}} 601 602 #Wrapper sources 603 #Bamg sources {{{ 604 bamg_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 {{{ 671 if KRIGING 672 kriging_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 689 issm_sources +=$(kriging_sources) 690 issm_sources +=./modules/Krigingx/pKrigingx.cpp 691 endif 692 #}}} 693 #Kml sources {{{ 694 kml_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 783 761 #}}} 784 762 #Modules sources{{{ … … 847 825 endif 848 826 #}}} 849 850 #{{{ Conditional build-up of sources851 #ISSM sources are a combination of core sources and sources related to specific capabilities (which can852 #be activated by autotools conditionals853 854 #First the core855 issm_sources = $(core_sources)856 857 #Now the optional source858 if DAKOTA859 issm_sources += $(dakota_sources)860 endif861 862 if PETSC863 issm_sources += $(petsc_sources)864 endif865 866 if MUMPS867 issm_sources += $(mumps_sources)868 endif869 870 if GSL871 issm_sources += $(gsl_sources)872 endif873 874 if TRANSIENT875 issm_sources += $(transient_sources)876 endif877 878 if STEADYSTATE879 issm_sources += $(steadystate_sources)880 endif881 882 if MASSTRANSPORT883 issm_sources += $(masstransport_sources)884 endif885 886 if THERMAL887 issm_sources += $(thermal_sources)888 endif889 890 if GIA891 issm_sources += $(gia_sources)892 endif893 894 if CONTROL895 issm_sources += $(control_sources)896 endif897 898 if HYDROLOGY899 issm_sources += $(hydrology_sources)900 endif901 902 if STRESSBALANCE903 issm_sources += $(stressbalance_sources)904 endif905 906 if BALANCED907 issm_sources += $(balanced_sources)908 endif909 910 if SLOPE911 issm_sources += $(slope_sources)912 endif913 914 if MESHDEFORMATION915 issm_sources += $(meshdeformation_sources)916 endif917 918 if GROUNDINGLINE919 issm_sources += $(groundingline_sources)920 endif921 922 if RIFTS923 issm_sources += $(rifts_sources)924 endif925 926 if RESPONSES927 issm_sources += $(responses_sources)928 endif929 930 if ANDROID931 issm_sources += $(android_sources)932 endif933 934 if THREED935 issm_sources += $(threed_sources)936 endif937 938 if MPI939 issm_sources += $(mpi_sources)940 endif941 942 if METIS943 issm_sources += $(metis_sources)944 endif945 946 if KRIGING947 issm_sources += $(pkriging_sources)948 endif949 950 if DAMAGE951 issm_sources += $(damage_sources)952 endif953 827 #}}} 954 828 #Library flags and sources {{{ … … 971 845 libISSMModules_a_SOURCES = $(modules_sources) 972 846 libISSMModules_a_SOURCES += $(bamg_sources) 973 if KRIGING974 libISSMModules_a_SOURCES += $(kriging_sources)975 endif976 847 if KML 977 848 libISSMModules_a_SOURCES += $(kml_sources) … … 1026 897 endif 1027 898 #}}} 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) {{{ 1029 900 if ADIC2 1030 901 lib_LIBRARIES += libAD.a libISSMRose.a … … 1034 905 libAD_a_SOURCES = 1035 906 libAD_a_CFLAGS = -fPIC -D_C_ $(COPTFLAGS) 1036 1037 907 1038 908 #test rose preprocessing … … 1042 912 libISSMRose_a_CXXFLAGS= -fPIC -D_C_ $(CXXOPTFLAGS) 1043 913 1044 1045 1046 914 #Automatic differentiation rules: 1047 915 %.ad.c: %.c 1048 916 adic2 -mforward $< --nary 1049 1050 1051 917 1052 918 #Executable -
issm/trunk-jpl/src/c/analyses/EnumToAnalysis.cpp
r17159 r17236 14 14 15 15 switch(analysis_enum){ 16 #ifdef _HAVE_ADJOINTBALANCETHICKNESS_ 16 17 case AdjointBalancethicknessAnalysisEnum : return new AdjointBalancethicknessAnalysis(); 18 #endif 19 #ifdef _HAVE_ADJOINTHORIZ_ 17 20 case AdjointHorizAnalysisEnum : return new AdjointHorizAnalysis(); 21 #endif 22 #ifdef _HAVE_BALANCETHICKNESS_ 18 23 case BalancethicknessAnalysisEnum : return new BalancethicknessAnalysis(); 24 #endif 25 #ifdef _HAVE_BALANCETHICKNESSSOFT_ 19 26 case BalancethicknessSoftAnalysisEnum : return new BalancethicknessSoftAnalysis(); 27 #endif 28 #ifdef _HAVE_BALANCEVELOCITY_ 20 29 case BalancevelocityAnalysisEnum : return new BalancevelocityAnalysis(); 30 #endif 31 #ifdef _HAVE_L2PROJECTIONEPL_ 32 case L2ProjectionEPLAnalysisEnum : return new L2ProjectionEPLAnalysis(); 33 #endif 34 #ifdef _HAVE_L2PROJECTIONBASE_ 21 35 case L2ProjectionBaseAnalysisEnum : return new L2ProjectionBaseAnalysis(); 22 case L2ProjectionEPLAnalysisEnum : return new L2ProjectionEPLAnalysis(); 36 #endif 37 #ifdef _HAVE_DAMAGEEVOLUTION_ 23 38 case DamageEvolutionAnalysisEnum : return new DamageEvolutionAnalysis(); 39 #endif 40 #ifdef _HAVE_STRESSBALANCE_ 24 41 case StressbalanceAnalysisEnum : return new StressbalanceAnalysis(); 42 #endif 43 #ifdef _HAVE_STRESSBALANCESIA_ 25 44 case StressbalanceSIAAnalysisEnum : return new StressbalanceSIAAnalysis(); 45 #endif 46 #ifdef _HAVE_STRESSBALANCEVERTICAL_ 26 47 case StressbalanceVerticalAnalysisEnum : return new StressbalanceVerticalAnalysis(); 48 #endif 49 #ifdef _HAVE_ENTHALPY_ 27 50 case EnthalpyAnalysisEnum : return new EnthalpyAnalysis(); 51 #endif 52 #ifdef _HAVE_HYDROLOGYSHREVE_ 28 53 case HydrologyShreveAnalysisEnum : return new HydrologyShreveAnalysis(); 54 #endif 55 #ifdef _HAVE_HYDROLOGYDCINEFFICIENT_ 29 56 case HydrologyDCInefficientAnalysisEnum : return new HydrologyDCInefficientAnalysis(); 57 #endif 58 #ifdef _HAVE_HYDROLOGYDCEFFICIENT_ 30 59 case HydrologyDCEfficientAnalysisEnum : return new HydrologyDCEfficientAnalysis(); 60 #endif 61 #ifdef _HAVE_MELTING_ 31 62 case MeltingAnalysisEnum : return new MeltingAnalysis(); 63 #endif 64 #ifdef _HAVE_MASSTRANSPORT_ 32 65 case MasstransportAnalysisEnum : return new MasstransportAnalysis(); 66 #endif 67 #ifdef _HAVE_FREESURFACEBASE_ 33 68 case FreeSurfaceBaseAnalysisEnum : return new FreeSurfaceBaseAnalysis(); 69 #endif 70 #ifdef _HAVE_FREESURFACETOP_ 34 71 case FreeSurfaceTopAnalysisEnum : return new FreeSurfaceTopAnalysis(); 72 #endif 73 #ifdef _HAVE_EXTRUDEFROMBASE_ 35 74 case ExtrudeFromBaseAnalysisEnum : return new ExtrudeFromBaseAnalysis(); 75 #endif 76 #ifdef _HAVE_EXTRUDEFROMTOP_ 36 77 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_ 37 86 case ThermalAnalysisEnum : return new ThermalAnalysis(); 38 case LevelsetAnalysisEnum : return new LevelsetAnalysis(); 39 case ExtrapolationAnalysisEnum : return new ExtrapolationAnalysis(); 87 #endif 40 88 #ifdef _HAVE_GIA_ 41 89 case GiaAnalysisEnum : return new GiaAnalysis(); … … 44 92 case MeshdeformationAnalysisEnum : return new MeshdeformationAnalysis(); 45 93 #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 48 100 default : _error_("enum provided not supported ("<<EnumToStringx(analysis_enum)<<")"); 49 101 } -
issm/trunk-jpl/src/c/classes/Elements/Element.h
r17230 r17236 224 224 virtual void GetNormalFromLSF(IssmDouble *pnormal)=0; 225 225 226 #ifdef _HAVE_RESPONSES_227 226 virtual void AverageOntoPartition(Vector<IssmDouble>* partition_contributions,Vector<IssmDouble>* partition_areas,IssmDouble* vertex_response,IssmDouble* qmu_part)=0; 228 227 virtual void MinVel(IssmDouble* pminvel)=0; … … 247 246 virtual int VertexConnectivity(int vertexindex)=0; 248 247 virtual void VerticalSegmentIndices(int** pindices,int* pnumseg)=0; 249 #endif250 248 251 249 #ifdef _HAVE_GIA_ … … 253 251 #endif 254 252 255 #ifdef _HAVE_CONTROL_256 253 virtual void Gradj(Vector<IssmDouble>* gradient,int control_type,int control_index)=0; 257 254 virtual IssmDouble ThicknessAbsMisfit(void)=0; … … 274 271 virtual void SetControlInputsFromVector(IssmDouble* vector,int control_enum,int control_index)=0; 275 272 virtual void InputControlUpdate(IssmDouble scalar,bool save_parameter)=0; 276 #endif277 273 278 274 virtual void UpdateConstraintsExtrudeFromBase(void)=0; 279 275 virtual void UpdateConstraintsExtrudeFromTop(void)=0; 280 276 281 #ifdef _HAVE_HYDROLOGY_282 277 virtual void GetHydrologyDCInefficientHmax(IssmDouble* ph_max,int index)=0; 283 278 virtual void GetHydrologyDCInefficientHmax(IssmDouble* ph_max, Node* innode)=0; … … 286 281 virtual void HydrologyEPLGetActive(Vector<IssmDouble>* active)=0; 287 282 virtual void ComputeEPLThickness(void)=0; 288 #endif 289 290 #ifdef _HAVE_GROUNDINGLINE_ 283 291 284 virtual void MigrateGroundingLine(IssmDouble* sheet_ungrounding)=0; 292 285 virtual void PotentialUngrounding(Vector<IssmDouble>* potential_sheet_ungrounding)=0; 293 286 virtual int UpdatePotentialUngrounding(IssmDouble* potential_sheet_ungrounding,Vector<IssmDouble>* vec_nodes_on_iceshelf,IssmDouble* nodes_on_iceshelf)=0; 294 #endif295 287 296 288 }; -
issm/trunk-jpl/src/c/classes/Elements/Penta.cpp
r17232 r17236 1739 1739 1740 1740 /*Control Inputs*/ 1741 #ifdef _HAVE_CONTROL_1742 1741 if (control_analysis && iomodel->Data(InversionControlParametersEnum)){ 1743 1742 for(i=0;i<num_control_type;i++){ … … 1783 1782 } 1784 1783 } 1785 #endif1786 1784 1787 1785 /*Need to know the type of approximation for this element*/ … … 3177 3175 /*}}}*/ 3178 3176 3179 #ifdef _HAVE_RESPONSES_3180 3177 /*FUNCTION Penta::AverageOntoPartition {{{*/ 3181 3178 void Penta::AverageOntoPartition(Vector<IssmDouble>* partition_contributions,Vector<IssmDouble>* partition_areas,IssmDouble* vertex_response,IssmDouble* qmu_part){ … … 3456 3453 } 3457 3454 /*}}}*/ 3458 #endif3459 3455 3460 3456 #ifdef _HAVE_GIA_ … … 3466 3462 #endif 3467 3463 3468 #ifdef _HAVE_CONTROL_3469 3464 /*FUNCTION Penta::ControlInputGetGradient{{{*/ 3470 3465 void Penta::ControlInputGetGradient(Vector<IssmDouble>* gradient,int enum_type,int control_index){ … … 4263 4258 } 4264 4259 /*}}}*/ 4265 #endif4266 4260 4267 4261 #ifdef _HAVE_DAKOTA_ … … 4408 4402 #endif 4409 4403 4410 #ifdef _HAVE_HYDROLOGY_4411 4404 /*FUNCTION Penta::CreateEPLDomainMassMatrix {{{*/ 4412 4405 ElementMatrix* Penta::CreateEPLDomainMassMatrix(void){ … … 4572 4565 } 4573 4566 /*}}}*/ 4574 #endif 4575 4576 #ifdef _HAVE_GROUNDINGLINE_ 4567 4577 4568 /*FUNCTION Penta::MigrateGroundingLine{{{*/ 4578 4569 void Penta::MigrateGroundingLine(IssmDouble* phi_ungrounding){ … … 4728 4719 } 4729 4720 /*}}}*/ 4730 #endif -
issm/trunk-jpl/src/c/classes/Elements/Penta.h
r17230 r17236 134 134 void ViscousHeating(IssmDouble* pphi,IssmDouble* xyz_list,Gauss* gauss,Input* vx_input,Input* vy_input,Input* vz_input); 135 135 136 #ifdef _HAVE_RESPONSES_137 136 void AverageOntoPartition(Vector<IssmDouble>* partition_contributions,Vector<IssmDouble>* partition_areas,IssmDouble* vertex_response,IssmDouble* qmu_part); 138 137 IssmDouble IceVolume(void); … … 153 152 void MaxVy(IssmDouble* pmaxvy); 154 153 void MaxVz(IssmDouble* pmaxvz); 155 #endif156 154 157 155 #ifdef _HAVE_GIA_ … … 159 157 #endif 160 158 161 #ifdef _HAVE_CONTROL_162 159 IssmDouble DragCoefficientAbsGradient(void); 163 160 void GradientIndexing(int* indexing,int control_index); … … 189 186 IssmDouble Misfit(int modelenum,int observationenum,int weightsenum){_error_("not implemented yet");}; 190 187 IssmDouble MisfitArea(int weightsenum){_error_("not implemented yet");}; 191 #endif 192 193 #ifdef _HAVE_GROUNDINGLINE_ 188 194 189 void MigrateGroundingLine(IssmDouble* sheet_ungrounding); 195 190 void PotentialUngrounding(Vector<IssmDouble>* potential_sheet_ungrounding); 196 191 int UpdatePotentialUngrounding(IssmDouble* potential_sheet_ungrounding,Vector<IssmDouble>* vec_nodes_on_iceshelf,IssmDouble* nodes_on_iceshelf); 197 #endif198 199 192 /*}}}*/ 200 193 /*Penta specific routines:{{{*/ … … 262 255 IssmDouble StabilizationParameter(IssmDouble u, IssmDouble v, IssmDouble w, IssmDouble diameter, IssmDouble kappa); 263 256 264 #ifdef _HAVE_HYDROLOGY_265 257 ElementMatrix* CreateEPLDomainMassMatrix(void); 266 258 void GetHydrologyDCInefficientHmax(IssmDouble* ph_max, Node* innode); … … 270 262 void HydrologyEPLGetMask(Vector<IssmDouble>* vec_mask); 271 263 void ComputeEPLThickness(void); 272 #endif273 264 274 265 void UpdateConstraintsExtrudeFromBase(void); -
issm/trunk-jpl/src/c/classes/Elements/Seg.h
r17230 r17236 163 163 void GetNormalFromLSF(IssmDouble *pnormal){_error_("not implemented yet");}; 164 164 165 #ifdef _HAVE_HYDROLOGY_166 165 void GetHydrologyDCInefficientHmax(IssmDouble* ph_max, Node* innode){_error_("not implemented yet");}; 167 166 void GetHydrologyDCInefficientHmax(IssmDouble* ph_max,int index){_error_("not implemented yet");}; … … 170 169 void HydrologyEPLGetMask(Vector<IssmDouble>* vec_mask){_error_("not implemented yet");}; 171 170 void ComputeEPLThickness(void){_error_("not implemented yet");}; 172 #endif173 171 void GetSolutionFromInputsOneDof(Vector<IssmDouble>* solution,int enum_type){_error_("not implemented yet");}; 174 172 void GetVectorFromInputs(Vector<IssmDouble>* vector, int name_enum){_error_("not implemented yet");}; … … 190 188 void UpdateConstraintsExtrudeFromTop(){_error_("not implemented");}; 191 189 192 #ifdef _HAVE_RESPONSES_193 190 void AverageOntoPartition(Vector<IssmDouble>* partition_contributions,Vector<IssmDouble>* partition_areas,IssmDouble* vertex_response,IssmDouble* qmu_part){_error_("not implemented yet");}; 194 191 IssmDouble IceVolume(void){_error_("not implemented yet");}; … … 211 208 IssmDouble Misfit(int modelenum,int observationenum,int weightsenum){_error_("not implemented yet");}; 212 209 IssmDouble MisfitArea(int weightsenum){_error_("not implemented yet");}; 213 #endif214 210 215 211 #ifdef _HAVE_GIA_ … … 217 213 #endif 218 214 219 #ifdef _HAVE_CONTROL_220 215 IssmDouble DragCoefficientAbsGradient(void){_error_("not implemented yet");}; 221 216 void GradientIndexing(int* indexing,int control_index){_error_("not implemented yet");}; … … 250 245 IssmDouble SurfaceAverageVelMisfit(void){_error_("not implemented yet");}; 251 246 void InputControlUpdate(IssmDouble scalar,bool save_parameter){_error_("not implemented yet");}; 252 #endif 253 254 #ifdef _HAVE_GROUNDINGLINE_ 247 255 248 void PotentialUngrounding(Vector<IssmDouble>* potential_sheet_ungrounding){_error_("not implemented yet");}; 256 249 void MigrateGroundingLine(IssmDouble* sheet_ungrounding){_error_("not implemented yet");}; 257 250 int UpdatePotentialUngrounding(IssmDouble* vertices_potentially_ungrounding,Vector<IssmDouble>* vec_nodes_on_iceshelf,IssmDouble* nodes_on_iceshelf){_error_("not implemented yet");}; 258 #endif259 251 /*}}}*/ 260 252 }; -
issm/trunk-jpl/src/c/classes/Elements/Tria.cpp
r17232 r17236 925 925 926 926 /* Intermediaries */ 927 const int dim=2;928 int i,counter;927 int i; 928 const int dim=2; 929 929 IssmDouble* xyz_list = NULL; 930 930 IssmDouble dlevelset[dim], norm_dlevelset; … … 935 935 this->GetVerticesCoordinates(&xyz_list); 936 936 937 counter=0;937 IssmDouble counter=0.; 938 938 Gauss* gauss = this->NewGauss(2); 939 939 for(int ig=gauss->begin();ig<gauss->end();ig++){ … … 946 946 counter++; 947 947 } 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; 950 950 951 951 pnormal=&normal[0]; … … 1356 1356 1357 1357 /*Control Inputs*/ 1358 #ifdef _HAVE_CONTROL_1359 1358 if (control_analysis && iomodel->Data(InversionControlParametersEnum)){ 1360 1359 for(i=0;i<num_control_type;i++){ … … 1408 1407 } 1409 1408 } 1410 #endif1411 1409 1412 1410 /*DatasetInputs*/ … … 2384 2382 2385 2383 /*Get for Vx and Vy, the max of abs value: */ 2386 #ifdef _HAVE_RESPONSES_2387 2384 this->MaxAbsVx(&maxabsvx); 2388 2385 this->MaxAbsVy(&maxabsvy); 2389 #else2390 _error_("ISSM was not compiled with responses compiled in, exiting!");2391 #endif2392 2386 2393 2387 /* Get node coordinates and dof list: */ … … 2595 2589 /*}}}*/ 2596 2590 2597 #ifdef _HAVE_RESPONSES_2598 2591 /*FUNCTION Tria::AverageOntoPartition {{{*/ 2599 2592 void Tria::AverageOntoPartition(Vector<IssmDouble>* partition_contributions,Vector<IssmDouble>* partition_areas,IssmDouble* vertex_response,IssmDouble* qmu_part){ … … 3072 3065 } 3073 3066 /*}}}*/ 3074 #endif3075 3067 3076 3068 #ifdef _HAVE_GIA_ … … 3203 3195 #endif 3204 3196 3205 #ifdef _HAVE_CONTROL_3206 3197 /*FUNCTION Tria::BalancethicknessMisfit{{{*/ 3207 3198 IssmDouble Tria::BalancethicknessMisfit(void){ … … 4600 4591 } 4601 4592 /*}}}*/ 4602 #endif 4603 4604 #ifdef _HAVE_HYDROLOGY_ 4593 4605 4594 /*FUNCTION Tria::CreateHydrologyWaterVelocityInput {{{*/ 4606 4595 void Tria::CreateHydrologyWaterVelocityInput(void){ … … 5050 5039 } 5051 5040 /*}}}*/ 5052 #endif5053 5041 5054 5042 #ifdef _HAVE_DAKOTA_ … … 5183 5171 #endif 5184 5172 5185 #ifdef _HAVE_GROUNDINGLINE_5186 5173 /*FUNCTION Tria::MigrateGroundingLine{{{*/ 5187 5174 void Tria::MigrateGroundingLine(IssmDouble* phi_ungrounding){ … … 5332 5319 } 5333 5320 /*}}}*/ 5334 #endif -
issm/trunk-jpl/src/c/classes/Elements/Tria.h
r17230 r17236 135 135 bool IsZeroLevelset(int levelset_enum); 136 136 137 #ifdef _HAVE_RESPONSES_138 137 void AverageOntoPartition(Vector<IssmDouble>* partition_contributions,Vector<IssmDouble>* partition_areas,IssmDouble* vertex_response,IssmDouble* qmu_part); 139 138 IssmDouble IceVolume(void); … … 156 155 IssmDouble Misfit(int modelenum,int observationenum,int weightsenum); 157 156 IssmDouble MisfitArea(int weightsenum); 158 #endif159 157 160 158 #ifdef _HAVE_GIA_ … … 162 160 #endif 163 161 164 #ifdef _HAVE_CONTROL_165 162 IssmDouble DragCoefficientAbsGradient(void); 166 163 void GradientIndexing(int* indexing,int control_index); … … 195 192 IssmDouble SurfaceAverageVelMisfit(void); 196 193 void InputControlUpdate(IssmDouble scalar,bool save_parameter); 197 #endif 198 199 #ifdef _HAVE_GROUNDINGLINE_ 194 200 195 void PotentialUngrounding(Vector<IssmDouble>* potential_sheet_ungrounding); 201 196 void MigrateGroundingLine(IssmDouble* sheet_ungrounding); 202 197 int UpdatePotentialUngrounding(IssmDouble* vertices_potentially_ungrounding,Vector<IssmDouble>* vec_nodes_on_iceshelf,IssmDouble* nodes_on_iceshelf); 203 #endif204 198 205 199 /*}}}*/ … … 272 266 void UpdateConstraintsExtrudeFromTop(void); 273 267 274 #ifdef _HAVE_HYDROLOGY_275 268 ElementMatrix* CreateEPLDomainMassMatrix(void); 276 269 void CreateHydrologyWaterVelocityInput(void); … … 281 274 void HydrologyEPLGetMask(Vector<IssmDouble>* vec_mask); 282 275 void ComputeEPLThickness(void); 283 #endif284 276 /*}}}*/ 285 277 -
issm/trunk-jpl/src/c/classes/FemModel.cpp
r17230 r17236 428 428 switch (response_descriptor_enum){ 429 429 430 #ifdef _HAVE_RESPONSES_431 430 case IceVolumeEnum: this->IceVolumex(responses); break; 432 431 case IceVolumeAboveFloatationEnum: this->IceVolumeAboveFloatationx(responses); break; … … 443 442 case MaxAbsVzEnum: this->MaxAbsVzx( responses); break; 444 443 case MassFluxEnum: this->MassFluxx( responses); break; 445 #ifdef _HAVE_CONTROL_446 444 case SurfaceAbsVelMisfitEnum: SurfaceAbsVelMisfitx(responses, elements,nodes, vertices, loads, materials,parameters); break; 447 445 case SurfaceRelVelMisfitEnum: SurfaceRelVelMisfitx(responses, elements,nodes, vertices, loads, materials,parameters); break; … … 456 454 case DragCoefficientAbsGradientEnum:DragCoefficientAbsGradientx(responses, elements,nodes, vertices, loads, materials, parameters); break; 457 455 case BalancethicknessMisfitEnum: BalancethicknessMisfitx(responses); break; 458 #endif459 456 case TotalSmbEnum: this->TotalSmbx(responses); break; 460 457 case MaterialsRheologyBbarEnum: this->ElementResponsex(responses,MaterialsRheologyBbarEnum); break; 461 458 case VelEnum: this->ElementResponsex(responses,VelEnum); break; 462 459 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 #else465 default: _error_("ISSM was not compiled with responses capabilities, exiting!");466 #endif467 460 } 468 461 … … 505 498 switch(output_enum){ 506 499 507 #ifdef _HAVE_RESPONSES_508 500 /*Scalar output*/ 509 501 case IceVolumeEnum: this->IceVolumex(&double_result); break; … … 524 516 525 517 /*Scalar control output*/ 526 #ifdef _HAVE_CONTROL_527 518 case SurfaceAbsVelMisfitEnum: SurfaceAbsVelMisfitx(&double_result,elements,nodes,vertices,loads,materials,parameters); break; 528 519 case SurfaceRelVelMisfitEnum: SurfaceRelVelMisfitx(&double_result,elements,nodes,vertices,loads,materials,parameters); break; … … 537 528 case DragCoefficientAbsGradientEnum:DragCoefficientAbsGradientx(&double_result,elements,nodes,vertices,loads,materials,parameters); break; 538 529 case BalancethicknessMisfitEnum: BalancethicknessMisfitx(&double_result); break; 539 #endif540 530 541 531 /*Vector */ … … 594 584 isvec = true; 595 585 break; 596 597 #else598 default: _error_("ISSM was not compiled with responses capabilities, exiting!");599 #endif600 586 } 601 587 } … … 713 699 } 714 700 /*}}}*/ 715 #ifdef _HAVE_RESPONSES_716 701 void FemModel::MassFluxx(IssmDouble* pmass_flux){/*{{{*/ 717 702 … … 1124 1109 1125 1110 }/*}}}*/ 1126 #endif1127 #ifdef _HAVE_CONTROL_1128 1111 void FemModel::BalancethicknessMisfitx(IssmDouble* presponse){/*{{{*/ 1129 1112 … … 1248 1231 } 1249 1232 /*}}}*/ 1250 #endif1251 1233 #ifdef _HAVE_DAKOTA_ 1252 1234 void FemModel::DakotaResponsesx(double* d_responses,char** responses_descriptors,int numresponsedescriptors,int d_numresponses){/*{{{*/ … … 1361 1343 /*}}}*/ 1362 1344 #endif 1363 #ifdef _HAVE_HYDROLOGY_1364 1345 void FemModel::HydrologyEPLupdateDomainx(void){ /*{{{*/ 1365 1346 … … 1443 1424 } 1444 1425 /*}}}*/ 1445 1446 1426 void FemModel::HydrologyEPLThicknessx(void){ /*{{{*/ 1447 1427 … … 1452 1432 } 1453 1433 /*}}}*/ 1454 1455 1434 void FemModel::UpdateConstraintsL2ProjectionEPLx(void){ /*{{{*/ 1456 1435 … … 1495 1474 } 1496 1475 /*}}}*/ 1497 #endif -
issm/trunk-jpl/src/c/classes/FemModel.h
r17064 r17236 59 59 60 60 /*Modules*/ 61 #ifdef _HAVE_RESPONSES_62 61 void MassFluxx(IssmDouble* presponse); 63 62 void MaxAbsVxx(IssmDouble* presponse); … … 77 76 void ElementResponsex(IssmDouble* presponse,int response_enum); 78 77 void BalancethicknessMisfitx(IssmDouble* pV); 79 #endif80 78 #ifdef _HAVE_DAKOTA_ 81 79 void DakotaResponsesx(double* d_responses,char** responses_descriptors,int numresponsedescriptors,int d_numresponses); … … 86 84 void Responsex(IssmDouble* presponse,int response_descriptor_enum); 87 85 void Responsex(IssmDouble* presponse,const char* response_descriptor); 88 #ifdef _HAVE_CONTROL_89 86 void OutputControlsx(Results **presults); 90 87 void CostFunctionx( IssmDouble* pJ); 91 88 void ThicknessAbsGradientx( IssmDouble* pJ); 92 #endif93 89 #ifdef _HAVE_GIA_ 94 90 void Deflection(Vector<IssmDouble>* wg,Vector<IssmDouble>* dwgdt, IssmDouble* x, IssmDouble* y); … … 99 95 void UpdateConstraintsExtrudeFromBasex(); 100 96 void UpdateConstraintsExtrudeFromTopx(); 101 #ifdef _HAVE_HYDROLOGY_102 97 void HydrologyTransferx(void); 103 98 void HydrologyEPLupdateDomainx(void); 104 99 void HydrologyEPLThicknessx(void); 105 100 void UpdateConstraintsL2ProjectionEPLx(void); 106 #endif107 101 }; 108 102 -
issm/trunk-jpl/src/c/classes/Loads/Pengrid.cpp
r16788 r17236 230 230 231 231 switch(analysis_type){ 232 #ifdef _HAVE_THERMAL_233 232 case ThermalAnalysisEnum: 234 233 Ke=PenaltyCreateKMatrixThermal(kmax); … … 237 236 Ke=PenaltyCreateKMatrixMelting(kmax); 238 237 break; 239 #endif240 #ifdef _HAVE_HYDROLOGY_241 238 case HydrologyDCInefficientAnalysisEnum: 242 239 Ke=PenaltyCreateKMatrixHydrologyDCInefficient(kmax); 243 240 break; 244 #endif245 #ifdef _HAVE_DAMAGE_246 241 case DamageEvolutionAnalysisEnum: 247 242 Ke=PenaltyCreateKMatrixDamageEvolution(kmax); 248 243 break; 249 #endif250 244 default: 251 245 _error_("analysis " << analysis_type << " (" << EnumToStringx(analysis_type) << ") not supported yet"); … … 268 262 269 263 switch(analysis_type){ 270 #ifdef _HAVE_THERMAL_271 264 case ThermalAnalysisEnum: 272 265 pe=PenaltyCreatePVectorThermal(kmax); … … 277 270 case StressbalanceAnalysisEnum: case AdjointHorizAnalysisEnum: 278 271 break; 279 #endif280 #ifdef _HAVE_HYDROLOGY_281 272 case HydrologyDCInefficientAnalysisEnum: 282 273 pe=PenaltyCreatePVectorHydrologyDCInefficient(kmax); 283 274 break; 284 #endif285 #ifdef _HAVE_DAMAGE_286 275 case DamageEvolutionAnalysisEnum: 287 276 pe=PenaltyCreatePVectorDamageEvolution(kmax); 288 277 break; 289 #endif290 291 278 default: 292 279 _error_("analysis " << analysis_type << " (" << EnumToStringx(analysis_type) << ") not supported yet"); … … 421 408 return; 422 409 } 423 #ifdef _HAVE_THERMAL_424 410 else if (analysis_type==ThermalAnalysisEnum){ 425 411 ConstraintActivateThermal(punstable); … … 429 415 return; 430 416 } 431 #endif432 #ifdef _HAVE_HYDROLOGY_433 417 else if (analysis_type==HydrologyDCInefficientAnalysisEnum){ 434 418 ConstraintActivateHydrologyDCInefficient(punstable); 435 419 return; 436 420 } 437 #endif438 #ifdef _HAVE_DAMAGE_439 421 else if (analysis_type==DamageEvolutionAnalysisEnum){ 440 422 ConstraintActivateDamageEvolution(punstable); 441 423 return; 442 424 } 443 #endif444 425 445 426 else{ … … 449 430 } 450 431 /*}}}*/ 451 #ifdef _HAVE_THERMAL_452 432 /*FUNCTION Pengrid::ConstraintActivateThermal {{{*/ 453 433 void Pengrid::ConstraintActivateThermal(int* punstable){ … … 629 609 } 630 610 /*}}}*/ 631 #endif632 #ifdef _HAVE_HYDROLOGY_633 611 /*FUNCTION Pengrid::ConstraintActivateHydrologyDCInefficient{{{*/ 634 612 void Pengrid::ConstraintActivateHydrologyDCInefficient(int* punstable){ … … 728 706 } 729 707 /*}}}*/ 730 #endif731 #ifdef _HAVE_DAMAGE_732 708 /*FUNCTION Pengrid::ConstraintActivateDamageEvolution {{{*/ 733 709 void Pengrid::ConstraintActivateDamageEvolution(int* punstable){ … … 828 804 } 829 805 /*}}}*/ 830 #endif831 832 806 /*FUNCTION Pengrid::ResetConstraint {{{*/ 833 807 void Pengrid::ResetConstraint(void){ -
issm/trunk-jpl/src/c/classes/Loads/Pengrid.h
r16783 r17236 83 83 /*}}}*/ 84 84 /*Pengrid management {{{*/ 85 #ifdef _HAVE_THERMAL_86 85 ElementMatrix* PenaltyCreateKMatrixThermal(IssmDouble kmax); 87 86 ElementMatrix* PenaltyCreateKMatrixMelting(IssmDouble kmax); … … 89 88 ElementVector* PenaltyCreatePVectorMelting(IssmDouble kmax); 90 89 void ConstraintActivateThermal(int* punstable); 91 #endif92 #ifdef _HAVE_DAMAGE_93 90 ElementMatrix* PenaltyCreateKMatrixDamageEvolution(IssmDouble kmax); 94 91 ElementVector* PenaltyCreatePVectorDamageEvolution(IssmDouble kmax); 95 92 void ConstraintActivateDamageEvolution(int* punstable); 96 #endif97 98 #ifdef _HAVE_HYDROLOGY_99 93 ElementMatrix* PenaltyCreateKMatrixHydrologyDCInefficient(IssmDouble kmax); 100 94 ElementVector* PenaltyCreatePVectorHydrologyDCInefficient(IssmDouble kmax); 101 95 void ConstraintActivateHydrologyDCInefficient(int* punstable); 102 #endif103 96 void ConstraintActivate(int* punstable); 104 97 void ResetConstraint(void); -
issm/trunk-jpl/src/c/classes/Materials/Matice.cpp
r16783 r17236 763 763 return; 764 764 } 765 #ifdef _HAVE_3D_766 765 case PentaEnum: { 767 766 IssmDouble valuesp[6]; … … 770 769 return; 771 770 } 772 #endif773 771 default: _error_("element " << EnumToStringx(element->ObjectEnum()) << " not implemented yet"); 774 772 } … … 819 817 return; 820 818 } 821 #ifdef _HAVE_3D_822 819 case PentaEnum:{ 823 820 IssmDouble valuesp[6]; … … 826 823 return; 827 824 } 828 # endif829 825 default: _error_("element " << EnumToStringx(element->ObjectEnum()) << " not implemented yet"); 830 826 } … … 892 888 893 889 /*Control Inputs*/ 894 #ifdef _HAVE_CONTROL_895 890 if (control_analysis && iomodel->Data(InversionControlParametersEnum)){ 896 891 for(i=0;i<num_control_type;i++){ … … 917 912 } 918 913 } 919 #endif920 914 } 921 915 else if(iomodel->meshtype==Mesh2DverticalEnum){ … … 945 939 } 946 940 } 947 #ifdef _HAVE_3D_948 941 else if(iomodel->meshtype==Mesh3DEnum){ 949 942 … … 973 966 974 967 /*Control Inputs*/ 975 #ifdef _HAVE_CONTROL_976 968 if (control_analysis && iomodel->Data(InversionControlParametersEnum)){ 977 969 for(i=0;i<num_control_type;i++){ … … 999 991 } 1000 992 } 1001 #endif 1002 } 1003 #endif 993 } 1004 994 else{ 1005 995 _error_("Mesh type not supported yet!"); -
issm/trunk-jpl/src/c/classes/Node.cpp
r16534 r17236 54 54 55 55 /*Stressbalance Horiz*/ 56 #ifdef _HAVE_STRESSBALANCE_57 56 if(analysis_enum==StressbalanceAnalysisEnum){ 58 57 … … 88 87 } 89 88 } 90 #endif91 89 92 90 /*2d solutions in 3d, we need to constrain all the nodes that are not on base*/ … … 110 108 } 111 109 if( 112 analysis_enum==FreeSurfaceTopAnalysisEnum || 113 analysis_enum==L2ProjectionTopAnalysisEnum 110 analysis_enum==FreeSurfaceTopAnalysisEnum 114 111 ){ 115 112 if(iomodel->meshtype==Mesh3DEnum || iomodel->meshtype==Mesh2DverticalEnum){ … … 363 360 } 364 361 /*}}}*/ 365 #ifdef _HAVE_STRESSBALANCE_366 362 /*FUNCTION Node::GetCoordinateSystem{{{*/ 367 363 void Node::GetCoordinateSystem(IssmDouble* coord_system_out){ … … 372 368 } 373 369 /*}}}*/ 374 #endif375 370 /*FUNCTION Node::InAnalysis{{{*/ 376 371 bool Node::InAnalysis(int in_analysis_enum){ … … 901 896 } 902 897 /*}}}*/ 903 #ifdef _HAVE_STRESSBALANCE_904 898 void TransformInvStiffnessMatrixCoord(ElementMatrix* Ke,Node** nodes,int numnodes,int cs_enum){/*{{{*/ 905 899 … … 1173 1167 } 1174 1168 /*}}}*/ 1175 #endif -
issm/trunk-jpl/src/c/classes/Node.h
r16534 r17236 56 56 int Sid(void); 57 57 int Lid(void); 58 #ifdef _HAVE_STRESSBALANCE_59 58 void GetCoordinateSystem(IssmDouble* coord_system_out); 60 #endif61 59 bool InAnalysis(int analysis_enum); 62 60 int GetApproximation(); … … 91 89 int* GetGlobalDofList(Node** nodes,int numnodes,int setenum,int approximation); 92 90 int GetNumberOfDofs(Node** nodes,int numnodes,int setenum,int approximation); 93 #ifdef _HAVE_STRESSBALANCE_94 91 void TransformInvStiffnessMatrixCoord(ElementMatrix* Ke,Node** nodes,int numnodes,int cs_enum); 95 92 void TransformInvStiffnessMatrixCoord(ElementMatrix* Ke,Node** nodes,int numnodes,int* cs_array); … … 101 98 void TransformStiffnessMatrixCoord(ElementMatrix* Ke,Node** nodes,int numnodes,int* cs_array); 102 99 void CoordinateSystemTransform(IssmDouble** ptransform,Node** nodes,int numnodes,int* cs_array); 103 #endif104 100 105 101 #endif /* _NODE_H_ */ -
issm/trunk-jpl/src/c/cores/CorePointerFromSolutionEnum.cpp
r16518 r17236 24 24 25 25 case StressbalanceSolutionEnum: 26 #ifdef _HAVE_STRESSBALANCE_27 26 solutioncore=&stressbalance_core; 28 #else29 _error_("ISSM was not compiled with stressbalance capabilities. Exiting");30 #endif31 27 break; 32 28 case SteadystateSolutionEnum: 33 #ifdef _HAVE_STEADYSTATE_34 29 solutioncore=&steadystate_core; 35 #else36 _error_("ISSM was not compiled with steady state capabilities. Exiting");37 #endif38 30 break; 39 31 case ThermalSolutionEnum: 40 #ifdef _HAVE_THERMAL_41 32 solutioncore=&thermal_core; 42 #else43 _error_("ISSM was not compiled with thermal capabilities. Exiting");44 #endif45 33 break; 46 34 case BalancethicknessSolutionEnum: 47 #ifdef _HAVE_BALANCED_48 35 solutioncore=&balancethickness_core; 49 #else50 _error_("ISSM was not compiled with balanced capabilities. Exiting");51 #endif52 36 break; 53 37 case BalancethicknessSoftSolutionEnum: 54 #ifdef _HAVE_BALANCED_55 38 solutioncore=&dummy_core; 56 #else57 _error_("ISSM was not compiled with balanced capabilities. Exiting");58 #endif59 39 break; 60 40 case BalancevelocitySolutionEnum: 61 #ifdef _HAVE_BALANCED_62 41 solutioncore=&balancevelocity_core; 63 #else64 _error_("ISSM was not compiled with balanced capabilities. Exiting");65 #endif66 42 break; 67 43 case HydrologySolutionEnum: 68 #ifdef _HAVE_HYDROLOGY_69 44 solutioncore=&hydrology_core; 70 #else71 _error_("ISSM was not compiled with hydrology capabilities. Exiting");72 #endif73 45 break; 74 46 case SurfaceSlopeSolutionEnum: 75 #ifdef _HAVE_SLOPE_76 47 solutioncore=&surfaceslope_core; 77 #else78 _error_("ISSM was not compiled with slope capabilities. Exiting");79 #endif80 48 break; 81 49 case BedSlopeSolutionEnum: 82 #ifdef _HAVE_SLOPE_83 50 solutioncore=&bedslope_core; 84 #else85 _error_("ISSM was not compiled with slope capabilities. Exiting");86 #endif87 51 break; 88 52 case TransientSolutionEnum: 89 #ifdef _HAVE_TRANSIENT_90 53 solutioncore=&transient_core; 91 #else92 _error_("ISSM was not compiled with transient capabilities. Exiting");93 #endif94 54 break; 95 55 case MasstransportSolutionEnum: 96 #ifdef _HAVE_MASSTRANSPORT_97 56 solutioncore=&masstransport_core; 98 #else99 _error_("ISSM was not compiled with masstransport capabilities. Exiting");100 #endif101 57 break; 102 103 58 case GiaSolutionEnum: 104 #if def_HAVE_GIA_59 #if _HAVE_GIA_ 105 60 solutioncore=&gia_core; 106 61 #else 107 _error_("ISSM was not compiled with gia capabilities. Exiting");62 _error_("ISSM not compiled with Gia capability"); 108 63 #endif 109 64 break; 110 65 case DamageEvolutionSolutionEnum: 111 #ifdef _HAVE_DAMAGE_112 66 solutioncore=&damage_core; 113 #else114 _error_("ISSM was not compiled with damage evolution capabilities. Exiting");115 #endif116 67 break; 117 118 68 default: 119 69 _error_("solution type: " << EnumToStringx(solutiontype) << " not supported yet!"); … … 124 74 _assert_(psolutioncore); 125 75 *psolutioncore=solutioncore; 126 127 76 } -
issm/trunk-jpl/src/c/cores/WrapperCorePointerFromSolutionEnum.cpp
r16518 r17236 42 42 } 43 43 else if(control_analysis){ 44 #ifdef _HAVE_CONTROL_45 44 if(tao_analysis) solutioncore=controltao_core; 46 45 else solutioncore=control_core; 47 #else48 _error_("ISSM was not compiled with control support, cannot carry out control analysis!");49 #endif50 46 } 51 47 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 50 50 51 51 if(VerboseSolution()) _printf0_(" computing temperature and velocity for step: " << step << "\n"); 52 #ifdef _HAVE_THERMAL_53 52 thermal_core(femmodel); 54 53 if(!isenthalpy)femmodel->SetCurrentConfiguration(ThermalAnalysisEnum);/*Could be MeltingAnalysis...*/ 55 54 GetSolutionFromInputsx(&tg,femmodel); 56 #else57 _error_("ISSM was not compiled with thermal capabilities. Exiting");58 #endif59 55 60 56 if(VerboseSolution()) _printf0_(" computing new velocity\n"); -
issm/trunk-jpl/src/c/cores/transient_core.cpp
r17230 r17236 115 115 if(isthermal && meshtype==Mesh3DEnum){ 116 116 if(VerboseSolution()) _printf0_(" computing thermal regime\n"); 117 #ifdef _HAVE_THERMAL_118 117 thermal_core(femmodel); 119 #else120 _error_("ISSM was not compiled with thermal capabilities. Exiting");121 #endif122 118 } 123 119 124 120 if(isstressbalance){ 125 121 if(VerboseSolution()) _printf0_(" computing new velocity\n"); 126 #ifdef _HAVE_STRESSBALANCE_127 122 stressbalance_core(femmodel); 128 #else129 _error_("ISSM was not compiled with stressbalance capabilities. Exiting");130 #endif131 123 } 132 124 … … 140 132 if(isgroundingline){ 141 133 if(VerboseSolution()) _printf0_(" computing new grounding line position\n"); 142 #ifdef _HAVE_GROUNDINGLINE_143 134 GroundinglineMigrationx(femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters); 144 #else145 _error_("ISSM was not compiled with grounding line migration capabilities. Exiting");146 #endif147 135 if(save_results){ 148 136 int outputs[3] = {SurfaceEnum,BedEnum,MaskGroundediceLevelsetEnum}; -
issm/trunk-jpl/src/c/modules/ConstraintsStatex/ConstraintsStatex.cpp
r16200 r17236 26 26 27 27 /*Rift penalties first*/ 28 #ifdef _HAVE_RIFTS_29 28 if(RiftIsPresent(femmodel->loads,analysis_type)){ 30 29 RiftConstraintsState(&converged,&num_unstable_constraints,femmodel->loads,min_mechanical_constraints,analysis_type); 31 30 } 32 #endif33 31 34 32 /*Deal with pengrid*/ -
issm/trunk-jpl/src/c/modules/ModelProcessorx/CreateElementsVerticesAndMaterials.cpp
r16542 r17236 38 38 } 39 39 break; 40 #ifdef _HAVE_3D_41 40 case Mesh3DEnum: 42 41 iomodel->FetchData(2,MeshUpperelementsEnum,MeshLowerelementsEnum); … … 45 44 } 46 45 break; 47 #endif48 46 default: 49 47 _error_("Mesh not supported yet"); … … 60 58 materials->InputDuplicate(MaterialsRheologyBbarEnum,QmuMaterialsRheologyBEnum); 61 59 break; 62 #ifdef _HAVE_3D_63 60 case Mesh3DEnum: 64 61 materials->InputDuplicate(MaterialsRheologyBEnum,QmuMaterialsRheologyBEnum); 65 62 break; 66 #endif67 63 default: 68 64 _error_("Mesh not supported yet"); -
issm/trunk-jpl/src/c/modules/ModelProcessorx/CreateParameters.cpp
r17114 r17236 209 209 210 210 /*Before returning, create parameters in case we are running Qmu or control types runs: */ 211 #ifdef _HAVE_CONTROL_212 211 CreateParametersControl(parameters,iomodel,solution_type); 213 #endif214 212 215 213 #ifdef _HAVE_DAKOTA_ -
issm/trunk-jpl/src/c/modules/ModelProcessorx/ModelProcessorx.cpp
r17159 r17236 97 97 98 98 /*Solution specific updates*/ 99 #ifdef _HAVE_CONTROL_100 99 UpdateElementsAndMaterialsControl(elements,materials,iomodel); 101 #endif102 100 #ifdef _HAVE_DAKOTA_ 103 101 UpdateElementsAndMaterialsDakota(elements,materials,iomodel); 104 102 #endif 105 #ifdef _HAVE_TRANSIENT_106 103 if(solution_enum==TransientSolutionEnum){ 107 104 UpdateElementsTransient(elements,parameters,iomodel,analysis_enum); 108 105 } 109 #endif110 106 111 107 /*Output definitions dataset: */ -
issm/trunk-jpl/src/c/modules/ResetConstraintsx/ResetConstraintsx.cpp
r16206 r17236 24 24 25 25 /*Deal with rift first*/ 26 #ifdef _HAVE_RIFTS_27 26 if(RiftIsPresent(femmodel->loads,analysis_type)){ 28 27 _error_("rift constraints reset not supported yet!"); 29 28 } 30 #endif31 29 32 30 /*Reset pengrid to inactive mode*/ -
issm/trunk-jpl/src/c/shared/Enum/EnumDefinitions.h
r17222 r17236 342 342 ExtrudeFromTopAnalysisEnum, 343 343 SteadystateSolutionEnum, 344 L2ProjectionTopAnalysisEnum,345 344 SurfaceSlopeSolutionEnum, 346 345 SmoothedSurfaceSlopeXAnalysisEnum, -
issm/trunk-jpl/src/c/shared/Enum/EnumToStringx.cpp
r17222 r17236 343 343 case ExtrudeFromTopAnalysisEnum : return "ExtrudeFromTopAnalysis"; 344 344 case SteadystateSolutionEnum : return "SteadystateSolution"; 345 case L2ProjectionTopAnalysisEnum : return "L2ProjectionTopAnalysis";346 345 case SurfaceSlopeSolutionEnum : return "SurfaceSlopeSolution"; 347 346 case SmoothedSurfaceSlopeXAnalysisEnum : return "SmoothedSurfaceSlopeXAnalysis"; -
issm/trunk-jpl/src/c/shared/Enum/StringToEnumx.cpp
r17222 r17236 349 349 else if (strcmp(name,"ExtrudeFromTopAnalysis")==0) return ExtrudeFromTopAnalysisEnum; 350 350 else if (strcmp(name,"SteadystateSolution")==0) return SteadystateSolutionEnum; 351 else if (strcmp(name,"L2ProjectionTopAnalysis")==0) return L2ProjectionTopAnalysisEnum;352 351 else if (strcmp(name,"SurfaceSlopeSolution")==0) return SurfaceSlopeSolutionEnum; 353 352 else if (strcmp(name,"SmoothedSurfaceSlopeXAnalysis")==0) return SmoothedSurfaceSlopeXAnalysisEnum; … … 383 382 else if (strcmp(name,"Results")==0) return ResultsEnum; 384 383 else if (strcmp(name,"GenericParam")==0) return GenericParamEnum; 384 else if (strcmp(name,"AdolcParam")==0) return AdolcParamEnum; 385 385 else stage=4; 386 386 } 387 387 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; 390 389 else if (strcmp(name,"BoolParam")==0) return BoolParamEnum; 391 390 else if (strcmp(name,"Contour")==0) return ContourEnum; … … 506 505 else if (strcmp(name,"VzMesh")==0) return VzMeshEnum; 507 506 else if (strcmp(name,"Enthalpy")==0) return EnthalpyEnum; 507 else if (strcmp(name,"EnthalpyPicard")==0) return EnthalpyPicardEnum; 508 508 else stage=5; 509 509 } 510 510 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; 513 512 else if (strcmp(name,"ThicknessAlongGradient")==0) return ThicknessAlongGradientEnum; 514 513 else if (strcmp(name,"ThicknessAcrossGradient")==0) return ThicknessAcrossGradientEnum; … … 629 628 else if (strcmp(name,"Sset")==0) return SsetEnum; 630 629 else if (strcmp(name,"Verbose")==0) return VerboseEnum; 630 else if (strcmp(name,"TriangleInterp")==0) return TriangleInterpEnum; 631 631 else stage=6; 632 632 } 633 633 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; 636 635 else if (strcmp(name,"NearestInterp")==0) return NearestInterpEnum; 637 636 else if (strcmp(name,"XY")==0) return XYEnum; -
issm/trunk-jpl/src/c/shared/Enum/Synchronize.sh
r16534 r17236 104 104 END 105 105 #}}} 106 # #Build EnumToAnalysis.cpp {{{107 # #Header108 #cat <<END > $ISSM_DIR/src/c/analyses/EnumToAnalysis.cpp109 #/*110 #* \file EnumToAnalysis.cpp111 #* \brief: output class depending on enum112 #*113 #* WARNING: DO NOT MODIFY THIS FILE114 #* this file has been automatically generated by Synchronize.sh115 #* Please read README for more information116 #*/117 # 118 # #include "./analyses.h"119 # #include "../shared/shared.h"120 # 121 #Analysis* EnumToAnalysis(int analysis_enum){122 # 123 #switch(analysis_enum){124 #END125 # #core126 #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.cpp130 # 131 # #Footer132 #cat <<END >> $ISSM_DIR/src/c/analyses/EnumToAnalysis.cpp133 #default : _error_("enum provided not supported ("<<EnumToStringx(analysis_enum)<<")");134 #}135 #}136 #END137 # #}}}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-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 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 #}}} 138 138 #Build EnumDefinitions.py{{{ 139 139 cat <<END > $ISSM_DIR/src/m/enum/EnumDefinitions.py
Note:
See TracChangeset
for help on using the changeset viewer.