Skip to content

Commit

Permalink
cmp - cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
claudioperez committed Sep 20, 2021
1 parent 043328d commit 8d001fd
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 22 deletions.
49 changes: 29 additions & 20 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -211,13 +211,16 @@ add_library(OPS_Tagged OBJECT)
add_library(OPS_Utilities OBJECT)
add_library(OPS_ModelBuilder OBJECT)
add_library(OPS_Domain OBJECT)

add_library(OPS_SysOfEqn OBJECT)
#add_library(OPS_SysOfEqn_MP OBJECT)
#add_library(OPS_SysOfEqn_SP OBJECT)

add_library(OPS_Analysis OBJECT)
add_library(OPS_ConvergenceTest OBJECT)
add_library(OPS_Thermal OBJECT)
add_library(OPS_Element OBJECT)
#add_library(OPS_Element_MP OBJECT)
#add_library(OPS_Element_SP OBJECT)
add_library(OPS_Material OBJECT)
add_library(OPS_Damage OBJECT)
add_library(OPS_Database OBJECT)
Expand Down Expand Up @@ -257,8 +260,22 @@ add_executable(OpenSeesMP EXCLUDE_FROM_ALL
${OPS_SRC_DIR}/tcl/tclMain.cpp
)

add_executable(OpenSeesPy EXCLUDE_FROM_ALL
${OPS_SRC_DIR}/interpreter/pythonMain.cpp
add_library(OpenSeesPy SHARED EXCLUDE_FROM_ALL
#${OPS_SRC_DIR}/interpreter/pythonMain.cpp
${OPS_SRC_DIR}/interpreter/PythonWrapper.cpp
${OPS_SRC_DIR}/interpreter/PythonModule.cpp
${OPS_SRC_DIR}/interpreter/DL_Interpreter.cpp
#${OPS_SRC_DIR}/interpreter/PythonAnalysisBuilder.cpp
"${OPS_SRC_DIR}/interpreter/OpenSeesBeamIntegrationCommands.cpp"
"${OPS_SRC_DIR}/interpreter/OpenSeesCrdTransfCommands.cpp"
"${OPS_SRC_DIR}/interpreter/OpenSeesFrictionModelCommands.cpp"
"${OPS_SRC_DIR}/interpreter/OpenSeesMiscCommands.cpp"
"${OPS_SRC_DIR}/interpreter/OpenSeesNDMaterialCommands.cpp"
"${OPS_SRC_DIR}/interpreter/OpenSeesOutputCommands.cpp"
"${OPS_SRC_DIR}/interpreter/OpenSeesCommands.cpp"
"${OPS_SRC_DIR}/interpreter/OpenSeesElementCommands.cpp"
"${OPS_SRC_DIR}/interpreter/OpenSeesSectionCommands.cpp"
"${OPS_SRC_DIR}/interpreter/OpenSeesUniaxialMaterialCommands.cpp"
)

# Set selected executable to be built by default
Expand Down Expand Up @@ -304,22 +321,6 @@ target_link_libraries(G3
#----------------------------
# OpenSees
#----------------------------
#<<<<<<< Updated upstream
#=======
#target_sources(OpenSees
# PRIVATE
# "${OPS_SRC_DIR}/interpreter/OpenSeesBeamIntegrationCommands.cpp"
# "${OPS_SRC_DIR}/interpreter/OpenSeesCrdTransfCommands.cpp"
# "${OPS_SRC_DIR}/interpreter/OpenSeesFrictionModelCommands.cpp"
# "${OPS_SRC_DIR}/interpreter/OpenSeesMiscCommands.cpp"
# "${OPS_SRC_DIR}/interpreter/OpenSeesNDMaterialCommands.cpp"
# "${OPS_SRC_DIR}/interpreter/OpenSeesOutputCommands.cpp"
# #"${OPS_SRC_DIR}/interpreter/OpenSeesCommands.cpp"
# "${OPS_SRC_DIR}/interpreter/OpenSeesElementCommands.cpp"
# "${OPS_SRC_DIR}/interpreter/OpenSeesSectionCommands.cpp"
# "${OPS_SRC_DIR}/interpreter/OpenSeesUniaxialMaterialCommands.cpp"
#)
#>>>>>>> Stashed changes

target_link_libraries(OpenSees
${OPS_Extension_List}
Expand Down Expand Up @@ -354,7 +355,7 @@ target_link_libraries(OPS_Interp_Tcl PRIVATE ${TCL_LIBRARIES})
target_compile_definitions(OPS_Interp_Tcl PUBLIC _TCL85)

opensees_add_cxx_flag(TARGETS OPS_Interp_Tcl
GNU -fpermissive -fvisibility=hidden
GNU -fpermissive -fvisibility=hidden
)

#----------------------------
Expand All @@ -380,10 +381,18 @@ target_link_libraries(OpenSeesMP OpenSees)
target_compile_definitions(OpenSeesSP
PUBLIC _PARALLEL_INTERPRETERS
)
target_link_libraries(OpenSeesSP OpenSees)

#----------------------------
# OpenSeesPy
#----------------------------
add_compile_options(-fPIC)
target_include_directories(OpenSeesPy PRIVATE ${Python_INCLUDE_DIRS})

target_link_libraries(OpenSeesPy
OPS_Thermal OpenSees ${CMAKE_DL_LIBS}
)

opensees_add_cxx_flag(TARGETS OpenSeesPy
GNU -fPIC
)
Expand Down
2 changes: 2 additions & 0 deletions ETC/cmake/OpenSeesDependenciesUnix.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ opensees_load(AMD #FIND
#LIBRARY "${OPS_BUNDLED_DIR}/bin/AMD/libAMD.a"
)

find_package(Python COMPONENTS Development)

opensees_load(METIS FIND)

opensees_load(HDF5 FIND)
Expand Down
1 change: 1 addition & 0 deletions OTHER/UMFPACK/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -183,3 +183,4 @@ add_library(UMFPACK #INTERFACE)
)
target_link_libraries(UMFPACK PUBLIC ${UMF_CREATED})
set_target_properties(UMFPACK PROPERTIES LINKER_LANGUAGE C)

2 changes: 0 additions & 2 deletions SRC/analysis/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
# Pacific Earthquake Engineering Research Center
#
#==============================================================================
#add_library(OPS_Analysis "")

add_subdirectory(algorithm)
add_subdirectory(numberer)
add_subdirectory(dof_grp)
Expand Down

0 comments on commit 8d001fd

Please sign in to comment.