Changeset 5341


Ignore:
Timestamp:
08/18/10 08:41:39 (15 years ago)
Author:
Mathieu Morlighem
Message:

Added check so that rifts do not segfault

Location:
issm/trunk/src/c/objects
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/objects/Hook.cpp

    r4546 r5341  
    187187        }
    188188        else{
     189                /*Some checks in debugging mode*/
     190                /*{{{2*/
     191                ISSMASSERT(this->ids);
     192                ISSMASSERT(this->offsets);
     193                /*}}}*/
     194
    189195                this->ids=(int*)xmalloc(num*sizeof(int));
    190196                this->offsets=(int*)xmalloc(num*sizeof(int));
  • issm/trunk/src/c/objects/Loads/Riftfront.cpp

    r5237 r5341  
    257257
    258258        /*demarshall hooks: */
    259         hnodes=new Hook(); hnodes->Demarshall(&marshalled_dataset);
     259        hnodes=new Hook();    hnodes->Demarshall(&marshalled_dataset);
    260260        helements=new Hook(); helements->Demarshall(&marshalled_dataset);
    261         hmatpar=new Hook(); hmatpar->Demarshall(&marshalled_dataset);
     261        hmatpar=new Hook();   hmatpar->Demarshall(&marshalled_dataset);
    262262       
    263263        /*demarshall inputs: */
Note: See TracChangeset for help on using the changeset viewer.