Index: /issm/trunk-jpl/externalpackages/dakota/configs/6.2/packages/queso/src/misc/src/1DQuadrature.C
===================================================================
--- /issm/trunk-jpl/externalpackages/dakota/configs/6.2/packages/queso/src/misc/src/1DQuadrature.C	(revision 26246)
+++ /issm/trunk-jpl/externalpackages/dakota/configs/6.2/packages/queso/src/misc/src/1DQuadrature.C	(revision 26246)
@@ -0,0 +1,755 @@
+//-----------------------------------------------------------------------bl-
+//--------------------------------------------------------------------------
+//
+// QUESO - a library to support the Quantification of Uncertainty
+// for Estimation, Simulation and Optimization
+//
+// Copyright (C) 2008-2015 The PECOS Development Team
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the Version 2.1 GNU Lesser General
+// Public License as published by the Free Software Foundation.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc. 51 Franklin Street, Fifth Floor,
+// Boston, MA  02110-1301  USA
+//
+//-----------------------------------------------------------------------el-
+
+#include <queso/1DQuadrature.h>
+
+namespace QUESO {
+
+//*****************************************************
+// Base 1D quadrature class
+//*****************************************************
+Base1DQuadrature::Base1DQuadrature(
+  double minDomainValue,
+  double maxDomainValue,
+  unsigned int order)
+  :
+  m_minDomainValue(minDomainValue),
+  m_maxDomainValue(maxDomainValue),
+  m_order         (order),
+  m_positions     (0),
+  m_weights       (0)
+{
+  UQ_FATAL_TEST_MACRO(m_minDomainValue >= m_maxDomainValue,
+                      UQ_UNAVAILABLE_RANK,
+                      "Base1DQuadrature::constructor()",
+                      "min >= max");
+  //UQ_FATAL_TEST_MACRO(order == 0, // eep2011
+  //                    UQ_UNAVAILABLE_RANK,
+  //                    "Base1DQuadrature::constructor()",
+  //                    "order = 0");
+}
+
+Base1DQuadrature::~Base1DQuadrature()
+{
+}
+
+double
+Base1DQuadrature::minDomainValue() const
+{
+  return m_minDomainValue;
+}
+
+double
+Base1DQuadrature::maxDomainValue() const
+{
+  return m_maxDomainValue;
+}
+
+unsigned int
+Base1DQuadrature::order() const
+{
+  return m_order;
+}
+
+const std::vector<double>&
+Base1DQuadrature::positions() const
+{
+  UQ_FATAL_TEST_MACRO(m_positions.size() == 0,
+                      UQ_UNAVAILABLE_RANK,
+                      "Base1DQuadrature::positions()",
+                      "size = 0");
+  return m_positions;
+}
+
+const std::vector<double>&
+Base1DQuadrature::weights() const
+{
+  UQ_FATAL_TEST_MACRO(m_weights.size() == 0,
+                      UQ_UNAVAILABLE_RANK,
+                      "Base1DQuadrature::weights()",
+                      "size = 0");
+  return m_weights;
+}
+
+//*****************************************************
+// Generic 1D quadrature class
+//*****************************************************
+Generic1DQuadrature::Generic1DQuadrature(
+  double minDomainValue,
+  double maxDomainValue,
+  const std::vector<double>& positions,
+  const std::vector<double>& weights)
+  :
+  Base1DQuadrature(minDomainValue,maxDomainValue,positions.size()-1)
+{
+  m_positions = positions;
+  m_weights   = weights;
+
+  UQ_FATAL_TEST_MACRO(m_positions.size() == 0,
+                      UQ_UNAVAILABLE_RANK,
+                      "Generic1DQuadrature::constructor()",
+                      "invalid positions");
+
+  UQ_FATAL_TEST_MACRO(m_positions.size() != m_weights.size(),
+                      UQ_UNAVAILABLE_RANK,
+                      "Generic1DQuadrature::constructor()",
+                      "inconsistent positions and weight");
+}
+
+Generic1DQuadrature::~Generic1DQuadrature()
+{
+}
+
+void
+Generic1DQuadrature::dumbRoutine() const
+{
+  return;
+}
+
+//*****************************************************
+// UniformLegendre 1D quadrature class
+//*****************************************************
+UniformLegendre1DQuadrature::UniformLegendre1DQuadrature(
+  double       minDomainValue,
+  double       maxDomainValue,
+  unsigned int order,
+  bool         densityIsNormalized)
+  :
+  Base1DQuadrature(minDomainValue,maxDomainValue,order)
+{
+  m_positions.resize(m_order+1,0.); // Yes, '+1'
+  m_weights.resize  (m_order+1,0.); // Yes, '+1'
+
+  // http://www.holoborodko.com/pavel/?page_id=679
+  switch (m_order) { // eep2011
+    case 1:
+      m_weights  [0] =  1.;
+      m_weights  [1] =  1.;
+
+      m_positions[0] = -1./sqrt(3.);
+      m_positions[1] =  1./sqrt(3.);
+    break;
+
+    case 2:
+      m_weights  [0] =  5./9.;
+      m_weights  [1] =  8./9.;
+      m_weights  [2] =  5./9.;
+
+      m_positions[0] = -sqrt(.6);
+      m_positions[1] =  0.;
+      m_positions[2] =  sqrt(.6);
+    break;
+
+    case 3:
+      m_weights  [0] =  0.5 - sqrt(30.)/36.;
+      m_weights  [1] =  0.5 + sqrt(30.)/36.;
+      m_weights  [2] =  0.5 + sqrt(30.)/36.;
+      m_weights  [3] =  0.5 - sqrt(30.)/36.;
+
+      m_positions[0] = -sqrt(3.+2.*sqrt(1.2))/sqrt(7.);
+      m_positions[1] = -sqrt(3.-2.*sqrt(1.2))/sqrt(7.);
+      m_positions[2] =  sqrt(3.-2.*sqrt(1.2))/sqrt(7.);
+      m_positions[3] =  sqrt(3.+2.*sqrt(1.2))/sqrt(7.);
+    break;
+
+    case 4:
+      m_weights  [0] =  (322.-13.*sqrt(70.))/900.; // 0.236926885
+      m_weights  [1] =  (322.+13.*sqrt(70.))/900.; // 0.478628670
+      m_weights  [2] =  128./225.;                 // 0.568888889
+      m_weights  [3] =  (322.+13.*sqrt(70.))/900.;
+      m_weights  [4] =  (322.-13.*sqrt(70.))/900.;
+
+      m_positions[0] = -sqrt(5.+2.*sqrt(10./7.))/3.;
+      m_positions[1] = -sqrt(5.-2.*sqrt(10./7.))/3.;
+      m_positions[2] =  0.;
+      m_positions[3] =  sqrt(5.-2.*sqrt(10./7.))/3.;
+      m_positions[4] =  sqrt(5.+2.*sqrt(10./7.))/3.;
+    break;
+
+    case 5:
+      m_weights  [0] =  0.1713244923791703450402961;
+      m_weights  [1] =  0.3607615730481386075698335;
+      m_weights  [2] =  0.4679139345726910473898703;
+      m_weights  [3] =  0.4679139345726910473898703;
+      m_weights  [4] =  0.3607615730481386075698335;
+      m_weights  [5] =  0.1713244923791703450402961;
+
+      m_positions[0] = -0.9324695142031520278123016;
+      m_positions[1] = -0.6612093864662645136613996;
+      m_positions[2] = -0.2386191860831969086305017;
+      m_positions[3] =  0.2386191860831969086305017;
+      m_positions[4] =  0.6612093864662645136613996;
+      m_positions[5] =  0.9324695142031520278123016;
+    break;
+
+    case 6:
+      m_weights  [0] =  0.1294849661688696932706114;
+      m_weights  [1] =  0.2797053914892766679014678;
+      m_weights  [2] =  0.3818300505051189449503698;
+      m_weights  [3] =  0.4179591836734693877551020;
+      m_weights  [4] =  0.3818300505051189449503698;
+      m_weights  [5] =  0.2797053914892766679014678;
+      m_weights  [6] =  0.1294849661688696932706114;
+
+      m_positions[0] = -0.9491079123427585245261897;
+      m_positions[1] = -0.7415311855993944398638648;
+      m_positions[2] = -0.4058451513773971669066064;
+      m_positions[3] =  0.;
+      m_positions[4] =  0.4058451513773971669066064;
+      m_positions[5] =  0.7415311855993944398638648;
+      m_positions[6] =  0.9491079123427585245261897;
+    break;
+
+    case 7:
+      m_weights  [0] =  0.10122854;
+      m_weights  [1] =  0.22238103;
+      m_weights  [2] =  0.31370665;
+      m_weights  [3] =  0.36268378;
+      m_weights  [4] =  0.36268378;
+      m_weights  [5] =  0.31370665;
+      m_weights  [6] =  0.22238103;
+      m_weights  [7] =  0.10122854;
+
+      m_positions[0] = -0.96028986;
+      m_positions[1] = -0.79666648;
+      m_positions[2] = -0.52553241;
+      m_positions[3] = -0.18343464;
+      m_positions[4] =  0.18343464;
+      m_positions[5] =  0.52553241;
+      m_positions[6] =  0.79666648;
+      m_positions[7] =  0.96028986;
+    break;
+
+    case 10:
+      m_weights  [ 0] =  0.0556685671161736664827537;
+      m_weights  [ 1] =  0.1255803694649046246346943;
+      m_weights  [ 2] =  0.1862902109277342514260976;
+      m_weights  [ 3] =  0.2331937645919904799185237;
+      m_weights  [ 4] =  0.2628045445102466621806889;
+      m_weights  [ 5] =  0.2729250867779006307144835;
+      m_weights  [ 6] =  0.2628045445102466621806889;
+      m_weights  [ 7] =  0.2331937645919904799185237;
+      m_weights  [ 8] =  0.1862902109277342514260976;
+      m_weights  [ 9] =  0.1255803694649046246346943;
+      m_weights  [10] =  0.0556685671161736664827537;
+
+      m_positions[ 0] = -0.9782286581460569928039380;
+      m_positions[ 1] = -0.8870625997680952990751578;
+      m_positions[ 2] = -0.7301520055740493240934163;
+      m_positions[ 3] = -0.5190961292068118159257257;
+      m_positions[ 4] = -0.2695431559523449723315320;
+      m_positions[ 5] =  0.;
+      m_positions[ 6] =  0.2695431559523449723315320;
+      m_positions[ 7] =  0.5190961292068118159257257;
+      m_positions[ 8] =  0.7301520055740493240934163;
+      m_positions[ 9] =  0.8870625997680952990751578;
+      m_positions[10] =  0.9782286581460569928039380;
+    break;
+
+    case 11:
+      m_weights  [ 0] =  0.0471753363865118271946160;
+      m_weights  [ 1] =  0.1069393259953184309602547;
+      m_weights  [ 2] =  0.1600783285433462263346525;
+      m_weights  [ 3] =  0.2031674267230659217490645;
+      m_weights  [ 4] =  0.2334925365383548087608499;
+      m_weights  [ 5] =  0.2491470458134027850005624;
+      m_weights  [ 6] =  0.2491470458134027850005624;
+      m_weights  [ 7] =  0.2334925365383548087608499;
+      m_weights  [ 8] =  0.2031674267230659217490645;
+      m_weights  [ 9] =  0.1600783285433462263346525;
+      m_weights  [10] =  0.1069393259953184309602547;
+      m_weights  [11] =  0.0471753363865118271946160;
+
+      m_positions[ 0] = -0.9815606342467192506905491;
+      m_positions[ 1] = -0.9041172563704748566784659;
+      m_positions[ 2] = -0.7699026741943046870368938;
+      m_positions[ 3] = -0.5873179542866174472967024;
+      m_positions[ 4] = -0.3678314989981801937526915;
+      m_positions[ 5] = -0.1252334085114689154724414;
+      m_positions[ 6] =  0.1252334085114689154724414;
+      m_positions[ 7] =  0.3678314989981801937526915;
+      m_positions[ 8] =  0.5873179542866174472967024;
+      m_positions[ 9] =  0.7699026741943046870368938;
+      m_positions[10] =  0.9041172563704748566784659;
+      m_positions[11] =  0.9815606342467192506905491;
+    break;
+
+    case 12:
+      m_weights  [ 0] =  0.0404840047653158795200216;
+      m_weights  [ 1] =  0.0921214998377284479144218;
+      m_weights  [ 2] =  0.1388735102197872384636018;
+      m_weights  [ 3] =  0.1781459807619457382800467;
+      m_weights  [ 4] =  0.2078160475368885023125232;
+      m_weights  [ 5] =  0.2262831802628972384120902;
+      m_weights  [ 6] =  0.2325515532308739101945895;
+      m_weights  [ 7] =  0.2262831802628972384120902;
+      m_weights  [ 8] =  0.2078160475368885023125232;
+      m_weights  [ 9] =  0.1781459807619457382800467;
+      m_weights  [10] =  0.1388735102197872384636018;
+      m_weights  [11] =  0.0921214998377284479144218;
+      m_weights  [12] =  0.0404840047653158795200216;
+
+      m_positions[ 0] = -0.9841830547185881494728294;
+      m_positions[ 1] = -0.9175983992229779652065478;
+      m_positions[ 2] = -0.8015780907333099127942065;
+      m_positions[ 3] = -0.6423493394403402206439846;
+      m_positions[ 4] = -0.4484927510364468528779129;
+      m_positions[ 5] = -0.2304583159551347940655281;
+      m_positions[ 6] =  0.;
+      m_positions[ 7] =  0.2304583159551347940655281;
+      m_positions[ 8] =  0.4484927510364468528779129;
+      m_positions[ 9] =  0.6423493394403402206439846;
+      m_positions[10] =  0.8015780907333099127942065;
+      m_positions[11] =  0.9175983992229779652065478;
+      m_positions[12] =  0.9841830547185881494728294;
+    break;
+#if 0
+    case 13:
+      m_weights  [ 0] =  ;
+      m_weights  [ 1] =  ;
+      m_weights  [ 2] =  ;
+      m_weights  [ 3] =  ;
+      m_weights  [ 4] =  ;
+      m_weights  [ 5] =  ;
+      m_weights  [ 6] =  ;
+      m_weights  [ 7] =  ;
+      m_weights  [ 8] =  ;
+      m_weights  [ 9] =  ;
+      m_weights  [10] =  ;
+      m_weights  [11] =  ;
+      m_weights  [12] =  ;
+      m_weights  [13] =  ;
+
+      m_positions[ 0] = -;
+      m_positions[ 1] = -;
+      m_positions[ 2] = -;
+      m_positions[ 3] = -;
+      m_positions[ 4] = -;
+      m_positions[ 5] = -;
+      m_positions[ 6] = -;
+      m_positions[ 7] =  ;
+      m_positions[ 8] =  ;
+      m_positions[ 9] =  ;
+      m_positions[10] =  ;
+      m_positions[11] =  ;
+      m_positions[12] =  ;
+      m_positions[13] =  ;
+    break;
+#endif
+/*
+    14 ±0.1080549487073436620662447 0.2152638534631577901958764
+    ±0.3191123689278897604356718 0.2051984637212956039659241
+    ±0.5152486363581540919652907 0.1855383974779378137417166
+    ±0.6872929048116854701480198 0.1572031671581935345696019
+    ±0.8272013150697649931897947 0.1215185706879031846894148
+    ±0.9284348836635735173363911 0.0801580871597602098056333
+    ±0.9862838086968123388415973 0.0351194603317518630318329
+*/
+
+    case 16:
+      m_weights  [ 0] =  0.0241483028685479319601100;
+      m_weights  [ 1] =  0.0554595293739872011294402;
+      m_weights  [ 2] =  0.0850361483171791808835354;
+      m_weights  [ 3] =  0.1118838471934039710947884;
+      m_weights  [ 4] =  0.1351363684685254732863200;
+      m_weights  [ 5] =  0.1540457610768102880814316;
+      m_weights  [ 6] =  0.1680041021564500445099707;
+      m_weights  [ 7] =  0.1765627053669926463252710;
+      m_weights  [ 8] =  0.1794464703562065254582656;
+      m_weights  [ 9] =  0.1765627053669926463252710;
+      m_weights  [10] =  0.1680041021564500445099707;
+      m_weights  [11] =  0.1540457610768102880814316;
+      m_weights  [12] =  0.1351363684685254732863200;
+      m_weights  [13] =  0.1118838471934039710947884;
+      m_weights  [14] =  0.0850361483171791808835354;
+      m_weights  [15] =  0.0554595293739872011294402;
+      m_weights  [16] =  0.0241483028685479319601100;
+
+      m_positions[ 0] = -0.9905754753144173356754340;
+      m_positions[ 1] = -0.9506755217687677612227170;
+      m_positions[ 2] = -0.8802391537269859021229557;
+      m_positions[ 3] = -0.7815140038968014069252301;
+      m_positions[ 4] = -0.6576711592166907658503022;
+      m_positions[ 5] = -0.5126905370864769678862466;
+      m_positions[ 6] = -0.3512317634538763152971855;
+      m_positions[ 7] = -0.1784841814958478558506775;
+      m_positions[ 8] =  0.;
+      m_positions[ 9] =  0.1784841814958478558506775;
+      m_positions[10] =  0.3512317634538763152971855;
+      m_positions[11] =  0.5126905370864769678862466;
+      m_positions[12] =  0.6576711592166907658503022;
+      m_positions[13] =  0.7815140038968014069252301;
+      m_positions[14] =  0.8802391537269859021229557;
+      m_positions[15] =  0.9506755217687677612227170;
+      m_positions[16] =  0.9905754753144173356754340;
+    break;
+
+    default:
+      std::cerr << "In UniformLegendre1DQuadrature::constructor()"
+                << ": m_order = " << m_order
+                << std::endl;
+      UQ_FATAL_TEST_MACRO(true,
+                          UQ_UNAVAILABLE_RANK,
+                          "UniformLegendre1DQuadrature::constructor()",
+                          "order not supported");
+    break;
+  }
+
+  // Scale positions from the interval [-1, 1] to the interval [min,max]
+  for (unsigned int j = 0; j < m_positions.size(); ++j) {
+    m_positions[j] = .5*(m_maxDomainValue - m_minDomainValue)*m_positions[j] + .5*(m_maxDomainValue + m_minDomainValue);
+    if (densityIsNormalized) {
+      // Since \rho is "1/\Delta", we just multiply by ".5"
+      m_weights[j] *= .5;
+    }
+    else {
+      // Since \rho is "1", we multiply by ".5 * \Delta"
+      m_weights[j] *= .5*(m_maxDomainValue - m_minDomainValue);
+    }
+  }
+}
+
+UniformLegendre1DQuadrature::~UniformLegendre1DQuadrature()
+{
+}
+
+void
+UniformLegendre1DQuadrature::dumbRoutine() const
+{
+  return;
+}
+
+//*****************************************************
+// GaussianHermite 1D quadrature class
+//*****************************************************
+GaussianHermite1DQuadrature::GaussianHermite1DQuadrature(
+  double mean,
+  double stddev,
+  unsigned int order)
+  :
+  Base1DQuadrature(-INFINITY,INFINITY,order),
+  m_mean  (mean),
+  m_stddev(stddev)
+{
+  // FIX ME: prepare code for mean != 0 and stddev != 1
+  m_positions.resize(m_order+1,0.); // Yes, '+1'
+  m_weights.resize  (m_order+1,0.); // Yes, '+1'
+
+  // http://www.efunda.com/math/num_integration/findgausshermite.cfm
+  switch (m_order) { // eep2011
+    case 1:
+      m_weights  [0] =  sqrt(M_PI)/2.;
+      m_weights  [1] =  sqrt(M_PI)/2.;
+
+      m_positions[0] = -1./sqrt(2.);
+      m_positions[1] =  1./sqrt(2.);
+    break;
+
+    case 2:
+      m_weights  [0] =  sqrt(M_PI)/6.;
+      m_weights  [1] =  2.*sqrt(M_PI)/3.;
+      m_weights  [2] =  sqrt(M_PI)/6.;
+
+      m_positions[0] = -sqrt(1.5);
+      m_positions[1] =  0.;
+      m_positions[2] =  sqrt(1.5);
+    break;
+
+    case 3:
+      m_weights  [0] =  sqrt(M_PI)/4./(3.-sqrt(6.));
+      m_weights  [1] =  sqrt(M_PI)/4./(3.+sqrt(6.));
+      m_weights  [2] =  sqrt(M_PI)/4./(3.+sqrt(6.));
+      m_weights  [3] =  sqrt(M_PI)/4./(3.-sqrt(6.));
+
+      m_positions[0] = -sqrt(1.5+sqrt(1.5));
+      m_positions[1] = -sqrt(1.5-sqrt(1.5));
+      m_positions[2] =  sqrt(1.5-sqrt(1.5));
+      m_positions[3] =  sqrt(1.5+sqrt(1.5));
+    break;
+
+    case 4:
+      m_weights  [0] =  0.019953242049;
+      m_weights  [1] =  0.393619323152;
+      m_weights  [2] =  0.945308720483;
+      m_weights  [3] =  0.393619323152;
+      m_weights  [4] =  0.019953242059;
+
+      m_positions[0] = -sqrt(2.5+sqrt(2.5));
+      m_positions[1] = -sqrt(2.5-sqrt(2.5));
+      m_positions[2] =  0.;
+      m_positions[3] =  sqrt(2.5-sqrt(2.5));
+      m_positions[4] =  sqrt(2.5+sqrt(2.5));
+    break;
+
+    case 5:
+      m_weights   [0] = 0.00453000990551;
+      m_weights   [1] = 0.157067320323;
+      m_weights   [2] = 0.724629595224;
+      m_weights   [3] = 0.724629595224;
+      m_weights   [4] = 0.157067320323;
+      m_weights   [5] = 0.00453000990551;
+
+      m_positions [0] = -2.35060497367;
+      m_positions [1] = -1.33584907401;
+      m_positions [2] = -0.436077411928;
+      m_positions [3] =  0.436077411928;
+      m_positions [4] =  1.33584907401;
+      m_positions [5] =  2.35060497367;
+    break;
+
+    case 6:
+      m_weights   [0] = 0.0009717812451;
+      m_weights   [1] = 0.0545155828191;
+      m_weights   [2] = 0.42560725261;
+      m_weights   [3] = 0.810264617557;
+      m_weights   [4] = 0.42560725261;
+      m_weights   [5] = 0.0545155828191;
+      m_weights   [6] = 0.0009717812451;
+
+      m_positions [0] = -2.65196135684;
+      m_positions [1] = -1.67355162877;
+      m_positions [2] = -0.816287882859;
+      m_positions [3] =  0.;
+      m_positions [4] =  0.816287882859;
+      m_positions [5] =  1.67355162877;
+      m_positions [6] =  2.65196135684;
+    break;
+
+    case 7:
+      m_weights   [0] = 0.000199604072211;
+      m_weights   [1] = 0.0170779830074;
+      m_weights   [2] = 0.207802325815;
+      m_weights   [3] = 0.661147012558;
+      m_weights   [4] = 0.661147012558;
+      m_weights   [5] = 0.207802325815;
+      m_weights   [6] = 0.0170779830074;
+      m_weights   [7] = 0.000199604072211;
+
+      m_positions [0] = -2.93063742026;
+      m_positions [1] = -1.9816567567;
+      m_positions [2] = -1.15719371245;
+      m_positions [3] = -0.381186990207;
+      m_positions [4] =  0.381186990207;
+      m_positions [5] =  1.15719371245;
+      m_positions [6] =  1.9816567567;
+      m_positions [7] =  2.93063742026;
+    break;
+
+    case 8:
+      m_weights   [0] = 3.96069772633e-5;
+      m_weights   [1] = 0.00494362427554;
+      m_weights   [2] = 0.0884745273944;
+      m_weights   [3] = 0.432651559003;
+      m_weights   [4] = 0.720235215606;
+      m_weights   [5] = 0.432651559003;
+      m_weights   [6] = 0.0884745273944;
+      m_weights   [7] = 0.00494362427554;
+      m_weights   [8] = 3.96069772633e-5;
+
+      m_positions [0] = -3.19099320178;
+      m_positions [1] = -2.26658058453;
+      m_positions [2] = -1.46855328922;
+      m_positions [3] = -0.723551018753;
+      m_positions [4] =  0.;
+      m_positions [5] =  0.723551018753;
+      m_positions [6] =  1.46855328922;
+      m_positions [7] =  2.26658058453;
+      m_positions [8] =  3.19099320178;
+    break;
+
+    case 9:
+      m_weights   [0] = 7.64043285523e-6;
+      m_weights   [1] = 0.00134364574678;
+      m_weights   [2] = 0.0338743944555;
+      m_weights   [3] = 0.240138611082;
+      m_weights   [4] = 0.610862633735;
+      m_weights   [5] = 0.610862633735;
+      m_weights   [6] = 0.240138611082;
+      m_weights   [7] = 0.0338743944555;
+      m_weights   [8] = 0.00134364574678;
+      m_weights   [9] = 7.64043285523e-6;
+
+      m_positions [0] = -3.43615911884;
+      m_positions [1] = -2.53273167423;
+      m_positions [2] = -1.7566836493;
+      m_positions [3] = -1.03661082979;
+      m_positions [4] = -0.342901327224;
+      m_positions [5] =  0.342901327224;
+      m_positions [6] =  1.03661082979;
+      m_positions [7] =  1.7566836493;
+      m_positions [8] =  2.53273167423;
+      m_positions [9] =  3.43615911884;
+    break;
+
+    case 19:
+      m_weights   [0] =  2.22939364554e-13;
+      m_weights   [1] =  4.39934099226e-10;
+      m_weights   [2] =  1.08606937077e-7;
+      m_weights   [3] =  7.8025564785e-6;
+      m_weights   [4] =  0.000228338636017;
+      m_weights   [5] =  0.00324377334224;
+      m_weights   [6] =  0.0248105208875;
+      m_weights   [7] =  0.10901720602;
+      m_weights   [8] =  0.286675505363;
+      m_weights   [9] =  0.462243669601;
+      m_weights  [10] =  0.462243669601;
+      m_weights  [11] =  0.286675505363;
+      m_weights  [12] =  0.10901720602;
+      m_weights  [13] =  0.0248105208875;
+      m_weights  [14] =  0.00324377334224;
+      m_weights  [15] =  0.000228338636017;
+      m_weights  [16] =  7.8025564785e-6;
+      m_weights  [17] =  1.08606937077e-7;
+      m_weights  [18] =  4.39934099226e-10;
+      m_weights  [19] =  2.22939364554e-13;
+
+      m_positions [0] = -5.38748089001;
+      m_positions [1] = -4.60368244955;
+      m_positions [2] = -3.94476404012;
+      m_positions [3] = -3.34785456738;
+      m_positions [4] = -2.78880605843;
+      m_positions [5] = -2.25497400209;
+      m_positions [6] = -1.73853771212;
+      m_positions [7] = -1.2340762154;
+      m_positions [8] = -0.737473728545;
+      m_positions [9] = -0.245340708301;
+      m_positions[10] =  0.245340708301;
+      m_positions[11] =  0.737473728545;
+      m_positions[12] =  1.2340762154;
+      m_positions[13] =  1.73853771212;
+      m_positions[14] =  2.25497400209;
+      m_positions[15] =  2.78880605843;
+      m_positions[16] =  3.34785456738;
+      m_positions[17] =  3.94476404012;
+      m_positions[18] =  4.60368244955;
+      m_positions[19] =  5.38748089001;
+    break;
+
+    default:
+      std::cerr << "In GaussianHermite1DQuadrature::constructor()"
+                << ": m_order = " << m_order
+                << std::endl;
+      UQ_FATAL_TEST_MACRO(true,
+                          UQ_UNAVAILABLE_RANK,
+                          "GaussianHermite1DQuadrature::constructor()",
+                          "order not supported");
+    break;
+  }
+  for (unsigned int j = 0; j < (m_order+1); ++j) {
+    m_weights  [j] *= sqrt(2.);
+    m_positions[j] *= sqrt(2.);
+  }
+}
+
+GaussianHermite1DQuadrature::~GaussianHermite1DQuadrature()
+{
+}
+
+void
+GaussianHermite1DQuadrature::dumbRoutine() const
+{
+  return;
+}
+
+//*****************************************************
+// WignerInverseChebyshev1st 1D quadrature class
+//*****************************************************
+WignerInverseChebyshev1st1DQuadrature::WignerInverseChebyshev1st1DQuadrature(
+  double       minDomainValue,
+  double       maxDomainValue,
+  unsigned int order)
+  :
+  Base1DQuadrature(minDomainValue,maxDomainValue,order)
+{
+  m_positions.resize(m_order+1,0.); // Yes, '+1'
+  m_weights.resize  (m_order+1,0.); // Yes, '+1'
+
+  // http://en.wikipedia.org/wiki/Chebyshev-Gauss_quadrature
+  switch (m_order) {
+    default:
+      UQ_FATAL_TEST_MACRO(true,
+                          UQ_UNAVAILABLE_RANK,
+                          "WignerInverseChebyshev1st1DQuadrature::constructor()",
+                          "order not supported");
+    break;
+  }
+
+  // Scale positions from the interval [-1, 1] to the interval [min,max]
+  for (unsigned int j = 0; j < m_positions.size(); ++j) {
+    m_positions[j] = .5*(m_maxDomainValue - m_minDomainValue)*m_positions[j] + .5*(m_maxDomainValue + m_minDomainValue);
+    m_weights[j] *= .5*(m_maxDomainValue - m_minDomainValue);
+  }
+}
+
+WignerInverseChebyshev1st1DQuadrature::~WignerInverseChebyshev1st1DQuadrature()
+{
+}
+
+void
+WignerInverseChebyshev1st1DQuadrature::dumbRoutine() const
+{
+  return;
+}
+
+//*****************************************************
+// WignerChebyshev2nd 1D quadrature class
+//*****************************************************
+WignerChebyshev2nd1DQuadrature::WignerChebyshev2nd1DQuadrature(
+  double       minDomainValue,
+  double       maxDomainValue,
+  unsigned int order)
+  :
+  Base1DQuadrature(minDomainValue,maxDomainValue,order)
+{
+  m_positions.resize(m_order+1,0.); // Yes, '+1'
+  m_weights.resize  (m_order+1,0.); // Yes, '+1'
+
+  // http://en.wikipedia.org/wiki/Chebyshev-Gauss_quadrature
+  unsigned int n = m_order+1;
+  for (unsigned int i = 0; i < n; ++i) {
+    double angle = M_PI*((double)(i+1))/((double)(n+1));
+    double cosValue = cos(angle);
+    double sinValue = sin(angle);
+    m_positions[i] = cosValue;
+    m_weights[i] = ( M_PI/((double)(n+1)) )*sinValue*sinValue;
+  }
+
+  // Scale positions from the interval [-1, 1] to the interval [min,max]
+  for (unsigned int j = 0; j < m_positions.size(); ++j) {
+    m_positions[j] = .5*(m_maxDomainValue - m_minDomainValue)*m_positions[j] + .5*(m_maxDomainValue + m_minDomainValue);
+    m_weights[j] *= .5*(m_maxDomainValue - m_minDomainValue);
+  }
+}
+
+WignerChebyshev2nd1DQuadrature::~WignerChebyshev2nd1DQuadrature()
+{
+}
+
+void
+WignerChebyshev2nd1DQuadrature::dumbRoutine() const
+{
+  return;
+}
+
+}  // End namespace QUESO
Index: /issm/trunk-jpl/externalpackages/dakota/install-6.2-linux-static.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/dakota/install-6.2-linux-static.sh	(revision 26245)
+++ /issm/trunk-jpl/externalpackages/dakota/install-6.2-linux-static.sh	(revision 26246)
@@ -34,4 +34,5 @@
 # Copy customized source and configuration files to 'src' directory
 cp configs/${VER}/packages/DDACE/src/Analyzer/MainEffectsExcelOutput.cpp ${DAK_SRC}/packages/DDACE/src/Analyzer
