Ignore:
Timestamp:
05/08/13 13:48:23 (12 years ago)
Author:
bdef
Message:

BUG: Modification in the residual computation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/FemModel.cpp

    r14960 r14967  
    14591459#ifdef  _HAVE_DAKOTA_
    14601460void FemModel::DakotaResponsesx(double* d_responses,char** responses_descriptors,int numresponsedescriptors,int d_numresponses){/*{{{*/
    1461 
     1461       
    14621462        int        i,j;
    14631463        int        my_rank;
     
    15621562void FemModel::Deflection(Vector<IssmDouble>* wg,Vector<IssmDouble>* dwgdt, IssmDouble* x, IssmDouble* y){ /*{{{*/
    15631563
    1564         int      i;
    1565 
     1564  int      i;
     1565       
    15661566        /*intermediary: */
    15671567        Element *element     = NULL;
    1568 
     1568       
    15691569        /*Go through elements, and add contribution from each element to the deflection vector wg:*/
    15701570        for (i=0;i<elements->Size();i++){
     
    15751575/*}}}*/
    15761576#endif
     1577
     1578void FemModel::BasisIntegralsx(void){ /*{{{*/
     1579
     1580        Vector<IssmDouble>* basisg=NULL;
     1581       
     1582        /*Vector allocation*/
     1583        basisg=new Vector<IssmDouble>(nodes->NumberOfNodes());
     1584       
     1585        for (int i=0;i<elements->Size();i++){
     1586                Element* element=dynamic_cast<Element*>(elements->GetObjectByOffset(i));
     1587                element->BasisIntegral(basisg);
     1588        }
     1589        /*Assemble*/
     1590        basisg->Assemble();
     1591       
     1592        /*Update Inputs*/
     1593        InputUpdateFromVectorx(elements,nodes,vertices,loads,materials,parameters,basisg,BasisIntegralEnum,NodesEnum);
     1594       
     1595}
     1596/*}}}*/
Note: See TracChangeset for help on using the changeset viewer.