Changeset 3405


Ignore:
Timestamp:
04/06/10 10:37:20 (15 years ago)
Author:
seroussi
Message:

fixed problem with Sing elem

File:
1 edited

Legend:

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

    r3404 r3405  
    210210        /*recover pointers: */
    211211        inputs=(ParameterInputs*)vinputs;
     212
     213        /*recover objects from hooks: */
     214        nodes=(Node**)hnodes.deliverp();
     215        matpar=(Matpar*)hmatpar.delivers();
     216        matice=(Matice*)hmatice.delivers();
     217        numpar=(Numpar*)hnumpar.delivers();
    212218
    213219        /*Update internal data if inputs holds new values: */
     
    379385        numpar=(Numpar*)hnumpar.delivers();
    380386
    381         found=inputs->Recover("surfaceslopex",&slope[0],1,dofs,numgrids,(void**)&node);
     387        found=inputs->Recover("surfaceslopex",&slope[0],1,dofs,numgrids,(void**)&node[0]);
    382388        if(!found)ISSMERROR(" surfaceslopex missing from inputs!");
    383         found=inputs->Recover("surfaceslopey",&slope[1],1,dofs,numgrids,(void**)&node);
     389        found=inputs->Recover("surfaceslopey",&slope[1],1,dofs,numgrids,(void**)&node[0]);
    384390        if(!found)ISSMERROR(" surfaceslopey missing from inputs!");
    385391
Note: See TracChangeset for help on using the changeset viewer.