+cp configs/${VER}/packages/queso/src/misc/src/1DQuadrature.C ${DAK_SRC}/packages/queso/src/misc/src
 cp configs/${VER}/packages/surfpack/src/surfaces/nkm/NKM_KrigingModel.cpp ${DAK_SRC}/packages/surfpack/src/surfaces/nkm
 cp configs/${VER}/packages/VPISparseGrid/src/sandia_rules.cpp ${DAK_SRC}/packages/VPISparseGrid/src
@@ -50,9 +51,9 @@
 	-DBUILD_STATIC_LIBS=ON \
 	-DCMAKE_C_COMPILER=${MPI_HOME}/bin/mpicc \
+	-DCMAKE_C_FLAGS="-fPIC -Wno-error=implicit-function-declaration" \
 	-DCMAKE_CXX_COMPILER=${MPI_HOME}/bin/mpicxx \
+	-DCMAKE_CXX_FLAGS="-fPIC" \
 	-DCMAKE_Fortran_COMPILER=${MPI_HOME}/bin/mpif77 \
-	-DCMAKE_C_FLAGS="-fPIC" \
-	-DCMAKE_CXX_FLAGS="-fPIC" \
-	-DCMAKE_Fortran_FLAGS="-fPIC" \
+	-DCMAKE_Fortran_FLAGS="-fPIC -fallow-argument-mismatch" \
 	-DBoost_NO_BOOST_CMAKE=TRUE \
 	-DHAVE_ACRO=OFF \
