Changeset 18139


Ignore:
Timestamp:
06/11/14 15:32:33 (11 years ago)
Author:
Mathieu Morlighem
Message:

CHG: added some capabilities

Location:
issm/trunk-jpl/src/c/classes/Elements
Files:
4 edited

Legend:

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

    r18078 r18139  
    874874}
    875875/*}}}*/
     876void     Tetra::ValueP1OnGauss(IssmDouble* pvalue,IssmDouble* values,Gauss* gauss){/*{{{*/
     877        TetraRef::GetInputValue(pvalue,values,gauss,P1Enum);
     878}
     879/*}}}*/
    876880int      Tetra::VelocityInterpolation(void){/*{{{*/
    877881        return TetraRef::VelocityInterpolation(this->element_type);
  • issm/trunk-jpl/src/c/classes/Elements/Tetra.h

    r18135 r18139  
    105105                IssmDouble  StabilizationParameter(IssmDouble u, IssmDouble v, IssmDouble w, IssmDouble diameter, IssmDouble kappa){_error_("not implemented yet");};
    106106                int         PressureInterpolation(void);
    107                 void        ValueP1OnGauss(IssmDouble* pvalue,IssmDouble* values,Gauss* gauss){_error_("not implemented yet");};
     107                void        ValueP1OnGauss(IssmDouble* pvalue,IssmDouble* values,Gauss* gauss);
    108108                void        ValueP1DerivativesOnGauss(IssmDouble* dvalue,IssmDouble* values,IssmDouble* xyz_list,Gauss* gauss){_error_("not implemented yet");};
    109109                int         VelocityInterpolation(void);
  • issm/trunk-jpl/src/c/classes/Elements/TetraRef.cpp

    r18078 r18139  
    3030
    3131/*Reference Element numerics*/
    32 void TetraRef::GetNodalFunctions(IssmDouble* basis,GaussTetra* gauss,int finiteelement){/*{{{*/
     32void TetraRef::GetNodalFunctions(IssmDouble* basis,Gauss* gauss_in,int finiteelement){/*{{{*/
    3333        /*This routine returns the values of the nodal functions  at the gaussian point.*/
    3434
    3535        _assert_(basis);
     36
     37        /*Cast gauss to GaussTetra*/
     38        _assert_(gauss_in->Enum()==GaussTetraEnum);
     39        GaussTetra* gauss = dynamic_cast<GaussTetra*>(gauss_in);
    3640
    3741        switch(finiteelement){
     
    239243}
    240244/*}}}*/
    241 void TetraRef::GetInputValue(IssmDouble* p, IssmDouble* plist, GaussTetra* gauss,int finiteelement){/*{{{*/
     245void TetraRef::GetInputValue(IssmDouble* p, IssmDouble* plist, Gauss* gauss,int finiteelement){/*{{{*/
    242246
    243247        /*Output*/
  • issm/trunk-jpl/src/c/classes/Elements/TetraRef.h

    r18078 r18139  
    2020                void GetJacobianDeterminantFace(IssmDouble*  Jdet, IssmDouble* xyz_list,GaussTetra* gauss);
    2121                void GetJacobianInvert(IssmDouble* Jinv, IssmDouble* xyz_list,GaussTetra* gauss);
    22                 void GetNodalFunctions(IssmDouble* basis,GaussTetra* gauss,int finiteelement);
     22                void GetNodalFunctions(IssmDouble* basis,Gauss* gauss_in,int finiteelement);
    2323                void GetNodalFunctionsDerivatives(IssmDouble* dbasis,IssmDouble* xyz_list, GaussTetra* gauss,int finiteelement);
    2424                void GetNodalFunctionsDerivativesReference(IssmDouble* dbasis,GaussTetra* gauss,int finiteelement);
    2525                void GetInputDerivativeValue(IssmDouble* p, IssmDouble* plist,IssmDouble* xyz_list, GaussTetra* gauss,int finiteelement);
    26                 void GetInputValue(IssmDouble* p, IssmDouble* plist, GaussTetra* gauss,int finiteelement);
     26                void GetInputValue(IssmDouble* p, IssmDouble* plist, Gauss* gauss,int finiteelement);
    2727
    2828                int  NumberofNodes(int finiteelement);
Note: See TracChangeset for help on using the changeset viewer.