Ignore:
Timestamp:
06/02/10 16:25:39 (15 years ago)
Author:
Mathieu Morlighem
Message:

minor fixing, still not compiling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/modules/SpcNodesx/SpcNodesx.cpp

    r3913 r4001  
    1010#include "../../EnumDefinitions/EnumDefinitions.h"
    1111
    12 void SpcNodesx( DofVec** pyg, DataSet* nodes,DataSet* constraints){
     12void SpcNodesx(Vec* pyg, DataSet* nodes,DataSet* constraints){
    1313
    1414        int i;
     
    1717
    1818        /*output: */
    19         DofVec* yg=NULL;
     19        Vec* yg=NULL;
    2020
    2121        /*First, recover number of dofs from nodes: */
     
    2424        if(numberofdofs){
    2525               
    26                 /*Allocate dofvec: */
    27                 yg=new DofVec("yg");
    28                 yg->numdofs=numberofdofs;
    29 
    3026                /*Allocate yg: */
    31                 yg->vector=NewVec(numberofdofs);
     27                yg=NewVec(numberofdofs);
    3228
    3329                /*Now, go through constraints, and update the nodes and the constraint vector at the same time: */
    34                 constraints->SetupSpcs(nodes,yg->vector);
     30                constraints->SetupSpcs(nodes,yg);
    3531
    3632                /*Specify numentries: */
    3733                VecGetSize(yg->vector,&gsize);
    38                 yg->numentries=(int)gsize/yg->numdofs;
    39         }
    40         else{
    41                 /*Allocate dofvec: */
    42                 yg=new DofVec("yg");
    4334        }
    4435
Note: See TracChangeset for help on using the changeset viewer.