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
  • TabularUnified issm/trunk/src/c/objects/DofIndexing.cpp

    r4236 r4248  
    1717#include "../include/include.h"
    1818
    19 /*Object constructors and destructor*/
     19/*DofIndexing constructors and destructor*/
    2020/*FUNCTION DofIndexing::DofIndexing(){{{1*/
    2121DofIndexing::DofIndexing(){
     
    6060}
    6161/*}}}*/
     62/*FUNCTION DofIndexing::Init{{{1*/
     63void DofIndexing::Init(int in_numberofdofs){
    6264
    63 /*Object management: */
     65        int i;
     66        this->numberofdofs=in_numberofdofs;
     67        this->clone=0;
     68
     69        for (i=0;i<MAXDOFSPERNODE;i++){
     70                /*assume dof is free, no constraints, no rigid body constraint: */
     71                this->m_set[i]=0;
     72                this->n_set[i]=1;
     73                this->f_set[i]=1;
     74                this->s_set[i]=0;
     75                this->doflist[i]=UNDEF;
     76        }
     77}
     78/*}}}*/
     79
     80/*Some of the Object functionality: */
     81/*FUNCTION DofIndexing::Echo{{{1*/
     82void DofIndexing::Echo(void){
     83
     84        int i;
     85
     86        printf("DofIndexing:\n");
     87        printf("   numberofdofs: %i\n",numberofdofs);
     88        printf("   clone: %i\n",clone);
     89}
     90/*}}}*/
    6491/*FUNCTION DofIndexing::DeepEcho{{{1*/
    6592void DofIndexing::DeepEcho(void){
     
    112139}
    113140/*}}}*/
    114 /*FUNCTION DofIndexing::Echo{{{1*/
    115 void DofIndexing::Echo(void){
    116 
    117         int i;
    118 
    119         printf("DofIndexing:\n");
    120         printf("   numberofdofs: %i\n",numberofdofs);
    121         printf("   clone: %i\n",clone);
    122 }
    123 /*}}}*/
    124 /*FUNCTION DofIndexing::Init{{{1*/
    125 void DofIndexing::Init(int in_numberofdofs){
    126 
    127         int i;
    128         this->numberofdofs=in_numberofdofs;
    129         this->clone=0;
    130 
    131         for (i=0;i<MAXDOFSPERNODE;i++){
    132                 /*assume dof is free, no constraints, no rigid body constraint: */
    133                 this->m_set[i]=0;
    134                 this->n_set[i]=1;
    135                 this->f_set[i]=1;
    136                 this->s_set[i]=0;
    137                 this->doflist[i]=UNDEF;
    138         }
    139 }
    140 /*}}}*/
    141141/*FUNCTION DofIndexing::Marshall{{{1*/
    142142void  DofIndexing::Marshall(char** pmarshalled_dataset){
Note: See TracChangeset for help on using the changeset viewer.