Ignore:
Timestamp:
06/01/20 14:22:09 (5 years ago)
Author:
Eric.Larour
Message:

CHG: further optimization in the geodetic module, using the geometry module.

File:
1 edited

Legend:

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

    r24944 r24946  
    46734673#endif
    46744674#ifdef _HAVE_SEALEVELRISE_
    4675 void FemModel::SealevelriseGeometry(IssmDouble* latitude, IssmDouble* longitude, IssmDouble* radius) { /*{{{*/
     4675void FemModel::SealevelriseGeometry(IssmDouble* latitude, IssmDouble* longitude, IssmDouble* radius, IssmDouble* xx, IssmDouble* yy, IssmDouble* zz) { /*{{{*/
    46764676
    46774677        /*Run sealevelrie geometry routine in elements:*/
    46784678        for(int i=0;i<elements->Size();i++){
    46794679                Element*   element=xDynamicCast<Element*>(elements->GetObjectByOffset(i));
    4680                 element->SealevelriseGeometry(latitude,longitude,radius);
     4680                element->SealevelriseGeometry(latitude,longitude,radius,xx,yy,zz);
    46814681        }
    46824682
     
    48544854}
    48554855/*}}}*/
    4856 void FemModel::SealevelriseElastic(Vector<IssmDouble>* pUp, Vector<IssmDouble>* pNorth, Vector<IssmDouble>* pEast, Vector<IssmDouble>* pRSLg, SealevelMasks* masks, IssmDouble* latitude, IssmDouble* longitude, IssmDouble* radius, IssmDouble* xx, IssmDouble* yy, IssmDouble* zz,int loop,int horiz){/*{{{*/
     4856void FemModel::SealevelriseElastic(Vector<IssmDouble>* pUp, Vector<IssmDouble>* pNorth, Vector<IssmDouble>* pEast, Vector<IssmDouble>* pRSLg, SealevelMasks* masks, IssmDouble* latitude, IssmDouble* longitude, IssmDouble* radius, IssmDouble* xx, IssmDouble* yy, IssmDouble* zz,int loop){/*{{{*/
    48574857
    48584858        /*serialized vectors:*/
     
    48634863        IssmDouble* East  = NULL;
    48644864        int* indices = NULL;
    4865         int         gsize;
    4866 
     4865        int  gsize;
     4866        int  horiz;
     4867       
     4868        /*retrieve parameters:*/
     4869        this->parameters->FindParam(&horiz,SealevelriseHorizEnum);
    48674870
    48684871        /*Serialize vectors from previous iteration:*/
     
    48804883        for(int i=0;i<elements->Size();i++){
    48814884                Element* element=xDynamicCast<Element*>(elements->GetObjectByOffset(i));
    4882                 element->SealevelriseGeodetic(Up,North,East,RSLg,masks, latitude,longitude,radius,xx,yy,zz,horiz);
     4885                element->SealevelriseGeodetic(Up,North,East,RSLg,masks, latitude,longitude,radius,xx,yy,zz);
    48834886        }
    48844887
Note: See TracChangeset for help on using the changeset viewer.