Changeset 1935


Ignore:
Timestamp:
08/26/09 13:44:04 (16 years ago)
Author:
Eric.Larour
Message:

FemModel is now derived from Object. It should be, as it is included in femmodels, a dataset :)

Location:
issm/trunk/src/c/objects
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/objects/FemModel.cpp

    r1881 r1935  
    1111#include "./FemModel.h"
    1212#include "stdio.h"
     13#include "../shared/shared.h"
    1314
    1415FemModel::FemModel(){
     
    6061        delete nodes;
    6162        delete loads;
     63        delete constraints;
    6264        delete materials;
    6365        delete parameters;
     
    131133
    132134}
     135#undef __FUNCT__
     136#define __FUNCT__ "FemModel::GetId"
     137int   FemModel::GetId(void){
     138        throw ErrorException(__FUNCT__,exprintf("%s%s",__FUNCT__," error message: not implemented yet!"));
     139}
     140
     141#undef __FUNCT__
     142#define __FUNCT__ "FemModel::MyRank"
     143int   FemModel::MyRank(void){
     144        throw ErrorException(__FUNCT__,exprintf("%s%s",__FUNCT__," error message: not implemented yet!"));
     145}
     146
     147#undef __FUNCT__
     148#define __FUNCT__ "FemModel::Marshall"
     149void  FemModel::Marshall(char** pmarshalled_dataset){
     150        throw ErrorException(__FUNCT__,exprintf("%s%s",__FUNCT__," error message: not implemented yet!"));
     151}
     152
     153#undef __FUNCT__
     154#define __FUNCT__ "FemModel::MarshallSize"
     155int   FemModel::MarshallSize(void){
     156        throw ErrorException(__FUNCT__,exprintf("%s%s",__FUNCT__," error message: not implemented yet!"));
     157}
     158#undef __FUNCT__
     159#define __FUNCT__ "FemModel::GetName"
     160char*   FemModel::GetName(void){
     161        throw ErrorException(__FUNCT__,exprintf("%s%s",__FUNCT__," error message: not implemented yet!"));
     162}
     163#undef __FUNCT__
     164#define __FUNCT__ "FemModel::Demarshall"
     165void  FemModel::Demarshall(char** pmarshalled_dataset){
     166        throw ErrorException(__FUNCT__,exprintf("%s%s",__FUNCT__," error message: not implemented yet!"));
     167}
     168#undef __FUNCT__
     169#define __FUNCT__ "FemModel::Enum"
     170int   FemModel::Enum(void){
     171        throw ErrorException(__FUNCT__,exprintf("%s%s",__FUNCT__," error message: not implemented yet!"));
     172}
     173#undef __FUNCT__
     174#define __FUNCT__ "FemModel::copy"
     175Object* FemModel::copy(void){
     176        throw ErrorException(__FUNCT__,exprintf("%s%s",__FUNCT__," error message: not implemented yet!"));
     177}
    133178
    134179#undef __FUNCT__
    135180#define __FUNCT__ "FemModel::FindParam"
    136                
    137181int FemModel::FindParam(void* pparameter,char* parametername){
    138182       
     
    140184
    141185}
    142 
    143186
    144187/*access to internal data: */
  • issm/trunk/src/c/objects/FemModel.h

    r1883 r1935  
    1313struct OptArgs;
    1414
    15 class FemModel{
     15class FemModel: public Object{
    1616
    1717        /*no private members, as we need access to these datasets quite often!:*/
     
    3939                FemModel(DataSet* elements,DataSet* nodes,DataSet* constraints,DataSet* loads,DataSet* materials,DataSet* parameters,
    4040                                      Vec partition,Vec tpartition,Vec yg,Mat Rmg,Mat Gmn,NodeSets* nodesets,Vec ys,Vec ys0);
    41      
     41     
     42                /*virtual resolves: */
    4243                void  Echo();
    4344                void  DeepEcho();
     45                int   GetId();
     46                int   MyRank();
     47                void  Marshall(char** pmarshalled_dataset);
     48                int   MarshallSize();
     49                char* GetName();
     50                void  Demarshall(char** pmarshalled_dataset);
     51                int   Enum();
     52                Object* copy();
    4453               
    4554                int FindParam(void* pparameter,char* parametername);
     
    5968                Mat      get_Gmn(void);
    6069
     70               
    6171
    6272
Note: See TracChangeset for help on using the changeset viewer.