Skip to content

Commit a7cf8a4

Browse files
ax3lRemiLehe
andauthored
Release 22.05 (#3076)
* AMReX: 22.05 * PICSAR: 22.05 * WarpX: 22.05 * Fix issue with RZ electrostatic solver Co-authored-by: Remi Lehe <[email protected]>
1 parent 2106601 commit a7cf8a4

File tree

12 files changed

+17
-14
lines changed

12 files changed

+17
-14
lines changed

.github/workflows/cuda.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ jobs:
106106
which nvcc || echo "nvcc not in PATH!"
107107
108108
git clone https://github.com/AMReX-Codes/amrex.git ../amrex
109-
cd amrex && git checkout --detach 329f81b889a6ece31c67b1b70f207d6c6b2463b6 && cd -
109+
cd amrex && git checkout --detach 22.05 && cd -
110110
make COMP=gcc QED=FALSE USE_MPI=TRUE USE_GPU=TRUE USE_OMP=FALSE USE_PSATD=TRUE USE_CCACHE=TRUE -j 2
111111
112112
build_nvhpc21-11-nvcc:

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Preamble ####################################################################
22
#
33
cmake_minimum_required(VERSION 3.18.0)
4-
project(WarpX VERSION 22.04)
4+
project(WarpX VERSION 22.05)
55

66
include(${WarpX_SOURCE_DIR}/cmake/WarpXFunctions.cmake)
77

Docs/source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@
7171
# built documents.
7272
#
7373
# The short X.Y version.
74-
version = u'22.04'
74+
version = u'22.05'
7575
# The full version, including alpha/beta/rc tags.
76-
release = u'22.04'
76+
release = u'22.05'
7777

7878
# The language for content autogenerated by Sphinx. Refer to documentation
7979
# for a list of supported languages.

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
WarpX v22.04 Copyright (c) 2018-2022, The Regents of the University of California, through Lawrence Berkeley National Laboratory, and Lawrence Livermore National Security, LLC, for the operation of Lawrence Livermore National Laboratory (subject to receipt of any required approvals from the U.S. Dept. of Energy). All rights reserved.
1+
WarpX v22.05 Copyright (c) 2018-2022, The Regents of the University of California, through Lawrence Berkeley National Laboratory, and Lawrence Livermore National Security, LLC, for the operation of Lawrence Livermore National Laboratory (subject to receipt of any required approvals from the U.S. Dept. of Energy). All rights reserved.
22

33

44
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

Python/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
package_data = {}
5555

5656
setup(name = 'pywarpx',
57-
version = '22.04',
57+
version = '22.05',
5858
packages = ['pywarpx'],
5959
package_dir = {'pywarpx': 'pywarpx'},
6060
description = """Wrapper of WarpX""",

Regression/WarpX-GPU-tests.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ emailBody = Check https://ccse.lbl.gov/pub/GpuRegressionTesting/WarpX/ for more
6060

6161
[AMReX]
6262
dir = /home/regtester/git/amrex/
63-
branch = 329f81b889a6ece31c67b1b70f207d6c6b2463b6
63+
branch = 22.05
6464

6565
[source]
6666
dir = /home/regtester/git/WarpX

Regression/WarpX-tests.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ emailBody = Check https://ccse.lbl.gov/pub/RegressionTesting/WarpX/ for more det
5959

6060
[AMReX]
6161
dir = /home/regtester/AMReX_RegTesting/amrex/
62-
branch = 329f81b889a6ece31c67b1b70f207d6c6b2463b6
62+
branch = 22.05
6363

6464
[source]
6565
dir = /home/regtester/AMReX_RegTesting/warpx

Source/FieldSolver/ElectrostaticSolver.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@ WarpX::computePhi (const amrex::Vector<std::unique_ptr<amrex::MultiFab> >& rho,
333333
}
334334
// Define the linear operator (Poisson operator)
335335
MLEBNodeFDLaplacian linop( {geom_scaled[lev]}, {boxArray(lev)}, {DistributionMap(lev)}, info );
336+
linop.setSigma({0._rt, 1._rt});
336337
#else
337338
// Set the value of beta
338339
amrex::Array<amrex::Real,AMREX_SPACEDIM> beta_solver =
@@ -370,7 +371,9 @@ WarpX::computePhi (const amrex::Vector<std::unique_ptr<amrex::MultiFab> >& rho,
370371
// With embedded boundary: extract EB info
371372
MLEBNodeFDLaplacian linop( {Geom(lev)}, {boxArray(lev)}, {DistributionMap(lev)}, info, {&WarpX::fieldEBFactory(lev)});
372373

373-
#ifndef WARPX_DIM_RZ
374+
#ifdef WARPX_DIM_RZ
375+
linop.setSigma({0._rt, 1._rt});
376+
#else
374377
// Note: this assumes that the beam is propagating along
375378
// one of the axes of the grid, i.e. that only *one* of the Cartesian
376379
// components of `beta` is non-negligible.

cmake/dependencies/AMReX.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ macro(find_amrex)
223223
endif()
224224
set(COMPONENT_PRECISION ${WarpX_PRECISION} P${WarpX_PRECISION})
225225

226-
find_package(AMReX 22.04 CONFIG REQUIRED COMPONENTS ${COMPONENT_ASCENT} ${COMPONENT_DIM} ${COMPONENT_EB} PARTICLES ${COMPONENT_PIC} ${COMPONENT_PRECISION} ${COMPONENT_SENSEI} TINYP LSOLVERS)
226+
find_package(AMReX 22.05 CONFIG REQUIRED COMPONENTS ${COMPONENT_ASCENT} ${COMPONENT_DIM} ${COMPONENT_EB} PARTICLES ${COMPONENT_PIC} ${COMPONENT_PRECISION} ${COMPONENT_SENSEI} TINYP LSOLVERS)
227227
message(STATUS "AMReX: Found version '${AMReX_VERSION}'")
228228
endif()
229229
endmacro()
@@ -237,7 +237,7 @@ set(WarpX_amrex_src ""
237237
set(WarpX_amrex_repo "https://github.com/AMReX-Codes/amrex.git"
238238
CACHE STRING
239239
"Repository URI to pull and build AMReX from if(WarpX_amrex_internal)")
240-
set(WarpX_amrex_branch "329f81b889a6ece31c67b1b70f207d6c6b2463b6"
240+
set(WarpX_amrex_branch "22.05"
241241
CACHE STRING
242242
"Repository branch for WarpX_amrex_repo if(WarpX_amrex_internal)")
243243

cmake/dependencies/PICSAR.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ function(find_picsar)
8282
#message(STATUS "PICSAR: Using version '${PICSAR_VERSION}'")
8383
else()
8484
# not supported by PICSAR (yet)
85-
#find_package(PICSAR 22.04 CONFIG REQUIRED QED)
85+
#find_package(PICSAR 22.05 CONFIG REQUIRED QED)
8686
#message(STATUS "PICSAR: Found version '${PICSAR_VERSION}'")
8787
message(FATAL_ERROR "PICSAR: Cannot be used as externally installed "
8888
"library yet. "

0 commit comments

Comments
 (0)