source: issm/oecreview/Archive/16133-16554/ISSM-16377-16378.diff@ 16556

Last change on this file since 16556 was 16556, checked in by Mathieu Morlighem, 11 years ago

NEW: added Archive/16133-16554

File size: 1.3 KB
  • ../trunk-jpl/src/c/Makefile.am

     
    2424                                        ./datastructures/Object.h\
    2525                                        ./datastructures/datastructures.h\
    2626                                        ./classes/classes.h\
     27                                        ./classes/gauss/GaussSeg.h\
     28                                        ./classes/gauss/GaussSeg.cpp\
    2729                                        ./classes/gauss/GaussTria.h\
    2830                                        ./classes/gauss/GaussTria.cpp\
    2931                                        ./classes/Update.h\
  • ../trunk-jpl/src/c/classes/Elements/SegRef.cpp

     
    7575        IssmDouble y2=xyz_list[3*1+1];
    7676        IssmDouble z2=xyz_list[3*1+2];
    7777
    78         *Jdet=.5*sqrt(pow(x2-x1,2) + pow(y2-y1,2) + pow(z2-z1,2));
    79         if(*Jdet<0) _error_("negative jacobian determinant!");
     78        *J=.5*sqrt(pow(x2-x1,2) + pow(y2-y1,2) + pow(z2-z1,2));
    8079}
    8180/*}}}*/
    8281/*FUNCTION SegRef::GetJacobianDeterminant{{{*/
     
    8584         * J is assumed to have been allocated of size NDOF2xNDOF2.*/
    8685
    8786        /*Call Jacobian routine to get the jacobian:*/
    88         GetJacobian(&Jdet, xyz_list, gauss);
     87        GetJacobian(Jdet, xyz_list, gauss);
     88        if(*Jdet<0) _error_("negative jacobian determinant!");
    8989
    9090}
    9191/*}}}*/
Note: See TracBrowser for help on using the repository browser.