Skip to content

Commit b3995b2

Browse files
slayoojcurtis2
andauthored
cloud_parcel example (+env_state::air_density accessor +making condensation logic accessible by setting -DPMC_USE_SUNDIALS="1" during compilation of PyPartMC) (#339)
Co-authored-by: Jeffrey Curtis <[email protected]>
1 parent f03d19c commit b3995b2

File tree

10 files changed

+5388
-20
lines changed

10 files changed

+5388
-20
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ foreach(target _PyPartMC)
504504
$<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-Wno-unused-parameter>
505505
)
506506
endforeach()
507-
507+
target_compile_definitions(_PyPartMC PRIVATE PMC_USE_SUNDIALS="1")
508508
include(CheckCXXSourceCompiles)
509509
file(GLOB PyPartMC_headers ${CMAKE_SOURCE_DIR}/src/*.hpp)
510510
if (NOT "${CMAKE_REQUIRED_INCLUDES}" STREQUAL "")

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ Note: clicking the badges below redirects to cloud-computing platforms. The mybi
5555
[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/open-atmos/PyPartMC/blob/main/examples/mie_optical.ipynb)
5656
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/open-atmos/PyPartMC.git/main?urlpath=lab/tree/examples/mie_optical.ipynb)
5757
[![ARM JupyterHub](https://img.shields.io/static/v1?label=launch%20in&logo=jupyter&color=lightblue&message=ARM+JupyterHub)](https://jupyterhub.arm.gov/hub/user-redirect/git-pull?repo=https%3A//github.com/open-atmos/PyPartMC&branch=main&urlPath=)
58+
- Cloud parcel example:
59+
[![View notebook](https://img.shields.io/static/v1?label=render%20on&logo=github&color=87ce3e&message=GitHub)](https://github.com/open-atmos/PyPartMC/blob/main/examples/cloud_parcel.ipynb)
60+
[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/open-atmos/PyPartMC/blob/main/examples/cloud_parcel.ipynb)
61+
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/open-atmos/PyPartMC.git/main?urlpath=lab/tree/examples/cloud_parcel.ipynb)
62+
[![ARM JupyterHub](https://img.shields.io/static/v1?label=launch%20in&logo=jupyter&color=lightblue&message=ARM+JupyterHub)](https://jupyterhub.arm.gov/hub/user-redirect/git-pull?repo=https%3A//github.com/open-atmos/PyPartMC&branch=main&urlPath=)
5863

5964
## Features
6065

0 commit comments

Comments
 (0)