Changeset 16156


Ignore:
Timestamp:
09/17/13 15:36:17 (12 years ago)
Author:
Mathieu Morlighem
Message:

NEW: fixed cppcheck crash

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/bamg/Mesh.cpp

    r16152 r16156  
    21872187                                // correction of second derivative
    21882188                                // by a laplacien
    2189                                 double* d2[3] = {dxdx, dxdy, dydy};
    21902189                                double* dd;
    21912190                                for (int xy = 0;xy<3;xy++) {
    2192                                         dd = d2[xy];
     2191                                        if      (xy==0) dd=dxdx;
     2192                                        else if (xy==1) dd=dxdy;
     2193                                        else if (xy==2) dd=dydy;
     2194                                        else    _error_("not supported yet");
    21932195                                        // do leat 2 iteration for boundary problem
    21942196                                        for (int ijacobi=0;ijacobi<Max(NbJacobi,2);ijacobi++){
Note: See TracChangeset for help on using the changeset viewer.