Changeset 354 for trunk/src


Ignore:
Timestamp:
Mar 14, 2006 8:07:17 PM (18 years ago)
Author:
cxsong
Message:

added copyArray to grid1d, removed copyArray from grid2d_rect

Location:
trunk/src/mesh
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/mesh/grid1d.cc

    r346 r354  
    239239
    240240        printf("object name: %s\n", m_name.c_str());
     241        printf("num points: %d\n", numPoints());
    241242
    242243        xmlString(str);
     
    313314}
    314315
     316void
     317RpGrid1d::copyArray(DataValType* val, int dim, vector<DataValType>& vec)
     318{
     319        vec.clear();
     320
     321        for (int i=0; i < dim; i++)
     322                vec.push_back(val[i]);
     323}
     324
  • trunk/src/mesh/grid1d.h

    r346 r354  
    8787        vector<DataValType> m_data; // array of doubles
    8888
     89        virtual void copyArray(DataValType* val, int dim, vector<DataValType>& vec);
     90
    8991};
    9092
  • trunk/src/mesh/grid2d_rect.h

    r345 r354  
    5757        vector<DataValType> m_ypts;
    5858
    59         void copyArray(DataValType* val, int dim, vector<DataValType>& vec);
     59        //void copyArray(DataValType* val, int dim, vector<DataValType>& vec);
    6060};
    6161
Note: See TracChangeset for help on using the changeset viewer.