Changeset 3828


Ignore:
Timestamp:
05/18/10 16:51:19 (15 years ago)
Author:
Eric.Larour
Message:

New TriaRef framework in place, just have to fill it up

Location:
issm/trunk/src/c
Files:
2 added
8 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/EnumDefinitions/EnumAsString.cpp

    r3775 r3828  
    192192                case VzOldEnum : return "VzOld";
    193193                case WeightsEnum : return "Weights";
     194                case P1Enum : return "P1";
    194195                case BetaEnum : return "Beta";
    195196                case CmGradientEnum : return "CmGradient";
  • issm/trunk/src/c/EnumDefinitions/StringAsEnum.cpp

    r3775 r3828  
    190190        else if (strcmp(name,"VzOld")==0) return VzOldEnum;
    191191        else if (strcmp(name,"Weights")==0) return WeightsEnum;
     192        else if (strcmp(name,"P1")==0) return P1Enum;
    192193        else if (strcmp(name,"Beta")==0) return BetaEnum;
    193194        else if (strcmp(name,"CmGradient")==0) return CmGradientEnum;
  • issm/trunk/src/c/Makefile.am

    r3821 r3828  
    6868                                        ./objects/Elements/TriaHook.h\
    6969                                        ./objects/Elements/TriaHook.cpp\
     70                                        ./objects/Elements/TriaRef.h\
     71                                        ./objects/Elements/TriaRef.cpp\
    7072                                        ./objects/Inputs/Input.h\
    7173                                        ./objects/Inputs/TriaVertexInput.h\
     
    513515                                        ./objects/Elements/TriaHook.h\
    514516                                        ./objects/Elements/TriaHook.cpp\
     517                                        ./objects/Elements/TriaRef.h\
     518                                        ./objects/Elements/TriaRef.cpp\
    515519                                        ./objects/Inputs/Input.h\
    516520                                        ./objects/Inputs/TriaVertexInput.h\
  • issm/trunk/src/c/objects/Elements/Tria.cpp

    r3821 r3828  
    4848        /*id: */
    4949        this->id=tria_id;
     50
     51        /*interpolation type: */
     52        this->InitInterpolationType(P1Enum);
    5053       
    5154        /*hooks: */
     
    186189        /*copy fields: */
    187190        tria->id=this->id;
     191        tria->interpolation_type=this->interpolation_type;
    188192        if(this->inputs){
    189193                tria->inputs=(Inputs*)this->inputs->Copy();
     
    240244         *object data (thanks to DataSet::Demarshall):*/
    241245        memcpy(&id,marshalled_dataset,sizeof(id));marshalled_dataset+=sizeof(id);
     246        memcpy(&interpolation_type,marshalled_dataset,sizeof(interpolation_type));marshalled_dataset+=sizeof(interpolation_type);
    242247
    243248        /*demarshall hooks: */
     
    306311        /*marshall Tria data: */
    307312        memcpy(marshalled_dataset,&id,sizeof(id));marshalled_dataset+=sizeof(id);
     313        memcpy(marshalled_dataset,&interpolation_type,sizeof(interpolation_type));marshalled_dataset+=sizeof(interpolation_type);
    308314
    309315        /*Marshall hooks: */
     
    330336       
    331337        return sizeof(id)
     338                +sizeof(interpolation_type)
    332339                +hnodes.MarshallSize()
    333340                +hmatice.MarshallSize()
  • issm/trunk/src/c/objects/Elements/Tria.h

    r3821 r3828  
    1010#include "./Element.h"
    1111#include "./TriaHook.h"
     12#include "./TriaRef.h"
    1213class Parameters;
    1314class Inputs;
     
    2122/*}}}*/
    2223
    23 class Tria: public Element,public TriaHook{
     24class Tria: public Element,public TriaHook,public TriaRef{
    2425
    2526        public:
     
    116117                double GetAreaCoordinate(double x, double y, int which_one);
    117118                /*}}}*/
    118 
    119                 /*updates:*/
     119                /*FUNCTION updates{{{1*/
    120120                void  UpdateFromDakota(void* inputs);
    121121                void  UpdateInputsFromSolution(double* solution, int analysis_type, int sub_analysis_type);
     
    134134                void  UpdateInputsFromConstant(bool constant, int name){ISSMERROR("Not implemented yet!");}
    135135                void  pdateInputsFromSolution(double* solution, int analysis_type, int sub_analysis_type);
    136 
     136                /*}}}*/
    137137
    138138};
  • issm/trunk/src/c/objects/Inputs/TriaVertexInput.cpp

    r3816 r3828  
    133133
    134134/*Object functions*/
    135 /*FUNCTION TriaVertexInput::GetParameterValue(bool* pvalue) {{{1*/
    136 void TriaVertexInput::GetParameterValue(bool* pvalue){ISSMERROR(" not supported yet!");}
    137 /*}}}*/
    138 /*FUNCTION TriaVertexInput::GetParameterValue(int* pvalue){{{1*/
    139 void TriaVertexInput::GetParameterValue(int* pvalue){ISSMERROR(" not supported yet!");}
    140 /*}}}*/
    141 /*FUNCTION TriaVertexInput::GetParameterValue(double* pvalue){{{1*/
    142 void TriaVertexInput::GetParameterValue(double* pvalue){ISSMERROR(" not supported yet!");}
    143 /*}}}*/
    144 /*FUNCTION TriaVertexInput::GetParameterValue(double* pvalue,Node* node){{{1*/
    145 void TriaVertexInput::GetParameterValue(double* pvalue,Node* node){ISSMERROR(" not supported yet!");}
    146 /*}}}*/
    147 /*FUNCTION TriaVertexInput::GetParameterValue(double* pvalue,Node* node1,Node* node2,double gauss_coord){{{1*/
    148 void TriaVertexInput::GetParameterValue(double* pvalue,Node* node1,Node* node2,double gauss_coord){ISSMERROR(" not supported yet!");}
    149 /*}}}*/
    150135/*FUNCTION TriaVertexInput::GetParameterValue(double* pvalue,double* gauss){{{1*/
    151136void TriaVertexInput::GetParameterValue(double* pvalue,double* gauss){
     
    162147
    163148}
    164 /*}}}*/
    165 /*FUNCTION TriaVertexInput::GetParameterValue(double* pvalue,double* gauss,double defaultvalue){{{1*/
    166 void TriaVertexInput::GetParameterValue(double* pvalue,double* gauss,double defaultvalue){ISSMERROR(" not supported yet!");}
    167149/*}}}*/
    168150/*FUNCTION TriaVertexInput::GetParameterValues(double* values,double* gauss_pointers, int numgauss){{{1*/
  • issm/trunk/src/c/objects/Inputs/TriaVertexInput.h

    r3810 r3828  
    1010/*{{{1*/
    1111#include "./Input.h"
     12#include "../Elements/TriaRef.h"
    1213/*}}}*/
    1314
    14 class TriaVertexInput: public Input{
     15class TriaVertexInput: public Input,public TriaRef{
    1516
    1617        private:
     
    4950                /*}}}*/
    5051                /*numerics: {{{1*/
    51                 void GetParameterValue(bool* pvalue);
    52                 void GetParameterValue(int* pvalue);
    53                 void GetParameterValue(double* pvalue);
    54                 void GetParameterValue(double* pvalue,Node* node);
    55                 void GetParameterValue(double* pvalue,Node* node1,Node* node2,double gauss_coord);
     52                void GetParameterValue(bool* pvalue){ISSMERROR("not implemented yet");}
     53                void GetParameterValue(int* pvalue){ISSMERROR("not implemented yet");}
     54                void GetParameterValue(double* pvalue){ISSMERROR("not implemented yet");}
     55               
     56                void GetParameterValue(double* pvalue,Node* node){ISSMERROR("not implemented yet");}
     57                void GetParameterValue(double* pvalue,Node* node1,Node* node2,double gauss_coord){ISSMERROR("not implemented yet");}
    5658                void GetParameterValue(double* pvalue,double* gauss);
    57                 void GetParameterValue(double* pvalue,double* gauss,double defaultvalue);
    58                
     59                void GetParameterValue(double* pvalue,double* gauss,double defaultvalue){ISSMERROR("not implemented yet");}
    5960                void GetParameterValues(double* values,double* gauss_pointers, int numgauss);
    6061       
  • issm/trunk/src/c/objects/objects.h

    r3681 r3828  
    3636#include "./Elements/Element.h"
    3737#include "./Elements/Penta.h"
     38#include "./Elements/PentaHook.h"
    3839#include "./Elements/Tria.h"
     40#include "./Elements/TriaHook.h"
     41#include "./Elements/TriaRef.h"
    3942#include "./Elements/Sing.h"
    4043
Note: See TracChangeset for help on using the changeset viewer.