Changeset 185
- Timestamp:
- Feb 16, 2006, 9:46:33 PM (19 years ago)
- Location:
- trunk/src/mesh
- Files:
-
- 3 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/mesh/Makefile
r176 r185 82 82 RpChoice.o RpOption.o RpUnitsStd.o RpUnits.o #RpValue.o\ 83 83 # RpValueDouble.o RpValueString.o 84 RP_MESH_DEPS = rp_defs.o grid1d.o grid1d_reg.o #grid2d.o mesh.o field.o84 RP_MESH_DEPS = util.o grid1d.o grid1d_reg.o grid2d.o #mesh.o field.o endian.o 85 85 86 86 LDLIB_MACOSX = -dynamiclib -o $(LIB_DIR)/$@.dylib 87 87 LDLIB_LINUX = -shared -Wl,-rpath,$(LIB_DIR)/ -Wl,-soname,$@.so -o $(LIB_DIR)/$@.so.0.0 88 LDLIB_LINUX_MESH = -shared -Wl,-rpath, ../$(LIB_DIR)/mesh/ -Wl,-soname,$@.so -o ../$(LIB_DIR)/mesh/$@.so.0.088 LDLIB_LINUX_MESH = -shared -Wl,-rpath,$(LIB_DIR)/mesh/ -Wl,-soname,$@.so -o $(LIB_DIR)/mesh/$@.so.0.0 89 89 90 90 # include rappture library definitions … … 93 93 94 94 librpmesh: $(RP_MESH_DEPS) 95 if test "`uname`" == "Darwin"; then \96 $(CXX) $(DEGUG) $(LDLIB_MACOSX) $^ $(LIB_SCEW_FLAG) -lm; \97 ar -r $@.a $^; \98 ranlib -s $@.a; \99 else \100 $(CXX) $(DEGUG) $(LDLIB_LINUX_MESH) $^ $(LIB_SCEW_FLAG) -lm; \101 /sbin/ldconfig -n $(LIB_DIR); \102 ar -r $@.a $^; \103 ranlib $@.a; \104 fi105 librappture: $(RP_IO_DEPS) $(RP_UNITS_DEPS) $(RP_OTHER_DEPS)106 95 if test "`uname`" == "Darwin"; then \ 107 96 $(CXX) $(DEGUG) $(LDLIB_MACOSX) $^ $(LIB_SCEW_FLAG) -lm; \ … … 114 103 ranlib $@.a; \ 115 104 fi 105 librappture: $(RP_IO_DEPS) $(RP_UNITS_DEPS) $(RP_OTHER_DEPS) 106 if test "`uname`" == "Darwin"; then \ 107 $(CXX) $(DEGUG) $(LDLIB_MACOSX) $^ $(LIB_SCEW_FLAG) -lm; \ 108 ar -r $@.a $^; \ 109 ranlib -s $@.a; \ 110 else \ 111 $(CXX) $(DEGUG) $(LDLIB_LINUX) $^ $(LIB_SCEW_FLAG) -lm; \ 112 /sbin/ldconfig -n $(LIB_DIR); \ 113 ar -r $@.a $^; \ 114 ranlib $@.a; \ 115 fi 116 116 117 117 install_rappture: librappture … … 166 166 # include mesh objects 167 167 # 168 grid2d.o: grid2d.cc 169 $(CXX) $(CFLAGS) $(DEBUG) -c $? 168 170 grid1d.o: grid1d.cc 169 171 $(CXX) $(CFLAGS) $(DEBUG) -c $? 170 172 grid1d_reg.o: grid1d_reg.cc 171 173 $(CXX) $(CFLAGS) $(DEBUG) -c $? 172 rp_defs.o: rp_defs.cc 174 util.o: util.cc 175 $(CXX) $(CFLAGS) $(DEBUG) -c $? 176 endian.o: endian.cc 173 177 $(CXX) $(CFLAGS) $(DEBUG) -c $? 174 178 … … 338 342 - rm -f *.o librappture.so* librappture.a libRp*.so* rp*.mex* $(OCTAVE_SRC)/rp*.o* 339 343 - rm -rf build 344 345 ################# 346 endiantest: endiantest.o 347 $(CXX) -o $@ $< -
trunk/src/mesh/grid1d.h
r180 r185 20 20 21 21 // return number of points in grid 22 int size() { return m_data.size(); }22 int numPoints() { return m_data.size(); } 23 23 24 24 // change the size of the grid after grid is constructed 25 void resize(int size) { m_data.resize(size); }25 void resize(int npoints) { m_data.resize(npoints); } 26 26 27 27 // serialize data
Note: See TracChangeset
for help on using the changeset viewer.