Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BugFix Temperature units in disk #55

Merged
merged 2 commits into from
Feb 10, 2025
Merged

BugFix Temperature units in disk #55

merged 2 commits into from
Feb 10, 2025

Conversation

adamdempsey90
Copy link
Collaborator

@adamdempsey90 adamdempsey90 commented Feb 6, 2025

Background

  • Add the correct kb/mu factors to the disk temperature profile.
  • Allow constant viscosity
  • Force -O3 in RelWithDebInfo builds

Closes #53
Closes #54

Description of Changes

Checklist

  • New features are documented
  • Tests added for bug fixes and new features
  • (@lanl.gov employees) Update copyright on changed files

@adamdempsey90
Copy link
Collaborator Author

Note also that for the cooling package, you have to include the correct kb/mu in you input file if you previously defined it as P/rho

src/pgen/disk.hpp Show resolved Hide resolved
src/pgen/disk.hpp Show resolved Hide resolved
@@ -25,6 +25,10 @@ option(ARTEMIS_ENABLE_OPENMP "Enable OpenMP for artemis and parthenon" OFF)
option(ARTEMIS_ENABLE_COMPILE_TIMING "Enable timing of compilation of artemis" ON)
option(ARTEMIS_ENABLE_ASAN "Enable AddressSanitizer to detect memory errors" OFF)

# Force -03 optimization for RelWithDebInfo
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O3 -g -DNDEBUG" CACHE STRING "Force -O3 in RelWithDebInfo mode" FORCE)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is -O3 always safe? I wonder if there is a good reason why parth doesn't use it by default for release. Maybe it is they avoid it due to extended compile times and/or memory useage?

@shengtai
Copy link
Collaborator

shengtai commented Feb 6, 2025 via email

@adamdempsey90 adamdempsey90 merged commit e149b2b into develop Feb 10, 2025
4 checks passed
@adamdempsey90 adamdempsey90 deleted the dempsey/disk branch February 10, 2025 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

-O3 in releases TempProfile in disk pgen needs units
3 participants