Changeset 17479


Ignore:
Timestamp:
03/19/14 12:22:11 (11 years ago)
Author:
Mathieu Morlighem
Message:

BUG: fixinf AD compilation, gauss tetra needs to have IssmDouble and not PDouble

Location:
issm/trunk-jpl/src/c/shared/Numerics
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/shared/Numerics/GaussPoints.cpp

    r17421 r17479  
    11991199}/*}}}*/
    12001200/*FUNCTION GaussLegendreTetra{{{*/
    1201 void GaussLegendreTetra( int* pngaus, IssmPDouble** pl1, IssmPDouble** pl2, IssmPDouble** pl3, IssmPDouble** pl4, IssmPDouble** pwgt, int iord ) {
     1201void GaussLegendreTetra( int* pngaus, IssmDouble** pl1, IssmDouble** pl2, IssmDouble** pl3, IssmDouble** pl4, IssmDouble** pwgt, int iord ) {
    12021202        /* Gauss quadrature points for the tetrahedron.
    12031203
     
    14021402                *pngaus=np[iord-1];
    14031403
    1404                 *pl1  =xNew<IssmPDouble>(*pngaus);
    1405                 *pl2  =xNew<IssmPDouble>(*pngaus);
    1406                 *pl3  =xNew<IssmPDouble>(*pngaus);
    1407                 *pl4  =xNew<IssmPDouble>(*pngaus);
    1408                 *pwgt =xNew<IssmPDouble>(*pngaus);
     1404                *pl1  =xNew<IssmDouble>(*pngaus);
     1405                *pl2  =xNew<IssmDouble>(*pngaus);
     1406                *pl3  =xNew<IssmDouble>(*pngaus);
     1407                *pl4  =xNew<IssmDouble>(*pngaus);
     1408                *pwgt =xNew<IssmDouble>(*pngaus);
    14091409
    14101410                for (i=0; i<*pngaus; i++) {
     
    14221422                *pngaus=nigaus*nigaus*nigaus;
    14231423
    1424                 *pl1  =xNew<IssmPDouble>(*pngaus);
    1425                 *pl2  =xNew<IssmPDouble>(*pngaus);
    1426                 *pl3  =xNew<IssmPDouble>(*pngaus);
    1427                 *pl4  =xNew<IssmPDouble>(*pngaus);
    1428                 *pwgt =xNew<IssmPDouble>(*pngaus);
     1424                *pl1  =xNew<IssmDouble>(*pngaus);
     1425                *pl2  =xNew<IssmDouble>(*pngaus);
     1426                *pl3  =xNew<IssmDouble>(*pngaus);
     1427                *pl4  =xNew<IssmDouble>(*pngaus);
     1428                *pwgt =xNew<IssmDouble>(*pngaus);
    14291429
    14301430                /*  get the gauss points in each direction  */
  • issm/trunk-jpl/src/c/shared/Numerics/GaussPoints.h

    r15071 r17479  
    1212void GaussLegendreTria(int* pngaus, IssmDouble** pl1, IssmDouble** pl2, IssmDouble** pl3, IssmDouble** pwgt, int iord);
    1313#define MAX_TETRA_SYM_ORD    6
    14 void GaussLegendreTetra(int* pngaus, IssmPDouble** pl1, IssmPDouble** pl2, IssmPDouble** pl3, IssmPDouble** pl4, IssmPDouble** pwgt, int iord);
     14void GaussLegendreTetra(int* pngaus, IssmDouble** pl1, IssmDouble** pl2, IssmDouble** pl3, IssmDouble** pl4, IssmDouble** pwgt, int iord);
    1515#define MAX_LINE_GLOB_PTS    5
    1616void GaussLobatto(IssmPDouble** pxgaus, IssmPDouble** pxwgt, int ngaus);
Note: See TracChangeset for help on using the changeset viewer.