Changeset 4b459a7 in observatorio


Ignore:
Timestamp:
May 29, 2015, 11:44:11 AM (9 years ago)
Author:
Alejandro <amujica@…>
Branches:
simulacion
Parents:
c9ef273
Message:

Modulo de calculo de divisas por producto y envoltorio python

Location:
simulacion/ModuloDinamico
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • simulacion/ModuloDinamico/Makefile

    r8eb9820 r4b459a7  
    2424FLAGS += -DDEBUG -D_GLIBCXX__PTHREADS $(WARN) $(XML)
    2525
    26 
    2726INCLUDE = -I $(ALEPH) -I . -I $(DB) -I $(PQ)
    2827
     
    3837SGB = sigesic_graph_builder
    3938
     39CEV = compute_exchange
     40
    4041SGB_WRAP = $(SGB)_wrap
    4142SIM_WRAP = $(SIM)_wrap
     43CEV_WRAP = $(CEV)_wrap
    4244
    4345SOURCES = good.C product.C input.C imported_product.C ip_relationship.C \
    44           io_manager.C queries.C utils.C exogenous_variables.C simulator.C
     46          io_manager.C queries.C utils.C exogenous_variables.C simulator.C \
     47          compute_exchange.C
    4548
    4649OBJECTS = good.o product.o input.o imported_product.o ip_relationship.o \
    47           io_manager.o queries.o utils.o exogenous_variables.o simulator.o
     50          io_manager.o queries.o utils.o exogenous_variables.o simulator.o \
     51          compute_exchange.o
    4852
    4953test: obj
     
    5458        $(RM) $(SIM)
    5559        $(CXX) $(INCLUDE) $(SIM).C -o $(SIM) $(OBJECTS) $(LIBS) $(FLAGS)
     60
     61cev: obj
     62        $(RM) $(CEV)
     63        $(CXX) $(INCLUDE) $(CEV).C -o $(CEV) $(OBJECTS) $(LIBS) $(FLAGS)
    5664
    5765python:
     
    6573        $(CXX) -c $(INCLUDE) -I $(PYTHONINC) $(SIM_WRAP).cxx $(FLAGS) -fPIC
    6674        $(CXX) -shared $(INCLUDE) *.o -o _$(SIM).so $(LIBS) $(XML) $(FLAGS) -fPIC
     75        $(SWIG) $(CEV).i
     76        $(CXX) -c $(INCLUDE) -I $(PYTHONINC) $(CEV_WRAP).cxx $(FLAGS) -fPIC
     77        $(CXX) -shared $(INCLUDE) *.o -o _$(CEV).so $(LIBS) $(XML) $(FLAGS) -fPIC
    6778
    6879obj:
    6980        $(CXX) -c $(INCLUDE) $(SOURCES) $(FLAGS)
     81
    7082clean:
    71         $(RM) *~ *.o $(WRAP).cxx $(SGB).py *.pyc
    72 clean-all:
     83        $(RM) *~ *.o *.cxx $(SGB).py *.pyc
    7384
     85clean-all: clean
     86        $(RM) *.so $(SIM).py $(SGB).py $(CEV).py
     87
  • simulacion/ModuloDinamico/queries.C

    rc9dd3b4 r4b459a7  
    132132}
    133133
    134 std::string id_to_str(const size_t & id)
     134std::string id_to_str(const db_id_t & id)
    135135{
    136136  std::stringstream sstr;
  • simulacion/ModuloDinamico/queries.H

    r6217e66 r4b459a7  
    161161 * @return valor del id convertido en cadena.
    162162 */
    163 std::string id_to_str(const size_t & id);
     163std::string id_to_str(const db_id_t & id);
    164164
    165165
Note: See TracChangeset for help on using the changeset viewer.