Index: /issm/trunk-jpl/externalpackages/dakota/install-6.2-linux.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/dakota/install-6.2-linux.sh	(revision 26245)
+++ /issm/trunk-jpl/externalpackages/dakota/install-6.2-linux.sh	(revision 26246)
@@ -35,4 +35,5 @@
 # Copy customized source and configuration files to 'src' directory
 cp configs/${VER}/packages/DDACE/src/Analyzer/MainEffectsExcelOutput.cpp ${DAK_SRC}/packages/DDACE/src/Analyzer
+cp configs/${VER}/packages/queso/src/misc/src/1DQuadrature.C ${DAK_SRC}/packages/queso/src/misc/src
 cp configs/${VER}/packages/surfpack/src/surfaces/nkm/NKM_KrigingModel.cpp ${DAK_SRC}/packages/surfpack/src/surfaces/nkm
 cp configs/${VER}/packages/VPISparseGrid/src/sandia_rules.cpp ${DAK_SRC}/packages/VPISparseGrid/src
@@ -51,6 +52,8 @@
 	-DBUILD_STATIC_LIBS=OFF \
 	-DCMAKE_C_COMPILER=${MPI_HOME}/bin/mpicc \
+	-DCMAKE_C_FLAGS="-Wno-error=implicit-function-declaration" \
 	-DCMAKE_CXX_COMPILER=${MPI_HOME}/bin/mpicxx \
 	-DCMAKE_Fortran_COMPILER=${MPI_HOME}/bin/mpif77 \
+	-DCMAKE_Fortran_FLAGS="-fallow-argument-mismatch" \
 	-DBoost_NO_BOOST_CMAKE=TRUE \
 	-DHAVE_ACRO=OFF \
Index: /issm/trunk-jpl/externalpackages/dakota/install-6.2-mac-static.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/dakota/install-6.2-mac-static.sh	(revision 26245)
+++ /issm/trunk-jpl/externalpackages/dakota/install-6.2-mac-static.sh	(revision 26246)
@@ -48,4 +48,5 @@
 # Copy customized source and configuration files to 'src' directory
 cp configs/${VER}/packages/DDACE/src/Analyzer/MainEffectsExcelOutput.cpp ${DAK_SRC}/packages/DDACE/src/Analyzer
+cp configs/${VER}/packages/queso/src/misc/src/1DQuadrature.C ${DAK_SRC}/packages/queso/src/misc/src
 cp configs/${VER}/packages/surfpack/src/surfaces/nkm/NKM_KrigingModel.cpp ${DAK_SRC}/packages/surfpack/src/surfaces/nkm
 cp configs/${VER}/packages/VPISparseGrid/src/sandia_rules.cpp ${DAK_SRC}/packages/VPISparseGrid/src
@@ -77,9 +78,9 @@
 	-DBUILD_STATIC_LIBS=ON \
 	-DCMAKE_C_COMPILER=${MPI_HOME}/bin/mpicc \
+	-DCMAKE_C_FLAGS="-fPIC -Wno-error=implicit-function-declaration" \
 	-DCMAKE_CXX_COMPILER=${MPI_HOME}/bin/mpicxx \
+	-DCMAKE_CXX_FLAGS="-fPIC -fdelayed-template-parsing" \
 	-DCMAKE_Fortran_COMPILER=${MPI_HOME}/bin/mpif77 \
-	-DCMAKE_C_FLAGS="-fPIC -Wno-error=implicit-function-declaration" \
-	-DCMAKE_CXX_FLAGS="-fPIC -fdelayed-template-parsing" \
-	-DCMAKE_Fortran_FLAGS="-fPIC" \
+	-DCMAKE_Fortran_FLAGS="-fPIC -fallow-argument-mismatch" \
 	-DBoost_NO_BOOST_CMAKE=TRUE \
 	-DHAVE_ACRO=OFF \
Index: /issm/trunk-jpl/externalpackages/dakota/install-6.2-mac.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/dakota/install-6.2-mac.sh	(revision 26245)
+++ /issm/trunk-jpl/externalpackages/dakota/install-6.2-mac.sh	(revision 26246)
@@ -45,4 +45,5 @@
 # Copy customized source and configuration files to 'src' directory
 cp configs/${VER}/packages/DDACE/src/Analyzer/MainEffectsExcelOutput.cpp ${DAK_SRC}/packages/DDACE/src/Analyzer
+cp configs/${VER}/packages/queso/src/misc/src/1DQuadrature.C ${DAK_SRC}/packages/queso/src/misc/src
 cp configs/${VER}/packages/surfpack/src/surfaces/nkm/NKM_KrigingModel.cpp ${DAK_SRC}/packages/surfpack/src/surfaces/nkm
 cp configs/${VER}/packages/VPISparseGrid/src/sandia_rules.cpp ${DAK_SRC}/packages/VPISparseGrid/src
@@ -63,6 +64,7 @@
 	-DCMAKE_C_COMPILER=${MPI_HOME}/bin/mpicc \
 	-DCMAKE_CXX_COMPILER=${MPI_HOME}/bin/mpicxx \
+	-DCMAKE_CXX_FLAGS="-fdelayed-template-parsing" \
 	-DCMAKE_Fortran_COMPILER=${MPI_HOME}/bin/mpif77 \
-	-DCMAKE_CXX_FLAGS="-fdelayed-template-parsing" \
+	-DCMAKE_Fortran_FLAGS="-fallow-argument-mismatch" \
 	-DBoost_NO_BOOST_CMAKE=TRUE \
 	-DHAVE_ACRO=OFF \
