Changeset 6021


Ignore:
Timestamp:
09/24/10 10:42:23 (15 years ago)
Author:
Mathieu Morlighem
Message:

minor renaming of field square

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

Legend:

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

    r5989 r6021  
    2626        this->ncols=0;
    2727        this->values=NULL;
    28         this->square=false;
     28        this->dofsymmetrical=false;
    2929        this->kff=false;
    3030
     
    6868
    6969        /*General Case: Ke1 and Ke2 are not empty*/
    70         if(!Ke1->square || !Ke2->square) ISSMERROR("merging 2 non square matrices not implemented yet");
     70        if(!Ke1->dofsymmetrical || !Ke2->dofsymmetrical) ISSMERROR("merging 2 non dofsymmetrical matrices not implemented yet");
    7171
    7272        /*Initialize itransformation matrix Ke[P[i]] = Ke2[i]*/
     
    9090        this->nrows=gsize;
    9191        this->ncols=gsize;
    92         this->square=true;
     92        this->dofsymmetrical=true;
    9393        this->kff=Ke1->kff;
    9494
     
    195195
    196196        /*get Matrix size and properties*/
    197         this->square=true;
     197        this->dofsymmetrical=true;
    198198        this->nrows=GetNumberOfDofs(nodes,numnodes,GsetEnum,approximation);
    199199        this->ncols=this->nrows;
     
    223223        }
    224224
    225         /*Because this matrix is "square" don't do cols, we can pick them up from the rows: */
     225        /*Because this matrix is "dofsymmetrical" don't do cols, we can pick them up from the rows: */
    226226        this->col_fsize=0;
    227227        this->col_flocaldoflist=NULL;
     
    268268        double* localvalues=NULL;
    269269
    270         if(this->square){
     270        if(this->dofsymmetrical){
    271271                /*only use row dofs to add values into global matrices: */
    272272               
     
    309309        }
    310310        else{
    311                 ISSMERROR(" non square matrix AddToGlobal routine not support yet!");
     311                ISSMERROR(" non dofsymmetrical matrix AddToGlobal routine not support yet!");
    312312        }
    313313
     
    334334        printf("   nrows: %i\n",nrows);
    335335        printf("   ncols: %i\n",ncols);
    336         printf("   square: %s\n",square?"true":"false");
     336        printf("   dofsymmetrical: %s\n",dofsymmetrical?"true":"false");
    337337        printf("   kff: %s\n",kff?"true":"false");
    338338
     
    359359        if(row_sglobaldoflist)for(i=0;i<row_ssize;i++)printf("%i ",row_sglobaldoflist[i]); printf("\n");
    360360
    361         if(!square){
     361        if(!dofsymmetrical){
    362362                printf("   col_fsize: %i\n",col_fsize);
    363363                printf("   col_flocaldoflist (%p): ",col_flocaldoflist);
     
    381381        this->nrows =Ke->nrows;
    382382        this->ncols =Ke->ncols;
    383         this->square=Ke->square;
     383        this->dofsymmetrical=Ke->dofsymmetrical;
    384384        this->kff   =Ke->kff;
    385385
  • issm/trunk/src/c/objects/Numerics/ElementMatrix.h

    r5989 r6021  
    2323                int      nrows;
    2424                int      ncols;
    25                 bool     square;
     25                bool     dofsymmetrical;
    2626                bool     kff;
    2727                double*  values;
Note: See TracChangeset for help on using the changeset viewer.