- Timestamp:
- Mar 14, 2006, 1:29:49 PM (19 years ago)
- Location:
- trunk/src/mesh
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/mesh/grid1d.cc
r336 r346 3 3 // 4 4 5 #include "serializable.h"6 #include "rp_types.h"7 5 #include "grid1d.h" 8 6 … … 13 11 } 14 12 13 RpGrid1d::RpGrid1d(const char* name) 14 { 15 objectName(name); 16 } 17 15 18 RpGrid1d::RpGrid1d(int size) 16 19 { … … 22 25 { 23 26 m_data.reserve(size); 24 m_name = name;27 objectName(name); 25 28 } 26 29 -
trunk/src/mesh/grid1d.h
r336 r346 10 10 #include "serializable.h" 11 11 #include "byte_order.h" 12 #include "rp_types.h" 12 13 #include "util.h" 13 14 … … 18 19 // constructors 19 20 RpGrid1d(); 21 RpGrid1d(const char* name); 20 22 RpGrid1d(int size); 21 23 RpGrid1d(const char* objectName, int size); -
trunk/src/mesh/grid2d.cc
r342 r346 10 10 } 11 11 12 RpGrid2d::RpGrid2d(const char* name) 13 { 14 objectName(name); 15 } 16 12 17 RpGrid2d::RpGrid2d(int npoints) 13 18 { 14 19 m_data.reserve(npoints*2); 20 } 21 22 RpGrid2d::RpGrid2d(const char* name, int npts) 23 { 24 objectName(name); 25 m_data.reserve(npts*2); 15 26 } 16 27 -
trunk/src/mesh/grid2d.h
r342 r346 16 16 // constructors 17 17 RpGrid2d(); 18 RpGrid2d(const char* name); 18 19 RpGrid2d(int npoints); 20 RpGrid2d(const char* name, int npts); 19 21 20 22 // constructor - input as 1d array of points {x, y, x, y ,...}
Note: See TracChangeset
for help on using the changeset viewer.