Skip to content

Commit

Permalink
Updated module names to not have an underscore, it was not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
keltonhalbert committed Jan 13, 2025
1 parent 44e278a commit dcd7deb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/pybind/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ include_directories(${Python3_INCLUDE_DIRS})
include_directories(pybind11/include)
include_directories(${CMAKE_SOURCE_DIR}/include)

pybind11_add_module(_thermo MODULE thermo.cpp)
pybind11_add_module(thermo MODULE thermo.cpp)

target_compile_options(_thermo PRIVATE)
target_link_libraries(_thermo PRIVATE SHARPlib)
target_compile_options(thermo PRIVATE)
target_link_libraries(thermo PRIVATE SHARPlib)

install(TARGETS _thermo DESTINATION ${CMAKE_INSTALL_PREFIX}/nwsspc/sharp/calc/)
install(TARGETS thermo DESTINATION ${CMAKE_INSTALL_PREFIX}/nwsspc/sharp/calc/)

2 changes: 1 addition & 1 deletion src/pybind/thermo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <SHARPlib/thermo.h>


PYBIND11_MODULE(_thermo, m) {
PYBIND11_MODULE(thermo, m) {
m.doc() = "Sounding and Hodograph Analysis and Research Program Library (SHARPlib) :: Thermodynamic Routines";
m.def("lcl_temperature", &sharp::lcl_temperature);
}

0 comments on commit dcd7deb

Please sign in to comment.