Index: /issm/trunk-jpl/externalpackages/gmt/configs/6/linux/cmake/ConfigUser.cmake
===================================================================
--- /issm/trunk-jpl/externalpackages/gmt/configs/6/linux/cmake/ConfigUser.cmake	(revision 26246)
+++ /issm/trunk-jpl/externalpackages/gmt/configs/6/linux/cmake/ConfigUser.cmake	(revision 26246)
@@ -0,0 +1,308 @@
+#
+#
+# Copyright (c) 1991-2019 by the GMT Team (https://www.generic-mapping-tools.org/team.html)
+# See LICENSE.TXT file for copying and redistribution conditions.
+#
+# This program is free software; you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as published by the
+# Free Software Foundation; version 3 or any later version.
+#
+# This program is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
+# for more details.
+#
+# Contact info: www.generic-mapping-tools.org
+# ----------------------------------------------------------------------------
+
+# Use this file to override variables in 'ConfigDefault.cmake' on a per-user
+# basis.  First copy 'ConfigUserTemplate.cmake' to 'ConfigUser.cmake', then
+# edit 'ConfigUser.cmake'.  'ConfigUser.cmake' is not version controlled
+# (currently listed in .gitignore).
+#
+# Note: CMake considers an empty string, "FALSE", "OFF", "NO", or any string
+# ending in "-NOTFOUND" to be false (this happens to be case-insensitive, so
+# "False", "off", "no", and "something-NotFound" are all false).  Other values
+# are true.  Thus it does not matter whether you use TRUE and FALSE, ON and
+# OFF, or YES and NO for your booleans.
+
+##
+## Section 1: Installation paths
+##
+
+# ============================================================================
+# Basic setup begins here.  All settings are optional.  In most cases, setting
+# CMAKE_INSTALL_PREFIX should be all you need to do in order to build GMT with
+# reasonable defaults enabled.  Note: If you need to specify directory names
+# with spaces (e.g., on Windows) then you must put them in quotes.
+# ============================================================================
+
+# Installation path (usually defaults to /usr/local) [auto]:
+set (CMAKE_INSTALL_PREFIX "$ENV{PREFIX}")
+
+# Set install name suffix used for directories and gmt executables
+# [undefined]:
+#set (GMT_INSTALL_NAME_SUFFIX "suffix")
+
+# Install into traditional directory structure. Disable to install a
+# distribution type directory structure (doc and share separated) [on]:
+#set (GMT_INSTALL_TRADITIONAL_FOLDERNAMES OFF)
+
+# Install convenience links for GMT modules. Disable to install only the main
+# gmt program and access modules as "gmt modulename options" [TRUE]:
+#set (GMT_INSTALL_MODULE_LINKS FALSE)
+
+# Make executables relocatable on supported platforms (relative RPATH) [FALSE]:
+set (GMT_INSTALL_RELOCATABLE TRUE)
+
+# Exclude optional GDAL, PCRE, PCRE2, FFTW3, LAPACK, BLAS, ZLIB dependencies even if you have them installed [FALSE]
+#set (GMT_EXCLUDE_GDAL TRUE)
+#set (GMT_EXCLUDE_PCRE TRUE)
+#set (GMT_EXCLUDE_PCRE2 TRUE)
+#set (GMT_EXCLUDE_FFTW3 TRUE)
+#set (GMT_EXCLUDE_LAPACK TRUE)
+#set (GMT_EXCLUDE_BLAS TRUE)
+#set (GMT_EXCLUDE_ZLIB TRUE)
+
+# ============================================================================
+# Advanced configuration begins here.  Usually it is not necessary to edit any
+# settings below.  You should know what you are doing if you do though.  Note:
+# installation paths are relative to ${CMAKE_INSTALL_PREFIX} unless absolute
+# path is given.
+# ============================================================================
+
+# Set binary installation path [bin]:
+#set (GMT_BINDIR "bin")
+
+# Set library installation path [lib or lib64]:
+#set (GMT_LIBDIR "lib")
+
+# Set include installation path [include/gmt${GMT_INSTALL_NAME_SUFFIX}]:
+#set (GMT_INCLUDEDIR "include/gmt")
+
+# Set share installation path [share or share/gmt${GMT_INSTALL_NAME_SUFFIX}]:
+#set (GMT_DATADIR "share/gmt")
+
+# Set doc installation path [share/doc or
+# share/doc/gmt${GMT_INSTALL_NAME_SUFFIX}]:
+#set (GMT_DOCDIR "share/doc/gmt")
+
+# Set manpage installation path [share/man or
+# share/doc/gmt${GMT_INSTALL_NAME_SUFFIX}/man]:
+#set (GMT_MANDIR "share/doc/gmt/man")
+
+# Install documentation files from this external location instead of creating
+# new HTML documents from scratch [${GMT_SOURCE_DIR}/doc_release]:
+#set (GMT_INSTALL_EXTERNAL_DOC OFF)
+
+# Install manual pages from this external location instead of creating the
+# manpages from scratch [${GMT_SOURCE_DIR}/man_release]:
+#set (GMT_INSTALL_EXTERNAL_MAN OFF)
+
+##
+## Section 2: Build dependencies (should only be needed if CMake cannot
+## automatically detect the rights version or path.)
+##
+
+# Set URL to GMT Data server [auto]:
+#set (GMT_DATA_SERVER "data_server_url")
+
+# Set path to GSHHG Shoreline Database [auto]:
+set (GSHHG_ROOT "$ENV{GSHHG_ROOT}")
+
+# Copy GSHHG files to ${GMT_DATADIR}/coast [FALSE]:
+#set (COPY_GSHHG TRUE)
+
+# Set path to DCW Digital Chart of the World for GMT [auto]:
+#set (DCW_ROOT "dcw-gmt_path")
+
+# Copy DCW files to ${GMT_DATADIR}/dcw [FALSE]:
+#set (COPY_DCW TRUE)
+
+# Copy GDAL's 'data' directory to ${GMT_DATADIR}/GDAL_DATA [FALSE]:
+#set (GDAL_DATA_PATH C:/programs/compa_libs/gdal_GIT/compileds/VC14_64/data)
+
+# Copy PROJ4's 'share' directory to ${GMT_DATADIR}/GDAL_DATA [FALSE]:
+#set (PROJ_DATA_PATH C:/programs/compa_libs/proj5_GIT/compileds/VC14_64/share/proj)
+
+# FOR WINDOWS ONLY
+# Set path to location of Ghostscript binaries (optional install)
+#set (GHOST_DATA_PATH C:/programs/compa_libs/ghostscript/bin)
+
+# FOR WINDOWS ONLY
+# Set path to location where the gmtmex is located.
+#set (GMTMEX_PATH "C:/progs_cygw/GMTdev/gmtmex/${GMTver}")
+
+# Set location of NetCDF (can be root directory, path to header file or path
+# to nc-config) [auto]:
+set (NETCDF_ROOT "$ENV{NETCDF_ROOT}")
+
+# Set location of GDAL (can be root directory, path to header file or path to
+# gdal-config) [auto]:
+set (GDAL_ROOT "$ENV{GDAL_ROOT}")
+
+# Set location of PCRE (can be root directory, path to header file or path to
+# pcre-config) [auto]:
+#set (PCRE_ROOT "pcre_install_prefix")
+# Alternatively, set location of PCRE2 (can be root directory, path to header file or path to
+# pcre2-config) [auto]:
+#set (PCRE2_ROOT "pcre2_install_prefix")
+
+# Set location of single precision FFTW (can be root directory or path to
+# header file) [auto]:
+#set (FFTW3_ROOT "fftw_install_prefix")
+
+# Set location of ZLIB (can be root directory or path to header file) [auto]:
+set (ZLIB_ROOT "$ENV{ZLIB_ROOT}")
+
+# Set location of CURL (can be root directory or path to header file) [auto]:
+#set (CURL_ROOT "curl_install_prefix")
+
+# Set location of GLIB component gthread [auto].  This is an optional (and
+# experimental) option which you need to enable:
+#set (GMT_USE_THREADS TRUE)
+# If pkg-config is not installed (e.g. on Windows) you need to specify these:
+#set (GLIB_INCLUDE_DIR c:/path/to/glib-dev/include/glib-2.0)
+#set (GLIB_LIBRARIES c:/path/to/glib-dev/lib/glib-2.0.lib)
+
+# Set LAPACK location. Use this when want to link with LAPACK and it's not found automatically
+set (LAPACK_LIBRARY "-L$ENV{LAPACK_ROOT} -lflapack -L/usr/lib/x86_64-linux-gnu -lgfortran")
+set (BLAS_LIBRARY "-L$ENV{BLAS_ROOT} -lfblas -L/usr/lib/x86_64-linux-gnu -lgfortran")
+
+##
+## Section 3: GMT features
+##
+
+# Enforce GPL or LGPL conformity. Use this to disable routines that cannot be
+# redistributed under the terms of the GPL or LGPL such as Shewchuk's
+# triangulation (valid values are GPL, LGPL and off) [off]:
+#set (LICENSE_RESTRICTED GPL)
+
+# Allow building of OpenMP if compiler supports it
+# set (GMT_ENABLE_OPENMP TRUE)
+
+# Configure default units (possible values are SI and US) [SI]:
+#set (UNITS "US")
+
+# Enable building of shared libraries [TRUE] (disable to use static libraries;
+# not recommended; on non-x86 architectures uncomment the next option as well):
+#set (BUILD_SHARED_LIBS FALSE)
+
+# Create position independent code on all targets [auto] (needed for static
+# build on non-x86):
+#set (CMAKE_POSITION_INDEPENDENT_CODE TRUE)
+
+# Build GMT shared lib with supplemental modules [TRUE]:
+#set (BUILD_SUPPLEMENTS FALSE)
+
+# Build/Install GMT Developer include files [TRUE]:
+# This installs the extra include files and configured files needed by 3rd-party
+# developers.  Until we build a separate gmt-devel we include them in the main
+# Distribution.
+#set (BUILD_DEVELOPER FALSE)
+
+##
+## Section 4: Advanced tweaking
+##
+
+#
+# Testing and development
+#
+
+# Enable running examples/tests with "ctest" or "make check" (out-of-source).
+# Need to set either DO_EXAMPLES, DO_TESTS or both and uncomment the following
+# line.
+#enable_testing()
+#set (DO_EXAMPLES TRUE)
+#set (DO_TESTS TRUE)
+#set (DO_ANIMATIONS TRUE)
+# Number of parallel test jobs with "make check":
+#set (N_TEST_JOBS 4)
+
+# Enable this option to run GMT programs from within ${GMT_BINARY_DIR} without
+# installing or setting GMT_SHAREDIR and GMT_USERDIR first. This is required
+# for testing [OFF]:
+#set (SUPPORT_EXEC_IN_BINARY_DIR ON)
+
+# List extra sub-dirs of 'src' with a CMakeList.txt to build non-module codes
+# that link against the full gmt libs (not just the API; for building codes
+# that only need the GMT API, see the gmt-custom project).
+#set (EXTRA_BUILD_DIRS apidemo)
+# Uncomment the following line to enable running low-level C tests of the API
+#set (DO_API_TESTS ON)
+
+# Directory in which to install the release sources per default
+# [${GMT_BINARY_DIR}/gmt-${GMT_PACKAGE_VERSION}]:
+#set (GMT_RELEASE_PREFIX "release-src-prefix")
+
+# If set to false, image conversion from PS images to PNG and PDF does
+# not depend on the gmt binary target. Note: "make gmt" is then required
+# before docs_depends [TRUE].
+#set (GMT_DOCS_DEPEND_ON_GMT FALSE)
+
+#
+# Debugging
+#
+
+# Set build type can be: empty, Debug, Release, RelWithDebInfo or MinSizeRel
+# [Release]:
+#set (CMAKE_BUILD_TYPE Debug)
+
+# Extra debugging for developers:
+#if ( CMAKE_GENERATOR STREQUAL "Xcode" )
+##	So Xcode can find the supplemental plug-ins during debug sessions
+#	add_definitions(-DXCODER)
+#   add_definitions(-DDEBUG_MODERN)			# To set PPID == 0 during Xcode test
+#	message("Add Xcode definition for GMT")
+#endif()
+#add_definitions(-DDEBUG)
+#add_definitions(-DMEMDEBUG) # Turn on memory tracking see gmt_support.c for extra info
+#set (CMAKE_C_FLAGS "-Wall -Wdeclaration-after-statement") # recommended even for release build
+#set (CMAKE_C_FLAGS "-Wextra ${CMAKE_C_FLAGS}")            # extra warnings
+#set (CMAKE_C_FLAGS_DEBUG -ggdb3)                          # gdb debugging symbols
+#set (CMAKE_LINK_DEPENDS_DEBUG_MODE TRUE)                  # debug link dependencies
+if (HAVE_OPENMP)
+	set (CMAKE_C_FLAGS_RELEASE "-ggdb3 -O2 -Wuninitialized -flax-vector-conversions")  # check uninitialized variables
+else (HAVE_OPENMP)
+	set (CMAKE_C_FLAGS_RELEASE "-ggdb3 -O2 -Wuninitialized")  # check uninitialized variables
+endif (HAVE_OPENMP)
+
+#
+# System specific tweaks
+#
+
+# This is for GCC on Solaris to avoid "relocations remain against allocatable
+# but non-writable sections" problems:
+#set (USER_GMTLIB_LINK_FLAGS -mimpure-text)
+
+# This may be needed to enable strdup and extended math functions with GCC and
+# Suncc on Solaris:
+#set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D__EXTENSIONS__")
+
+# Do not warn when building with Windows SDK or Visual Studio Express:
+#set (CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS ON)
+
+# Manually select runtime library when compiling with Windows SDK or Visual
+# Studio Express:
+#set (CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS c:/Windows/System32/msvcr100.dll)
+
+# If your NetCDF library is static (not recommended, applies to Windows only)
+#set (NETCDF_STATIC TRUE)
+
+# If want to rename the DLLs to something else than the default (e.g. to
+# append the bitness - Windows only)
+# WARNING: if using this option it is mandatory that the suffix starts with an underscore.
+#if (WIN32)
+# set (BITAGE 32)
+# # Detect if we are building a 32 or 64 bits version
+# if (CMAKE_SIZEOF_VOID_P EQUAL 8)
+#   set (BITAGE 64)
+# endif ()
+# set (GMT_DLL_RENAME gmt_w${BITAGE})
+# set (PSL_DLL_RENAME psl_w${BITAGE})
+#endif(WIN32)
+
+# On Windows Visual C 2012 needs _ALLOW_KEYWORD_MACROS to build
+#if(MSVC11)
+#  add_definitions(/D_ALLOW_KEYWORD_MACROS)
+#endif(MSVC11)
Index: /issm/trunk-jpl/externalpackages/gmt/configs/6/mac/cmake/ConfigUser.cmake
===================================================================
--- /issm/trunk-jpl/externalpackages/gmt/configs/6/mac/cmake/ConfigUser.cmake	(revision 26246)
+++ /issm/trunk-jpl/externalpackages/gmt/configs/6/mac/cmake/ConfigUser.cmake	(revision 26246)
@@ -0,0 +1,308 @@
+#
+#
+# Copyright (c) 1991-2019 by the GMT Team (https://www.generic-mapping-tools.org/team.html)
+# See LICENSE.TXT file for copying and redistribution conditions.
+#
+# This program is free software; you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as published by the
+# Free Software Foundation; version 3 or any later version.
+#
+# This program is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
+# for more details.
+#
+# Contact info: www.generic-mapping-tools.org
+# ----------------------------------------------------------------------------
+
+# Use this file to override variables in 'ConfigDefault.cmake' on a per-user
+# basis.  First copy 'ConfigUserTemplate.cmake' to 'ConfigUser.cmake', then
+# edit 'ConfigUser.cmake'.  'ConfigUser.cmake' is not version controlled
+# (currently listed in .gitignore).
+#
+# Note: CMake considers an empty string, "FALSE", "OFF", "NO", or any string
+# ending in "-NOTFOUND" to be false (this happens to be case-insensitive, so
+# "False", "off", "no", and "something-NotFound" are all false).  Other values
+# are true.  Thus it does not matter whether you use TRUE and FALSE, ON and
+# OFF, or YES and NO for your booleans.
+
+##
+## Section 1: Installation paths
+##
+
+# ============================================================================
+# Basic setup begins here.  All settings are optional.  In most cases, setting
+# CMAKE_INSTALL_PREFIX should be all you need to do in order to build GMT with
+# reasonable defaults enabled.  Note: If you need to specify directory names
+# with spaces (e.g., on Windows) then you must put them in quotes.
+# ============================================================================
+
+# Installation path (usually defaults to /usr/local) [auto]:
+set (CMAKE_INSTALL_PREFIX "$ENV{PREFIX}")
+
+# Set install name suffix used for directories and gmt executables
+# [undefined]:
+#set (GMT_INSTALL_NAME_SUFFIX "suffix")
+
+# Install into traditional directory structure. Disable to install a
+# distribution type directory structure (doc and share separated) [on]:
+#set (GMT_INSTALL_TRADITIONAL_FOLDERNAMES OFF)
+
+# Install convenience links for GMT modules. Disable to install only the main
+# gmt program and access modules as "gmt modulename options" [TRUE]:
+#set (GMT_INSTALL_MODULE_LINKS FALSE)
+
+# Make executables relocatable on supported platforms (relative RPATH) [FALSE]:
+set (GMT_INSTALL_RELOCATABLE TRUE)
+
+# Exclude optional GDAL, PCRE, PCRE2, FFTW3, LAPACK, BLAS, ZLIB dependencies even if you have them installed [FALSE]
+#set (GMT_EXCLUDE_GDAL TRUE)
+#set (GMT_EXCLUDE_PCRE TRUE)
+#set (GMT_EXCLUDE_PCRE2 TRUE)
+#set (GMT_EXCLUDE_FFTW3 TRUE)
+#set (GMT_EXCLUDE_LAPACK TRUE)
+#set (GMT_EXCLUDE_BLAS TRUE)
+#set (GMT_EXCLUDE_ZLIB TRUE)
+
+# ============================================================================
+# Advanced configuration begins here.  Usually it is not necessary to edit any
+# settings below.  You should know what you are doing if you do though.  Note:
+# installation paths are relative to ${CMAKE_INSTALL_PREFIX} unless absolute
+# path is given.
+# ============================================================================
+
+# Set binary installation path [bin]:
+#set (GMT_BINDIR "bin")
+
+# Set library installation path [lib or lib64]:
+#set (GMT_LIBDIR "lib")
+
+# Set include installation path [include/gmt${GMT_INSTALL_NAME_SUFFIX}]:
+#set (GMT_INCLUDEDIR "include/gmt")
+
+# Set share installation path [share or share/gmt${GMT_INSTALL_NAME_SUFFIX}]:
+#set (GMT_DATADIR "share/gmt")
+
+# Set doc installation path [share/doc or
+# share/doc/gmt${GMT_INSTALL_NAME_SUFFIX}]:
+#set (GMT_DOCDIR "share/doc/gmt")
+
+# Set manpage installation path [share/man or
+# share/doc/gmt${GMT_INSTALL_NAME_SUFFIX}/man]:
+#set (GMT_MANDIR "share/doc/gmt/man")
+
+# Install documentation files from this external location instead of creating
+# new HTML documents from scratch [${GMT_SOURCE_DIR}/doc_release]:
+#set (GMT_INSTALL_EXTERNAL_DOC OFF)
+
+# Install manual pages from this external location instead of creating the
+# manpages from scratch [${GMT_SOURCE_DIR}/man_release]:
+#set (GMT_INSTALL_EXTERNAL_MAN OFF)
+
+##
+## Section 2: Build dependencies (should only be needed if CMake cannot
+## automatically detect the rights version or path.)
+##
+
+# Set URL to GMT Data server [auto]:
+#set (GMT_DATA_SERVER "data_server_url")
+
+# Set path to GSHHG Shoreline Database [auto]:
+set (GSHHG_ROOT "$ENV{GSHHG_ROOT}")
+
+# Copy GSHHG files to ${GMT_DATADIR}/coast [FALSE]:
+#set (COPY_GSHHG TRUE)
+
+# Set path to DCW Digital Chart of the World for GMT [auto]:
+#set (DCW_ROOT "dcw-gmt_path")
+
+# Copy DCW files to ${GMT_DATADIR}/dcw [FALSE]:
+#set (COPY_DCW TRUE)
+
+# Copy GDAL's 'data' directory to ${GMT_DATADIR}/GDAL_DATA [FALSE]:
+#set (GDAL_DATA_PATH C:/programs/compa_libs/gdal_GIT/compileds/VC14_64/data)
+
+# Copy PROJ4's 'share' directory to ${GMT_DATADIR}/GDAL_DATA [FALSE]:
+#set (PROJ_DATA_PATH C:/programs/compa_libs/proj5_GIT/compileds/VC14_64/share/proj)
+
+# FOR WINDOWS ONLY
+# Set path to location of Ghostscript binaries (optional install)
+#set (GHOST_DATA_PATH C:/programs/compa_libs/ghostscript/bin)
+
+# FOR WINDOWS ONLY
+# Set path to location where the gmtmex is located.
+#set (GMTMEX_PATH "C:/progs_cygw/GMTdev/gmtmex/${GMTver}")
+
+# Set location of NetCDF (can be root directory, path to header file or path
+# to nc-config) [auto]:
+set (NETCDF_ROOT "$ENV{NETCDF_ROOT}")
+
+# Set location of GDAL (can be root directory, path to header file or path to
+# gdal-config) [auto]:
+set (GDAL_ROOT "$ENV{GDAL_ROOT}")
+
+# Set location of PCRE (can be root directory, path to header file or path to
+# pcre-config) [auto]:
+#set (PCRE_ROOT "pcre_install_prefix")
+# Alternatively, set location of PCRE2 (can be root directory, path to header file or path to
+# pcre2-config) [auto]:
+#set (PCRE2_ROOT "pcre2_install_prefix")
+
+# Set location of single precision FFTW (can be root directory or path to
+# header file) [auto]:
+#set (FFTW3_ROOT "fftw_install_prefix")
+
+# Set location of ZLIB (can be root directory or path to header file) [auto]:
+set (ZLIB_ROOT "$ENV{ZLIB_ROOT}")
+
+# Set location of CURL (can be root directory or path to header file) [auto]:
+#set (CURL_ROOT "curl_install_prefix")
+
+# Set location of GLIB component gthread [auto].  This is an optional (and
+# experimental) option which you need to enable:
+#set (GMT_USE_THREADS TRUE)
+# If pkg-config is not installed (e.g. on Windows) you need to specify these:
+#set (GLIB_INCLUDE_DIR c:/path/to/glib-dev/include/glib-2.0)
+#set (GLIB_LIBRARIES c:/path/to/glib-dev/lib/glib-2.0.lib)
+
+# Set LAPACK location. Use this when want to link with LAPACK and it's not found automatically
+set (LAPACK_LIBRARY "-L$ENV{LAPACK_ROOT} -lflapack")
+set (BLAS_LIBRARY "-L$ENV{BLAS_ROOT} -lfblas")
+
+##
+## Section 3: GMT features
+##
+
+# Enforce GPL or LGPL conformity. Use this to disable routines that cannot be
+# redistributed under the terms of the GPL or LGPL such as Shewchuk's
+# triangulation (valid values are GPL, LGPL and off) [off]:
+#set (LICENSE_RESTRICTED GPL)
+
+# Allow building of OpenMP if compiler supports it
+# set (GMT_ENABLE_OPENMP TRUE)
+
+# Configure default units (possible values are SI and US) [SI]:
+#set (UNITS "US")
+
+# Enable building of shared libraries [TRUE] (disable to use static libraries;
+# not recommended; on non-x86 architectures uncomment the next option as well):
+#set (BUILD_SHARED_LIBS FALSE)
+
+# Create position independent code on all targets [auto] (needed for static
+# build on non-x86):
+#set (CMAKE_POSITION_INDEPENDENT_CODE TRUE)
+
+# Build GMT shared lib with supplemental modules [TRUE]:
+#set (BUILD_SUPPLEMENTS FALSE)
+
+# Build/Install GMT Developer include files [TRUE]:
+# This installs the extra include files and configured files needed by 3rd-party
+# developers.  Until we build a separate gmt-devel we include them in the main
+# Distribution.
+#set (BUILD_DEVELOPER FALSE)
+
+##
+## Section 4: Advanced tweaking
+##
+
+#
+# Testing and development
+#
+
+# Enable running examples/tests with "ctest" or "make check" (out-of-source).
+# Need to set either DO_EXAMPLES, DO_TESTS or both and uncomment the following
+# line.
+#enable_testing()
+#set (DO_EXAMPLES TRUE)
+#set (DO_TESTS TRUE)
+#set (DO_ANIMATIONS TRUE)
+# Number of parallel test jobs with "make check":
+#set (N_TEST_JOBS 4)
+
+# Enable this option to run GMT programs from within ${GMT_BINARY_DIR} without
+# installing or setting GMT_SHAREDIR and GMT_USERDIR first. This is required
+# for testing [OFF]:
+#set (SUPPORT_EXEC_IN_BINARY_DIR ON)
+
+# List extra sub-dirs of 'src' with a CMakeList.txt to build non-module codes
+# that link against the full gmt libs (not just the API; for building codes
+# that only need the GMT API, see the gmt-custom project).
+#set (EXTRA_BUILD_DIRS apidemo)
+# Uncomment the following line to enable running low-level C tests of the API
+#set (DO_API_TESTS ON)
+
+# Directory in which to install the release sources per default
+# [${GMT_BINARY_DIR}/gmt-${GMT_PACKAGE_VERSION}]:
+#set (GMT_RELEASE_PREFIX "release-src-prefix")
+
+# If set to false, image conversion from PS images to PNG and PDF does
+# not depend on the gmt binary target. Note: "make gmt" is then required
+# before docs_depends [TRUE].
+#set (GMT_DOCS_DEPEND_ON_GMT FALSE)
+
+#
+# Debugging
+#
+
+# Set build type can be: empty, Debug, Release, RelWithDebInfo or MinSizeRel
+# [Release]:
+#set (CMAKE_BUILD_TYPE Debug)
+
+# Extra debugging for developers:
+#if ( CMAKE_GENERATOR STREQUAL "Xcode" )
+##	So Xcode can find the supplemental plug-ins during debug sessions
+#	add_definitions(-DXCODER)
+#   add_definitions(-DDEBUG_MODERN)			# To set PPID == 0 during Xcode test
+#	message("Add Xcode definition for GMT")
+#endif()
+#add_definitions(-DDEBUG)
+#add_definitions(-DMEMDEBUG) # Turn on memory tracking see gmt_support.c for extra info
+#set (CMAKE_C_FLAGS "-Wall -Wdeclaration-after-statement") # recommended even for release build
+#set (CMAKE_C_FLAGS "-Wextra ${CMAKE_C_FLAGS}")            # extra warnings
+#set (CMAKE_C_FLAGS_DEBUG -ggdb3)                          # gdb debugging symbols
+#set (CMAKE_LINK_DEPENDS_DEBUG_MODE TRUE)                  # debug link dependencies
+if (HAVE_OPENMP)
+	set (CMAKE_C_FLAGS_RELEASE "-ggdb3 -O2 -Wuninitialized -flax-vector-conversions")  # check uninitialized variables
+else (HAVE_OPENMP)
+	set (CMAKE_C_FLAGS_RELEASE "-ggdb3 -O2 -Wuninitialized")  # check uninitialized variables
+endif (HAVE_OPENMP)
+
+#
+# System specific tweaks
+#
+
+# This is for GCC on Solaris to avoid "relocations remain against allocatable
+# but non-writable sections" problems:
+#set (USER_GMTLIB_LINK_FLAGS -mimpure-text)
+
+# This may be needed to enable strdup and extended math functions with GCC and
+# Suncc on Solaris:
+#set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D__EXTENSIONS__")
+
+# Do not warn when building with Windows SDK or Visual Studio Express:
+#set (CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS ON)
+
+# Manually select runtime library when compiling with Windows SDK or Visual
+# Studio Express:
+#set (CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS c:/Windows/System32/msvcr100.dll)
+
+# If your NetCDF library is static (not recommended, applies to Windows only)
+#set (NETCDF_STATIC TRUE)
+
+# If want to rename the DLLs to something else than the default (e.g. to
+# append the bitness - Windows only)
+# WARNING: if using this option it is mandatory that the suffix starts with an underscore.
+#if (WIN32)
+# set (BITAGE 32)
+# # Detect if we are building a 32 or 64 bits version
+# if (CMAKE_SIZEOF_VOID_P EQUAL 8)
+#   set (BITAGE 64)
+# endif ()
+# set (GMT_DLL_RENAME gmt_w${BITAGE})
+# set (PSL_DLL_RENAME psl_w${BITAGE})
+#endif(WIN32)
+
+# On Windows Visual C 2012 needs _ALLOW_KEYWORD_MACROS to build
+#if(MSVC11)
+#  add_definitions(/D_ALLOW_KEYWORD_MACROS)
+#endif(MSVC11)
Index: sm/trunk-jpl/externalpackages/gmt/configs/6/static/cmake/ConfigUser.static.cmake
===================================================================
--- /issm/trunk-jpl/externalpackages/gmt/configs/6/static/cmake/ConfigUser.static.cmake	(revision 26245)
+++ 	(revision )
@@ -1,308 +1,0 @@
-#
-#
-# Copyright (c) 1991-2019 by the GMT Team (https://www.generic-mapping-tools.org/team.html)
-# See LICENSE.TXT file for copying and redistribution conditions.
-#
-# This program is free software; you can redistribute it and/or modify it
-# under the terms of the GNU Lesser General Public License as published by the
-# Free Software Foundation; version 3 or any later version.
-#
-# This program is distributed in the hope that it will be useful, but WITHOUT
-# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
-# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
-# for more details.
-#
-# Contact info: www.generic-mapping-tools.org
-# ----------------------------------------------------------------------------
-
-# Use this file to override variables in 'ConfigDefault.cmake' on a per-user
-# basis.  First copy 'ConfigUserTemplate.cmake' to 'ConfigUser.cmake', then
-# edit 'ConfigUser.cmake'.  'ConfigUser.cmake' is not version controlled
-# (currently listed in .gitignore).
-#
-# Note: CMake considers an empty string, "FALSE", "OFF", "NO", or any string
-# ending in "-NOTFOUND" to be false (this happens to be case-insensitive, so
-# "False", "off", "no", and "something-NotFound" are all false).  Other values
-# are true.  Thus it does not matter whether you use TRUE and FALSE, ON and
-# OFF, or YES and NO for your booleans.
-
-##
-## Section 1: Installation paths
-##
-
-# ============================================================================
-# Basic setup begins here.  All settings are optional.  In most cases, setting
-# CMAKE_INSTALL_PREFIX should be all you need to do in order to build GMT with
-# reasonable defaults enabled.  Note: If you need to specify directory names
-# with spaces (e.g., on Windows) then you must put them in quotes.
-# ============================================================================
-
-# Installation path (usually defaults to /usr/local) [auto]:
-set (CMAKE_INSTALL_PREFIX "$ENV{ISSM_DIR}/externalpackages/gmt/install")
-
-# Set install name suffix used for directories and gmt executables
-# [undefined]:
-#set (GMT_INSTALL_NAME_SUFFIX "suffix")
-
-# Install into traditional directory structure. Disable to install a
-# distribution type directory structure (doc and share separated) [on]:
-#set (GMT_INSTALL_TRADITIONAL_FOLDERNAMES OFF)
-
-# Install convenience links for GMT modules. Disable to install only the main
-# gmt program and access modules as "gmt modulename options" [TRUE]:
-#set (GMT_INSTALL_MODULE_LINKS FALSE)
-
-# Make executables relocatable on supported platforms (relative RPATH) [FALSE]:
-set (GMT_INSTALL_RELOCATABLE TRUE)
-
-# Exclude optional GDAL, PCRE, PCRE2, FFTW3, LAPACK, BLAS, ZLIB dependencies even if you have them installed [FALSE]
-#set (GMT_EXCLUDE_GDAL TRUE)
-#set (GMT_EXCLUDE_PCRE TRUE)
-#set (GMT_EXCLUDE_PCRE2 TRUE)
-#set (GMT_EXCLUDE_FFTW3 TRUE)
-#set (GMT_EXCLUDE_LAPACK TRUE)
-#set (GMT_EXCLUDE_BLAS TRUE)
-#set (GMT_EXCLUDE_ZLIB TRUE)
-
-# ============================================================================
-# Advanced configuration begins here.  Usually it is not necessary to edit any
-# settings below.  You should know what you are doing if you do though.  Note:
-# installation paths are relative to ${CMAKE_INSTALL_PREFIX} unless absolute
-# path is given.
-# ============================================================================
-
-# Set binary installation path [bin]:
-#set (GMT_BINDIR "bin")
-
-# Set library installation path [lib or lib64]:
-#set (GMT_LIBDIR "lib")
-
-# Set include installation path [include/gmt${GMT_INSTALL_NAME_SUFFIX}]:
-#set (GMT_INCLUDEDIR "include/gmt")
-
-# Set share installation path [share or share/gmt${GMT_INSTALL_NAME_SUFFIX}]:
-#set (GMT_DATADIR "share/gmt")
-
-# Set doc installation path [share/doc or
-# share/doc/gmt${GMT_INSTALL_NAME_SUFFIX}]:
-#set (GMT_DOCDIR "share/doc/gmt")
-
-# Set manpage installation path [share/man or
-# share/doc/gmt${GMT_INSTALL_NAME_SUFFIX}/man]:
-#set (GMT_MANDIR "share/doc/gmt/man")
-
-# Install documentation files from this external location instead of creating
-# new HTML documents from scratch [${GMT_SOURCE_DIR}/doc_release]:
-#set (GMT_INSTALL_EXTERNAL_DOC OFF)
-
-# Install manual pages from this external location instead of creating the
-# manpages from scratch [${GMT_SOURCE_DIR}/man_release]:
-#set (GMT_INSTALL_EXTERNAL_MAN OFF)
-
-##
-## Section 2: Build dependencies (should only be needed if CMake cannot
-## automatically detect the rights version or path.)
-##
-
-# Set URL to GMT Data server [auto]:
-#set (GMT_DATA_SERVER "data_server_url")
-
-# Set path to GSHHG Shoreline Database [auto]:
-set (GSHHG_ROOT "$ENV{ISSM_DIR}/externalpackages/gshhg/install")
-
-# Copy GSHHG files to ${GMT_DATADIR}/coast [FALSE]:
-#set (COPY_GSHHG TRUE)
-
-# Set path to DCW Digital Chart of the World for GMT [auto]:
-#set (DCW_ROOT "dcw-gmt_path")
-
-# Copy DCW files to ${GMT_DATADIR}/dcw [FALSE]:
-#set (COPY_DCW TRUE)
-
-# Copy GDAL's 'data' directory to ${GMT_DATADIR}/GDAL_DATA [FALSE]:
-#set (GDAL_DATA_PATH C:/programs/compa_libs/gdal_GIT/compileds/VC14_64/data)
-
-# Copy PROJ4's 'share' directory to ${GMT_DATADIR}/GDAL_DATA [FALSE]:
-#set (PROJ_DATA_PATH C:/programs/compa_libs/proj5_GIT/compileds/VC14_64/share/proj)
-
-# FOR WINDOWS ONLY
-# Set path to location of Ghostscript binaries (optional install)
-#set (GHOST_DATA_PATH C:/programs/compa_libs/ghostscript/bin)
-
-# FOR WINDOWS ONLY
-# Set path to location where the gmtmex is located.
-#set (GMTMEX_PATH "C:/progs_cygw/GMTdev/gmtmex/${GMTver}")
-
-# Set location of NetCDF (can be root directory, path to header file or path
-# to nc-config) [auto]:
-set (NETCDF_ROOT "$ENV{ISSM_DIR}/externalpackages/netcdf/install")
-
-# Set location of GDAL (can be root directory, path to header file or path to
-# gdal-config) [auto]:
-set (GDAL_ROOT "$ENV{ISSM_DIR}/externalpackages/gdal/install")
-
-# Set location of PCRE (can be root directory, path to header file or path to
-# pcre-config) [auto]:
-#set (PCRE_ROOT "pcre_install_prefix")
-# Alternatively, set location of PCRE2 (can be root directory, path to header file or path to
-# pcre2-config) [auto]:
-#set (PCRE2_ROOT "pcre2_install_prefix")
-
-# Set location of single precision FFTW (can be root directory or path to
-# header file) [auto]:
-#set (FFTW3_ROOT "fftw_install_prefix")
-
-# Set location of ZLIB (can be root directory or path to header file) [auto]:
-set (ZLIB_ROOT "$ENV{ISSM_DIR}/externalpackages/petsc/install")
-
-# Set location of CURL (can be root directory or path to header file) [auto]:
-#set (CURL_ROOT "curl_install_prefix")
-
-# Set location of GLIB component gthread [auto].  This is an optional (and
-# experimental) option which you need to enable:
-#set (GMT_USE_THREADS TRUE)
-# If pkg-config is not installed (e.g. on Windows) you need to specify these:
-#set (GLIB_INCLUDE_DIR c:/path/to/glib-dev/include/glib-2.0)
-#set (GLIB_LIBRARIES c:/path/to/glib-dev/lib/glib-2.0.lib)
-
-# Set LAPACK location. Use this when want to link with LAPACK and it's not found automatically
-#set (LAPACK_LIBRARY "-L$ENV{ISSM_DIR}/externalpackages/petsc/install/lib -lflapack")
-#set (BLAS_LIBRARY "-L$ENV{ISSM_DIR}/externalpackages/petsc/install/lib -lfblas")
-
-##
-## Section 3: GMT features
-##
-
-# Enforce GPL or LGPL conformity. Use this to disable routines that cannot be
-# redistributed under the terms of the GPL or LGPL such as Shewchuk's
-# triangulation (valid values are GPL, LGPL and off) [off]:
-#set (LICENSE_RESTRICTED GPL)
-
-# Allow building of OpenMP if compiler supports it
-# set (GMT_ENABLE_OPENMP TRUE)
-
-# Configure default units (possible values are SI and US) [SI]:
-#set (UNITS "US")
-
-# Enable building of shared libraries [TRUE] (disable to use static libraries;
-# not recommended; on non-x86 architectures uncomment the next option as well):
-set (BUILD_SHARED_LIBS FALSE)
-
-# Create position independent code on all targets [auto] (needed for static
-# build on non-x86):
-set (CMAKE_POSITION_INDEPENDENT_CODE TRUE)
-
-# Build GMT shared lib with supplemental modules [TRUE]:
-set (BUILD_SUPPLEMENTS FALSE)
-
-# Build/Install GMT Developer include files [TRUE]:
-# This installs the extra include files and configured files needed by 3rd-party
-# developers.  Until we build a separate gmt-devel we include them in the main
-# Distribution.
-#set (BUILD_DEVELOPER FALSE)
-
-##
-## Section 4: Advanced tweaking
-##
-
-#
-# Testing and development
-#
-
-# Enable running examples/tests with "ctest" or "make check" (out-of-source).
-# Need to set either DO_EXAMPLES, DO_TESTS or both and uncomment the following
-# line.
-#enable_testing()
-#set (DO_EXAMPLES TRUE)
-#set (DO_TESTS TRUE)
-#set (DO_ANIMATIONS TRUE)
-# Number of parallel test jobs with "make check":
-#set (N_TEST_JOBS 4)
-
-# Enable this option to run GMT programs from within ${GMT_BINARY_DIR} without
-# installing or setting GMT_SHAREDIR and GMT_USERDIR first. This is required
-# for testing [OFF]:
-#set (SUPPORT_EXEC_IN_BINARY_DIR ON)
-
-# List extra sub-dirs of 'src' with a CMakeList.txt to build non-module codes
-# that link against the full gmt libs (not just the API; for building codes
-# that only need the GMT API, see the gmt-custom project).
-#set (EXTRA_BUILD_DIRS apidemo)
-# Uncomment the following line to enable running low-level C tests of the API
-#set (DO_API_TESTS ON)
-
-# Directory in which to install the release sources per default
-# [${GMT_BINARY_DIR}/gmt-${GMT_PACKAGE_VERSION}]:
-#set (GMT_RELEASE_PREFIX "release-src-prefix")
-
-# If set to false, image conversion from PS images to PNG and PDF does
-# not depend on the gmt binary target. Note: "make gmt" is then required
-# before docs_depends [TRUE].
-#set (GMT_DOCS_DEPEND_ON_GMT FALSE)
-
-#
-# Debugging
-#
-
-# Set build type can be: empty, Debug, Release, RelWithDebInfo or MinSizeRel
-# [Release]:
-#set (CMAKE_BUILD_TYPE Debug)
-
-# Extra debugging for developers:
-#if ( CMAKE_GENERATOR STREQUAL "Xcode" )
-##	So Xcode can find the supplemental plug-ins during debug sessions
-#	add_definitions(-DXCODER)
-#   add_definitions(-DDEBUG_MODERN)			# To set PPID == 0 during Xcode test
-#	message("Add Xcode definition for GMT")
-#endif()
-#add_definitions(-DDEBUG)
-#add_definitions(-DMEMDEBUG) # Turn on memory tracking see gmt_support.c for extra info
-#set (CMAKE_C_FLAGS "-Wall -Wdeclaration-after-statement") # recommended even for release build
-#set (CMAKE_C_FLAGS "-Wextra ${CMAKE_C_FLAGS}")            # extra warnings
-#set (CMAKE_C_FLAGS_DEBUG -ggdb3)                          # gdb debugging symbols
-#set (CMAKE_LINK_DEPENDS_DEBUG_MODE TRUE)                  # debug link dependencies
-if (HAVE_OPENMP)
-	set (CMAKE_C_FLAGS_RELEASE "-ggdb3 -O2 -Wuninitialized -flax-vector-conversions")  # check uninitialized variables
-else (HAVE_OPENMP)
-	set (CMAKE_C_FLAGS_RELEASE "-ggdb3 -O2 -Wuninitialized")  # check uninitialized variables
-endif (HAVE_OPENMP)
-
-#
-# System specific tweaks
-#
-
-# This is for GCC on Solaris to avoid "relocations remain against allocatable
-# but non-writable sections" problems:
-#set (USER_GMTLIB_LINK_FLAGS -mimpure-text)
-
-# This may be needed to enable strdup and extended math functions with GCC and
-# Suncc on Solaris:
-#set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D__EXTENSIONS__")
-
-# Do not warn when building with Windows SDK or Visual Studio Express:
-#set (CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS ON)
-
-# Manually select runtime library when compiling with Windows SDK or Visual
-# Studio Express:
-#set (CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS c:/Windows/System32/msvcr100.dll)
-
-# If your NetCDF library is static (not recommended, applies to Windows only)
-set (NETCDF_STATIC TRUE)
-
-# If want to rename the DLLs to something else than the default (e.g. to
-# append the bitness - Windows only)
-# WARNING: if using this option it is mandatory that the suffix starts with an underscore.
-#if (WIN32)
-# set (BITAGE 32)
-# # Detect if we are building a 32 or 64 bits version
-# if (CMAKE_SIZEOF_VOID_P EQUAL 8)
-#   set (BITAGE 64)
-# endif ()
-# set (GMT_DLL_RENAME gmt_w${BITAGE})
-# set (PSL_DLL_RENAME psl_w${BITAGE})
-#endif(WIN32)
-
-# On Windows Visual C 2012 needs _ALLOW_KEYWORD_MACROS to build
-#if(MSVC11)
-#  add_definitions(/D_ALLOW_KEYWORD_MACROS)
-#endif(MSVC11)
Index: /issm/trunk-jpl/externalpackages/gmt/configs/6/static/linux/cmake/ConfigUser.static.cmake
===================================================================
--- /issm/trunk-jpl/externalpackages/gmt/configs/6/static/linux/cmake/ConfigUser.static.cmake	(revision 26246)
+++ /issm/trunk-jpl/externalpackages/gmt/configs/6/static/linux/cmake/ConfigUser.static.cmake	(revision 26246)
@@ -0,0 +1,308 @@
+#
+#
+# Copyright (c) 1991-2019 by the GMT Team (https://www.generic-mapping-tools.org/team.html)
+# See LICENSE.TXT file for copying and redistribution conditions.
+#
+# This program is free software; you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as published by the
+# Free Software Foundation; version 3 or any later version.
+#
+# This program is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
+# for more details.
+#
+# Contact info: www.generic-mapping-tools.org
+# ----------------------------------------------------------------------------
+
+# Use this file to override variables in 'ConfigDefault.cmake' on a per-user
+# basis.  First copy 'ConfigUserTemplate.cmake' to 'ConfigUser.cmake', then
+# edit 'ConfigUser.cmake'.  'ConfigUser.cmake' is not version controlled
+# (currently listed in .gitignore).
+#
+# Note: CMake considers an empty string, "FALSE", "OFF", "NO", or any string
+# ending in "-NOTFOUND" to be false (this happens to be case-insensitive, so
+# "False", "off", "no", and "something-NotFound" are all false).  Other values
+# are true.  Thus it does not matter whether you use TRUE and FALSE, ON and
+# OFF, or YES and NO for your booleans.
+
+##
+## Section 1: Installation paths
+##
+
+# ============================================================================
+# Basic setup begins here.  All settings are optional.  In most cases, setting
+# CMAKE_INSTALL_PREFIX should be all you need to do in order to build GMT with
+# reasonable defaults enabled.  Note: If you need to specify directory names
+# with spaces (e.g., on Windows) then you must put them in quotes.
+# ============================================================================
+
+# Installation path (usually defaults to /usr/local) [auto]:
+set (CMAKE_INSTALL_PREFIX "$ENV{ISSM_DIR}/externalpackages/gmt/install")
+
+# Set install name suffix used for directories and gmt executables
+# [undefined]:
+#set (GMT_INSTALL_NAME_SUFFIX "suffix")
+
+# Install into traditional directory structure. Disable to install a
+# distribution type directory structure (doc and share separated) [on]:
+#set (GMT_INSTALL_TRADITIONAL_FOLDERNAMES OFF)
+
+# Install convenience links for GMT modules. Disable to install only the main
+# gmt program and access modules as "gmt modulename options" [TRUE]:
+#set (GMT_INSTALL_MODULE_LINKS FALSE)
+
+# Make executables relocatable on supported platforms (relative RPATH) [FALSE]:
+set (GMT_INSTALL_RELOCATABLE TRUE)
+
+# Exclude optional GDAL, PCRE, PCRE2, FFTW3, LAPACK, BLAS, ZLIB dependencies even if you have them installed [FALSE]
+#set (GMT_EXCLUDE_GDAL TRUE)
+#set (GMT_EXCLUDE_PCRE TRUE)
+#set (GMT_EXCLUDE_PCRE2 TRUE)
+#set (GMT_EXCLUDE_FFTW3 TRUE)
+#set (GMT_EXCLUDE_LAPACK TRUE)
+#set (GMT_EXCLUDE_BLAS TRUE)
+#set (GMT_EXCLUDE_ZLIB TRUE)
+
+# ============================================================================
+# Advanced configuration begins here.  Usually it is not necessary to edit any
+# settings below.  You should know what you are doing if you do though.  Note:
+# installation paths are relative to ${CMAKE_INSTALL_PREFIX} unless absolute
+# path is given.
+# ============================================================================
+
+# Set binary installation path [bin]:
+#set (GMT_BINDIR "bin")
+
+# Set library installation path [lib or lib64]:
+#set (GMT_LIBDIR "lib")
+
+# Set include installation path [include/gmt${GMT_INSTALL_NAME_SUFFIX}]:
+#set (GMT_INCLUDEDIR "include/gmt")
+
+# Set share installation path [share or share/gmt${GMT_INSTALL_NAME_SUFFIX}]:
+#set (GMT_DATADIR "share/gmt")
+
+# Set doc installation path [share/doc or
+# share/doc/gmt${GMT_INSTALL_NAME_SUFFIX}]:
+#set (GMT_DOCDIR "share/doc/gmt")
+
+# Set manpage installation path [share/man or
+# share/doc/gmt${GMT_INSTALL_NAME_SUFFIX}/man]:
+#set (GMT_MANDIR "share/doc/gmt/man")
+
+# Install documentation files from this external location instead of creating
+# new HTML documents from scratch [${GMT_SOURCE_DIR}/doc_release]:
+#set (GMT_INSTALL_EXTERNAL_DOC OFF)
+
+# Install manual pages from this external location instead of creating the
+# manpages from scratch [${GMT_SOURCE_DIR}/man_release]:
+#set (GMT_INSTALL_EXTERNAL_MAN OFF)
+
+##
+## Section 2: Build dependencies (should only be needed if CMake cannot
+## automatically detect the rights version or path.)
+##
+
+# Set URL to GMT Data server [auto]:
+#set (GMT_DATA_SERVER "data_server_url")
+
+# Set path to GSHHG Shoreline Database [auto]:
+set (GSHHG_ROOT "$ENV{GSHHG_ROOT}")
+
+# Copy GSHHG files to ${GMT_DATADIR}/coast [FALSE]:
+#set (COPY_GSHHG TRUE)
+
+# Set path to DCW Digital Chart of the World for GMT [auto]:
+#set (DCW_ROOT "dcw-gmt_path")
+
+# Copy DCW files to ${GMT_DATADIR}/dcw [FALSE]:
+#set (COPY_DCW TRUE)
+
+# Copy GDAL's 'data' directory to ${GMT_DATADIR}/GDAL_DATA [FALSE]:
+#set (GDAL_DATA_PATH C:/programs/compa_libs/gdal_GIT/compileds/VC14_64/data)
+
+# Copy PROJ4's 'share' directory to ${GMT_DATADIR}/GDAL_DATA [FALSE]:
+#set (PROJ_DATA_PATH C:/programs/compa_libs/proj5_GIT/compileds/VC14_64/share/proj)
+
+# FOR WINDOWS ONLY
+# Set path to location of Ghostscript binaries (optional install)
+#set (GHOST_DATA_PATH C:/programs/compa_libs/ghostscript/bin)
+
+# FOR WINDOWS ONLY
+# Set path to location where the gmtmex is located.
+#set (GMTMEX_PATH "C:/progs_cygw/GMTdev/gmtmex/${GMTver}")
+
+# Set location of NetCDF (can be root directory, path to header file or path
+# to nc-config) [auto]:
+set (NETCDF_ROOT "$ENV{NETCDF_ROOT}")
+
+# Set location of GDAL (can be root directory, path to header file or path to
+# gdal-config) [auto]:
+set (GDAL_ROOT "$ENV{GDAL_ROOT}")
+
+# Set location of PCRE (can be root directory, path to header file or path to
+# pcre-config) [auto]:
+#set (PCRE_ROOT "pcre_install_prefix")
+# Alternatively, set location of PCRE2 (can be root directory, path to header file or path to
+# pcre2-config) [auto]:
+#set (PCRE2_ROOT "pcre2_install_prefix")
+
+# Set location of single precision FFTW (can be root directory or path to
+# header file) [auto]:
+#set (FFTW3_ROOT "fftw_install_prefix")
+
+# Set location of ZLIB (can be root directory or path to header file) [auto]:
+set (ZLIB_ROOT "$ENV{ZLIB_ROOT}")
+
+# Set location of CURL (can be root directory or path to header file) [auto]:
+#set (CURL_ROOT "curl_install_prefix")
+
+# Set location of GLIB component gthread [auto].  This is an optional (and
+# experimental) option which you need to enable:
+#set (GMT_USE_THREADS TRUE)
+# If pkg-config is not installed (e.g. on Windows) you need to specify these:
+#set (GLIB_INCLUDE_DIR c:/path/to/glib-dev/include/glib-2.0)
+#set (GLIB_LIBRARIES c:/path/to/glib-dev/lib/glib-2.0.lib)
+
+# Set LAPACK location. Use this when want to link with LAPACK and it's not found automatically
+set (LAPACK_LIBRARY "-L$ENV{LAPACK_ROOT} -lflapack -L/usr/lib/x86_64-linux-gnu -lgfortran")
+set (BLAS_LIBRARY "-L$ENV{BLAS_ROOT} -lfblas -L/usr/lib/x86_64-linux-gnu -lgfortran")
+
+##
+## Section 3: GMT features
+##
+
+# Enforce GPL or LGPL conformity. Use this to disable routines that cannot be
+# redistributed under the terms of the GPL or LGPL such as Shewchuk's
+# triangulation (valid values are GPL, LGPL and off) [off]:
+#set (LICENSE_RESTRICTED GPL)
+
+# Allow building of OpenMP if compiler supports it
+# set (GMT_ENABLE_OPENMP TRUE)
+
+# Configure default units (possible values are SI and US) [SI]:
+#set (UNITS "US")
+
+# Enable building of shared libraries [TRUE] (disable to use static libraries;
+# not recommended; on non-x86 architectures uncomment the next option as well):
+set (BUILD_SHARED_LIBS FALSE)
+
+# Create position independent code on all targets [auto] (needed for static
+# build on non-x86):
+set (CMAKE_POSITION_INDEPENDENT_CODE TRUE)
+
+# Build GMT shared lib with supplemental modules [TRUE]:
+set (BUILD_SUPPLEMENTS FALSE)
+
+# Build/Install GMT Developer include files [TRUE]:
+# This installs the extra include files and configured files needed by 3rd-party
+# developers.  Until we build a separate gmt-devel we include them in the main
+# Distribution.
+#set (BUILD_DEVELOPER FALSE)
+
+##
+## Section 4: Advanced tweaking
+##
+
+#
+# Testing and development
+#
+
+# Enable running examples/tests with "ctest" or "make check" (out-of-source).
+# Need to set either DO_EXAMPLES, DO_TESTS or both and uncomment the following
+# line.
+#enable_testing()
+#set (DO_EXAMPLES TRUE)
+#set (DO_TESTS TRUE)
+#set (DO_ANIMATIONS TRUE)
+# Number of parallel test jobs with "make check":
+#set (N_TEST_JOBS 4)
+
+# Enable this option to run GMT programs from within ${GMT_BINARY_DIR} without
+# installing or setting GMT_SHAREDIR and GMT_USERDIR first. This is required
+# for testing [OFF]:
+#set (SUPPORT_EXEC_IN_BINARY_DIR ON)
+
+# List extra sub-dirs of 'src' with a CMakeList.txt to build non-module codes
+# that link against the full gmt libs (not just the API; for building codes
+# that only need the GMT API, see the gmt-custom project).
+#set (EXTRA_BUILD_DIRS apidemo)
+# Uncomment the following line to enable running low-level C tests of the API
+#set (DO_API_TESTS ON)
+
+# Directory in which to install the release sources per default
+# [${GMT_BINARY_DIR}/gmt-${GMT_PACKAGE_VERSION}]:
+#set (GMT_RELEASE_PREFIX "release-src-prefix")
+
+# If set to false, image conversion from PS images to PNG and PDF does
+# not depend on the gmt binary target. Note: "make gmt" is then required
+# before docs_depends [TRUE].
+#set (GMT_DOCS_DEPEND_ON_GMT FALSE)
+
+#
+# Debugging
+#
+
+# Set build type can be: empty, Debug, Release, RelWithDebInfo or MinSizeRel
+# [Release]:
+#set (CMAKE_BUILD_TYPE Debug)
+
+# Extra debugging for developers:
+#if ( CMAKE_GENERATOR STREQUAL "Xcode" )
+##	So Xcode can find the supplemental plug-ins during debug sessions
+#	add_definitions(-DXCODER)
+#   add_definitions(-DDEBUG_MODERN)			# To set PPID == 0 during Xcode test
+#	message("Add Xcode definition for GMT")
+#endif()
+#add_definitions(-DDEBUG)
+#add_definitions(-DMEMDEBUG) # Turn on memory tracking see gmt_support.c for extra info
+#set (CMAKE_C_FLAGS "-Wall -Wdeclaration-after-statement") # recommended even for release build
+#set (CMAKE_C_FLAGS "-Wextra ${CMAKE_C_FLAGS}")            # extra warnings
+#set (CMAKE_C_FLAGS_DEBUG -ggdb3)                          # gdb debugging symbols
+#set (CMAKE_LINK_DEPENDS_DEBUG_MODE TRUE)                  # debug link dependencies
+if (HAVE_OPENMP)
+	set (CMAKE_C_FLAGS_RELEASE "-ggdb3 -O2 -Wuninitialized -flax-vector-conversions")  # check uninitialized variables
+else (HAVE_OPENMP)
+	set (CMAKE_C_FLAGS_RELEASE "-ggdb3 -O2 -Wuninitialized")  # check uninitialized variables
+endif (HAVE_OPENMP)
+
+#
+# System specific tweaks
+#
+
+# This is for GCC on Solaris to avoid "relocations remain against allocatable
+# but non-writable sections" problems:
+#set (USER_GMTLIB_LINK_FLAGS -mimpure-text)
+
+# This may be needed to enable strdup and extended math functions with GCC and
+# Suncc on Solaris:
+#set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D__EXTENSIONS__")
+
+# Do not warn when building with Windows SDK or Visual Studio Express:
+#set (CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS ON)
+
+# Manually select runtime library when compiling with Windows SDK or Visual
+# Studio Express:
+#set (CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS c:/Windows/System32/msvcr100.dll)
+
+# If your NetCDF library is static (not recommended, applies to Windows only)
+set (NETCDF_STATIC TRUE)
+
+# If want to rename the DLLs to something else than the default (e.g. to
+# append the bitness - Windows only)
+# WARNING: if using this option it is mandatory that the suffix starts with an underscore.
+#if (WIN32)
+# set (BITAGE 32)
+# # Detect if we are building a 32 or 64 bits version
+# if (CMAKE_SIZEOF_VOID_P EQUAL 8)
+#   set (BITAGE 64)
+# endif ()
+# set (GMT_DLL_RENAME gmt_w${BITAGE})
+# set (PSL_DLL_RENAME psl_w${BITAGE})
+#endif(WIN32)
+
+# On Windows Visual C 2012 needs _ALLOW_KEYWORD_MACROS to build
+#if(MSVC11)
+#  add_definitions(/D_ALLOW_KEYWORD_MACROS)
+#endif(MSVC11)
Index: /issm/trunk-jpl/externalpackages/gmt/configs/6/static/mac/cmake/ConfigUser.static.cmake
===================================================================
--- /issm/trunk-jpl/externalpackages/gmt/configs/6/static/mac/cmake/ConfigUser.static.cmake	(revision 26246)
+++ /issm/trunk-jpl/externalpackages/gmt/configs/6/static/mac/cmake/ConfigUser.static.cmake	(revision 26246)
@@ -0,0 +1,308 @@
+#
+#
+# Copyright (c) 1991-2019 by the GMT Team (https://www.generic-mapping-tools.org/team.html)
+# See LICENSE.TXT file for copying and redistribution conditions.
+#
+# This program is free software; you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as published by the
+# Free Software Foundation; version 3 or any later version.
+#
+# This program is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
+# for more details.
+#
+# Contact info: www.generic-mapping-tools.org
+# ----------------------------------------------------------------------------
+
+# Use this file to override variables in 'ConfigDefault.cmake' on a per-user
+# basis.  First copy 'ConfigUserTemplate.cmake' to 'ConfigUser.cmake', then
+# edit 'ConfigUser.cmake'.  'ConfigUser.cmake' is not version controlled
+# (currently listed in .gitignore).
+#
+# Note: CMake considers an empty string, "FALSE", "OFF", "NO", or any string
+# ending in "-NOTFOUND" to be false (this happens to be case-insensitive, so
+# "False", "off", "no", and "something-NotFound" are all false).  Other values
+# are true.  Thus it does not matter whether you use TRUE and FALSE, ON and
+# OFF, or YES and NO for your booleans.
+
+##
+## Section 1: Installation paths
+##
+
+# ============================================================================
+# Basic setup begins here.  All settings are optional.  In most cases, setting
+# CMAKE_INSTALL_PREFIX should be all you need to do in order to build GMT with
+# reasonable defaults enabled.  Note: If you need to specify directory names
+# with spaces (e.g., on Windows) then you must put them in quotes.
+# ============================================================================
+
+# Installation path (usually defaults to /usr/local) [auto]:
+set (CMAKE_INSTALL_PREFIX "$ENV{ISSM_DIR}/externalpackages/gmt/install")
+
+# Set install name suffix used for directories and gmt executables
+# [undefined]:
+#set (GMT_INSTALL_NAME_SUFFIX "suffix")
+
+# Install into traditional directory structure. Disable to install a
+# distribution type directory structure (doc and share separated) [on]:
+#set (GMT_INSTALL_TRADITIONAL_FOLDERNAMES OFF)
+
+# Install convenience links for GMT modules. Disable to install only the main
+# gmt program and access modules as "gmt modulename options" [TRUE]:
+#set (GMT_INSTALL_MODULE_LINKS FALSE)
+
+# Make executables relocatable on supported platforms (relative RPATH) [FALSE]:
+set (GMT_INSTALL_RELOCATABLE TRUE)
+
+# Exclude optional GDAL, PCRE, PCRE2, FFTW3, LAPACK, BLAS, ZLIB dependencies even if you have them installed [FALSE]
+#set (GMT_EXCLUDE_GDAL TRUE)
+#set (GMT_EXCLUDE_PCRE TRUE)
+#set (GMT_EXCLUDE_PCRE2 TRUE)
+#set (GMT_EXCLUDE_FFTW3 TRUE)
+#set (GMT_EXCLUDE_LAPACK TRUE)
+#set (GMT_EXCLUDE_BLAS TRUE)
+#set (GMT_EXCLUDE_ZLIB TRUE)
+
+# ============================================================================
+# Advanced configuration begins here.  Usually it is not necessary to edit any
+# settings below.  You should know what you are doing if you do though.  Note:
+# installation paths are relative to ${CMAKE_INSTALL_PREFIX} unless absolute
+# path is given.
+# ============================================================================
+
+# Set binary installation path [bin]:
+#set (GMT_BINDIR "bin")
+
+# Set library installation path [lib or lib64]:
+#set (GMT_LIBDIR "lib")
+
+# Set include installation path [include/gmt${GMT_INSTALL_NAME_SUFFIX}]:
+#set (GMT_INCLUDEDIR "include/gmt")
+
+# Set share installation path [share or share/gmt${GMT_INSTALL_NAME_SUFFIX}]:
+#set (GMT_DATADIR "share/gmt")
+
+# Set doc installation path [share/doc or
+# share/doc/gmt${GMT_INSTALL_NAME_SUFFIX}]:
+#set (GMT_DOCDIR "share/doc/gmt")
+
+# Set manpage installation path [share/man or
+# share/doc/gmt${GMT_INSTALL_NAME_SUFFIX}/man]:
+#set (GMT_MANDIR "share/doc/gmt/man")
+
+# Install documentation files from this external location instead of creating
+# new HTML documents from scratch [${GMT_SOURCE_DIR}/doc_release]:
+#set (GMT_INSTALL_EXTERNAL_DOC OFF)
+
+# Install manual pages from this external location instead of creating the
+# manpages from scratch [${GMT_SOURCE_DIR}/man_release]:
+#set (GMT_INSTALL_EXTERNAL_MAN OFF)
+
+##
+## Section 2: Build dependencies (should only be needed if CMake cannot
+## automatically detect the rights version or path.)
+##
+
+# Set URL to GMT Data server [auto]:
+#set (GMT_DATA_SERVER "data_server_url")
+
+# Set path to GSHHG Shoreline Database [auto]:
+set (GSHHG_ROOT "$ENV{GSHHG_ROOT}")
+
+# Copy GSHHG files to ${GMT_DATADIR}/coast [FALSE]:
+#set (COPY_GSHHG TRUE)
+
+# Set path to DCW Digital Chart of the World for GMT [auto]:
+#set (DCW_ROOT "dcw-gmt_path")
+
+# Copy DCW files to ${GMT_DATADIR}/dcw [FALSE]:
+#set (COPY_DCW TRUE)
+
+# Copy GDAL's 'data' directory to ${GMT_DATADIR}/GDAL_DATA [FALSE]:
+#set (GDAL_DATA_PATH C:/programs/compa_libs/gdal_GIT/compileds/VC14_64/data)
+
+# Copy PROJ4's 'share' directory to ${GMT_DATADIR}/GDAL_DATA [FALSE]:
+#set (PROJ_DATA_PATH C:/programs/compa_libs/proj5_GIT/compileds/VC14_64/share/proj)
+
+# FOR WINDOWS ONLY
+# Set path to location of Ghostscript binaries (optional install)
+#set (GHOST_DATA_PATH C:/programs/compa_libs/ghostscript/bin)
+
+# FOR WINDOWS ONLY
+# Set path to location where the gmtmex is located.
+#set (GMTMEX_PATH "C:/progs_cygw/GMTdev/gmtmex/${GMTver}")
+
+# Set location of NetCDF (can be root directory, path to header file or path
+# to nc-config) [auto]:
+set (NETCDF_ROOT "$ENV{NETCDF_ROOT}")
+
+# Set location of GDAL (can be root directory, path to header file or path to
+# gdal-config) [auto]:
+set (GDAL_ROOT "$ENV{GDAL_ROOT}")
+
+# Set location of PCRE (can be root directory, path to header file or path to
+# pcre-config) [auto]:
+#set (PCRE_ROOT "pcre_install_prefix")
+# Alternatively, set location of PCRE2 (can be root directory, path to header file or path to
+# pcre2-config) [auto]:
+#set (PCRE2_ROOT "pcre2_install_prefix")
+
+# Set location of single precision FFTW (can be root directory or path to
+# header file) [auto]:
+#set (FFTW3_ROOT "fftw_install_prefix")
+
+# Set location of ZLIB (can be root directory or path to header file) [auto]:
+set (ZLIB_ROOT "$ENV{ZLIB_ROOT}")
+
+# Set location of CURL (can be root directory or path to header file) [auto]:
+#set (CURL_ROOT "curl_install_prefix")
+
+# Set location of GLIB component gthread [auto].  This is an optional (and
+# experimental) option which you need to enable:
+#set (GMT_USE_THREADS TRUE)
+# If pkg-config is not installed (e.g. on Windows) you need to specify these:
+#set (GLIB_INCLUDE_DIR c:/path/to/glib-dev/include/glib-2.0)
+#set (GLIB_LIBRARIES c:/path/to/glib-dev/lib/glib-2.0.lib)
+
+# Set LAPACK location. Use this when want to link with LAPACK and it's not found automatically
+#set (LAPACK_LIBRARY "-L$ENV{LAPACK_ROOT} -lflapack")
+#set (BLAS_LIBRARY "-L$ENV{BLAS_ROOT} -lfblas")
+
+##
+## Section 3: GMT features
+##
+
+# Enforce GPL or LGPL conformity. Use this to disable routines that cannot be
+# redistributed under the terms of the GPL or LGPL such as Shewchuk's
+# triangulation (valid values are GPL, LGPL and off) [off]:
+#set (LICENSE_RESTRICTED GPL)
+
+# Allow building of OpenMP if compiler supports it
+# set (GMT_ENABLE_OPENMP TRUE)
+
+# Configure default units (possible values are SI and US) [SI]:
+#set (UNITS "US")
+
+# Enable building of shared libraries [TRUE] (disable to use static libraries;
+# not recommended; on non-x86 architectures uncomment the next option as well):
+set (BUILD_SHARED_LIBS FALSE)
+
+# Create position independent code on all targets [auto] (needed for static
+# build on non-x86):
+set (CMAKE_POSITION_INDEPENDENT_CODE TRUE)
+
+# Build GMT shared lib with supplemental modules [TRUE]:
+set (BUILD_SUPPLEMENTS FALSE)
+
+# Build/Install GMT Developer include files [TRUE]:
+# This installs the extra include files and configured files needed by 3rd-party
+# developers.  Until we build a separate gmt-devel we include them in the main
+# Distribution.
+#set (BUILD_DEVELOPER FALSE)
+
+##
+## Section 4: Advanced tweaking
+##
+
+#
+# Testing and development
+#
+
+# Enable running examples/tests with "ctest" or "make check" (out-of-source).
+# Need to set either DO_EXAMPLES, DO_TESTS or both and uncomment the following
+# line.
+#enable_testing()
+#set (DO_EXAMPLES TRUE)
+#set (DO_TESTS TRUE)
+#set (DO_ANIMATIONS TRUE)
+# Number of parallel test jobs with "make check":
+#set (N_TEST_JOBS 4)
+
+# Enable this option to run GMT programs from within ${GMT_BINARY_DIR} without
+# installing or setting GMT_SHAREDIR and GMT_USERDIR first. This is required
+# for testing [OFF]:
+#set (SUPPORT_EXEC_IN_BINARY_DIR ON)
+
+# List extra sub-dirs of 'src' with a CMakeList.txt to build non-module codes
+# that link against the full gmt libs (not just the API; for building codes
+# that only need the GMT API, see the gmt-custom project).
+#set (EXTRA_BUILD_DIRS apidemo)
+# Uncomment the following line to enable running low-level C tests of the API
+#set (DO_API_TESTS ON)
+
+# Directory in which to install the release sources per default
+# [${GMT_BINARY_DIR}/gmt-${GMT_PACKAGE_VERSION}]:
+#set (GMT_RELEASE_PREFIX "release-src-prefix")
+
+# If set to false, image conversion from PS images to PNG and PDF does
+# not depend on the gmt binary target. Note: "make gmt" is then required
+# before docs_depends [TRUE].
+#set (GMT_DOCS_DEPEND_ON_GMT FALSE)
+
+#
+# Debugging
+#
+
+# Set build type can be: empty, Debug, Release, RelWithDebInfo or MinSizeRel
+# [Release]:
+#set (CMAKE_BUILD_TYPE Debug)
+
+# Extra debugging for developers:
+#if ( CMAKE_GENERATOR STREQUAL "Xcode" )
+##	So Xcode can find the supplemental plug-ins during debug sessions
+#	add_definitions(-DXCODER)
+#   add_definitions(-DDEBUG_MODERN)			# To set PPID == 0 during Xcode test
+#	message("Add Xcode definition for GMT")
+#endif()
+#add_definitions(-DDEBUG)
+#add_definitions(-DMEMDEBUG) # Turn on memory tracking see gmt_support.c for extra info
+#set (CMAKE_C_FLAGS "-Wall -Wdeclaration-after-statement") # recommended even for release build
+#set (CMAKE_C_FLAGS "-Wextra ${CMAKE_C_FLAGS}")            # extra warnings
+#set (CMAKE_C_FLAGS_DEBUG -ggdb3)                          # gdb debugging symbols
+#set (CMAKE_LINK_DEPENDS_DEBUG_MODE TRUE)                  # debug link dependencies
+if (HAVE_OPENMP)
+	set (CMAKE_C_FLAGS_RELEASE "-ggdb3 -O2 -Wuninitialized -flax-vector-conversions")  # check uninitialized variables
+else (HAVE_OPENMP)
+	set (CMAKE_C_FLAGS_RELEASE "-ggdb3 -O2 -Wuninitialized")  # check uninitialized variables
+endif (HAVE_OPENMP)
+
+#
+# System specific tweaks
+#
+
+# This is for GCC on Solaris to avoid "relocations remain against allocatable
+# but non-writable sections" problems:
+#set (USER_GMTLIB_LINK_FLAGS -mimpure-text)
+
+# This may be needed to enable strdup and extended math functions with GCC and
+# Suncc on Solaris:
+#set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D__EXTENSIONS__")
+
+# Do not warn when building with Windows SDK or Visual Studio Express:
+#set (CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS ON)
+
+# Manually select runtime library when compiling with Windows SDK or Visual
+# Studio Express:
+#set (CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS c:/Windows/System32/msvcr100.dll)
+
+# If your NetCDF library is static (not recommended, applies to Windows only)
+set (NETCDF_STATIC TRUE)
+
+# If want to rename the DLLs to something else than the default (e.g. to
+# append the bitness - Windows only)
+# WARNING: if using this option it is mandatory that the suffix starts with an underscore.
+#if (WIN32)
+# set (BITAGE 32)
+# # Detect if we are building a 32 or 64 bits version
+# if (CMAKE_SIZEOF_VOID_P EQUAL 8)
+#   set (BITAGE 64)
+# endif ()
+# set (GMT_DLL_RENAME gmt_w${BITAGE})
+# set (PSL_DLL_RENAME psl_w${BITAGE})
+#endif(WIN32)
+
+# On Windows Visual C 2012 needs _ALLOW_KEYWORD_MACROS to build
+#if(MSVC11)
+#  add_definitions(/D_ALLOW_KEYWORD_MACROS)
+#endif(MSVC11)
Index: /issm/trunk-jpl/externalpackages/gmt/install-6-linux-static.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/gmt/install-6-linux-static.sh	(revision 26245)
+++ /issm/trunk-jpl/externalpackages/gmt/install-6-linux-static.sh	(revision 26246)
@@ -45,5 +45,5 @@
 
 # Copy custom configuration files
