Skip to content

Commit 6c3aa5f

Browse files
Merge pull request #62 from awslabs/sjg/release-0.11.2
Release v0.11.2
2 parents 5ced770 + 51e231c commit 6c3aa5f

File tree

6 files changed

+47
-15
lines changed

6 files changed

+47
-15
lines changed

CHANGELOG.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ The format of this changelog is based on
1111
[Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to
1212
[Semantic Versioning](https://semver.org/).
1313

14-
## In progress
14+
## [0.11.2] - 2023-07-14
1515

1616
- Changed layout and names of `palace/` source directory for better organization.
1717
- Fixed a regression bug affecting meshes which have domain elements which are not
@@ -20,9 +20,10 @@ The format of this changelog is based on
2020
dependencies relying instead directly on CMake's ExternalProject, patch GSLIB dependency
2121
for shared library builds, add CI tests with ARPACK-NG instead of SLEPc, update all
2222
dependency versions including MFEM to incorporate bug fixes and improvements. This
23-
affects the Spack package recipe, so a new recipe is distributed as part of the Palace
24-
repository which will keep compatibility with `main` while changes are upstreamed to
23+
affects the Spack package recipe, so a new recipe is distributed as part of Palace in
24+
in `spack/` which will keep compatibility with `main` while changes are upstreamed to
2525
the built-in Spack repository.
26+
- Add a basic Makefile with some useful targets for development.
2627

2728
## [0.11.1] - 2023-05-03
2829

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ if("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}")
1414
endif()
1515

1616
# Initialize the project
17-
project(palace-superbuild LANGUAGES CXX C VERSION 0.11.1)
17+
project(palace-superbuild LANGUAGES CXX C VERSION 0.11.2)
1818

1919
# Define build settings and defaults
2020
set(PALACE_WITH_64BIT_INT OFF CACHE BOOL "Use 64 bit integers")

Makefile

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
CLANG_FORMAT ?= clang-format
5+
JULIA ?= julia
6+
7+
.PHONY: format format-cpp format-jl docs tests
8+
9+
# Style/format
10+
format: format-cpp format-jl
11+
12+
format-cpp:
13+
./scripts/format-source -cpp --clang-format $(CLANG_FORMAT)
14+
15+
format-jl:
16+
./scripts/format-source -jl --julia $(JULIA)
17+
18+
# Documentation
19+
docs:
20+
$(RM) -r docs/build
21+
$(JULIA) --project=docs -e 'using Pkg; Pkg.instantiate()'
22+
$(JULIA) --project=docs --color=yes docs/make.jl
23+
24+
# Tests
25+
tests:
26+
$(JULIA) --project=test -e 'using Pkg; Pkg.instantiate()'
27+
$(JULIA) --project=test --color=yes test/runtests.jl

palace/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ set(CMAKE_CXX_STANDARD 17)
1919
set(CMAKE_CXX_EXTENSIONS OFF)
2020

2121
# Initialize the project
22-
project(palace LANGUAGES CXX VERSION 0.11.1)
22+
project(palace LANGUAGES CXX VERSION 0.11.2)
2323

2424
# Define build settings and defaults
2525
set(PALACE_WITH_OPENMP OFF CACHE BOOL "Use OpenMP")

palace/cmake/PkgConfigHelpers.cmake

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ int main()
4141
TS ts;
4242
int argc = 0;
4343
char **argv = NULL;
44-
PetscCall(PetscInitialize(&argc, &argv, PETSC_NULL, PETSC_NULL));
44+
PetscCall(PetscInitialize(&argc, &argv, PETSC_NULLPTR, PETSC_NULLPTR));
4545
PetscCall(TSCreate(PETSC_COMM_WORLD, &ts));
4646
PetscCall(TSSetFromOptions(ts));
4747
PetscCall(TSDestroy(&ts));
@@ -80,7 +80,7 @@ int main()
8080
EPS eps;
8181
int argc = 0;
8282
char **argv = NULL;
83-
PetscCall(SlepcInitialize(&argc, &argv, PETSC_NULL, PETSC_NULL));
83+
PetscCall(SlepcInitialize(&argc, &argv, PETSC_NULLPTR, PETSC_NULLPTR));
8484
PetscCall(EPSCreate(PETSC_COMM_SELF, &eps));
8585
PetscCall(EPSDestroy(&eps));
8686
PetscCall(SlepcFinalize());

scripts/format-source

+12-8
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ JuliaFormatter.jl
1313
Options:
1414
-h, --help Show this help message and exit
1515
-dry-run, --dry-run Only show changes without making them
16-
-no-cpp, --no-cpp Skip formatting of C++ files
17-
-no-jl, --no-jl Skip formatting of Julia files
16+
-cpp, --cpp Only format C++ files
17+
-jl, --jl Only format Julia files
1818
--clang-format COMMAND Executable command for clang-format
1919
--julia COMMAND Executable command for julia
2020
"
2121
}
2222

2323
# Parse arguments
24-
FORMAT_CPP="true"
25-
FORMAT_JL="true"
24+
FORMAT_CPP="false"
25+
FORMAT_JL="false"
2626
CLANG_FORMAT="clang-format"
2727
JULIA="julia"
2828
POSITIONAL=()
@@ -37,12 +37,12 @@ while [[ $# -gt 0 ]]; do
3737
DRY_RUN="--dry-run"
3838
shift
3939
;;
40-
-no-cpp|--no-cpp)
41-
FORMAT_CPP="false"
40+
-cpp|--cpp)
41+
FORMAT_CPP="true"
4242
shift
4343
;;
44-
-no-jl|--no-jl)
45-
FORMAT_JL="false"
44+
-jl|--jl)
45+
FORMAT_JL="true"
4646
shift
4747
;;
4848
--clang-format)
@@ -72,6 +72,10 @@ if [[ ! -z "$@" ]]; then
7272
help
7373
exit 1
7474
fi
75+
if ! $FORMAT_CPP && ! $FORMAT_JL; then
76+
FORMAT_CPP="true"
77+
FORMAT_JL="true"
78+
fi
7579

7680
SOURCE_DIR=$(dirname $(cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P ))
7781

0 commit comments

Comments
 (0)