Skip to content

Commit 6210f6d

Browse files
authored
Merge pull request #302 from LLNL/feature/ASPHv2
New ASPH H update algorithm
2 parents 5dd6f94 + 9aa1a58 commit 6210f6d

File tree

331 files changed

+12282
-10342
lines changed

Some content is hidden

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

331 files changed

+12282
-10342
lines changed

.gitlab/os.yml

-8
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,6 @@
77
UPSTREAM_DIR: /usr/WS2/sduser/Spheral/spack_upstream/0.22
88
DISPLAY: ':0.0'
99

10-
.on_toss_3_x86:
11-
variables:
12-
ARCH: 'toss_3_x86_64_ib'
13-
GCC_VERSION: '8.3.1'
14-
CLANG_VERSION: '9.0.0'
15-
SPHERAL_BUILDS_DIR: /p/lustre1/sphapp/spheral-ci-builds
16-
extends: [.sys_config]
17-
1810
.on_toss_4_x86:
1911
variables:
2012
ARCH: 'toss_4_x86_64_ib'

.gitlab/specs.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
.gcc_mvapich2_cxxonly:
55
variables:
66
SPEC: 'gcc@$GCC_VERSION^mvapich2'
7-
EXTRA_CMAKE_ARGS: '-DENABLE_CXXONLY=On'
7+
EXTRA_CMAKE_ARGS: '-DENABLE_CXXONLY=On -DENABLE_WARNINGS_AS_ERRORS=On'
88

99
.gcc_mvapich2:
1010
variables:
@@ -24,11 +24,11 @@
2424
.gcc_spectrum:
2525
variables:
2626
SPEC: 'gcc@$GCC_VERSION^spectrum-mpi'
27-
EXTRA_CMAKE_ARGS: '-DENABLE_DEV_BUILD=On'
2827

2928
.clang_mvapich2:
3029
variables:
3130
SPEC: 'clang@$CLANG_VERSION^mvapich2'
31+
EXTRA_CMAKE_ARGS: '-DENABLE_WARNINGS_AS_ERRORS=On -DENABLE_DEV_BUILD=On'
3232

3333
.cuda_11_gcc_~mpi:
3434
variables:

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# sudo env DOCKERBUILDKIT=1 docker build . --target spheral-build-env-local --tag spheral-build-env (--progress=plain)
33
# Optional Arguments:
44
# --progress=plain : Prints plain output to terminal instead of windowed version.
5-
# --build-args SPEC=... : Specify optional build argument to override. Defualt = gcc
5+
# --build-args SPEC=... : Specify optional build argument to override. Default = gcc
66
# e.g. --build-args SPEC=clang
77

88
# To build and run a spheral test:

RELEASE_NOTES.md

+16
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,16 @@ Notable changes include:
1818
* Caliper updated v2.11.
1919
* Adiak added as TPL.
2020
* Created singleton wrapper for cali::ConfigManger and python wrapped Caliper timer and Adiak routines.
21+
* New ASPH idealH algorithm implemented, which is much more robust and accurate as H elongations become extreme.
22+
* New experimental hourglass control algorithm implemented, along with some basic tests/demonstrations.
23+
* H update algorithms converted to their own independent physics packages, no longer part of the various hydro packages.
24+
* Physics interface updated slightly:
25+
* Physics::postStateUpdate now returns a bool indicating if boundary conditions should be enforced again.
26+
* Physics packages can now have Physics sub-packages, which can be run before or after the main package. The SpheralController
27+
now checks for these packages and adds them to the physics package list as needed.
28+
* Physics packages can indicate if they require Voronoi cell information be available. If so, a new package which computes and
29+
updates the Voronoi information is automatically added to the package list by the SpheralController (similar to how the
30+
Reproducing Kernel corrections are handled).
2131
2232
* Build changes / improvements:
2333
* Distributed source directory must always be built now.
@@ -28,10 +38,16 @@ Notable changes include:
2838
* The SVPH package is now optional (SPHERAL\_ENABLE\_SVPH).
2939
* Cleaner Spheral Spack package.
3040
* ENABLE\_DEV\_BUILD can now export targets properly.
41+
* Added a GCC flag to prevent building variable tracking symbols when building PYB11 modules. This is unnecessary, and
42+
on some platforms trying to build such symbols is very expensive and in some cases fails.
3143
3244
* Bug Fixes / improvements:
3345
* Wrappers for MPI calls are simplified and improved.
3446
* Time step estimate due to velocity divergence in RZ space has been fixed.
47+
* Fixed tolerances for ANEOS equation of state temperature lookup
48+
* Clang C++ warnings have eliminated, so the Clang CI tests have been updated to treat warnings as errors.
49+
* Fix for installing libraries when building individual package WITH ENABLE_DEV_BUILD=On.
50+
* Bugfix for RZ solid CRKSPH with compatible energy.
3551
3652
Version v2024.06.1 -- Release date 2024-07-09
3753
==============================================

cmake/Compilers.cmake

