Ignore:
Timestamp:
06/26/10 12:30:21 (15 years ago)
Author:
Eric.Larour
Message:

Better organization of header files for abstract classes and their derivatives

File:
1 edited

Legend:

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

    r4236 r4248  
    1717#include "../../include/include.h"
    1818
    19 /*Object constructors and destructor*/
     19/*Sing constructors and destructor*/
    2020/*FUNCTION Sing::Sing(){{{1*/
    2121Sing::Sing(){
     
    3737/*}}}*/
    3838
    39 /*Object management*/
    40 /*FUNCTION Sing::Configure {{{1*/
    41 void  Sing::Configure(Elements* elementsin,Loads* loadsin, DataSet* nodesin, Materials* materialsin, Parameters* parametersin){
    42 
    43         ISSMERROR(" not supported yet!");
    44 
    45 }
    46 /*}}}*/
    47 /*FUNCTION Sing::copy {{{1*/
    48 Object* Sing::copy() {
    49 
    50         int i;
    51         Sing* sing=NULL;
    52 
    53         sing=new Sing();
    54 
    55         /*copy fields: */
    56         sing->id=this->id;
    57         if(this->inputs){
    58                 sing->inputs=(Inputs*)this->inputs->Copy();
    59         }
    60         else{
    61                 sing->inputs=new Inputs();
    62         }
    63         /*point parameters: */
    64         sing->parameters=this->parameters;
    65 
    66         /*pointers: */
    67         sing->node=this->node;
    68         sing->matice=this->matice;
    69         sing->matpar=this->matpar;
    70 
    71         return sing;
     39/*Object virtual functions definitions: */
     40/*FUNCTION Sing::Echo{{{1*/
     41
     42void Sing::Echo(void){
     43
     44        printf("Sing:\n");
     45        printf("   id: %i\n",id);
     46        node->Echo();
     47        matice->Echo();
     48        matpar->Echo();
     49        printf("   parameters\n");
     50        parameters->Echo();
     51        printf("   inputs\n");
     52        inputs->Echo();
    7253}
    7354/*}}}*/
     
    8869}
    8970/*}}}*/
     71/*FUNCTION Sing::Id {{{1*/
     72int    Sing::Id(void){ return id; }
     73/*}}}*/
     74/*FUNCTION Sing::MyRank {{{1*/
     75int    Sing::MyRank(void){
     76        extern int my_rank;
     77        return my_rank;
     78}
     79/*}}}*/
     80/*FUNCTION Sing::Marshall {{{1*/
     81void  Sing::Marshall(char** pmarshalled_dataset){
     82        ISSMERROR(" not supported yet!");
     83}
     84/*}}}*/
     85/*FUNCTION Sing::MashallSize {{{1*/
     86int   Sing::MarshallSize(){
     87        ISSMERROR(" not supported yet!");
     88}
     89/*}}}*/
    9090/*FUNCTION Sing::Demarshall {{{1*/
    9191void  Sing::Demarshall(char** pmarshalled_dataset){
     
    9393}
    9494/*}}}*/
    95 /*FUNCTION Sing::Echo{{{1*/
    96 
    97 void Sing::Echo(void){
    98 
    99         printf("Sing:\n");
    100         printf("   id: %i\n",id);
    101         node->Echo();
    102         matice->Echo();
    103         matpar->Echo();
    104         printf("   parameters\n");
    105         parameters->Echo();
    106         printf("   inputs\n");
    107         inputs->Echo();
     95/*FUNCTION Sing::Enum {{{1*/
     96int Sing::Enum(void){
     97
     98        return SingEnum;
     99
     100}
     101/*}}}*/
     102/*FUNCTION Sing::copy {{{1*/
     103Object* Sing::copy() {
     104
     105        int i;
     106        Sing* sing=NULL;
     107
     108        sing=new Sing();
     109
     110        /*copy fields: */
     111        sing->id=this->id;
     112        if(this->inputs){
     113                sing->inputs=(Inputs*)this->inputs->Copy();
     114        }
     115        else{
     116                sing->inputs=new Inputs();
     117        }
     118        /*point parameters: */
     119        sing->parameters=this->parameters;
     120
     121        /*pointers: */
     122        sing->node=this->node;
     123        sing->matice=this->matice;
     124        sing->matpar=this->matpar;
     125
     126        return sing;
     127}
     128/*}}}*/
     129
     130/*Sing management*/
     131/*FUNCTION Sing::Configure {{{1*/
     132void  Sing::Configure(Elements* elementsin,Loads* loadsin, DataSet* nodesin, Materials* materialsin, Parameters* parametersin){
     133
     134        ISSMERROR(" not supported yet!");
     135
    108136}
    109137/*}}}*/
     
    117145}
    118146/*}}}*/
    119 /*FUNCTION Sing::Marshall {{{1*/
    120 void  Sing::Marshall(char** pmarshalled_dataset){
    121         ISSMERROR(" not supported yet!");
    122 }
    123 /*}}}*/
    124 /*FUNCTION Sing::MashallSize {{{1*/
    125 int   Sing::MarshallSize(){
    126         ISSMERROR(" not supported yet!");
    127 }
    128 /*}}}*/
    129147/*FUNCTION Sing::InputUpdateFromSolution {{{1*/
    130148void  Sing::InputUpdateFromSolution(double* solution){
     
    148166/*}}}*/
    149167               
    150 /*Object functions*/
     168/*Sing functions*/
    151169/*FUNCTION Sing::ComputeBasalStress {{{1*/
    152170void  Sing::ComputeBasalStress(Vec p_g){
     
    304322}
    305323/*}}}*/
    306 /*FUNCTION Sing::Enum {{{1*/
    307 int Sing::Enum(void){
    308 
    309         return SingEnum;
    310 
    311 }
    312 /*}}}*/
    313324/*FUNCTION Sing::GetBedList {{{1*/
    314325void  Sing::GetBedList(double*){
     
    341352}
    342353/*}}}*/
    343 /*FUNCTION Sing::Id {{{1*/
    344 int    Sing::Id(void){ return id; }
    345 /*}}}*/
    346354/*FUNCTION Sing::GetMatPar {{{1*/
    347355void* Sing::GetMatPar(){
     
    399407double Sing::Misfit(void){
    400408        ISSMERROR(" not supported yet!");
    401 }
    402 /*}}}*/
    403 /*FUNCTION Sing::MyRank {{{1*/
    404 int    Sing::MyRank(void){
    405         extern int my_rank;
    406         return my_rank;
    407409}
    408410/*}}}*/
Note: See TracChangeset for help on using the changeset viewer.