Skip to content

Commit

Permalink
Release: 23.01 (#100)
Browse files Browse the repository at this point in the history
* Release: 23.01

* Update Authors

* Update macOS CI

* Include Order: AMReX, pybind11, stdlib

Avoid dragging CPython includes & defines into AMReX headers, e.g.,
that would control `<cmath>` includes.
  • Loading branch information
ax3l authored Jan 3, 2023
1 parent a6f5470 commit 156ab79
Show file tree
Hide file tree
Showing 32 changed files with 104 additions and 104 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ env:

jobs:
appleclang:
name: AppleClang@12.0 w/o MPI
name: AppleClang@14.0 w/o MPI
runs-on: macos-latest
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Dependencies
run: .github/workflows/dependencies/dependencies_mac.sh
- name: Build & Install
run: |
python3 -m pip install -U pip setuptools wheel pytest
python3 -m pip install -U cmake==3.23.3
python3 -m pip install -U cmake
python3 -m pip install -v .
python3 -c "import amrex; print(amrex.__version__)"
- name: Unit tests
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Preamble ####################################################################
#
cmake_minimum_required(VERSION 3.20.0)
project(pyAMReX VERSION 22.12)
project(pyAMReX VERSION 23.01)

include(${pyAMReX_SOURCE_DIR}/cmake/pyAMReXFunctions.cmake)

Expand Down
2 changes: 1 addition & 1 deletion cmake/dependencies/AMReX.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ option(pyAMReX_amrex_internal "Download & build AMReX" ON)
set(pyAMReX_amrex_repo "https://github.com/AMReX-Codes/amrex.git"
CACHE STRING
"Repository URI to pull and build AMReX from if(pyAMReX_amrex_internal)")
set(pyAMReX_amrex_branch "22.12"
set(pyAMReX_amrex_branch "23.01"
CACHE STRING
"Repository branch for pyAMReX_amrex_repo if(pyAMReX_amrex_internal)")

Expand Down
14 changes: 7 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
#
# Copyright 2021-2022 The AMReX Community
# Copyright 2021-2023 The AMReX Community
#
# Authors: Axel Huebl
# License: BSD-3-Clause-LBNL
Expand Down Expand Up @@ -185,7 +185,7 @@ def build_extension(self, ext):
AMReX_src = os.environ.get("AMREX_SRC")
AMReX_internal = os.environ.get("AMREX_INTERNAL", "ON")
AMReX_repo = os.environ.get("AMREX_REPO", "https://github.com/AMReX-Codes/amrex.git")
AMReX_branch = os.environ.get("AMREX_BRANCH", "22.12")
AMReX_branch = os.environ.get("AMREX_BRANCH", "23.01")
pybind11_internal = os.environ.get("PYBIND11_INTERNAL", "ON")

# https://cmake.org/cmake/help/v3.0/command/if.html
Expand Down Expand Up @@ -220,16 +220,16 @@ def build_extension(self, ext):
setup(
name="amrex",
# note PEP-440 syntax: x.y.zaN but x.y.z.devN
version="22.12",
version="23.01",
packages=["amrex"],
# Python sources:
package_dir={"": "src"},
# pyAMReX authors:
author="Axel Huebl, Shreyas Ananthan, Steven R. Brandt, Andrew Myers, Weiqun Zhang, et al.",
author_email="axelhuebl@lbl.gov, shreyas.ananthan@nrel.gov, sbrandt@cct.lsu.edu, atmyers@lbl.gov, weiqunzhang@lbl.gov",
author="Axel Huebl, Ryan Sandberg, Shreyas Ananthan, Remi Lehe, Weiqun Zhang, et al.",
author_email="axelhuebl@lbl.gov, rsandberg@lbl.gov, shreyas.ananthan@nrel.gov, rlehe@lbl.gov, weiqunzhang@lbl.gov",
# wheel/pypi packages:
maintainer="Axel Huebl, Shreyas Ananthan, Steven R. Brandt, Andrew Myers",
maintainer_email="axelhuebl@lbl.gov, shreyas.ananthan@nrel.gov, sbrandt@cct.lsu.edu, atmyers@lbl.gov",
maintainer="Axel Huebl",
maintainer_email="axelhuebl@lbl.gov",
description="AMReX: Software Framework for Block Structured AMR",
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down
6 changes: 3 additions & 3 deletions src/AmrCore/AmrMesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
* Authors: Axel Huebl
* License: BSD-3-Clause-LBNL
*/
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>

#include <AMReX_Config.H>
#include <AMReX_AmrMesh.H>

#include <pybind11/pybind11.h>
#include <pybind11/stl.h>

#include <sstream>

namespace py = pybind11;
Expand Down
6 changes: 3 additions & 3 deletions src/Base/AMReX.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>

#include <AMReX_Config.H>
#include <AMReX.H>
#include <AMReX_Vector.H>
#include <AMReX_ParmParse.H>

#include <pybind11/pybind11.h>
#include <pybind11/stl.h>

#include <string>

namespace py = pybind11;
Expand Down
4 changes: 2 additions & 2 deletions src/Base/Arena.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
* Authors: Axel Huebl
* License: BSD-3-Clause-LBNL
*/
#include <AMReX_Arena.H>

#include <pybind11/pybind11.h>
#include <pybind11/numpy.h>
#include <pybind11/stl.h>

#include <AMReX_Arena.H>

namespace py = pybind11;
using namespace amrex;

Expand Down
8 changes: 4 additions & 4 deletions src/Base/Array4.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
* Authors: Axel Huebl
* License: BSD-3-Clause-LBNL
*/
#include <pybind11/pybind11.h>
#include <pybind11/numpy.h>
#include <pybind11/stl.h>

#include <AMReX_Array4.H>
#include <AMReX_BLassert.H>
#include <AMReX_IntVect.H>

#include <pybind11/pybind11.h>
#include <pybind11/numpy.h>
#include <pybind11/stl.h>

#include <cstdint>
#include <sstream>
#include <type_traits>
Expand Down
4 changes: 2 additions & 2 deletions src/Base/BaseFab.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
* Authors: Axel Huebl
* License: BSD-3-Clause-LBNL
*/
#include <AMReX_FArrayBox.H>

#include <pybind11/pybind11.h>
#include <pybind11/stl.h>

#include <AMReX_FArrayBox.H>

#include <istream>

namespace py = pybind11;
Expand Down
8 changes: 4 additions & 4 deletions src/Base/Box.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
* Authors: Axel Huebl
* License: BSD-3-Clause-LBNL
*/
#include <pybind11/pybind11.h>
#include <pybind11/operators.h>
#include <pybind11/stl.h>

#include <AMReX_Config.H>
#include <AMReX_Box.H>
#include <AMReX_IntVect.H>

#include <pybind11/pybind11.h>
#include <pybind11/operators.h>
#include <pybind11/stl.h>

#include <sstream>
#include <optional>

Expand Down
6 changes: 3 additions & 3 deletions src/Base/BoxArray.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
* Authors: Axel Huebl
* License: BSD-3-Clause-LBNL
*/
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>

#include <AMReX_Config.H>
#include <AMReX_BoxArray.H>
#include <AMReX_IntVect.H>

#include <pybind11/pybind11.h>
#include <pybind11/stl.h>

#include <sstream>

namespace py = pybind11;
Expand Down
6 changes: 3 additions & 3 deletions src/Base/CoordSys.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>

#include <AMReX_Config.H>
#include <AMReX_CoordSys.H>

#include <pybind11/pybind11.h>
#include <pybind11/stl.h>

#include <sstream>

namespace py = pybind11;
Expand Down
6 changes: 3 additions & 3 deletions src/Base/Dim3.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>

#include <AMReX_Config.H>
#include <AMReX_Dim3.H>

#include <pybind11/pybind11.h>
#include <pybind11/stl.h>

#include <sstream>

namespace py = pybind11;
Expand Down
6 changes: 3 additions & 3 deletions src/Base/DistributionMapping.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
* Authors: Axel Huebl
* License: BSD-3-Clause-LBNL
*/
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>

#include <AMReX_Config.H>
#include <AMReX_BoxArray.H>
#include <AMReX_DistributionMapping.H>
#include <AMReX_Vector.H>

#include <pybind11/pybind11.h>
#include <pybind11/stl.h>

#include <sstream>

namespace py = pybind11;
Expand Down
4 changes: 2 additions & 2 deletions src/Base/FArrayBox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
* Authors: Axel Huebl
* License: BSD-3-Clause-LBNL
*/
#include <AMReX_FArrayBox.H>

#include <pybind11/pybind11.h>
#include <pybind11/stl.h>

#include <AMReX_FArrayBox.H>

#include <istream>
#include <ostream>
#include <string>
Expand Down
8 changes: 4 additions & 4 deletions src/Base/Geometry.cpp
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#include <pybind11/pybind11.h>
// #include <pybind11/operators.h>
#include <pybind11/stl.h>

#include <AMReX_Config.H>
#include <AMReX_Geometry.H>
#include <AMReX_CoordSys.H>
#include <AMReX_MultiFab.H>
#include <AMReX_Periodicity.H>

#include <pybind11/pybind11.h>
// #include <pybind11/operators.h>
#include <pybind11/stl.h>

#include <sstream>
#include <string>
#include <stdexcept>
Expand Down
8 changes: 4 additions & 4 deletions src/Base/IntVect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
* Authors: Axel Huebl
* License: BSD-3-Clause-LBNL
*/
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include <pybind11/numpy.h>

#include <AMReX_Config.H>
#include <AMReX_Dim3.H>
#include <AMReX_IntVect.H>

#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include <pybind11/numpy.h>

#include <array>
#include <sstream>
#include <string>
Expand Down
6 changes: 3 additions & 3 deletions src/Base/Iterator.H
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
* Authors: Axel Huebl
* License: BSD-3-Clause-LBNL
*/
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>

#include <AMReX_Config.H>
#include <AMReX_BoxArray.H>
#include <AMReX_DistributionMapping.H>
Expand All @@ -14,6 +11,9 @@
#include <AMReX_FabArrayBase.H>
#include <AMReX_MultiFab.H>

#include <pybind11/pybind11.h>
#include <pybind11/stl.h>

#include <memory>
#include <string>

Expand Down
6 changes: 3 additions & 3 deletions src/Base/MultiFab.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
* Authors: Axel Huebl
* License: BSD-3-Clause-LBNL
*/
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>

#include "Base/Iterator.H"

#include <AMReX_Config.H>
Expand All @@ -16,6 +13,9 @@
#include <AMReX_FabArrayBase.H>
#include <AMReX_MultiFab.H>

#include <pybind11/pybind11.h>
#include <pybind11/stl.h>

#include <memory>
#include <string>

Expand Down
6 changes: 3 additions & 3 deletions src/Base/PODVector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
* Authors: Ryan Sandberg
* License: BSD-3-Clause-LBNL
*/
#include <AMReX_Config.H>
#include <AMReX_PODVector.H>

#include <pybind11/pybind11.h>
#include <pybind11/numpy.h>
#include <pybind11/stl.h>

#include <AMReX_Config.H>
#include <AMReX_PODVector.H>

#include <sstream>


Expand Down
6 changes: 3 additions & 3 deletions src/Base/ParallelDescriptor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
* Authors: Axel Huebl
* License: BSD-3-Clause-LBNL
*/
#include <AMReX_Config.H>
#include <AMReX_ParallelDescriptor.H>

#include <pybind11/pybind11.h>
#include <pybind11/operators.h>
#include <pybind11/stl.h>

#include <AMReX_Config.H>
#include <AMReX_ParallelDescriptor.H>

#include <sstream>
#include <optional>

Expand Down
8 changes: 4 additions & 4 deletions src/Base/ParmParse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
* Authors: Axel Huebl
* License: BSD-3-Clause-LBNL
*/
#include <pybind11/pybind11.h>
#include <pybind11/operators.h>
#include <pybind11/stl.h>

#include <AMReX_Config.H>
#include <AMReX_Box.H>
#include <AMReX_IntVect.H>
#include <AMReX_ParmParse.H>

#include <pybind11/pybind11.h>
#include <pybind11/operators.h>
#include <pybind11/stl.h>

#include <string>
#include <vector>

Expand Down
Loading

0 comments on commit 156ab79

Please sign in to comment.