Changeset 185


Ignore:
Timestamp:
Feb 16, 2006, 9:46:33 PM (19 years ago)
Author:
cxsong
Message:

moved to rappture/src/mesh

Location:
trunk/src/mesh
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/mesh/Makefile

    r176 r185  
    8282                  RpChoice.o RpOption.o RpUnitsStd.o RpUnits.o #RpValue.o\
    8383                  # RpValueDouble.o RpValueString.o
    84 RP_MESH_DEPS = rp_defs.o grid1d.o grid1d_reg.o #grid2d.o mesh.o field.o
     84RP_MESH_DEPS = util.o grid1d.o grid1d_reg.o grid2d.o #mesh.o field.o endian.o
    8585
    8686LDLIB_MACOSX = -dynamiclib -o $(LIB_DIR)/$@.dylib
    8787LDLIB_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.0
     88LDLIB_LINUX_MESH = -shared -Wl,-rpath,$(LIB_DIR)/mesh/ -Wl,-soname,$@.so -o $(LIB_DIR)/mesh/$@.so.0.0
    8989
    9090# include rappture library definitions
     
    9393
    9494librpmesh: $(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         fi
    105 librappture: $(RP_IO_DEPS) $(RP_UNITS_DEPS) $(RP_OTHER_DEPS)
    10695        if test "`uname`" == "Darwin"; then \
    10796                $(CXX) $(DEGUG) $(LDLIB_MACOSX) $^ $(LIB_SCEW_FLAG) -lm; \
     
    114103                ranlib $@.a; \
    115104        fi
     105librappture: $(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
    116116
    117117install_rappture: librappture
     
    166166# include mesh objects
    167167#
     168grid2d.o: grid2d.cc
     169        $(CXX) $(CFLAGS) $(DEBUG) -c $?
    168170grid1d.o: grid1d.cc
    169171        $(CXX) $(CFLAGS) $(DEBUG) -c $?
    170172grid1d_reg.o: grid1d_reg.cc
    171173        $(CXX) $(CFLAGS) $(DEBUG) -c $?
    172 rp_defs.o: rp_defs.cc
     174util.o: util.cc
     175        $(CXX) $(CFLAGS) $(DEBUG) -c $?
     176endian.o: endian.cc
    173177        $(CXX) $(CFLAGS) $(DEBUG) -c $?
    174178
     
    338342        - rm -f *.o librappture.so* librappture.a libRp*.so* rp*.mex* $(OCTAVE_SRC)/rp*.o*
    339343        - rm -rf build
     344
     345#################
     346endiantest: endiantest.o
     347        $(CXX) -o $@ $<
  • trunk/src/mesh/grid1d.h

    r180 r185  
    2020
    2121        // return number of points in grid
    22         int size() { return m_data.size(); }
     22        int numPoints() { return m_data.size(); }
    2323
    2424        // 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); }
    2626
    2727        // serialize data
Note: See TracChangeset for help on using the changeset viewer.