Skip to content

Commit f64c649

Browse files
committed
Merge branch 'main' into release
2 parents e7d2d95 + cc68545 commit f64c649

File tree

89 files changed

+934
-1194
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+934
-1194
lines changed

.github/workflows/mac.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ concurrency:
1212
cancel-in-progress: true
1313

1414
jobs:
15-
xcode_macos_13:
16-
runs-on: macos-13
15+
xcode_macos_15_intel:
16+
runs-on: macos-15-intel
1717
continue-on-error: true
1818
strategy:
1919
matrix:
20-
# all available versions of xcode: https://github.com/actions/runner-images/blob/main/images/macos/macos-13-Readme.md#xcode
21-
xcode: ['14.1', '15.0']
20+
# all available versions of xcode: https://github.com/actions/runner-images/blob/main/images/macos/macos-15-Readme.md#xcode
21+
xcode: ['16.0', '16.1', '16.2']
2222
build_type: [Release]
2323
env:
2424
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer

.github/workflows/runner.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
name: Designated GPU Runner
22

3-
on:
3+
on:
44
push:
55
branches:
66
- main
77
pull_request:
88
workflow_dispatch:
9-
9+
1010
concurrency:
1111
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
1212
cancel-in-progress: true
1313

1414
jobs:
1515
cuda_tests:
16-
runs-on: gha-runner-micm
16+
runs-on:
17+
group: CIRRUS-4x16-gpu
1718
container:
18-
image: nvcr.io/nvidia/nvhpc:23.7-devel-cuda12.2-ubuntu22.04
19+
image: nvcr.io/nvidia/nvhpc:25.9-devel-cuda13.0-ubuntu24.04
1920
options: --gpus all
2021
steps:
2122
- uses: actions/checkout@v4
@@ -25,12 +26,12 @@ jobs:
2526
apt update
2627
apt install -y cmake g++
2728
28-
- name: Run Cmake
29+
- name: Run Cmake
2930
run: cmake -S . -B build -DMICM_GPU_TYPE="a10"
30-
31+
3132
- name: Copy cublas headers
3233
run: |
33-
cp -r /opt/nvidia/hpc_sdk/*/23.7/cuda/include/* /usr/include/
34+
cp -r /opt/nvidia/hpc_sdk/*/25.9/cuda/include/* /usr/include/
3435
3536
- name: Build
3637
run: cmake --build build --parallel 10

CITATION.cff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cff-version: 1.2.0
22
message: If you use this software, please cite it as below.
33
title: Model Independent Chemistry Module (MICM)
4-
version: v3.10.0
4+
version: v3.11.0
55
doi: "10.5281/zenodo.10472189"
66
authors:
77
- family-names: Dawson

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
cmake_minimum_required(VERSION 3.21)
44

55
# project and version must be on the same line so that the docs can extract it
6-
project(micm VERSION 3.10.0 LANGUAGES CXX)
6+
project(micm VERSION 3.11.0 LANGUAGES CXX)
77

88
if(NOT CMAKE_BUILD_TYPE)
99
set(CMAKE_BUILD_TYPE "Release" CACHE STRING

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ int main(const int argc, const char *argv[])
115115
auto bar = Species{ "Bar" };
116116
auto baz = Species{ "Baz" };
117117

118-
Phase gas_phase{ std::vector<Species>{ foo, bar, baz } };
118+
Phase gas_phase{ "gas", std::vector<PhaseSpecies>{ foo, bar, baz } };
119119

120120
System chemical_system{ SystemParameters{ .gas_phase_ = gas_phase } };
121121

@@ -161,7 +161,7 @@ int main(const int argc, const char *argv[])
161161
162162
To build and run the example using GNU (assuming the default install location):
163163
```
164-
g++ -o foo_chem foo_chem.cpp -I/usr/local/micm-3.10.0/include -std=c++20
164+
g++ -o foo_chem foo_chem.cpp -I/usr/local/micm-3.11.0/include -std=c++20
165165
./foo_chem
166166
```
167167

cmake/dependencies.cmake

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,18 +77,27 @@ if(MICM_ENABLE_TESTS)
7777
FetchContent_Declare(googletest
7878
GIT_REPOSITORY https://github.com/google/googletest.git
7979
GIT_TAG be03d00f5f0cc3a997d1a368bee8a1fe93651f48
80+
FIND_PACKAGE_ARGS NAMES GTest
8081
)
8182

8283
set(INSTALL_GTEST OFF CACHE BOOL "" FORCE)
8384
set(BUILD_GMOCK OFF CACHE BOOL "" FORCE)
8485

8586
FetchContent_MakeAvailable(googletest)
8687

87-
# don't run clang-tidy on google test
88-
set_target_properties(gtest PROPERTIES CXX_CLANG_TIDY "")
89-
set_target_properties(gtest_main PROPERTIES CXX_CLANG_TIDY "")
90-
# set_target_properties(gmock PROPERTIES CXX_CLANG_TIDY "")
91-
# set_target_properties(gmock_main PROPERTIES CXX_CLANG_TIDY "")
88+
# don't run clang-tidy on google test (only when fetched, not when using system install)
89+
if(TARGET gtest)
90+
set_target_properties(gtest PROPERTIES CXX_CLANG_TIDY "")
91+
endif()
92+
if(TARGET gtest_main)
93+
set_target_properties(gtest_main PROPERTIES CXX_CLANG_TIDY "")
94+
endif()
95+
if(TARGET gmock)
96+
set_target_properties(gmock PROPERTIES CXX_CLANG_TIDY "")
97+
endif()
98+
if(TARGET gmock_main)
99+
set_target_properties(gmock_main PROPERTIES CXX_CLANG_TIDY "")
100+
endif()
92101
endif()
93102

94103
################################################################################

docker/Dockerfile.coverage

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ RUN mkdir /build \
2727
-D MICM_ENABLE_CLANG_TIDY:BOOL=FALSE \
2828
-D MICM_ENABLE_COVERAGE:BOOL=TRUE \
2929
-D MICM_ENABLE_LLVM:BOOL=TRUE \
30-
-D MICM_ENABLE_PROFILE:BOOL=TRUE \
3130
# -D MICM_ENABLE_MPI:BOOL=TRUE \
3231
# -D MICM_ENABLE_OPENMP:BOOL=TRUE \
3332
../micm \

docker/Dockerfile.nvhpc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
# Container versions, and sizes, can be found at https://catalog.ngc.nvidia.com/orgs/nvidia/containers/nvhpc/tags
66
#
7-
FROM nvcr.io/nvidia/nvhpc:23.7-devel-cuda12.2-ubuntu22.04
7+
from nvcr.io/nvidia/nvhpc:25.1-devel-cuda12.6-ubuntu24.04
88

99
RUN apt update \
1010
&& apt -y install \
@@ -29,7 +29,7 @@ ENV FC=nvfortran
2929
COPY . /micm/
3030

3131
# copy headers needed for cublas to /usr/include
32-
RUN cp -r /opt/nvidia/hpc_sdk/*/23.7/cuda/include/* /usr/include/
32+
RUN cp -r /opt/nvidia/hpc_sdk/*/25.1/cuda/include/* /usr/include/
3333

3434
# build the library and run the tests
3535
RUN mkdir /build \

docs/source/_static/switcher.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[
22
{
3-
"name": "v3.10.0 (stable)",
4-
"version": "v3.10.0 (stable)",
3+
"name": "v3.11.0 (stable)",
4+
"version": "v3.11.0 (stable)",
55
"url": "https://ncar.github.io/micm"
66
},
77
{
@@ -54,6 +54,11 @@
5454
"version": "3.10.0",
5555
"url": "https://ncar.github.io/micm/versions/3.10.0"
5656
},
57+
{
58+
"name": "v3.11.0",
59+
"version": "3.11.0",
60+
"url": "https://ncar.github.io/micm/versions/3.11.0"
61+
},
5762
{
5863
"name": "dev",
5964
"version": "dev",

docs/source/user_guide/user_defined_rate_constant_tutorial.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ Finally, set and upate the rate constants as needed:
149149
while (elapsed_solve_time < time_step)
150150
{
151151
auto result = solver.Solve(time_step - elapsed_solve_time, state);
152-
elapsed_solve_time = result.final_time_;
152+
elapsed_solve_time = result.stats_.final_time_;;
153153
}
154154
155155
print_state(time_step * (i + 1), state);
@@ -185,7 +185,7 @@ Finally, set and upate the rate constants as needed:
185185
while (elapsed_solve_time < time_step)
186186
{
187187
auto result = solver.Solve(time_step - elapsed_solve_time, state);
188-
elapsed_solve_time = result.final_time_;
188+
elapsed_solve_time = result.stats_.final_time_;;
189189
}
190190
191191
print_state(time_step * (i + 1), state);

0 commit comments

Comments
 (0)