Skip to content

Commit fb2f1e6

Browse files
committed
Merge branch 'main' of https://github.com/dnpham23/palace
2 parents 4ad7bd6 + 1089040 commit fb2f1e6

10 files changed

Lines changed: 16 additions & 11 deletions

File tree

.github/workflows/build-and-test-linux.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,8 @@ jobs:
254254
- name: Configure Intel oneAPI compiler
255255
if: matrix.compiler == 'intel'
256256
run: |
257-
sudo apt-get install -y intel-oneapi-compiler-dpcpp-cpp=2024.2.1-1079 \
258-
intel-oneapi-compiler-fortran=2024.2.1-1079
257+
sudo apt-get install -y intel-oneapi-compiler-dpcpp-cpp \
258+
intel-oneapi-compiler-fortran
259259
260260
- name: Install math libraries (OpenBLAS)
261261
if: matrix.math-libs == 'openblas'
@@ -273,7 +273,7 @@ jobs:
273273
- name: Install math libraries (Intel oneAPI MKL)
274274
if: matrix.math-libs == 'intelmkl'
275275
run: |
276-
sudo apt-get install -y intel-oneapi-mkl=2024.2.2-15 intel-oneapi-mkl-devel=2024.2.2-15
276+
sudo apt-get install -y intel-oneapi-mkl intel-oneapi-mkl-devel
277277
278278
- name: Install math libraries (AOCL)
279279
if: matrix.math-libs == 'aocl'

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
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.14.0] - 2025-08-20
1515

1616
- Added `--version` command line flag for displaying Palace version information.
1717
- Fixed a small regression bug for boundary postprocessing when specifying

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ if(CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR)
1616
endif()
1717

1818
# Initialize the project
19-
project(palace-superbuild LANGUAGES CXX C VERSION 0.13.0)
19+
project(palace-superbuild LANGUAGES CXX C VERSION 0.14.0)
2020

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

cmake/ExternalMAGMA.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ if(PALACE_WITH_CUDA)
3434
list(APPEND MAGMA_OPTIONS
3535
"-DMAGMA_ENABLE_CUDA=ON"
3636
"-DCMAKE_CUDA_COMPILER=${CMAKE_CUDA_COMPILER}"
37-
"-DCUDA_NVCC_FLAGS=${CMAKE_CUDA_FLAGS}"
37+
"-DCMAKE_CUDA_FLAGS=${CMAKE_CUDA_FLAGS}"
3838
)
3939
set(MAKE_GENERATE_INC "BACKEND = cuda\\n")
4040
if(NOT "${CMAKE_CUDA_ARCHITECTURES}" STREQUAL "")

palace/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ set(CMAKE_CXX_STANDARD 17)
2121
set(CMAKE_CXX_EXTENSIONS OFF)
2222

2323
# Initialize the project
24-
project(palace LANGUAGES CXX VERSION 0.13.0)
24+
project(palace LANGUAGES CXX VERSION 0.14.0)
2525

2626
# Define build settings and defaults
2727
set(PALACE_WITH_OPENMP OFF CACHE BOOL "Use OpenMP for shared-memory parallelism")

palace/drivers/eigensolver.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,8 @@ EigenSolver::Solve(const std::vector<std::unique_ptr<Mesh>> &mesh) const
317317
// Compute B = -1/(iω) ∇ x E on the true dofs, and set the internal GridFunctions in
318318
// PostOperator for all postprocessing operations.
319319
eigen->GetEigenvector(i, E);
320-
double mean_phase = linalg::NormalizePhase(space_op.GetComm(), E);
320+
321+
linalg::NormalizePhase(space_op.GetComm(), E);
321322

322323
Curl.Mult(E.Real(), B.Real());
323324
Curl.Mult(E.Imag(), B.Imag());

palace/utils/configfile.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2002,6 +2002,8 @@ void EigenSolverData::SetUp(json &solver)
20022002
init_v0_const = eigenmode->value("StartVectorConstant", init_v0_const);
20032003
mass_orthog = eigenmode->value("MassOrthogonal", mass_orthog);
20042004

2005+
MFEM_VERIFY(n > 0, "\"N\" must be greater than 0!");
2006+
20052007
// Cleanup
20062008
eigenmode->erase("Target");
20072009
eigenmode->erase("Tol");

palace/utils/geodata.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1417,6 +1417,7 @@ mfem::Vector ComputeNormal(const std::unique_ptr<mfem::Mesh> &mesh, const T &ele
14171417
mfem::IsoparametricTransformation trans;
14181418
mfem::Vector normal(sdim), last_normal(sdim), align(sdim);
14191419
normal = 0.0;
1420+
last_normal = 0.0;
14201421
mfem::Array<int> vert_bdr;
14211422

14221423
// Ensure that the computed normal points "inside" or "outside".
@@ -1442,8 +1443,8 @@ mfem::Vector ComputeNormal(const std::unique_ptr<mfem::Mesh> &mesh, const T &ele
14421443
{
14431444
break; // If not checking planar, use the first.
14441445
}
1445-
MFEM_VERIFY((last_normal * normal - 1) < 1e-8,
1446-
"Periodic boundary mapping is only supported for planar boundaries.");
1446+
MFEM_VERIFY((last_normal * last_normal == 0.0) || ((last_normal * normal - 1) < 1e-8),
1447+
"Periodic boundary mapping is only supported for planar boundaries!");
14471448
last_normal = normal;
14481449
}
14491450
return normal;

scripts/schema/config/solver.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"Tol": { "type": "number", "minimum": 0.0 },
2424
"MaxIts": { "type": "integer", "exclusiveMinimum": 0 },
2525
"MaxSize": { "type": "integer", "exclusiveMinimum": 0 },
26-
"N": { "type": "integer" },
26+
"N": { "type": "integer", "exclusiveMinimum": 0 },
2727
"Save": { "type": "integer" },
2828
"Type": { "type": "string" },
2929
"PEPLinear": { "type": "boolean" },

spack_repo/local/packages/palace/package.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ class Palace(CMakePackage, CudaPackage, ROCmPackage):
2020
maintainers("hughcars", "simlap", "cameronrutherford")
2121

2222
version("develop", branch="main")
23+
version("0.14.0", tag="v0.14.0", commit="a428a3a32dbbd6a2a6013b3b577016c3e9425abc")
2324
version("0.13.0", tag="v0.13.0", commit="a61c8cbe0cacf496cde3c62e93085fae0d6299ac")
2425
version("0.12.0", tag="v0.12.0", commit="8c192071206466638d5818048ee712e1fada386f")
2526
version("0.11.2", tag="v0.11.2", commit="6c3aa5f84a934a6ddd58022b2945a1bdb5fa329d")

0 commit comments

Comments
 (0)