Changeset 18151


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

BUG: fixed allocation required in 3d for four-field FS

File:
1 edited

Legend:

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

    r18150 r18151  
    44104410                else{
    44114411                        _assert_(tnumnodes==4);
     4412                        d_zz = xNew<IssmDouble>(tnumnodes);
     4413                        d_xz = xNew<IssmDouble>(tnumnodes);
     4414                        d_yz = xNew<IssmDouble>(tnumnodes);
    44124415                        Matrix4x4Solve(&d_xx[0],Ke,pe_xx);
    44134416                        Matrix4x4Solve(&d_yy[0],Ke,pe_yy);
     
    44954498                IssmDouble* tau_xz = NULL;
    44964499                IssmDouble* tau_yz = NULL;
     4500                if(dim==3){
     4501                        tau_zz = xNew<IssmDouble>(tnumnodes);
     4502                        tau_xz = xNew<IssmDouble>(tnumnodes);
     4503                        tau_yz = xNew<IssmDouble>(tnumnodes);
     4504                }
    44974505                Gauss* gauss = element->NewGauss();
    44984506                for(int ig=0;ig<tnumnodes;ig++){
Note: See TracChangeset for help on using the changeset viewer.