Changeset 18149


Ignore:
Timestamp:
06/12/14 15:33:54 (11 years ago)
Author:
Mathieu Morlighem
Message:

BUG: fixed AD compilation

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

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/analyses/StressbalanceAnalysis.cpp

    r18075 r18149  
    77#include "../cores/cores.h"
    88
    9 //#define FSANALYTICAL 21
     9#define FSANALYTICAL 4
    1010
    1111/*Model processing*/
     
    30643064
    30653065        if(element->IsFloating() || !element->IsOnBase()) return NULL;
     3066        return NULL;
    30663067
    30673068        /*If on water or not FS, skip stiffness: */
     
    30743075        IssmDouble  alpha2,Jdet;
    30753076        IssmDouble  x_coord,y_coord,z_coord;
     3077        IssmDouble *xyz_list      = NULL;
    30763078        IssmDouble *xyz_list_base = NULL;
    30773079        Gauss*      gauss         = NULL;
     
    30913093
    30923094        /*Retrieve all inputs and parameters*/
     3095        element->GetVerticesCoordinates(&xyz_list);
    30933096        element->GetVerticesCoordinatesBase(&xyz_list_base);
    30943097        Input* vx_input         = element->GetInput(VxEnum);      _assert_(vx_input);
     
    31233126        /*Clean up and return*/
    31243127        delete gauss;
     3128        xDelete<IssmDouble>(xyz_list);
    31253129        xDelete<IssmDouble>(xyz_list_base);
    31263130        xDelete<IssmDouble>(B);
  • issm/trunk-jpl/src/c/shared/Matrix/MatrixUtils.cpp

    r18148 r18149  
    33 */
    44
    5 #include "../Elements/elements.h"
    65/*Headers*/
    76/*{{{*/
     
    461460        /*Compute determinant*/
    462461        Matrix4x4Determinant(&det,A);
    463         if(fabs(det) < DBL_EPSILON){
    464                 printarray(A,4,4);
    465                 _error_("Determinant smaller than machine epsilon");
    466         }
     462        if(fabs(det) < DBL_EPSILON) _error_("Determinant smaller than machine epsilon");
    467463
    468464        /*Compute adjoint matrix*/
Note: See TracChangeset for help on using the changeset viewer.