Changeset 4400


Ignore:
Timestamp:
07/06/10 08:48:37 (15 years ago)
Author:
Mathieu Morlighem
Message:
  1. Added Hooks initialization for hnodes (extend to Penta?)
  2. Missing return output in copy operator of Hook
Location:
issm/trunk/src/c/objects
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified issm/trunk/src/c/objects/Elements/TriaHook.cpp

    r4396 r4400  
    4646       
    4747        this->numanalyses=in_numanalyses;
    48         this->hnodes=new Hook*[in_numanalyses];
     48        this->hnodes= new Hook*[in_numanalyses];
    4949        this->hmatice=new Hook(&matice_id,1);
    5050        this->hmatpar=new Hook(&matpar_id,1);
     51
     52        //Initialize hnodes
     53        for(int i=0;i<this->numanalyses;i++){
     54                this->hnodes[i]=new Hook();
     55        }
    5156
    5257}
  • TabularUnified issm/trunk/src/c/objects/Hook.cpp

    r4396 r4400  
    232232                output->ids[i]=this->ids[i];
    233233        }
     234
     235        return (Object*)output;
    234236}
    235237/*}}}*/
Note: See TracChangeset for help on using the changeset viewer.