-cp ./configs/6/static/cmake/ConfigUser.static.cmake ./src/cmake/ConfigUser.cmake
+cp ./configs/6/static/linux/cmake/ConfigUser.static.cmake ./src/cmake/ConfigUser.cmake
 cp ./configs/6/static/cmake/modules/FindGDAL.cmake ./src/cmake/modules
 cp ./configs/6/static/cmake/modules/FindGSHHG.cmake ./src/cmake/modules
Index: /issm/trunk-jpl/externalpackages/gmt/install-6-linux.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/gmt/install-6-linux.sh	(revision 26245)
+++ /issm/trunk-jpl/externalpackages/gmt/install-6-linux.sh	(revision 26246)
@@ -27,5 +27,5 @@
 
 # Copy custom configuration files
-cp ./configs/6/cmake/ConfigUser.cmake ./src/cmake
+cp ./configs/6/linux/cmake/ConfigUser.cmake ./src/cmake
 
 # Configure
Index: /issm/trunk-jpl/externalpackages/gmt/install-6-mac-static.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/gmt/install-6-mac-static.sh	(revision 26245)
+++ /issm/trunk-jpl/externalpackages/gmt/install-6-mac-static.sh	(revision 26246)
@@ -46,5 +46,5 @@
 
 # Copy custom configuration files
-cp ./configs/6/static/cmake/ConfigUser.static.cmake ./src/cmake/ConfigUser.cmake
+cp ./configs/6/static/mac/cmake/ConfigUser.static.cmake ./src/cmake/ConfigUser.cmake
 cp ./configs/6/static/cmake/modules/FindGDAL.cmake ./src/cmake/modules
 cp ./configs/6/static/cmake/modules/FindGSHHG.cmake ./src/cmake/modules
Index: /issm/trunk-jpl/externalpackages/gmt/install-6-mac.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/gmt/install-6-mac.sh	(revision 26245)
+++ /issm/trunk-jpl/externalpackages/gmt/install-6-mac.sh	(revision 26246)
@@ -27,5 +27,5 @@
 
 # Copy custom configuration files
-cp ./configs/6/cmake/ConfigUser.cmake ./src/cmake
+cp ./configs/6/mac/cmake/ConfigUser.cmake ./src/cmake
 
 # Configure