+21-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ option(ENABLE_MISSING_INCLUDE_DIR_WARNINGS "show unused parameter warnings" ON)
1414
set(CXX_WARNING_FLAGS "")
1515
if (ENABLE_WARNINGS)
1616
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
17-
list(APPEND CXX_WARNING_FLAGS -Wno-unused-command-line-argument -Wno-c++17-extensions)
17+
list(APPEND CXX_WARNING_FLAGS -fdiagnostics-show-option -Wno-unused-command-line-argument -Wno-c++17-extensions)
1818
endif()
1919
else()
2020
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -w")
@@ -59,7 +59,6 @@ message("-- using warning flags ${CXX_WARNING_FLAGS}")
5959
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -Wno-missing-include-dirs")
6060
message("-- Fortran flags: ${CMAKE_Fortran_FLAGS}")
6161

62-
6362
#-------------------------------------------------------------------------------
6463
# PYB11 Target Flags
6564
#-------------------------------------------------------------------------------
@@ -75,7 +74,8 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
7574
-Wno-delete-abstract-non-virtual-dtor)
7675
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
7776
list(APPEND SPHERAL_PYB11_TARGET_FLAGS
78-
-Wno-pedantic)
77+
-Wno-pedantic
78+
-fno-var-tracking-assignments)
7979
endif()
8080

8181
#-------------------------------------------------------------------------------
@@ -85,3 +85,21 @@ if(${CMAKE_CXX_COMPILER_ID} STREQUAL "Intel")
8585
set(CMAKE_CXX_FLAGS -wd11074,11076,654)
8686
set(SPHERAL_PYB11_TARGET_FLAGS )
8787
endif()
88+
89+
#-------------------------------------------------------------------------------
90+
# BlueOS specific flags
91+
#-------------------------------------------------------------------------------
92+
if (DEFINED ENV{SYS_TYPE})
93+
if ("$ENV{SYS_TYPE}" STREQUAL "blueos_3_ppc64le_ib_p9")
94+
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
95+
set(CXX_BLUEOS_FLAGS "-Os") # Needed to prevent relocation overflow errors during link
96+
add_compile_options("$<$<COMPILE_LANGUAGE:CXX>:${CXX_BLUEOS_FLAGS}>")
97+
message("-- Adding ${CXX_BLUEOS_FLAGS} to C++ compile flags")
98+
endif()
99+
endif()
100+
endif()
101+
#set(CXX_STRIP_FLAGS "-fdata-sections;-ffunction-sections")
102+
#set(CXX_LINK_STRIP_FLAGS "-Wl,--gc-sections")
103+
#set(CXX_LINK_STRIP_FLAGS "-Wl,-z combreloc")
104+
#add_link_options("${CXX_LINK_STRIP_FLAGS}")
105+

scripts/devtools/spec-list.json

-6
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@
66
77
]
88
,
9-
"toss_3_x86_64_ib": [
10-
11-
12-
13-
]
14-
,
159
"blueos_3_ppc64le_ib_p9": [
1610
1711
"[email protected]+cuda~mpi cuda_arch=70",

scripts/spack/configs/blueos_3_ppc64le_ib/packages.yaml

+2-3
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ packages:
3737
- 11.1.0
3838
- 11.0.2
3939
- 10.1.243
40-
- 10.1.168
4140
buildable: false
4241
externals:
4342
- spec: [email protected]~allow-unsupported-compilers
@@ -46,8 +45,6 @@ packages:
4645
prefix: /usr/tce/packages/cuda/cuda-11.0.2
4746
- spec: [email protected]~allow-unsupported-compilers
4847
prefix: /usr/tce/packages/cuda/cuda-10.1.243
49-
- spec: [email protected]+allow-unsupported-compilers
50-
prefix: /usr/tce/packages/cuda/cuda-10.1.168
5148

5249
spectrum-mpi:
5350
externals:
@@ -59,6 +56,8 @@ packages:
5956
prefix: /usr/tce/packages/spectrum-mpi/spectrum-mpi-rolling-release-gcc-8.3.1
6057
6158
prefix: /usr/tce/packages/spectrum-mpi/spectrum-mpi-rolling-release-gcc-4.9.3
59+
60+
prefix: /usr/tce/packages/spectrum-mpi/spectrum-mpi-rolling-release-gcc-10.2.1
6261
6362
prefix: /usr/tce/packages/spectrum-mpi/spectrum-mpi-rolling-release-clang-9.0.0
6463

scripts/spack/configs/toss_3_x86_64_ib/compilers.yaml

-56
This file was deleted.

scripts/spack/configs/toss_3_x86_64_ib/packages.yaml

-154
This file was deleted.

src/Boundary/ConstantBoundary.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ restoreState(const FileIO& file, const string& pathName) {
284284
vector<std::string> keys;
285285
file.read(keys, pathName + "/keys");
286286
mBufferedValues.clear();
287-
for (const auto key: keys) {
287+
for (const auto& key: keys) {
288288
std::string val;
289289
file.read(val, pathName + "/BufferedValues/" + key);
290290
mBufferedValues[key] = vector<char>(val.begin(), val.end());

0 commit comments

Comments
 (0)