diff --git a/.github/workflows/buildThirdPartyLibrary.yml b/.github/workflows/buildThirdPartyLibrary.yml index 1a401b920..3a7cf06a1 100644 --- a/.github/workflows/buildThirdPartyLibrary.yml +++ b/.github/workflows/buildThirdPartyLibrary.yml @@ -42,11 +42,11 @@ jobs: # glibc symbols that are not available in that container, resulting in our Python wheels failing to # load. - name: 'Linux (Intel)' - os: ubuntu-24.04 + os: ubuntu-26.04 container: quay.io/pypa/manylinux_2_34_x86_64:2025.09.19-1 build_type: Release - name: 'Linux (ARM)' - os: ubuntu-24.04-arm + os: ubuntu-26.04-arm container: quay.io/pypa/manylinux_2_34_aarch64:2025.09.19-1 build_type: Release - name: 'macOS (Intel)' diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 0fb0f9b24..0a57045f3 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -48,19 +48,19 @@ jobs: build_type: Debug shared_libs: ON - name: 'Linux static library (Intel)' - os: ubuntu-24.04 + os: ubuntu-26.04 build_type: Release shared_libs: OFF - name: 'Linux shared library (Intel)' - os: ubuntu-24.04 + os: ubuntu-26.04 build_type: Release shared_libs: ON - name: 'Linux static library (ARM)' - os: ubuntu-24.04-arm + os: ubuntu-26.04-arm build_type: Release shared_libs: OFF - name: 'Linux shared library (ARM)' - os: ubuntu-24.04-arm + os: ubuntu-26.04-arm build_type: Release shared_libs: ON - name: 'macOS static library (Intel)' @@ -106,16 +106,6 @@ jobs: uses: TheMrMilchmann/setup-msvc-dev@v4.1.0 with: arch: ${{ matrix.arch }} - - name: Install GCC 16 - if: ${{ runner.os == 'Linux' }} - run: | - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test - sudo apt-get update - sudo apt-get install -y gcc-16 g++-16 - sudo update-alternatives --install /usr/bin/cc cc /usr/bin/gcc-16 100 - sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++-16 100 - echo "CC=gcc-16" >> "$GITHUB_ENV" - echo "CXX=g++-16" >> "$GITHUB_ENV" - name: Configure libOpenCOR run: cmake -G Ninja -S . -B build -DBUILD_TYPE=${{ matrix.build_type }} -DCODE_ANALYSIS=OFF -DCODE_COVERAGE=OFF -DDOCUMENTATION=OFF -DJAVASCRIPT_BINDINGS=OFF -DMEMORY_CHECKS=OFF -DPYTHON_BINDINGS=OFF -DPYTHON_UNIT_TESTING=OFF -DSHARED_LIBS=${{ matrix.shared_libs }} -DUNIT_TESTING=OFF - name: Build libOpenCOR @@ -149,9 +139,9 @@ jobs: os: windows-11-arm arch: amd64_arm64 - name: 'Linux Python wheels (Intel)' - os: ubuntu-24.04 + os: ubuntu-26.04 - name: 'Linux Python wheels (ARM)' - os: ubuntu-24.04-arm + os: ubuntu-26.04-arm - name: 'macOS Python wheels (Intel)' os: macos-15-intel - name: 'macOS Python wheels (ARM)' @@ -207,7 +197,7 @@ jobs: python_pypi: needs: [python_wheels] name: Publish to PyPI - runs-on: ubuntu-24.04 + runs-on: ubuntu-26.04 environment: pypi if: ${{ startsWith(github.ref, 'refs/tags/v') }} steps: @@ -221,7 +211,7 @@ jobs: uses: pypa/gh-action-pypi-publish@release/v1 webassembly: name: WebAssembly - runs-on: ubuntu-24.04 + runs-on: ubuntu-26.04 env: BUILDCACHE_ACCURACY: STRICT BUILDCACHE_COMPRESS_FORMAT: ZSTD @@ -244,7 +234,6 @@ jobs: run: npm install -g npm@latest - name: Install Brotli run: | - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test sudo apt-get update sudo apt-get install -y brotli - name: Install CMake and Ninja @@ -255,6 +244,8 @@ jobs: cache_key: cd-webassembly - name: Install Emscripten uses: emscripten-core/setup-emsdk@v16 + - name: Install TypeScript + run: npm install -g typescript - name: Configure libOpenCOR run: cmake -G Ninja -S . -B build -DBUILD_TYPE=Release -DCODE_ANALYSIS=OFF -DCODE_COVERAGE=OFF -DDOCUMENTATION=OFF -DJAVASCRIPT_BINDINGS=ON -DJAVASCRIPT_UNIT_TESTING=OFF -DMEMORY_CHECKS=OFF -DPYTHON_BINDINGS=OFF -DPYTHON_UNIT_TESTING=OFF -DSHARED_LIBS=OFF -DUNIT_TESTING=OFF - name: Build WebAssembly diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 51c7477e2..45b95cdee 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -76,7 +76,7 @@ jobs: install_prefix: cmake copy_dll: ON - name: 'Linux static library (Intel)' - os: ubuntu-24.04 + os: ubuntu-26.04 build_type: Release code_analysis: OFF code_coverage: OFF @@ -90,7 +90,7 @@ jobs: install_uninstall_and_package: ON install_prefix: lib/cmake - name: 'Linux shared library (Intel)' - os: ubuntu-24.04 + os: ubuntu-26.04 build_type: Release code_analysis: OFF code_coverage: OFF @@ -104,7 +104,7 @@ jobs: install_uninstall_and_package: ON install_prefix: lib/cmake - name: 'Linux static library (ARM)' - os: ubuntu-24.04-arm + os: ubuntu-26.04-arm build_type: Release code_analysis: OFF code_coverage: OFF @@ -118,7 +118,7 @@ jobs: install_uninstall_and_package: ON install_prefix: lib/cmake - name: 'Linux shared library (ARM)' - os: ubuntu-24.04-arm + os: ubuntu-26.04-arm build_type: Release code_analysis: OFF code_coverage: OFF @@ -188,7 +188,7 @@ jobs: install_uninstall_and_package: ON install_prefix: lib/cmake - name: 'JavaScript bindings' - os: ubuntu-24.04 + os: ubuntu-26.04 build_type: Release code_analysis: OFF code_coverage: OFF @@ -214,7 +214,7 @@ jobs: target: python_unit_testing pip_install_test_and_uninstall: ON - name: 'Linux Python bindings' - os: ubuntu-24.04 + os: ubuntu-26.04 build_type: Release code_analysis: OFF code_coverage: OFF @@ -242,7 +242,7 @@ jobs: pip_install_prerequisites: sudo uv pip install --system cmake scikit-build pip_install_test_and_uninstall: ON - name: 'Code formatting' - os: ubuntu-24.04 + os: ubuntu-26.04 build_type: Release code_analysis: OFF code_coverage: OFF @@ -255,7 +255,7 @@ jobs: context: PATH=$GITHUB_WORKSPACE:$PATH target: check_code_formatting - name: 'JavaScript code formatting' - os: ubuntu-24.04 + os: ubuntu-26.04 build_type: Release code_analysis: OFF code_coverage: OFF @@ -267,7 +267,7 @@ jobs: unit_testing: OFF target: javascript_check_code_formatting - name: 'Python code formatting' - os: ubuntu-24.04 + os: ubuntu-26.04 build_type: Release code_analysis: OFF code_coverage: OFF @@ -279,7 +279,7 @@ jobs: unit_testing: OFF target: python_check_code_formatting - name: 'Code analysis' - os: ubuntu-24.04 + os: ubuntu-26.04 build_type: Release code_analysis: ON code_coverage: OFF @@ -316,7 +316,7 @@ jobs: unit_testing: ON target: memory_checks - name: 'Documentation' - os: ubuntu-24.04 + os: ubuntu-26.04 build_type: Release code_analysis: OFF code_coverage: OFF @@ -359,16 +359,6 @@ jobs: uses: TheMrMilchmann/setup-msvc-dev@v4.1.0 with: arch: ${{ matrix.arch }} - - name: Install GCC 16 - if: ${{ runner.os == 'Linux' }} - run: | - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test - sudo apt-get update - sudo apt-get install -y gcc-16 g++-16 - sudo update-alternatives --install /usr/bin/cc cc /usr/bin/gcc-16 100 - sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++-16 100 - echo "CC=gcc-16" >> "$GITHUB_ENV" - echo "CXX=g++-16" >> "$GITHUB_ENV" - name: Install LLVM if: ${{ matrix.code_coverage == 'ON' }} run: brew install llvm @@ -387,6 +377,9 @@ jobs: - name: Install Emscripten if: ${{ matrix.javascript_support == 'ON' }} uses: emscripten-core/setup-emsdk@v16 + - name: Install TypeScript + if: ${{ matrix.javascript_support == 'ON' }} + run: npm install -g typescript - name: Install Biome if: ${{ matrix.target == 'javascript_check_code_formatting' }} run: | @@ -505,9 +498,9 @@ jobs: matrix: include: - name: 'Linux Python wheel (Intel)' - os: ubuntu-24.04 + os: ubuntu-26.04 - name: 'Linux Python wheel (ARM)' - os: ubuntu-24.04-arm + os: ubuntu-26.04-arm steps: - name: Set the timezone to New Zealand run: sudo timedatectl set-timezone Pacific/Auckland @@ -527,7 +520,7 @@ jobs: CIBW_SKIP: '*musllinux*' spell_check: name: Spell check - runs-on: ubuntu-24.04 + runs-on: ubuntu-26.04 steps: - name: Set the timezone to New Zealand run: sudo timedatectl set-timezone Pacific/Auckland diff --git a/VERSION.txt b/VERSION.txt index f2d34ed76..09e5b2e0e 100644 --- a/VERSION.txt +++ b/VERSION.txt @@ -1 +1 @@ -1.20261113.1 +1.20261124.0 diff --git a/cmake/common.cmake b/cmake/common.cmake index b838ad87a..ff807e56f 100644 --- a/cmake/common.cmake +++ b/cmake/common.cmake @@ -284,9 +284,12 @@ function(configure_target TARGET) AND "${${AVAILABLE_PACKAGE_UC}_CMAKE_PACKAGE_NAME}" STREQUAL "") # There are no CMake configuration files, so manually configure the package using targets of the form # ::. + # Note: a package may also list some system libraries (e.g., bcrypt for libxml2 on Windows), which are not + # of that form and which we therefore link as is. foreach(AVAILABLE_PACKAGE_LIBRARY ${PACKAGE_LIBRARIES}) - if(NOT TARGET ${AVAILABLE_PACKAGE_LIBRARY}) + if( "${AVAILABLE_PACKAGE_LIBRARY}" MATCHES "::" + AND NOT TARGET ${AVAILABLE_PACKAGE_LIBRARY}) add_library(${AVAILABLE_PACKAGE_LIBRARY} STATIC IMPORTED) if(RELEASE_MODE) diff --git a/cmake/packages.cmake b/cmake/packages.cmake index 5f454049f..c23aa0d78 100644 --- a/cmake/packages.cmake +++ b/cmake/packages.cmake @@ -231,15 +231,28 @@ function(add_package PACKAGE) endfunction() function(retrieve_package PACKAGE_NAME PACKAGE_VERSION PACKAGE_REPOSITORY RELEASE_TAG SHA1_VALUE) - # Check whether the package has already been retrieved by simply checking whether its installation directory exists. + # Check whether the package has already been retrieved by checking whether its installation directory contains a + # marker file with the SHA-1 value of the package that we want. If the marker file is missing or if it has a + # different SHA-1 value, then we remove the installation directory and retrieve the package anew. + # Note: the marker file is located at the root of the installation directory, so create_package() never includes + # it in a package since it only packages some specific subdirectories and/or files. set(INSTALL_DIR ${PREBUILT_DIR}/${PACKAGE_NAME}) + set(MARKER_FILE ${INSTALL_DIR}/.sha1) message(STATUS "Retrieving Package ${PACKAGE_NAME}") - if(EXISTS ${INSTALL_DIR}) + set(INSTALLED_SHA1_VALUE) + + if(EXISTS ${MARKER_FILE}) + file(READ ${MARKER_FILE} INSTALLED_SHA1_VALUE) + string(STRIP "${INSTALLED_SHA1_VALUE}" INSTALLED_SHA1_VALUE) + endif() + + if("${INSTALLED_SHA1_VALUE}" STREQUAL "${SHA1_VALUE}") message(STATUS "Retrieving Package ${PACKAGE_NAME} - Success") else() + file(REMOVE_RECURSE ${INSTALL_DIR}) # Retrieve the package. set(PACKAGE_FILE ${PACKAGE_NAME}.${PACKAGE_VERSION}.${TARGET_PLATFORM_ARCHITECTURE}.tar.gz) @@ -292,6 +305,10 @@ function(retrieve_package PACKAGE_NAME PACKAGE_VERSION PACKAGE_REPOSITORY RELEAS file(REMOVE ${REAL_PACKAGE_FILE}) + # Keep track of the SHA-1 value of the package that we have retrieved. + + file(WRITE ${MARKER_FILE} "${SHA1_VALUE}\n") + message(STATUS "Retrieving Package ${PACKAGE_NAME} - Success") else() set(FAILED_DOWNLOAD TRUE) diff --git a/src/3rdparty/LLVM/CMakeLists.txt b/src/3rdparty/LLVM/CMakeLists.txt index 928d69b47..7bbc193a5 100644 --- a/src/3rdparty/LLVM/CMakeLists.txt +++ b/src/3rdparty/LLVM/CMakeLists.txt @@ -138,49 +138,49 @@ if(LIBOPENCOR_PREBUILT_LLVM) if(EMSCRIPTEN) retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - 6155cad48ecc59cf37d8b7dd8c968ae816a7fefe) + c1b146ac732d76c0e0e05a24bbc7aabe53c30326) else() if(WIN32) if(RELEASE_MODE) if(INTEL_MODE) retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - 923ce9c811c43650bebba33e8c0885f1ec3070dc) + 2a80ae0661f34766ae0ce0ca087f9ed999065844) else() retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - dc9f91e299fa9d940b1c88b67a945a914ca09685) + 1b139c6a9c192bee75716cb5c03a4e2720f9585d) endif() else() if(INTEL_MODE) retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - 9676e1ca3a383e3947a5fe3487086d8308c2abbd) + 21e49ed3363f3729162a69a419b9b074e2dfaa1f) else() retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - 7b5c4221520251993c411a94325061a26c915c06) + eb1d2331878f332cbb52e65b46f4a6a4279338e4) endif() endif() elseif(APPLE) if(INTEL_MODE) retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - 27a76d020977ebf95e20fbd64fcb94c2c78850a9) + 9ba7219fe033ce76c58edca02fb62c2cfa254b2d) else() retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - 6f02a9a59809cf02d5bde496c1cca01320de1a35) + 64366d5a63f78c338fb7c9c068a51ffa0ab26df0) endif() else() if(INTEL_MODE) retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - 9959a76393293c7fbe4401ccebeb12c72faab2f8) + 0f2ee98073b218d40c6cf463838d3fe42ffa7f5e) else() retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - 5591b378a47c1f8a1c98a0ec81607c5e5f9eeb7d) + bbf9c4259ddab7375ba4cbe780933498c8631e68) endif() endif() endif() diff --git a/src/3rdparty/OpenSSL/CMakeLists.txt b/src/3rdparty/OpenSSL/CMakeLists.txt index 3104b4861..921091b74 100644 --- a/src/3rdparty/OpenSSL/CMakeLists.txt +++ b/src/3rdparty/OpenSSL/CMakeLists.txt @@ -13,9 +13,9 @@ # limitations under the License. set(PACKAGE_NAME OpenSSL) -set(PACKAGE_VERSION 3.5.7) +set(PACKAGE_VERSION 3.5.9) set(PACKAGE_REPOSITORY openssl) -set(RELEASE_TAG openssl-3.5.7) +set(RELEASE_TAG openssl-3.5.9) set(INSTALL_DIR ${PREBUILT_DIR}/${PACKAGE_NAME}) # Either retrieve or build our package. @@ -26,42 +26,42 @@ if(LIBOPENCOR_PREBUILT_OPENSSL) if(INTEL_MODE) retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - 3a443e06ead4d1dac5227bfa75b62475f8545a29) + eec7d46cde7d5ef7a23e1dc16fd7547bc3df49a1) else() retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - 9e9ab6273e4ff1486b12977a52dbdfa34f8d1d4b) + 40970be9c2950a956ea5b7cfbacb2fbf9866ff98) endif() else() if(INTEL_MODE) retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - 632c107b9ace83c7cfadb77d11b10aece0e1020e) + 7d58d6148c755a80bf7cd7545553acb218214013) else() retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - 2b8f3c948289b253cda43a4049a3250afb163771) + 7686f355d8d5c24ca50935d689bbd346435fb518) endif() endif() elseif(APPLE) if(INTEL_MODE) retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - 5182803956386e5cda0a0d8d2058cef5d2ba84f6) + 51227b843cd95c07bdcc1c2ba72da989b59e4193) else() retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - 3425a6cbc763c62250d59752a6f661f78ca48e81) + 51ba66d3ad59bb5308f1f600365dbf3e94453a6e) endif() else() if(INTEL_MODE) retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - 31b94c25bf89208b30afdf024f4061a4be154920) + bb294ea686e44b61188404395521a08b110bb1a5) else() retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - 5f60d7207b6d5bd12c62771610ed645eb4d5a366) + a940b6f007b1027da4244fc8847597aa053c7eb2) endif() endif() else() diff --git a/src/3rdparty/SUNDIALS/CMakeLists.txt b/src/3rdparty/SUNDIALS/CMakeLists.txt index 5c21fe5ea..43e989842 100644 --- a/src/3rdparty/SUNDIALS/CMakeLists.txt +++ b/src/3rdparty/SUNDIALS/CMakeLists.txt @@ -13,9 +13,9 @@ # limitations under the License. set(PACKAGE_NAME SUNDIALS) -set(PACKAGE_VERSION v7.7.0) +set(PACKAGE_VERSION v7.9.0) set(PACKAGE_REPOSITORY sundials) -set(RELEASE_TAG v7.7.0) +set(RELEASE_TAG v7.9.0) set(INSTALL_DIR ${PREBUILT_DIR}/${PACKAGE_NAME}) # Either retrieve or build our package. @@ -24,49 +24,49 @@ if(LIBOPENCOR_PREBUILT_SUNDIALS) if(EMSCRIPTEN) retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - 37b6e58e99566ca1f7ca9244bf89c07657d9aa5e) + 5ff410654d98208a6138ec7558e21ee4ce5e5633) else() if(WIN32) if(RELEASE_MODE) if(INTEL_MODE) retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - afc3e17457739e8be0818f5a74ad082b89b00644) + f738bf9228d6adada3341ea38d232dd76c46a4c4) else() retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - 12d24b492b6ef5b267cb27548051f9e0116ae589) + 232f7f385826ec10cfbcf3b0906e815ac00b147b) endif() else() if(INTEL_MODE) retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - 3282dee04bb9bdca574fe3596baa2dab10be37a1) + 41be2340ae7ef7d4f3786f9e6735451cdf968ee4) else() retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - 505f61fc017cf1f11548f180ca1d2a19e41c808c) + 35fb5c4cdaca71deb15a862403cb970f8e63cae8) endif() endif() elseif(APPLE) if(INTEL_MODE) retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - cb01f19ec58984344bf8954c8c600851c995a3a3) + ee06ede2266544b6dcd2cf81edac38870998ac6f) else() retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - 30cf28a0d3d12d41e2f28aea6cf1e81adb806dbd) + 6bad4c49debed04740ab774bd7f319a0fb813224) endif() else() if(INTEL_MODE) retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - bd49d8ace9b5a193d5734f5e3c04e86acc54a573) + e9a716035e83b6b19e23dca11533c1671955515a) else() retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - b24979460c1dbe712f558fde2238d1030f38c0b9) + d5df030fef368c7775db738f2b270367ac785715) endif() endif() endif() diff --git a/src/3rdparty/libCellML/CMakeLists.txt b/src/3rdparty/libCellML/CMakeLists.txt index 48e8a5fff..7817c9aa4 100644 --- a/src/3rdparty/libCellML/CMakeLists.txt +++ b/src/3rdparty/libCellML/CMakeLists.txt @@ -13,9 +13,9 @@ # limitations under the License. set(PACKAGE_NAME libCellML) -set(PACKAGE_VERSION 2026-10-29) +set(PACKAGE_VERSION 2026-11-23) set(PACKAGE_REPOSITORY libcellml) -set(RELEASE_TAG 2026-10-29) +set(RELEASE_TAG 2026-11-23) set(INSTALL_DIR ${PREBUILT_DIR}/${PACKAGE_NAME}) if(WIN32 AND NOT RELEASE_MODE) @@ -39,7 +39,8 @@ if(NOT TARGET LibXml2::LibXml2) set_target_properties(LibXml2::LibXml2 PROPERTIES IMPORTED_LOCATION "@LIBXML2_LIBRARY_FILE@" INTERFACE_COMPILE_DEFINITIONS "@LIBXML2_DEFINITIONS@" - INTERFACE_INCLUDE_DIRECTORIES "@LIBXML2_INCLUDE_DIR@") + INTERFACE_INCLUDE_DIRECTORIES "@LIBXML2_INCLUDE_DIR@" + INTERFACE_LINK_LIBRARIES "@LIBXML2_LIBRARIES@") endif() set(LIBXML2_INCLUDE_DIRS "@LIBXML2_INCLUDE_DIR@") @@ -70,56 +71,56 @@ if(LIBOPENCOR_PREBUILT_LIBCELLML) if(EMSCRIPTEN) retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - a0ae6d3219d4f25d8940f8544e743ec85bdcc7b7) + 78550f76126404eda8a634b8ca0d8f00b84fd37b) else() if(WIN32) if(RELEASE_MODE) if(INTEL_MODE) retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - c92f68ba407220910188c48cefa28790a2835845) + 52068fe31c0fc7849c43dafe4884a4bae63b3446) else() retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - fa8776f96e9b52be0e98d91da02623d08615ad97) + 82f7cbb02b11b340b11c3501d372e0be48c8786e) endif() else() if(INTEL_MODE) retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - 70358d8858a9e9aa3c76a8c73722c5e1fb52325a) + 0212676c85db10dbca085f3e80c3ed45336a3781) else() retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - 398a41a28cfbc36069a95bab1a887a858aa20453) + 34e03701b520d06e310d1f2b8636eb481a7a32b1) endif() endif() elseif(APPLE) if(INTEL_MODE) retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - a2437ff44cf14155f1c4102df4a1570c2e4915c7) + 5388d1de2f87b9cd7aac375bb1beb59406892493) else() retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - edc9144be7c2f157dd6498e491c5f993baf7fc9b) + c73e701610115dac5f0d24749e7cdc481af08d3a) endif() else() if(INTEL_MODE) retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - 5a29376c6a5655093c761de2e04db405048cd51f) + fa3ab246e5a73b72709ef8159d22fa074e3300d8) else() retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - eed442abf2ce3d1c48bb2ae865b275e23035af82) + d31b686e6851eb4fc2dcb703558814ba05bcadc1) endif() endif() endif() elseif(NOT ONLY_BUILD_JAVASCRIPT_THIRD_PARTY_LIBRARIES) # Build our WASM version of libCellML with size optimisation. - # Note: -Os makes libCellML's contribution to our WASM file noticeably smaller without making it noticeably slower to - # load (i.e. parse and validate) or instantiate (i.e. analyse and generate code for) a model, unlike -Oz. + # Note: -Os makes libCellML's contribution to our WASM file noticeably smaller without making it noticeably slower + # to load (i.e. parse and validate) or instantiate (i.e. analyse and generate code for) a model, unlike -Oz. if(EMSCRIPTEN) set(WASM_FLAGS diff --git a/src/3rdparty/libNuML/CMakeLists.txt b/src/3rdparty/libNuML/CMakeLists.txt index 421cbf7fa..994b0eac2 100644 --- a/src/3rdparty/libNuML/CMakeLists.txt +++ b/src/3rdparty/libNuML/CMakeLists.txt @@ -13,9 +13,9 @@ # limitations under the License. set(PACKAGE_NAME libNuML) -set(PACKAGE_VERSION 1.1.7) +set(PACKAGE_VERSION 1.1.8) set(PACKAGE_REPOSITORY NuML) -set(RELEASE_TAG v1.1.7) +set(RELEASE_TAG v1.1.8) set(INSTALL_DIR ${PREBUILT_DIR}/${PACKAGE_NAME}) # Either retrieve or build our package. @@ -28,49 +28,49 @@ if(LIBOPENCOR_PREBUILT_LIBNUML) if(EMSCRIPTEN) retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - 8db92823664d64c45f7a35cfa9b70a57b75c2fbd) + d0a27e3479d656fc7da075647889f86b1b95b8e3) else() if(WIN32) if(RELEASE_MODE) if(INTEL_MODE) retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - f8e61d8466e00c77bff15f8e8191dd86c8865036) + c440430c4c62bea1d28bc9255a77e27c2c4b131c) else() retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - 933acac0854d8b3b573cb2f897f6fef6015c8bfc) + 3b7b0b5912d030f240d2c2e4b9cf341d729ffdd5) endif() else() if(INTEL_MODE) retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - a657e906dfdaaa04b24af7ad0e63f076401b4d19) + b67fc634f9a98536a26391d47af9861a78fa694d) else() retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - f65612ad99018e8981c96e5169928ae9c6769ae5) + 37705054773a67c901ec1c429741fe66d6fcd83b) endif() endif() elseif(APPLE) if(INTEL_MODE) retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - 3f5ceeb820b70d452604df189f9bb7000801ac81) + ea4068f4d66b7adfae1c125dbe2493bbc1fc173e) else() retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - 03bb60d5131a2142f29b2f11c720c173069be3dd) + cc2720103f2db8738c0ef80ebbcf787dc7ead87b) endif() else() if(INTEL_MODE) retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - e57740e4fd10388ae4fdc94e5915df56ae62b29e) + 25017f9804252e1b5f61ad775de12c362817dace) else() retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - 0d1c9a12de07f93032c77df56db4094cd52fb536) + 1890367067031e9b187a6a7cbce1a37600e577f9) endif() endif() endif() diff --git a/src/3rdparty/libSBML/CMakeLists.txt b/src/3rdparty/libSBML/CMakeLists.txt index 652e7018e..81520e19c 100644 --- a/src/3rdparty/libSBML/CMakeLists.txt +++ b/src/3rdparty/libSBML/CMakeLists.txt @@ -13,9 +13,9 @@ # limitations under the License. set(PACKAGE_NAME libSBML) -set(PACKAGE_VERSION 5.21.0) +set(PACKAGE_VERSION 5.21.2) set(PACKAGE_REPOSITORY libsbml) -set(RELEASE_TAG v5.21.0) +set(RELEASE_TAG v5.21.2) set(INSTALL_DIR ${PREBUILT_DIR}/${PACKAGE_NAME}) # Either retrieve or build our package. @@ -28,49 +28,49 @@ if(LIBOPENCOR_PREBUILT_LIBSBML) if(EMSCRIPTEN) retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - 3d203fac4766ed4297bd1442349525571a9d5f0b) + 55d56cb8051d06d1881c168f5ebee860b8b5cdd4) else() if(WIN32) if(RELEASE_MODE) if(INTEL_MODE) retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - 4df2b0bfcba6c00bf8c440f15814caa21c5e20e6) + 405fb807707d3ecfe1dda342472bdb5ab15cad7a) else() retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - 794a9764459a9238f81a5b1ec14cc78fb82b890e) + cfaac65b3dbac800e4fb63d4f1587518e0e0cf14) endif() else() if(INTEL_MODE) retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - 0812550590ce5f65aa2538e823d14c4c6059c5a3) + e0a8d747175e2917c9fa24e2744cc011687fed21) else() retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - d5b0b4ae2dcfe8e9ae09427a48ee1fe2eb78ee42) + bfbf32c725f45580f52387540b7f64bbd59eaeea) endif() endif() elseif(APPLE) if(INTEL_MODE) retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - 3f4ed04fcd1e330b528f020d1d217a7165820828) + e3acb69c1188191f77cd96613ee4b40d29f3de54) else() retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - 0039c7ef2887c4b0077cdeaa605d4079e3ad3c9c) + 41b9bb76302c5e8ef2fc39802af4004fe64ed38a) endif() else() if(INTEL_MODE) retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - 20bdf2c21dc08f38c8cc20ea28ef3a9cc6f22c91) + 85225203711d3b7c5a68a16c535b87fd7f8c6d00) else() retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - 5a3f890a0c363d30855ec245423943abd5bc6c7f) + f080e503d076ec2e7c0afb437b687f92ff6b926e) endif() endif() endif() diff --git a/src/3rdparty/libSBML/README.md b/src/3rdparty/libSBML/README.md index b2205f35b..3ca633ac7 100644 --- a/src/3rdparty/libSBML/README.md +++ b/src/3rdparty/libSBML/README.md @@ -6,5 +6,6 @@ libOpenCOR doesn't handle SBML documents. It only needs libSBML because libSEDML - Make the L3v2extendedmath package's AST plugin neither evaluate SBML math nor determine its units (`src/sbml/packages/l3v2extendedmath/extension/L3v2extendedmathASTPlugin.cpp`) since libOpenCOR never does either. The AST plugin itself is still registered since it is needed to parse some of the math used in SED-ML files (e.g., `max`, `min`, and `rem`). - `libsbml-no-sax1.patch`: - Use `xmlReadFile()` rather than `xmlParseFile()` in the test executable that libSBML compiles to check libxml2 (`CMakeModules/FindLIBXML.cmake`) since we build libxml2 without its older SAX1 interface, which `xmlParseFile()` is part of. libSBML itself only uses libxml2's SAX2 interface (through a push parser), so it is not otherwise affected. + - Link that test executable against `bcrypt.lib` on Windows since libxml2 (2.14+) needs it (`CMakeModules/FindLIBXML.cmake`). This means that libSBML's SBML converters, SBML document support (incl. its validators), SBML model classes, and SBO support are not linked into libOpenCOR. The parts of libSBML that libSEDML, libNuML, and libCOMBINE use are not affected. diff --git a/src/3rdparty/libSBML/patches/libsbml-no-sax1.patch b/src/3rdparty/libSBML/patches/libsbml-no-sax1.patch index 40b7bce12..793d83cda 100644 --- a/src/3rdparty/libSBML/patches/libsbml-no-sax1.patch +++ b/src/3rdparty/libSBML/patches/libsbml-no-sax1.patch @@ -2,6 +2,15 @@ diff --git a/CMakeModules/FindLIBXML.cmake b/CMakeModules/FindLIBXML.cmake index 1796ec2..e420363 100644 --- a/CMakeModules/FindLIBXML.cmake +++ b/CMakeModules/FindLIBXML.cmake +@@ -71,7 +71,7 @@ if (EXISTS ${ZLIB_LIBRARY}) + set(ADDITIONAL_LIBS "${ADDITIONAL_LIBS}ZLIB::ZLIB;") + endif() + if (WIN32) +-set(ADDITIONAL_LIBS "ws2_32.lib;${ADDITIONAL_LIBS}") ++set(ADDITIONAL_LIBS "bcrypt.lib;ws2_32.lib;${ADDITIONAL_LIBS}") + endif() + + @@ -105,7 +105,7 @@ main(void) { LIBXML_TEST_VERSION diff --git a/src/3rdparty/libSEDML/CMakeLists.txt b/src/3rdparty/libSEDML/CMakeLists.txt index 593a60bbf..95d1981ab 100644 --- a/src/3rdparty/libSEDML/CMakeLists.txt +++ b/src/3rdparty/libSEDML/CMakeLists.txt @@ -13,9 +13,9 @@ # limitations under the License. set(PACKAGE_NAME libSEDML) -set(PACKAGE_VERSION 2.0.33) +set(PACKAGE_VERSION 2.0.34) set(PACKAGE_REPOSITORY libSEDML) -set(RELEASE_TAG v2.0.33) +set(RELEASE_TAG v2.0.34) set(INSTALL_DIR ${PREBUILT_DIR}/${PACKAGE_NAME}) # Either retrieve or build our package. @@ -28,49 +28,49 @@ if(LIBOPENCOR_PREBUILT_LIBSEDML) if(EMSCRIPTEN) retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - c318dff320dd2eab8cea701d35fa5e43ff3d9806) + 793d1524ab8e3313c8fc30ca90a0281835ad9d21) else() if(WIN32) if(RELEASE_MODE) if(INTEL_MODE) retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - 06693844983cb86ca60dda8e3fe19d1bf11fe9d6) + b496fa9f31a39a0751773d093450497a93b51d42) else() retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - c20d82349b3031567b2d1add5e0d26e713391bf0) + 7be8773fa23e03d0af7d4b2a97f3212f9fe8e97d) endif() else() if(INTEL_MODE) retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - 19ba2921a4099d3ded7b07bb36233a038177c260) + 8cb009c5f624b93a3f4ebb3ee5266a439c19a8be) else() retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - 1b8734b85ac8def9a3f5825a552c2ba8d23b4cc4) + dfc06e2a98afe4c47fd03c614d72513548447505) endif() endif() elseif(APPLE) if(INTEL_MODE) retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - 6c234427c88ef302c41489627abcce8a0831ec77) + 06faa1049376bc993ca7bc73779acad9ef70a0dc) else() retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - 42c0c2de8ce9b144d5500c879554131f2e90502c) + fe842e76b9854f1d4b14f7e08620807e5fd2de0d) endif() else() if(INTEL_MODE) retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - c6aad9af59207054ceff9f5df6b1bb14483c66cb) + 735479d00d722ed2746b2d9fa8ac54132c1f057d) else() retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - d254867de4fac920844a1326ffbc549949c9f605) + 1854fa925b8f93d47aed02dd493667a19059b960) endif() endif() endif() diff --git a/src/3rdparty/libcurl/CMakeLists.txt b/src/3rdparty/libcurl/CMakeLists.txt index e7cf227ca..a885dc375 100644 --- a/src/3rdparty/libcurl/CMakeLists.txt +++ b/src/3rdparty/libcurl/CMakeLists.txt @@ -13,9 +13,9 @@ # limitations under the License. set(PACKAGE_NAME libcurl) -set(PACKAGE_VERSION 8.21.0) +set(PACKAGE_VERSION 8.23.0) set(PACKAGE_REPOSITORY curl) -set(RELEASE_TAG curl-8_21_0) +set(RELEASE_TAG curl-8_23_0) set(INSTALL_DIR ${PREBUILT_DIR}/${PACKAGE_NAME}) if(WIN32 AND NOT RELEASE_MODE) @@ -30,42 +30,42 @@ if(LIBOPENCOR_PREBUILT_LIBCURL) if(INTEL_MODE) retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - 24bab191c14a199d2ea0b327d9297689dcd8deed) + cdb18fa5f0cd8a4f1f314e77a0a6f0badde3da37) else() retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - 6efde92e96d338dd62c53550f738e6479d93a96b) + 56faefe1292d1d2b91318d0d5a96e52453046c11) endif() else() if(INTEL_MODE) retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - ddda7673114812889c6399df43053aafe804dca1) + e3793794a38c8d7045eda20b4555563468a1fa8e) else() retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - 539520cab28259b65d52306a865b8a3e6395374c) + 4ba0f9491ad5160e5518d385374ad99e686271a0) endif() endif() elseif(APPLE) if(INTEL_MODE) retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - 55b0d1ea27da62bb910b11352cbc6ef4dde04f05) + e8c1e8c022ea9de6323bf31f78f9bd5319f32acf) else() retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - 30a8b6a5db12e2e3d7fd51234500cee89f7cc6df) + 7171b8b4a069c2e01d5bc0ac613f3969aa3dd207) endif() else() if(INTEL_MODE) retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - fb2466a4137498df1f641a52ee452e6ea8bdbee9) + 0a4697c8c526b4128500a9dcb312e7070daeddcd) else() retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - 8898ef45716e025d1447f06dc0c706507a497dd3) + 72d2c17188953c79fa76d0b905556371dc8722dd) endif() endif() else() diff --git a/src/3rdparty/libxml2/CMakeLists.txt b/src/3rdparty/libxml2/CMakeLists.txt index 239411045..9d7b9f639 100644 --- a/src/3rdparty/libxml2/CMakeLists.txt +++ b/src/3rdparty/libxml2/CMakeLists.txt @@ -13,9 +13,9 @@ # limitations under the License. set(PACKAGE_NAME libxml2) -set(PACKAGE_VERSION 2.9.14) +set(PACKAGE_VERSION 2.15.4) set(PACKAGE_REPOSITORY libxml2) -set(RELEASE_TAG v2.9.14) +set(RELEASE_TAG v2.15.4) set(INSTALL_DIR ${PREBUILT_DIR}/${PACKAGE_NAME}) # Either retrieve or build our package. @@ -24,49 +24,49 @@ if(LIBOPENCOR_PREBUILT_LIBXML2) if(EMSCRIPTEN) retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - f67b580d4d6e20fdbf25c1fef6a0187683c8caf2) + d755e638bc31e3dd07ffa30e309a6ad57f0dd0c6) else() if(WIN32) if(RELEASE_MODE) if(INTEL_MODE) retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - 8e0a7d05dbe9fb144dadec732f0efe262d49a359) + 90fc907f46f4681341cb5fc0a1cdb31a27fdb8c9) else() retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - 9f26f4c25447cbfe94430d2d7ea773ffe6839299) + 57ddbd6460f3eda5a8b05159bc91b1a7cc1aa856) endif() else() if(INTEL_MODE) retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - e726158b3ab5031f87214df8f507b421bb822c33) + 5127f23517e220ad1467e8b606e03ee1336a3304) else() retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - 55808611458e02c7711edc7bb7ed5529116b1055) + 5ba67a19782f9a8866213c906d0613c9909f5357) endif() endif() elseif(APPLE) if(INTEL_MODE) retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - d80688917fc42b90297fffb0ab6d2894562baad9) + fcb8b2943f3ddcbbda5e6ceec50bd817afe11bfb) else() retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - 8ddb9699f4f6be84a3dd8afa03e7e87522278521) + a24568fb8b499380255ae0c97a4814b2b9c848d1) endif() else() if(INTEL_MODE) retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - 66fb0eb3c0c6f007daea9044a5f3bba767423296) + 6899d9121febe3b8f39045274ee9bbf43ea3225d) else() retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - f85336ddbaa96c1bb0cf3eb6f279a745a886aa0a) + 649d950bd9ea4df97c55bda6179db3c2205b4ffa) endif() endif() endif() @@ -136,3 +136,13 @@ set(LIBXML2_INCLUDE_DIR ${INSTALL_DIR}/include/libxml2 CACHE INTERNAL "${PACKAGE set(LIBXML2_LIBRARY libxml2::libxml2${LIBRARY_SUFFIX} CACHE INTERNAL "${PACKAGE_NAME}'s library.") set(LIBXML2_LIBRARY_FILE ${INSTALL_DIR}/lib/libxml2${LIBRARY_SUFFIX}${CMAKE_STATIC_LIBRARY_SUFFIX} CACHE INTERNAL "${PACKAGE_NAME}'s library.") set(LIBXML2_DEFINITIONS LIBXML_STATIC CACHE INTERNAL "${PACKAGE_NAME}'s definitions.") + +# On Windows, libxml2 (2.14+) uses BCryptGenRandom() to seed its random number generator, so anything that links +# against our copy of libxml2 also needs to link against bcrypt. +# Note: this is the case whether our package was built or retrieved, hence we set it here. + +if(WIN32) + set(LIBXML2_LIBRARIES bcrypt CACHE INTERNAL "${PACKAGE_NAME}'s system libraries.") +else() + set(LIBXML2_LIBRARIES "" CACHE INTERNAL "${PACKAGE_NAME}'s system libraries.") +endif() diff --git a/src/3rdparty/zipper/CMakeLists.txt b/src/3rdparty/zipper/CMakeLists.txt index 8efa323ce..f19f140bb 100644 --- a/src/3rdparty/zipper/CMakeLists.txt +++ b/src/3rdparty/zipper/CMakeLists.txt @@ -24,49 +24,49 @@ if(LIBOPENCOR_PREBUILT_ZIPPER) if(EMSCRIPTEN) retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - 23f140517181270d773056970ff8944ce4805eab) + a67ee7699c2141bf6b970f0f6079de95609c3bfe) else() if(WIN32) if(RELEASE_MODE) if(INTEL_MODE) retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - 765e49563d4cbe92201739d180637e69d35b9fc4) + 37fe5c3f46de8d1ae2dd565097fa7ada65562177) else() retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - d53fa294d54551dc1eff70f37eca385ab16fe7e0) + 068465f582b596a4815542ee8367d3c4ab9c4fd7) endif() else() if(INTEL_MODE) retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - 20ba687a55a4b6b57e8d2ab35b9c4d7581718432) + 60dd4bf1bbad05dcd7628c1d0a40eb2157abaef6) else() retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - 522aa04a659fc94ca031da68826db0720c97ecf2) + e91b5353f6d1c622c87d4079c05aa9047959d122) endif() endif() elseif(APPLE) if(INTEL_MODE) retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - ad8ee6fdf87178662fe900451fed0e60c9b4747a) + 6009d4568fb8b9c5315b2fb728c029df76aa3c40) else() retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - bad96697993594bf274a87a7ed5bb7229efdbe81) + 626766151ce54481cfd7f4fa836ed1a8817dea6a) endif() else() if(INTEL_MODE) retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - e17465a61addc2b6a8d7033ae8e094c97be6f0db) + 9032e713507fd8cfcb260f1d6717e407b7611dee) else() retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - 365d5bab6b6ad1298ea307fac8aacb54841270b0) + 844c374f83bbb762bdca640ec9a5c3cdaf9767b1) endif() endif() endif() diff --git a/src/3rdparty/zlib/CMakeLists.txt b/src/3rdparty/zlib/CMakeLists.txt index 14eb467ee..685a57121 100644 --- a/src/3rdparty/zlib/CMakeLists.txt +++ b/src/3rdparty/zlib/CMakeLists.txt @@ -24,49 +24,49 @@ if(LIBOPENCOR_PREBUILT_ZLIB) if(EMSCRIPTEN) retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - b2f0f4e24de0f076fd5d805ca4f6480a49e2b587) + f678ecc6b5d8b5888fb0366b8968bb31e8ad77bc) else() if(WIN32) if(RELEASE_MODE) if(INTEL_MODE) retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - b7c8fd08e5977c8149bfce22785e9740c8d42e12) + 9a30e6a84a74d30eeb1005b65ee016de713862aa) else() retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - 4d8d41194ee52e69f0433c694b24de01e5efb680) + e8d05343964d9be0f80fdc025b5c83edf35f5a91) endif() else() if(INTEL_MODE) retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - 5731a18574e53869e1c56b227abd5d86a6094b87) + d77243d6d77786414aa9ce8de23dff46bd63101e) else() retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - a475e47faa6b70b92ce57d8e4cb17d1320d7eeb6) + f9f183a550eb89aef636067ce664eaa2bc769e63) endif() endif() elseif(APPLE) if(INTEL_MODE) retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - 0db9d21a963e102b4e22b96b76518100babbfc07) + f9d24de9afcc4fa216b8678407b5bbc952b87b5e) else() retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - b3cda2f9bd8a248d33bd9d40842f56f1e941166e) + 31fd227f2a519994e495c75088f0eee503fcc4c5) endif() else() if(INTEL_MODE) retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - 8864b8b1b6c3d418a211c19238bc9392354700fe) + cbca8d1e806d8c9ad827640354f56a2a130fc93b) else() retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION} ${PACKAGE_REPOSITORY} ${RELEASE_TAG} - adcde3462cba7c1301169da1837ca0f49d7dc469) + b1498edf46236b6d4889f4d20328f10e3ae4d04c) endif() endif() endif() diff --git a/src/api/libopencor/solvercvode.h b/src/api/libopencor/solvercvode.h index 595f49308..023d7d569 100644 --- a/src/api/libopencor/solvercvode.h +++ b/src/api/libopencor/solvercvode.h @@ -23,7 +23,8 @@ namespace libOpenCOR { /** * @brief The SolverCvode class. * - * The SolverCvode class is used to represent the CVODE solver. + * The SolverCvode class is used to represent the + * CVODE solver. */ class LIBOPENCOR_EXPORT SolverCvode: public SolverOde diff --git a/src/api/libopencor/solverforwardeuler.h b/src/api/libopencor/solverforwardeuler.h index 2f898f08f..d6bd1ac04 100644 --- a/src/api/libopencor/solverforwardeuler.h +++ b/src/api/libopencor/solverforwardeuler.h @@ -21,9 +21,10 @@ limitations under the License. namespace libOpenCOR { /** - * @brief The SolverCvode class. + * @brief The SolverForwardEuler class. * - * The SolverCvode class is used to represent the forward Euler solver. + * The SolverForwardEuler class is used to represent the + * forward Euler solver. */ class LIBOPENCOR_EXPORT SolverForwardEuler: public SolverOdeFixedStep diff --git a/src/api/libopencor/solverfourthorderrungekutta.h b/src/api/libopencor/solverfourthorderrungekutta.h index db77201cc..c85b2a488 100644 --- a/src/api/libopencor/solverfourthorderrungekutta.h +++ b/src/api/libopencor/solverfourthorderrungekutta.h @@ -23,7 +23,8 @@ namespace libOpenCOR { /** * @brief The SolverFourthOrderRungeKutta class. * - * The SolverFourthOrderRungeKutta class is used to represent the fourth-order Runge-Kutta solver. + * The SolverFourthOrderRungeKutta class is used to represent the + * fourth-order Runge-Kutta solver. */ class LIBOPENCOR_EXPORT SolverFourthOrderRungeKutta: public SolverOdeFixedStep diff --git a/src/api/libopencor/solverkinsol.h b/src/api/libopencor/solverkinsol.h index 5daa4b736..af513eea1 100644 --- a/src/api/libopencor/solverkinsol.h +++ b/src/api/libopencor/solverkinsol.h @@ -23,7 +23,8 @@ namespace libOpenCOR { /** * @brief The SolverKinsol class. * - * The SolverKinsol class is used to represent the KINSOL solver. + * The SolverKinsol class is used to represent the + * KINSOL solver. */ class LIBOPENCOR_EXPORT SolverKinsol: public SolverNla diff --git a/src/api/libopencor/solverodefixedstep.h b/src/api/libopencor/solverodefixedstep.h index cd68b2dca..974eacbc6 100644 --- a/src/api/libopencor/solverodefixedstep.h +++ b/src/api/libopencor/solverodefixedstep.h @@ -23,9 +23,9 @@ limitations under the License. namespace libOpenCOR { /** - * @brief The SolverCvode class. + * @brief The SolverOdeFixedStep class. * - * The SolverCvode class is used to represent the forward Euler solver. + * The SolverOdeFixedStep class is used to represent a fixed-step ODE solver. */ class LIBOPENCOR_EXPORT SolverOdeFixedStep: public SolverOde diff --git a/src/api/libopencor/solversecondorderrungekutta.h b/src/api/libopencor/solversecondorderrungekutta.h index 60454d02e..84d1c3460 100644 --- a/src/api/libopencor/solversecondorderrungekutta.h +++ b/src/api/libopencor/solversecondorderrungekutta.h @@ -23,7 +23,8 @@ namespace libOpenCOR { /** * @brief The SolverSecondOrderRungeKutta class. * - * The SolverSecondOrderRungeKutta class is used to represent the second-order Runge-Kutta solver. + * The SolverSecondOrderRungeKutta class is used to represent the + * second-order Runge-Kutta solver. */ class LIBOPENCOR_EXPORT SolverSecondOrderRungeKutta: public SolverOdeFixedStep diff --git a/src/misc/compiler.cpp b/src/misc/compiler.cpp index 0337bc7db..48be97c24 100644 --- a/src/misc/compiler.cpp +++ b/src/misc/compiler.cpp @@ -504,8 +504,8 @@ bool Compiler::Impl::compile(const std::string &pCode, const Strings &pEntryPoin // for // clang -O3 -fno-math-errno -fno-trapping-math -fno-stack-protector -funroll-loops -march=native // (with -mcpu=native rather than -march=native on AArch64), and our IR generator only needs to know about the - // parts of it that depend on our target. For our WASM version, it is the IR for wasm32-unknown-emscripten with - // -fvisibility=hidden and a static relocation model (we don't link our code, we just instantiate it). + // parts of it that depend on our target. For our WASM version, it is the IR for wasm32-unknown-emscripten + // with -fvisibility=hidden and a static relocation model (we don't link our code, we just instantiate it). static const auto irGeneratorTarget {[&targetMachine] { IrGeneratorTarget res; @@ -618,9 +618,10 @@ bool Compiler::Impl::compile(const std::string &pCode, const Strings &pEntryPoin llvmContext->setDiscardValueNames(true); #if defined(BUILDING_ON_MACOS) && defined(BUILDING_ON_ARM) - // Skip LLVM's machine instruction scheduler on Apple Silicon since, there, it accounts for about a third of the time - // it takes to compile a big model (AArch64 schedules in both directions while tracking register pressure) while it - // makes no measurable difference to the time it takes to compute it (Apple's cores are wide out-of-order cores). + // Skip LLVM's machine instruction scheduler on Apple Silicon since, there, it accounts for about a third of the + // time it takes to compile a big model (AArch64 schedules in both directions while tracking register pressure) + // while it makes no measurable difference to the time it takes to compute it (Apple's cores are wide out-of-order + // cores). // Note: an OptPassGate is given the argument of a (legacy) pass, i.e. "machine-scheduler" in our case. class NoMachineSchedulerPassGate: public llvm::OptPassGate @@ -705,14 +706,14 @@ bool Compiler::Impl::compile(const std::string &pCode, const Strings &pEntryPoin // Determine the size of the stack that our WebAssembly code needs (see initialiseWorkerWasm() in // cellmlfileruntime.cpp). - // Note: WebAssembly keeps our values in its own locals, so the only memory that our code uses on its stack (which is - // in linear memory and has no guard page) is that of our allocas. Also, our code is never re-entered: our - // functions may call nlaSolve(), which runs on the stack of our main WebAssembly module and calls our objective - // functions, which themselves don't call any of our functions. So, the memory needed by all of our allocas is - // an upper bound on the size of the stack that our code needs, as long as our allocas are static (i.e. they - // have a fixed size and are in the entry block of their function otherwise they would allocate some memory - // each time they are executed). We align each of our functions' frames to 16 bytes, as the WebAssembly - // backend does. + // Note: WebAssembly keeps our values in its own locals, so the only memory that our code uses on its stack (which + // is in linear memory and has no guard page) is that of our allocas. Also, our code is never re-entered: our + // functions may call nlaSolve(), which runs on the stack of our main WebAssembly module and calls our + // objective functions, which themselves don't call any of our functions. So, the memory needed by all of our + // allocas is an upper bound on the size of the stack that our code needs, as long as our allocas are static + // (i.e. they have a fixed size and are in the entry block of their function otherwise they would allocate + // some memory each time they are executed). We align each of our functions' frames to 16 bytes, as the + // WebAssembly backend does. static constexpr uint64_t WASM_STACK_ALIGNMENT {16}; diff --git a/src/misc/irgenerator.cpp b/src/misc/irgenerator.cpp index 7a88a7fc5..8fb6a8ee5 100644 --- a/src/misc/irgenerator.cpp +++ b/src/misc/irgenerator.cpp @@ -1801,8 +1801,8 @@ class Parser // A postfix expression preceded by some unary operators and/or casts, which apply from right to left, i.e. // -(double) !x is -((double) (!x)). // Note: this is where we keep track of the nesting depth of our expressions since a parenthesised expression, a - // subscript, an argument, and the second operand of the conditional operator are all parsed from here, and - // since our unary operators and casts are nested in one another. + // subscript, an argument, and the second operand of the conditional operator are all parsed from here, + // and since our unary operators and casts are nested in one another. DepthGuard depthGuard(mDepth); @@ -2116,8 +2116,8 @@ class Parser return res; } - // Note: as in C, an integer constant with a leading 0 is an octal constant, and an integer constant is an int if - // it fits in one, otherwise a long long (and it must fit in one). + // Note: as in C, an integer constant with a leading 0 is an octal constant, and an integer constant is an int + // if it fits in one, otherwise a long long (and it must fit in one). uint64_t value {0}; diff --git a/src/misc/utils.cpp b/src/misc/utils.cpp index e5a1d9ebc..6b84f52ba 100644 --- a/src/misc/utils.cpp +++ b/src/misc/utils.cpp @@ -1429,7 +1429,8 @@ std::optional parseInt(const std::string &pString) { // Parse the given string as an int value, i.e. as 0 or as a non-zero decimal number with an optional sign, no // leading zero, and an optional non-negative exponent (e.g., "-123" or "1e3", i.e. 1000), i.e. whether it matches - // "^([-+]?[1-9][0-9]*([eE][+]?[0-9]+)?|0)$", which value must fit in an int (e.g., "1e10" is not a valid int value). + // "^([-+]?[1-9][0-9]*([eE][+]?[0-9]+)?|0)$", which value must fit in an int (e.g., "1e10" is not a valid int + // value). // Note: we compute the absolute value of the int value using a 64-bit integer and stop as soon as it is too big, so // that it never overflows. Also, since that absolute value is at least 1, an exponent of 10 or more would // always result in a value that is too big. diff --git a/src/sed/sedinstancetask.cpp b/src/sed/sedinstancetask.cpp index 1ee64523b..acfcb64e9 100644 --- a/src/sed/sedinstancetask.cpp +++ b/src/sed/sedinstancetask.cpp @@ -664,8 +664,8 @@ void SedInstanceTask::Impl::run(double pVoiStart, double pVoiEnd, double pVoiInt // Note #2: we compute our variables even when we don't track our results (i.e. when we run our simulation from // its initial time to its output start time). Indeed, computeVariables() may solve some NLA systems, // which use the current value of their unknowns as an initial guess, so computing them at each output - // interval keeps that initial guess close to the solution. Otherwise, computeVariables() is cheap since - // most of our algebraic variables are computed by computeRates(). + // interval keeps that initial guess close to the solution. Otherwise, computeVariables() is cheap + // since most of our algebraic variables are computed by computeRates(). computeRates(mVoi, mStates, mRates, mConstants, mComputedConstants, mAlgebraicVariables); computeVariablesForDifferentialModel(mVoi, mStates, mRates, mConstants, mComputedConstants, mAlgebraicVariables); diff --git a/src/sed/sedmodel.cpp b/src/sed/sedmodel.cpp index 195b84566..541cf56d4 100644 --- a/src/sed/sedmodel.cpp +++ b/src/sed/sedmodel.cpp @@ -208,8 +208,8 @@ void SedModel::Impl::serialise(xmlNodePtr pNode) const source = std::move(encodedSource); } - // A relative model source which first segment contains a colon (e.g., "my:model.cellml") would be mistaken for a URI - // with a scheme (i.e. "my"), so we prefix it with "./" (i.e. "./my:model.cellml"), as recommended by + // A relative model source which first segment contains a colon (e.g., "my:model.cellml") would be mistaken for a + // URI with a scheme (i.e. "my"), so we prefix it with "./" (i.e. "./my:model.cellml"), as recommended by // https://www.rfc-editor.org/rfc/rfc3986#section-4.2. // Note: a model source is relative if we were given a base path (see relativePath()) or if the file name of a local // model is relative (see urlPath()). An absolute file name, including one with the drive letter of a Windows diff --git a/src/solver/solverkinsol.cpp b/src/solver/solverkinsol.cpp index fd46fd9b7..fd5818ad5 100644 --- a/src/solver/solverkinsol.cpp +++ b/src/solver/solverkinsol.cpp @@ -454,8 +454,8 @@ bool SolverKinsol::Impl::solve(ComputeObjectiveFunction pComputeObjectiveFunctio ASSERT_EQ(KINSetLinearSolver(kinsolObjects.solver, kinsolObjects.sunLinearSolver, kinsolObjects.sunMatrix), KINLS_SUCCESS); - // Keep track of the linear solver settings with which our KINSOL objects were created and of the fact that their - // linear solver has yet to be set up. + // Keep track of the linear solver settings with which our KINSOL objects were created and of the fact that + // their linear solver has yet to be set up. kinsolObjects.linearSolver = mLinearSolver; kinsolObjects.upperHalfBandwidth = mUpperHalfBandwidth; diff --git a/src/support/cellml/cellmlfileruntime.cpp b/src/support/cellml/cellmlfileruntime.cpp index 91182e092..5b6880b8d 100644 --- a/src/support/cellml/cellmlfileruntime.cpp +++ b/src/support/cellml/cellmlfileruntime.cpp @@ -175,8 +175,8 @@ CellmlFileRuntime::Impl::Impl(const CellmlFilePtr &pCellmlFile, const SolverNlaP if (pNlaSolver != nullptr) { // Note: both uintptr_t and size_t are defined as follows: - // - Emscripten (wasm32): unsigned int (which is the same as unsigned long on 32 bits, which is what we - // use here); + // - Emscripten (wasm32): unsigned int (which is the same as unsigned long on 32 bits, which is what + // we use here); // - Windows (64 bits): unsigned long long; and // - Linux/macOS (64 bits): unsigned long. @@ -242,8 +242,8 @@ extern void nlaSolve(uintptr_t nlaSolverAddress, void (*objectiveFunction)(doubl // Compile the generated code. // Note: only our four methods need to be accessible from outside of our generated code (our objective functions - // are only ever passed to nlaSolve() by our generated code), so we let our compiler know about them, so that - // all our other functions (e.g., findRoot0()) can be made internal. + // are only ever passed to nlaSolve() by our generated code), so we let our compiler know about them, so + // that all our other functions (e.g., findRoot0()) can be made internal. static const Strings ENTRY_POINTS {"initialiseArrays", "computeComputedConstants", "computeRates", "computeVariables"}; @@ -429,8 +429,8 @@ EM_JS(int, initialiseWorkerWasmJS, (int wasmModuleId, const void* wasmBytesPtr, nlaSolve: _wasmNlaSolve, // Arithmetic operators. - // Note: LLVM may optimise pow(b, x), where b is a power of two (e.g., 2.0, 4.0, or 0.5), to exp2(n*x), so we - // also need exp2(). + // Note: LLVM may optimise pow(b, x), where b is a power of two (e.g., 2.0, 4.0, or 0.5), to exp2(n*x), so + // we also need exp2(). pow: _pow, sqrt: _sqrt, diff --git a/src/support/cellml/cellmlfileruntime_p.h b/src/support/cellml/cellmlfileruntime_p.h index 1193a952c..91bb90fdb 100644 --- a/src/support/cellml/cellmlfileruntime_p.h +++ b/src/support/cellml/cellmlfileruntime_p.h @@ -34,8 +34,8 @@ class CellmlFileRuntime::Impl: public Logger::Impl int mWasmModuleId {0}; - // The size, in bytes, of the stack of our WebAssembly instances (see initialiseWorkerWasm()), i.e. the size that our - // compiler tells us our WebAssembly code needs plus a safety margin. + // The size, in bytes, of the stack of our WebAssembly instances (see initialiseWorkerWasm()), i.e. the size that + // our compiler tells us our WebAssembly code needs plus a safety margin. static constexpr size_t WASM_STACK_MARGIN_SIZE {65536}; diff --git a/src/support/combine/combinearchive.cpp b/src/support/combine/combinearchive.cpp index 4343c41d6..56bfe4977 100644 --- a/src/support/combine/combinearchive.cpp +++ b/src/support/combine/combinearchive.cpp @@ -240,8 +240,8 @@ CombineArchive::Impl::Impl(const FilePtr &pFile, libcombine::CombineArchive *pAr // Determine the master file, if none was specified. // Note: the master attribute is optional, so if no master file was specified then we consider the SED-ML file to be // the master file, if there is only one SED-ML file, or the CellML file to be the master file, if there is no - // SED-ML file and only one CellML file. Otherwise, it is up to the user (or a tool like Web OpenCOR) to decide - // which file should be used. + // SED-ML file and only one CellML file. Otherwise, it is up to the user (or a tool like Web OpenCOR) to + // decide which file should be used. if (mMasterFile == nullptr) { if (mSedmlFileCount == 1) { diff --git a/src/support/sedml/sedmlfile.cpp b/src/support/sedml/sedmlfile.cpp index ed017cb2b..8f6cd3856 100644 --- a/src/support/sedml/sedmlfile.cpp +++ b/src/support/sedml/sedmlfile.cpp @@ -275,7 +275,8 @@ NlaSolverInfo SedmlFile::Impl::legacyNlaSolver(const libsedml::SedSimulation *se for (unsigned int j {0}; j < nlaSolverNode.getNumChildren(); ++j) { const auto &nlaSolverPropertyNode {nlaSolverNode.getChild(j)}; - // Convert the properties to a pointer to libsedml::SedAlgorithm so that we can then call SolverKinsol::Impl::populate() on it. + // Convert the properties to a pointer to libsedml::SedAlgorithm so that we can then call + // SolverKinsol::Impl::populate() on it. if ((nlaSolverPropertyNode.getURI() == OPENCOR_NAMESPACE) && (nlaSolverPropertyNode.getName() == "solverProperty")) { diff --git a/tests/api/sed/concurrenttests.cpp b/tests/api/sed/concurrenttests.cpp index 3a93194c0..6c597f5d2 100644 --- a/tests/api/sed/concurrenttests.cpp +++ b/tests/api/sed/concurrenttests.cpp @@ -159,8 +159,8 @@ TEST(ConcurrentSedTest, parallelAsyncLifecycle) TEST(ConcurrentSedTest, parallelInstancesWithNlaSystems) { - // Make sure that simulations of a model with NLA systems don't interfere with one another when run in parallel, i.e. - // that they give the same results as when run sequentially. + // Make sure that simulations of a model with NLA systems don't interfere with one another when run in parallel, + // i.e. that they give the same results as when run sequentially. static const auto INSTANCE_COUNT {3U}; diff --git a/tests/api/sed/instancetests.cpp b/tests/api/sed/instancetests.cpp index 564e5094d..85d13c5de 100644 --- a/tests/api/sed/instancetests.cpp +++ b/tests/api/sed/instancetests.cpp @@ -1887,9 +1887,9 @@ TEST(InstanceSedTest, odeModelResultsReusedWhenRunAgain) TEST(InstanceSedTest, odeModelWithRoundingErrorOnOutputEndTime) { - // Note: with an output start time of -1, an output end time of 0, and 49 steps, the time of the last step is computed - // as -1 + 49 * (1 / 49), which is not exactly 0 due to rounding errors. This used to result in an extra step - // being taken and its results being written past the end of our results arrays. + // Note: with an output start time of -1, an output end time of 0, and 49 steps, the time of the last step is + // computed as -1 + 49 * (1 / 49), which is not exactly 0 due to rounding errors. This used to result in an + // extra step being taken and its results being written past the end of our results arrays. auto file {libOpenCOR::File::create(libOpenCOR::resourcePath("cellml_2.cellml"))}; auto document {libOpenCOR::SedDocument::create(file)}; diff --git a/tests/api/version/tests.cpp b/tests/api/version/tests.cpp index 88ff441c3..713923b2b 100644 --- a/tests/api/version/tests.cpp +++ b/tests/api/version/tests.cpp @@ -75,14 +75,14 @@ TEST(VersionTest, libcurl) { // Note: this has no JavaScript equivalent since our JavaScript bindings are built without libcurl. - EXPECT_EQ(0x081500U, libOpenCOR::libcurlVersion()); - EXPECT_EQ("8.21.0-DEV", libOpenCOR::libcurlVersionString()); + EXPECT_EQ(0x081700U, libOpenCOR::libcurlVersion()); + EXPECT_EQ("8.23.0-DEV", libOpenCOR::libcurlVersionString()); } TEST(VersionTest, libSEDML) { - EXPECT_EQ(20033U, libOpenCOR::libsedmlVersion()); - EXPECT_EQ("2.0.33", libOpenCOR::libsedmlVersionString()); + EXPECT_EQ(20034U, libOpenCOR::libsedmlVersion()); + EXPECT_EQ("2.0.34", libOpenCOR::libsedmlVersionString()); } TEST(VersionTest, LLVM) @@ -93,6 +93,6 @@ TEST(VersionTest, LLVM) TEST(VersionTest, SUNDIALS) { - EXPECT_EQ(0x070700U, libOpenCOR::sundialsVersion()); - EXPECT_EQ("7.7.0", libOpenCOR::sundialsVersionString()); + EXPECT_EQ(0x070900U, libOpenCOR::sundialsVersion()); + EXPECT_EQ("7.9.0", libOpenCOR::sundialsVersionString()); } diff --git a/tests/bindings/javascript/sed.concurrent.test.js b/tests/bindings/javascript/sed.concurrent.test.js index d60c0d5c1..55a3034e6 100644 --- a/tests/bindings/javascript/sed.concurrent.test.js +++ b/tests/bindings/javascript/sed.concurrent.test.js @@ -136,8 +136,8 @@ test.describe('Sed concurrent tests', () => { }); test('Parallel instances with NLA systems', () => { - // Make sure that simulations of a model with NLA systems don't interfere with one another when run in parallel, i.e. - // that they give the same results as when run sequentially. + // Make sure that simulations of a model with NLA systems don't interfere with one another when run in parallel, + // i.e. that they give the same results as when run sequentially. const INSTANCE_COUNT = 3; diff --git a/tests/bindings/javascript/version.test.js b/tests/bindings/javascript/version.test.js index f4bdd8465..4371ffb68 100644 --- a/tests/bindings/javascript/version.test.js +++ b/tests/bindings/javascript/version.test.js @@ -80,8 +80,8 @@ test.describe('Version tests', () => { }); test('libSEDML', () => { - assert.strictEqual(loc.libsedmlVersion(), 20033); - assert.strictEqual(loc.libsedmlVersionString(), '2.0.33'); + assert.strictEqual(loc.libsedmlVersion(), 20034); + assert.strictEqual(loc.libsedmlVersionString(), '2.0.34'); // The version is a number and the version string is a string. // Note: this has no C++ equivalent since C++ is statically typed. @@ -102,8 +102,8 @@ test.describe('Version tests', () => { }); test('SUNDIALS', () => { - assert.strictEqual(loc.sundialsVersion(), 0x070700); - assert.strictEqual(loc.sundialsVersionString(), '7.7.0'); + assert.strictEqual(loc.sundialsVersion(), 0x070900); + assert.strictEqual(loc.sundialsVersionString(), '7.9.0'); // The version is a number and the version string is a string. // Note: this has no C++ equivalent since C++ is statically typed. diff --git a/tests/bindings/python/test_sed_instance.py b/tests/bindings/python/test_sed_instance.py index 231b015d9..8e37fe899 100644 --- a/tests/bindings/python/test_sed_instance.py +++ b/tests/bindings/python/test_sed_instance.py @@ -1860,9 +1860,9 @@ def test_ode_model_results_reused_when_run_again(): def test_ode_model_with_rounding_error_on_output_end_time(): - # Note: with an output start time of -1, an output end time of 0, and 49 steps, the time of the last step is computed - # as -1 + 49 * (1 / 49), which is not exactly 0 due to rounding errors. This used to result in an extra step - # being taken and its results being written past the end of our results arrays. + # Note: with an output start time of -1, an output end time of 0, and 49 steps, the time of the last step is + # computed as -1 + 49 * (1 / 49), which is not exactly 0 due to rounding errors. This used to result in an + # extra step being taken and its results being written past the end of our results arrays. file = loc.File(utils.resource_path("cellml_2.cellml")) document = loc.SedDocument(file) diff --git a/tests/bindings/python/test_version.py b/tests/bindings/python/test_version.py index e368b2285..ab23c9ed7 100644 --- a/tests/bindings/python/test_version.py +++ b/tests/bindings/python/test_version.py @@ -80,8 +80,8 @@ def test_libcombine(): def test_libcurl(): # Note: this has no JavaScript equivalent since our JavaScript bindings are built without libcurl. - assert loc.libcurl_version() == 0x081500 - assert loc.libcurl_version_string() == "8.21.0-DEV" + assert loc.libcurl_version() == 0x081700 + assert loc.libcurl_version_string() == "8.23.0-DEV" # The version is an integer and the version string is a string. # Note: this has no C++ equivalent since C++ is statically typed. @@ -91,8 +91,8 @@ def test_libcurl(): def test_libsedml(): - assert loc.libsedml_version() == 20033 - assert loc.libsedml_version_string() == "2.0.33" + assert loc.libsedml_version() == 20034 + assert loc.libsedml_version_string() == "2.0.34" # The version is an integer and the version string is a string. # Note: this has no C++ equivalent since C++ is statically typed. @@ -113,8 +113,8 @@ def test_llvm(): def test_sundials(): - assert loc.sundials_version() == 0x070700 - assert loc.sundials_version_string() == "7.7.0" + assert loc.sundials_version() == 0x070900 + assert loc.sundials_version_string() == "7.9.0" # The version is an integer and the version string is a string. # Note: this has no C++ equivalent since C++ is statically typed. diff --git a/tests/misc/compilertests.cpp b/tests/misc/compilertests.cpp index 8340ff7ec..3f8f59af7 100644 --- a/tests/misc/compilertests.cpp +++ b/tests/misc/compilertests.cpp @@ -412,8 +412,8 @@ double pointers(S *s, S *t) { return ((s ? s : t)->x) + (!s ? 1.0 : 0.0); } EXPECT_EQ((a > 0.0) ? 1.0 : 2.0, function(mCompiler, "integers")(a)); EXPECT_EQ((a > 0.0) ? 1.0 : 2.0, function(mCompiler, "voidArms")(a)); - // Note: we use a volatile variable for -a since MSVC would otherwise turn (a > 0.0) ? a : -a into fabs(a), which - // is wrong for a = 0.0 (i.e. we would get 0.0 rather than -0.0). + // Note: we use a volatile variable for -a since MSVC would otherwise turn (a > 0.0) ? a : -a into fabs(a), + // which is wrong for a = 0.0 (i.e. we would get 0.0 rather than -0.0). const volatile double minusA {-a}; diff --git a/tests/misc/utils.cpp b/tests/misc/utils.cpp index 107a03628..1c57b4d69 100644 --- a/tests/misc/utils.cpp +++ b/tests/misc/utils.cpp @@ -104,7 +104,8 @@ TEST(UtilsTest, decodeUrl) EXPECT_EQ(libOpenCOR::decodeUrl("%XX"), "%XX"); EXPECT_EQ(libOpenCOR::decodeUrl("%2X"), "%2X"); - // Don't decode the reserved characters, the percent sign, and the backslash, but uppercase their hexadecimal digits. + // Don't decode the reserved characters, the percent sign, and the backslash, but uppercase their hexadecimal + // digits. EXPECT_EQ(libOpenCOR::decodeUrl("%20!%22#$%25&'()*+,-./0123456789:;%3C=%3E?@ABCDEFGHIJKLMNOPQRSTUVWXYZ%5B%5C%5D%5E_%60abcdefghijklmnopqrstuvwxyz%7B%7C%7D~", false), " !\"#$%25&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ%5B%5C%5D^_`abcdefghijklmnopqrstuvwxyz{|}~");