Skip to content

Commit 4d9d2e9

Browse files
committed
update version numbers to 0.4.0 and fix run_hydrochrono.exe app in package
1 parent 7c8d1b0 commit 4d9d2e9

4 files changed

Lines changed: 32 additions & 23 deletions

File tree

CMakeLists.txt

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ endif()
2020
# ═══════════════════════════════════════════════════════════════════════════════
2121

2222
project(HydroChrono
23-
VERSION 0.3.2
23+
VERSION 0.4.0
2424
DESCRIPTION "Hydrodynamics for Project Chrono."
2525
LANGUAGES CXX
2626
)
@@ -788,15 +788,15 @@ endif()
788788

789789

790790

791-
# Optionally include Python runtime DLL if Chrono::Parsers depends on it
792-
find_package(Python3 QUIET COMPONENTS Interpreter)
793-
if(Python3_Interpreter_FOUND OR Python3_FOUND)
794-
get_filename_component(_PY_DIR "${Python3_EXECUTABLE}" DIRECTORY)
795-
if(DEFINED Python3_VERSION_MAJOR AND DEFINED Python3_VERSION_MINOR)
796-
set(_PY_DLL_NAME "python${Python3_VERSION_MAJOR}${Python3_VERSION_MINOR}.dll")
797-
set(_PY_DLL_PATH "${_PY_DIR}/${_PY_DLL_NAME}")
798-
if(EXISTS "${_PY_DLL_PATH}")
799-
install(FILES "${_PY_DLL_PATH}" DESTINATION bin COMPONENT runtime)
800-
endif()
801-
endif()
802-
endif()
791+
# NOTE: Do NOT include Python runtime DLL (python3XX.dll) in the package.
792+
# While Chrono::Parsers may link against Python, including the standalone DLL
793+
# causes STATUS_DLL_NOT_FOUND (0xC0000135) failures because python3XX.dll
794+
# has dependencies (python3.dll, _pth files, etc.) that aren't bundled.
795+
# The exe works without it because Python DLLs are found via PATH at runtime.
796+
# If Python embedding is truly required, the entire Python runtime would need
797+
# to be bundled, which is beyond the scope of this minimal package.
798+
#
799+
# find_package(Python3 QUIET COMPONENTS Interpreter)
800+
# if(Python3_Interpreter_FOUND OR Python3_FOUND)
801+
# ... (removed - see note above)
802+
# endif()

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
<p align="center">
33
<img src="docs/assets/img/hydrochrono_banner.png" />
44
<br/>
5-
<a href="https://github.com/NREL/HydroChrono/releases"><img src="https://img.shields.io/badge/version-v0.3-blue.svg" /></a>
5+
<a href="https://github.com/NREL/HydroChrono/releases"><img src="https://img.shields.io/badge/version-v0.4-blue.svg" /></a>
66
<a href="#"><img src="https://img.shields.io/badge/status-Prototype-orange.svg" /></a>
77
</p>
88

9-
> ⚠️ HydroChrono is under active development (`v0.3` prototype). This early release focuses on a YAML‑driven CLI and portable HDF5 outputs so you can try the code and share feedback. Expect rapid iteration over the coming year (inc. more advanced PTO, control, mooring & hydrodynamics) — please get in touch if you have any issues or feature requests.
9+
> ⚠️ HydroChrono is under active development (`v0.4` prototype). This early release focuses on a YAML‑driven CLI and portable HDF5 outputs so you can try the code and share feedback. Expect rapid iteration over the coming year (inc. more advanced PTO, control, mooring & hydrodynamics) — please get in touch if you have any issues or feature requests.
1010
1111

1212
HydroChrono (Hydrodynamics for Project Chrono) is a hydrodynamics simulation toolkit built on [Project Chrono](https://projectchrono.org/). It is designed for simulating wave energy converters (WECs) and other complex ocean systems, and is **100% free and open‑source** end‑to‑end — no proprietary dependencies required. This repo ships a prototype, YAML‑driven CLI app for running simulations and exporting portable results.

app/run_hydrochrono.cpp

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include <hydroc/logging.h>
1010
#include <string>
1111
#include <filesystem>
12+
#include <iostream>
1213

1314
#ifdef _WIN32
1415
#include <windows.h>
@@ -164,7 +165,6 @@ int main(int argc, char* argv[]) {
164165
// Configure UTF-8 console output on Windows (must be first!)
165166
// ---------------------------------------------------------------------
166167
#ifdef _WIN32
167-
// Enable UTF-8 console output on Windows
168168
SetConsoleOutputCP(CP_UTF8);
169169
#endif
170170

@@ -175,13 +175,22 @@ int main(int argc, char* argv[]) {
175175

176176
// -------------------------------------------------------------------------
177177
// Initialize logging early so all CLI output uses the nice formatting
178+
// Wrapped in try/catch to report initialization failures clearly
178179
// -------------------------------------------------------------------------
179-
hydroc::LoggingConfig cfg;
180-
cfg.enable_cli_output = true;
181-
cfg.enable_file_output = false;
182-
cfg.console_level = hydroc::LogLevel::Info;
183-
cfg.file_level = hydroc::LogLevel::Info;
184-
hydroc::Initialize(cfg);
180+
try {
181+
hydroc::LoggingConfig cfg;
182+
cfg.enable_cli_output = true;
183+
cfg.enable_file_output = false;
184+
cfg.console_level = hydroc::LogLevel::Info;
185+
cfg.file_level = hydroc::LogLevel::Info;
186+
(void)hydroc::Initialize(cfg); // Ignore return value; failures throw
187+
} catch (const std::exception& e) {
188+
std::cerr << "FATAL: Exception during logging initialization: " << e.what() << std::endl;
189+
return 1;
190+
} catch (...) {
191+
std::cerr << "FATAL: Unknown exception during logging initialization" << std::endl;
192+
return 1;
193+
}
185194

186195
// Check for help/version/info flags first (before requiring input directory)
187196
for (int i = 1; i < argc; i++) {

src/hydro/logging/logging.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ void CLILogger::ShowBanner() {
297297
Log(LogLevel::Success, "│ │", LogColor::BrightCyan);
298298
Log(LogLevel::Success, "│ Hydrodynamics for Project Chrono │", LogColor::White);
299299
Log(LogLevel::Success, "│ │", LogColor::BrightCyan);
300-
Log(LogLevel::Success, "│ Version : 0.3.2", LogColor::Gray);
300+
Log(LogLevel::Success, "│ Version : 0.4.0", LogColor::Gray);
301301
Log(LogLevel::Success, "│ Status : Prototype │", LogColor::Gray);
302302
Log(LogLevel::Success, "│ Author : SEA-Stack Development Team │", LogColor::Gray);
303303
Log(LogLevel::Success, "│ Lead Developer : David Ogden │", LogColor::Gray);

0 commit comments

Comments
 (0)