diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml deleted file mode 100644 index d198916af..000000000 --- a/.azure-pipelines.yml +++ /dev/null @@ -1,122 +0,0 @@ -# -*- mode: yaml -*- - -pool: - vmImage: 'ubuntu-20.04' - -pr: - autoCancel: true - drafts: false - -jobs: -- job: - variables: - BLASPP_HOME: '/usr/local' - CEI_SUDO: 'sudo' - CEI_TMP: '/tmp/cei' - CMAKE_GENERATOR: 'Ninja' - FFTW_HOME: '/usr' - LAPACKPP_HOME: '/usr/local' - OMP_NUM_THREADS: 1 - WARPX_CI_CCACHE: 'TRUE' - WARPX_CI_NUM_MAKE_JOBS: 2 - WARPX_CI_OPENPMD: 'TRUE' - WARPX_CI_TMP: '/tmp/ci' - - strategy: - matrix: - cartesian1d: - WARPX_CI_REGULAR_CARTESIAN_1D: 'TRUE' - WARPX_CI_PSATD: 'FALSE' - cartesian2d: - WARPX_CI_REGULAR_CARTESIAN_2D: 'TRUE' - cartesian3d: - WARPX_CI_REGULAR_CARTESIAN_3D: 'TRUE' - single_precision: - WARPX_CI_SINGLE_PRECISION: 'TRUE' - rz_or_nompi: - WARPX_CI_RZ_OR_NOMPI: 'TRUE' - qed: - WARPX_CI_QED: 'TRUE' - embedded_boundary: - WARPX_CI_EB: 'TRUE' - - # default: 60; maximum: 360 - timeoutInMinutes: 120 - - steps: - # set up caches: - # - once stored under a key, they become immutable (even if cache content changes) - # - for a refresh the key has to change, e.g., hash of a tracked file in the key - - task: Cache@2 - continueOnError: true - inputs: - key: 'Ccache | "$(System.JobName)" | .azure-pipelines.yml | cmake/dependencies/AMReX.cmake | run_test.sh' - restoreKeys: | - Ccache | "$(System.JobName)" | .azure-pipelines.yml | cmake/dependencies/AMReX.cmake | run_test.sh - Ccache | "$(System.JobName)" | .azure-pipelines.yml | cmake/dependencies/AMReX.cmake - Ccache | "$(System.JobName)" | .azure-pipelines.yml - path: /home/vsts/.ccache - cacheHitVar: CCACHE_CACHE_RESTORED - displayName: Cache Ccache Objects - - - task: Cache@2 - continueOnError: true - inputs: - key: 'Python3 | "$(System.JobName)" | .azure-pipelines.yml | run_test.sh' - restoreKeys: | - Python3 | "$(System.JobName)" | .azure-pipelines.yml | run_test.sh - Python3 | "$(System.JobName)" | .azure-pipelines.yml - path: /home/vsts/.local/lib/python3.8 - cacheHitVar: PYTHON38_CACHE_RESTORED - displayName: Cache Python Libraries - - - bash: | - set -eu -o pipefail - cat /proc/cpuinfo | grep "model name" | sort -u - df -h - echo 'Acquire::Retries "3";' | sudo tee /etc/apt/apt.conf.d/80-retries - sudo apt update - sudo apt install -y ccache curl gcc gfortran git g++ ninja-build \ - openmpi-bin libopenmpi-dev \ - libfftw3-dev libfftw3-mpi-dev libhdf5-openmpi-dev pkg-config make \ - python3 python3-pandas python3-pip python3-venv python3-setuptools libblas-dev liblapack-dev - ccache --set-config=max_size=10.0G - python3 -m pip install --upgrade pip - python3 -m pip install --upgrade setuptools - python3 -m pip install --upgrade wheel - python3 -m pip install --upgrade virtualenv - python3 -m pip install --upgrade pipx - python3 -m pipx install cmake - python3 -m pipx ensurepath - export PATH="$HOME/.local/bin:$PATH" - sudo curl -L -o /usr/local/bin/cmake-easyinstall https://raw.githubusercontent.com/ax3l/cmake-easyinstall/main/cmake-easyinstall - sudo chmod a+x /usr/local/bin/cmake-easyinstall - if [ "${WARPX_CI_OPENPMD:-FALSE}" == "TRUE" ]; then - cmake-easyinstall --prefix=/usr/local \ - git+https://github.com/openPMD/openPMD-api.git@0.14.3 \ - -DCMAKE_CXX_COMPILER_LAUNCHER=$(which ccache) \ - -DCMAKE_VERBOSE_MAKEFILE=ON \ - -DopenPMD_USE_PYTHON=OFF -DBUILD_TESTING=OFF -DBUILD_EXAMPLES=OFF -DBUILD_CLI_TOOLS=OFF - python3 -m pip install --upgrade openpmd-api - fi - if [[ "${WARPX_CI_RZ_OR_NOMPI:-FALSE}" == "TRUE" ]]; then - cmake-easyinstall --prefix=/usr/local git+https://github.com/icl-utk-edu/blaspp.git \ - -DCMAKE_CXX_COMPILER_LAUNCHER=$(which ccache) \ - -DCMAKE_CXX_STANDARD=17 \ - -Duse_openmp=OFF -Dbuild_tests=OFF -DCMAKE_VERBOSE_MAKEFILE=ON - cmake-easyinstall --prefix=/usr/local git+https://github.com/icl-utk-edu/lapackpp.git \ - -DCMAKE_CXX_COMPILER_LAUNCHER=$(which ccache) \ - -DCMAKE_CXX_STANDARD=17 \ - -Duse_cmake_find_lapack=ON -Dbuild_tests=OFF -DCMAKE_VERBOSE_MAKEFILE=ON - fi - rm -rf ${CEI_TMP} - df -h - displayName: 'Install dependencies' - - - bash: | - set -eu -o pipefail - df -h - ./run_test.sh - rm -rf ${WARPX_CI_TMP} - df -h - displayName: 'Build & test' diff --git a/.github/codeql/warpx-codeql.yml b/.github/codeql/warpx-codeql.yml deleted file mode 100644 index c75a5d0ea..000000000 --- a/.github/codeql/warpx-codeql.yml +++ /dev/null @@ -1,6 +0,0 @@ -name: "WarpX CodeQL config" - -# ignore AMReX, pyAMReX, PICSAR, openPMD et al. -# note: not yet suppored, thus doing post-analysis SARIF filtering -paths-ignore: - - build/_deps diff --git a/.github/workflows/codeql.yml.disabled b/.github/workflows/codeql.yml.disabled deleted file mode 100644 index ee436dc9c..000000000 --- a/.github/workflows/codeql.yml.disabled +++ /dev/null @@ -1,89 +0,0 @@ -name: 🔍 CodeQL - -on: - push: - branches: [ "development" ] - pull_request: - branches: [ "development" ] - schedule: - - cron: "27 3 * * 0" - -concurrency: - group: ${{ github.ref }}-${{ github.head_ref }}-codeql - cancel-in-progress: true - -jobs: - analyze: - name: Analyze - runs-on: ubuntu-latest - permissions: - actions: read - contents: read - security-events: write - - strategy: - fail-fast: false - matrix: - language: [ python, cpp ] - - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Install Packages (C++) - if: ${{ matrix.language == 'cpp' }} - run: | - sudo apt-get update - sudo apt-get install --yes cmake openmpi-bin libopenmpi-dev libhdf5-openmpi-dev libadios-openmpi-dev - - python -m pip install --upgrade pip - python -m pip install --upgrade wheel - python -m pip install --upgrade cmake - export CMAKE="$HOME/.local/bin/cmake" && echo "CMAKE=$CMAKE" >> $GITHUB_ENV - - - name: Configure (C++) - if: ${{ matrix.language == 'cpp' }} - run: | - $CMAKE -S . -B build -DWarpX_OPENPMD=ON - - - name: Initialize CodeQL - uses: github/codeql-action/init@v2 - with: - config-file: ./.github/codeql/warpx-codeql.yml - languages: ${{ matrix.language }} - queries: +security-and-quality - - - name: Build (py) - uses: github/codeql-action/autobuild@v2 - if: ${{ matrix.language == 'python' }} - - - name: Build (C++) - if: ${{ matrix.language == 'cpp' }} - run: | - $CMAKE --build build -j 2 - - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 - with: - category: "/language:${{ matrix.language }}" - upload: False - output: sarif-results - - - name: filter-sarif - uses: advanced-security/filter-sarif@v1 - with: - patterns: | - -build/_deps/*/* - -build/_deps/*/*/* - -build/_deps/*/*/*/* - -build/_deps/*/*/*/*/* - -build/_deps/*/*/*/*/*/* - -build/_deps/*/*/*/*/*/*/* - -build/_deps/*/*/*/*/*/*/*/* - input: sarif-results/${{ matrix.language }}.sarif - output: sarif-results/${{ matrix.language }}.sarif - - - name: Upload SARIF - uses: github/codeql-action/upload-sarif@v2 - with: - sarif_file: sarif-results/${{ matrix.language }}.sarif diff --git a/.github/workflows/cuda.yml b/.github/workflows/cuda.yml deleted file mode 100644 index 8ad94b615..000000000 --- a/.github/workflows/cuda.yml +++ /dev/null @@ -1,197 +0,0 @@ -name: 🐧 CUDA - -on: [push, pull_request] - -concurrency: - group: ${{ github.ref }}-${{ github.head_ref }}-cuda - cancel-in-progress: true - -jobs: - # Ref.: - # https://gitlab.com/nvidia/container-images/cuda/-/blob/master/dist/ubuntu18.04/10.1/base/Dockerfile - # https://github.com/ComputationalRadiationPhysics/picongpu/blob/0.5.0/share/picongpu/dockerfiles/ubuntu-1604/Dockerfile - # https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/ - build_nvcc: - name: NVCC 11.0.3 SP - runs-on: ubuntu-22.04 - if: github.event.pull_request.draft == false - env: - CXXFLAGS: "-Werror" - CMAKE_GENERATOR: Ninja - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - name: Install Python - with: - python-version: '3.x' - - name: install dependencies - run: | - .github/workflows/dependencies/nvcc.sh 11.7 - - name: CCache Cache - uses: actions/cache@v4 - # - once stored under a key, they become immutable - # (even if local cache path content changes) - # - for a refresh the key has to change, e.g., hash of a - # tracked file in the key - with: - path: | - ~/.ccache - ~/.cache/ccache - key: ccache-cuda-nvcc-${{ hashFiles('.github/workflows/cuda.yml') }}-${{ hashFiles('cmake/dependencies/AMReX.cmake') }} - restore-keys: | - ccache-cuda-nvcc-${{ hashFiles('.github/workflows/cuda.yml') }}- - ccache-cuda-nvcc- - - name: install openPMD-api - run: | - export CCACHE_COMPRESS=1 - export CCACHE_COMPRESSLEVEL=10 - export CCACHE_MAXSIZE=600M - ccache -z - - export CEI_SUDO="sudo" - export CEI_TMP="/tmp/cei" - - export PATH=/usr/local/nvidia/bin:/usr/local/cuda/bin:${PATH} - export LD_LIBRARY_PATH=/usr/local/nvidia/lib:/usr/local/nvidia/lib64:/usr/local/cuda/lib64:${LD_LIBRARY_PATH} - which nvcc || echo "nvcc not in PATH!" - - cmake-easyinstall --prefix=/usr/local \ - git+https://github.com/openPMD/openPMD-api.git@0.16.1 \ - -DopenPMD_USE_PYTHON=OFF \ - -DBUILD_TESTING=OFF \ - -DBUILD_EXAMPLES=OFF \ - -DBUILD_CLI_TOOLS=OFF \ - -DCMAKE_CXX_COMPILER_LAUNCHER=$(which ccache) \ - -DCMAKE_VERBOSE_MAKEFILE=ON - - name: build WarpX - run: | - export CCACHE_COMPRESS=1 - export CCACHE_COMPRESSLEVEL=10 - export CCACHE_MAXSIZE=600M - - export PATH=/usr/local/nvidia/bin:/usr/local/cuda/bin:${PATH} - export LD_LIBRARY_PATH=/usr/local/nvidia/lib:/usr/local/nvidia/lib64:/usr/local/cuda/lib64:${LD_LIBRARY_PATH} - which nvcc || echo "nvcc not in PATH!" - - cmake -S . -B build_sp \ - -DCMAKE_VERBOSE_MAKEFILE=ON \ - -DWarpX_COMPUTE=CUDA \ - -DWarpX_EB=ON \ - -DWarpX_LIB=ON \ - -DAMReX_CUDA_ARCH=6.0 \ - -DWarpX_OPENPMD=ON \ - -DWarpX_openpmd_internal=OFF \ - -DWarpX_PRECISION=SINGLE \ - -DWarpX_PSATD=ON \ - -DAMReX_CUDA_ERROR_CROSS_EXECUTION_SPACE_CALL=ON \ - -DAMReX_CUDA_ERROR_CAPTURE_THIS=ON - cmake --build build_sp -j 2 - - python3 -m pip install --upgrade pip setuptools wheel - export WARPX_MPI=ON - PYWARPX_LIB_DIR=$PWD/build_sp/lib python3 -m pip wheel . - python3 -m pip install *.whl - - # make sure legacy build system continues to build, i.e., that we - # don't forget to add new .cpp files - build_nvcc_gnumake: - name: NVCC 11.8.0 GNUmake - runs-on: ubuntu-22.04 - if: github.event.pull_request.draft == false - steps: - - uses: actions/checkout@v4 - - name: install dependencies - run: | - .github/workflows/dependencies/nvcc.sh 11.7 - - name: CCache Cache - uses: actions/cache@v4 - with: - path: | - ~/.ccache - ~/.cache/ccache - key: ccache-cuda-gnumake-${{ hashFiles('.github/workflows/cuda.yml') }}-${{ hashFiles('cmake/dependencies/AMReX.cmake') }} - restore-keys: | - ccache-cuda-gnumake-${{ hashFiles('.github/workflows/cuda.yml') }}- - ccache-cuda-gnumake- - - name: build WarpX - run: | - export CCACHE_COMPRESS=1 - export CCACHE_COMPRESSLEVEL=10 - export CCACHE_MAXSIZE=600M - ccache -z - - export PATH=/usr/local/nvidia/bin:/usr/local/cuda/bin:${PATH} - export LD_LIBRARY_PATH=/usr/local/nvidia/lib:/usr/local/nvidia/lib64:/usr/local/cuda/lib64:${LD_LIBRARY_PATH} - which nvcc || echo "nvcc not in PATH!" - - git clone https://github.com/AMReX-Codes/amrex.git ../amrex - cd ../amrex && git checkout --detach 9d2b74990c60c22a63f410e0302a3503dc9aa41e && cd - - make COMP=gcc QED=FALSE USE_MPI=TRUE USE_GPU=TRUE USE_OMP=FALSE USE_PSATD=TRUE USE_CCACHE=TRUE -j 2 - - build_nvhpc21-11-nvcc: - name: NVHPC@21.11 NVCC/NVC++ Release [tests] - runs-on: ubuntu-24.04 - if: github.event.pull_request.draft == false - # For NVHPC, Ninja is slower than the default: - # env: - # CMAKE_GENERATOR: Ninja - steps: - - uses: actions/checkout@v4 - - name: Dependencies - run: .github/workflows/dependencies/nvhpc.sh 25.1 - - name: CCache Cache - uses: actions/cache@v4 - with: - path: | - ~/.ccache - ~/.cache/ccache - key: ccache-cuda-nvhpc-${{ hashFiles('.github/workflows/cuda.yml') }}-${{ hashFiles('cmake/dependencies/AMReX.cmake') }} - restore-keys: | - ccache-cuda-nvhpc-${{ hashFiles('.github/workflows/cuda.yml') }}- - ccache-cuda-nvhpc- - - name: Build & Install - run: | - export CCACHE_COMPRESS=1 - export CCACHE_COMPRESSLEVEL=10 - export CCACHE_MAXSIZE=600M - ccache -z - - source /etc/profile.d/modules.sh - module load /opt/nvidia/hpc_sdk/modulefiles/nvhpc/25.1 - which nvcc || echo "nvcc not in PATH!" - which nvc++ || echo "nvc++ not in PATH!" - which nvc || echo "nvc not in PATH!" - nvcc --version - nvc++ --version - nvc --version - cmake --version - - export CC=$(which nvc) - export CXX=$(which nvc++) - export CUDACXX=$(which nvcc) - export CUDAHOSTCXX=${CXX} - - cmake -S . -B build \ - -DCMAKE_VERBOSE_MAKEFILE=ON \ - -DWarpX_COMPUTE=CUDA \ - -DWarpX_EB=ON \ - -DWarpX_LIB=ON \ - -DAMReX_CUDA_ARCH=8.0 \ - -DWarpX_OPENPMD=ON \ - -DWarpX_PSATD=ON \ - -DAMReX_CUDA_ERROR_CROSS_EXECUTION_SPACE_CALL=ON \ - -DAMReX_CUDA_ERROR_CAPTURE_THIS=ON - cmake --build build -j 2 - - # work-around for mpi4py 3.1.1 build system issue with using - # a GNU-built Python executable with non-GNU Python modules - # https://github.com/mpi4py/mpi4py/issues/114 - # export CFLAGS="-noswitcherror" - - python3 -m pip install --upgrade pip setuptools wheel - export WARPX_MPI=ON - PYWARPX_LIB_DIR=$PWD/build/lib python3 -m pip wheel . - python3 -m pip install *.whl - - ccache -s - du -hs ~/.cache/ccache diff --git a/.github/workflows/dependencies/ccache.sh b/.github/workflows/dependencies/ccache.sh deleted file mode 100755 index 30a155ff2..000000000 --- a/.github/workflows/dependencies/ccache.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env bash - -set -eu -o pipefail - -if [[ $# -eq 2 ]]; then - CVER=$1 -else - CVER=4.8.3 -fi - -wget https://github.com/ccache/ccache/releases/download/v${CVER}/ccache-${CVER}-linux-x86_64.tar.xz -tar xvf ccache-${CVER}-linux-x86_64.tar.xz -sudo cp -f ccache-${CVER}-linux-x86_64/ccache /usr/local/bin/ diff --git a/.github/workflows/dependencies/dpcpp.sh b/.github/workflows/dependencies/dpcpp.sh deleted file mode 100755 index 8afc05a25..000000000 --- a/.github/workflows/dependencies/dpcpp.sh +++ /dev/null @@ -1,63 +0,0 @@ -#!/usr/bin/env bash -# -# Copyright 2020-2021 The WarpX Community -# -# License: BSD-3-Clause-LBNL -# Authors: Axel Huebl - -set -eu -o pipefail - -# `man apt.conf`: -# Number of retries to perform. If this is non-zero APT will retry -# failed files the given number of times. -echo 'Acquire::Retries "3";' | sudo tee /etc/apt/apt.conf.d/80-retries - -# Ref.: https://github.com/rscohn2/oneapi-ci -# intel-basekit intel-hpckit are too large in size -wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB \ -| gpg --dearmor | sudo tee /usr/share/keyrings/oneapi-archive-keyring.gpg > /dev/null - -# add signed entry to apt sources and configure the APT client to use Intel repository: -echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list - -sudo apt-get update - -df -h -# Install and reduce disk space -# https://github.com/ECP-WarpX/WarpX/pull/1566#issuecomment-790934878 - -# try apt install up to five times, to avoid connection splits -status=1 -for itry in {1..5} -do - sudo apt-get install -y --no-install-recommends \ - build-essential \ - cmake \ - intel-oneapi-compiler-dpcpp-cpp \ - intel-oneapi-mkl-devel \ - intel-ocloc \ - libigc-dev \ - g++ gfortran \ - libopenmpi-dev \ - openmpi-bin \ - && { sudo apt-get clean; status=0; break; } \ - || { sleep 10; } -done -if [[ ${status} -ne 0 ]]; then exit 1; fi - -du -sh /opt/intel/oneapi/ -du -sh /opt/intel/oneapi/*/* -echo "+++ REDUCING oneAPI install size +++" -sudo rm -rf /opt/intel/oneapi/mkl/latest/lib/intel64/*.a \ - /opt/intel/oneapi/compiler/latest/linux/lib/oclfpga \ - /opt/intel/oneapi/compiler/latest/linux/lib/emu \ - /opt/intel/oneapi/compiler/latest/linux/bin/intel64 \ - /opt/intel/oneapi/compiler/latest/linux/bin/lld \ - /opt/intel/oneapi/compiler/latest/linux/bin/lld-link \ - /opt/intel/oneapi/compiler/latest/linux/bin/wasm-ld -du -sh /opt/intel/oneapi/ -du -sh /opt/intel/oneapi/*/* -df -h - -# ccache -$(dirname "$0")/ccache.sh diff --git a/.github/workflows/dependencies/gcc12.sh b/.github/workflows/dependencies/gcc12.sh deleted file mode 100755 index 5c3a93272..000000000 --- a/.github/workflows/dependencies/gcc12.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/usr/bin/env bash -# -# Copyright 2023 The WarpX Community -# -# License: BSD-3-Clause-LBNL -# Authors: Axel Huebl - -set -eu -o pipefail - -# `man apt.conf`: -# Number of retries to perform. If this is non-zero APT will retry -# failed files the given number of times. -echo 'Acquire::Retries "3";' | sudo tee /etc/apt/apt.conf.d/80-retries - -sudo apt-get -qqq update -sudo apt-get install -y \ - build-essential \ - ca-certificates \ - ccache \ - cmake \ - g++-12 \ - gnupg \ - libboost-math-dev \ - libfftw3-dev \ - libfftw3-mpi-dev \ - libhdf5-openmpi-dev \ - libopenmpi-dev \ - ninja-build \ - pkg-config \ - wget \ - zlib1g-dev diff --git a/.github/workflows/dependencies/hip.sh b/.github/workflows/dependencies/hip.sh deleted file mode 100755 index 9edc77d83..000000000 --- a/.github/workflows/dependencies/hip.sh +++ /dev/null @@ -1,92 +0,0 @@ -#!/usr/bin/env bash -# -# Copyright 2020 The WarpX Community -# -# License: BSD-3-Clause-LBNL -# Authors: Axel Huebl - -set -eu -o pipefail - -# `man apt.conf`: -# Number of retries to perform. If this is non-zero APT will retry -# failed files the given number of times. -echo 'Acquire::Retries "3";' | sudo tee /etc/apt/apt.conf.d/80-retries - -# Ref.: https://rocm.docs.amd.com/projects/install-on-linux/en/latest/how-to/native-install/ubuntu.html - -# Make the directory if it doesn't exist yet. -# This location is recommended by the distribution maintainers. -sudo mkdir --parents --mode=0755 /etc/apt/keyrings - -# Download the key, convert the signing-key to a full -# keyring required by apt and store in the keyring directory -wget https://repo.radeon.com/rocm/rocm.gpg.key -O - | \ - gpg --dearmor | sudo tee /etc/apt/keyrings/rocm.gpg > /dev/null - -curl -O https://repo.radeon.com/rocm/rocm.gpg.key -sudo apt-key add rocm.gpg.key - -source /etc/os-release # set UBUNTU_CODENAME: focal or jammy or ... - -VERSION=${1-6.3.2} - -echo "deb [arch=amd64] https://repo.radeon.com/rocm/apt/${VERSION} ${UBUNTU_CODENAME} main" \ - | sudo tee /etc/apt/sources.list.d/rocm.list -echo 'export PATH=/opt/rocm/llvm/bin:/opt/rocm/bin:/opt/rocm/profiler/bin:/opt/rocm/opencl/bin:$PATH' \ - | sudo tee -a /etc/profile.d/rocm.sh - -# we should not need to export HIP_PATH=/opt/rocm/hip with those installs - -sudo apt-get update - -# Ref.: https://rocmdocs.amd.com/en/latest/Installation_Guide/Installation-Guide.html#installing-development-packages-for-cross-compilation -# meta-package: rocm-dkms -# OpenCL: rocm-opencl -# other: rocm-dev rocm-utils -sudo apt-get install -y --no-install-recommends \ - build-essential \ - gfortran \ - libhiredis-dev \ - libnuma-dev \ - libopenmpi-dev \ - libzstd-dev \ - ninja-build \ - openmpi-bin \ - rocm-dev${VERSION} \ - roctracer-dev${VERSION} \ - rocprofiler-dev${VERSION} \ - rocrand-dev${VERSION} \ - rocfft-dev${VERSION} \ - rocprim-dev${VERSION} \ - rocsparse-dev${VERSION} - -# hiprand-dev is a new package that does not exist in old versions -sudo apt-get install -y --no-install-recommends hiprand-dev${VERSION} || true - -# ccache -$(dirname "$0")/ccache.sh - -# activate -# -source /etc/profile.d/rocm.sh -hipcc --version -which clang -which clang++ -export CXX=$(which clang++) -export CC=$(which clang) - -# cmake-easyinstall -# -sudo curl -L -o /usr/local/bin/cmake-easyinstall https://raw.githubusercontent.com/ax3l/cmake-easyinstall/main/cmake-easyinstall -sudo chmod a+x /usr/local/bin/cmake-easyinstall -export CEI_SUDO="sudo" -export CEI_TMP="/tmp/cei" - -# ccache 4.2+ -# -# CXXFLAGS="" cmake-easyinstall --prefix=/usr/local \ -# git+https://github.com/ccache/ccache.git@v4.6 \ -# -DCMAKE_BUILD_TYPE=Release \ -# -DENABLE_DOCUMENTATION=OFF \ -# -DENABLE_TESTING=OFF \ -# -DWARNINGS_AS_ERRORS=OFF diff --git a/.github/workflows/dependencies/icc.sh b/.github/workflows/dependencies/icc.sh deleted file mode 100755 index cf60ccfc7..000000000 --- a/.github/workflows/dependencies/icc.sh +++ /dev/null @@ -1,67 +0,0 @@ -#!/usr/bin/env bash -# -# Copyright 2020-2021 The WarpX Community -# -# License: BSD-3-Clause-LBNL -# Authors: Axel Huebl - -set -eu -o pipefail - -# `man apt.conf`: -# Number of retries to perform. If this is non-zero APT will retry -# failed files the given number of times. -echo 'Acquire::Retries "3";' | sudo tee /etc/apt/apt.conf.d/80-retries - -export DEBIAN_FRONTEND=noninteractive -sudo apt-get -qqq update -sudo apt-get install -y \ - build-essential \ - ca-certificates \ - ccache \ - cmake \ - gnupg \ - pkg-config \ - wget - -# ccache -$(dirname "$0")/ccache.sh - -# Ref.: https://github.com/rscohn2/oneapi-ci -sudo wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB -sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB -echo "deb https://apt.repos.intel.com/oneapi all main" | \ - sudo tee /etc/apt/sources.list.d/oneAPI.list -sudo apt-get update - -# try apt install up to five times, to avoid connection splits -status=1 -for itry in {1..5} -do - sudo apt-get install -y \ - intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic \ - && { sudo apt-get clean; status=0; break; } \ - || { sleep 10; } -done -if [[ ${status} -ne 0 ]]; then exit 1; fi - -# activate now via -set +eu -source /opt/intel/oneapi/setvars.sh -set -eu - -# cmake-easyinstall -sudo curl -L -o /usr/local/bin/cmake-easyinstall https://raw.githubusercontent.com/ax3l/cmake-easyinstall/main/cmake-easyinstall -sudo chmod a+x /usr/local/bin/cmake-easyinstall -export CEI_SUDO="sudo" -export CEI_TMP="/tmp/cei" - -# openPMD-api -CXX=$(which icpc) CC=$(which icc) \ - cmake-easyinstall \ - --prefix=/usr/local \ - git+https://github.com/openPMD/openPMD-api.git@0.16.1 \ - -DopenPMD_USE_PYTHON=OFF \ - -DBUILD_TESTING=OFF \ - -DBUILD_EXAMPLES=OFF \ - -DBUILD_CLI_TOOLS=OFF \ - -DCMAKE_CXX_COMPILER_LAUNCHER=$(which ccache) diff --git a/.github/workflows/dependencies/nvcc.sh b/.github/workflows/dependencies/nvcc.sh deleted file mode 100755 index 16086360c..000000000 --- a/.github/workflows/dependencies/nvcc.sh +++ /dev/null @@ -1,81 +0,0 @@ -#!/usr/bin/env bash -# -# Copyright 2020-2023 The WarpX Community -# -# License: BSD-3-Clause-LBNL -# Authors: Axel Huebl - -set -eu -o pipefail - -# `man apt.conf`: -# Number of retries to perform. If this is non-zero APT will retry -# failed files the given number of times. -echo 'Acquire::Retries "3";' | sudo tee /etc/apt/apt.conf.d/80-retries - -sudo apt-get -qqq update -sudo apt-get install -y \ - build-essential \ - ca-certificates \ - cmake \ - gnupg \ - libhiredis-dev \ - libopenmpi-dev \ - libzstd-dev \ - ninja-build \ - openmpi-bin \ - pkg-config \ - wget - -# ccache -$(dirname "$0")/ccache.sh - -# parse version number from command line argument -VERSION_DOTTED=${1:-11.7} -VERSION_DASHED=${VERSION_DOTTED/./-} # replace first occurence of "." with "-" - -# installation instructions from https://developer.nvidia.com/cuda-11-7-0-download-archive -# (Linux, x86_64, Ubuntu, 22.04, deb (local)) -wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-ubuntu2204.pin -sudo mv cuda-ubuntu2204.pin /etc/apt/preferences.d/cuda-repository-pin-600 -wget https://developer.download.nvidia.com/compute/cuda/${VERSION_DOTTED}.0/local_installers/cuda-repo-ubuntu2204-${VERSION_DASHED}-local_${VERSION_DOTTED}.0-515.43.04-1_amd64.deb -sudo dpkg -i cuda-repo-ubuntu2204-${VERSION_DASHED}-local_${VERSION_DOTTED}.0-515.43.04-1_amd64.deb -sudo cp /var/cuda-repo-ubuntu2204-${VERSION_DASHED}-local/cuda-*-keyring.gpg /usr/share/keyrings/ - -sudo apt-get update -sudo apt-get install -y \ - cuda-command-line-tools-${VERSION_DASHED} \ - cuda-compiler-${VERSION_DASHED} \ - cuda-cupti-dev-${VERSION_DASHED} \ - cuda-minimal-build-${VERSION_DASHED} \ - cuda-nvml-dev-${VERSION_DASHED} \ - cuda-nvtx-${VERSION_DASHED} \ - libcufft-dev-${VERSION_DASHED} \ - libcurand-dev-${VERSION_DASHED} \ - libcusparse-dev-${VERSION_DASHED} -sudo ln -s cuda-${VERSION_DOTTED} /usr/local/cuda - -# if we run out of temporary storage in CI: -#du -sh /usr/local/cuda-${VERSION_DOTTED} -#echo "+++ REDUCING CUDA Toolkit install size +++" -#sudo rm -rf /usr/local/cuda-${VERSION_DOTTED}/targets/x86_64-linux/lib/libcu{fft,pti,rand}_static.a -#sudo rm -rf /usr/local/cuda-${VERSION_DOTTED}/targets/x86_64-linux/lib/libnvperf_host_static.a -#du -sh /usr/local/cuda-${VERSION_DOTTED}/ -#df -h - -# cmake-easyinstall -# -sudo curl -L -o /usr/local/bin/cmake-easyinstall https://raw.githubusercontent.com/ax3l/cmake-easyinstall/main/cmake-easyinstall -sudo chmod a+x /usr/local/bin/cmake-easyinstall -export CEI_SUDO="sudo" -export CEI_TMP="/tmp/cei" - -# install command-line JSON processor jq -sudo apt-get install -y jq -# ccache 4.2+ -# -# CXXFLAGS="" cmake-easyinstall --prefix=/usr/local \ -# git+https://github.com/ccache/ccache.git@v4.6 \ -# -DCMAKE_BUILD_TYPE=Release \ -# -DENABLE_DOCUMENTATION=OFF \ -# -DENABLE_TESTING=OFF \ -# -DWARNINGS_AS_ERRORS=OFF diff --git a/.github/workflows/dependencies/nvcc11-0.sh b/.github/workflows/dependencies/nvcc11-0.sh deleted file mode 100755 index a018c7a48..000000000 --- a/.github/workflows/dependencies/nvcc11-0.sh +++ /dev/null @@ -1,69 +0,0 @@ -#!/usr/bin/env bash -# -# Copyright 2020-2022 The WarpX Community -# -# License: BSD-3-Clause-LBNL -# Authors: Axel Huebl - -set -eu -o pipefail - -# `man apt.conf`: -# Number of retries to perform. If this is non-zero APT will retry -# failed files the given number of times. -echo 'Acquire::Retries "3";' | sudo tee /etc/apt/apt.conf.d/80-retries - -sudo apt-get -qqq update -sudo apt-get install -y \ - build-essential \ - ca-certificates \ - cmake \ - gnupg \ - libhiredis-dev \ - libopenmpi-dev \ - libzstd-dev \ - ninja-build \ - openmpi-bin \ - pkg-config \ - wget - -wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin -sudo mv cuda-ubuntu2004.pin /etc/apt/preferences.d/cuda-repository-pin-600 -sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/3bf863cc.pub -echo "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/ /" \ - | sudo tee /etc/apt/sources.list.d/cuda.list - -sudo apt-get update -sudo apt-get install -y \ - cuda-command-line-tools-11-0 \ - cuda-compiler-11-0 \ - cuda-cupti-dev-11-0 \ - cuda-minimal-build-11-0 \ - cuda-nvml-dev-11-0 \ - cuda-nvtx-11-0 \ - libcufft-dev-11-0 \ - libcurand-dev-11-0 -sudo ln -s cuda-11.0 /usr/local/cuda - -# if we run out of temporary storage in CI: -#du -sh /usr/local/cuda-11.0 -#echo "+++ REDUCING CUDA Toolkit install size +++" -#sudo rm -rf /usr/local/cuda-11.0/targets/x86_64-linux/lib/libcu{fft,pti,rand}_static.a -#sudo rm -rf /usr/local/cuda-11.0/targets/x86_64-linux/lib/libnvperf_host_static.a -#du -sh /usr/local/cuda-11.0/ -#df -h - -# cmake-easyinstall -# -sudo curl -L -o /usr/local/bin/cmake-easyinstall https://raw.githubusercontent.com/ax3l/cmake-easyinstall/main/cmake-easyinstall -sudo chmod a+x /usr/local/bin/cmake-easyinstall -export CEI_SUDO="sudo" -export CEI_TMP="/tmp/cei" - -# ccache 4.2+ -# -CXXFLAGS="" cmake-easyinstall --prefix=/usr/local \ - git+https://github.com/ccache/ccache.git@v4.6 \ - -DCMAKE_BUILD_TYPE=Release \ - -DENABLE_DOCUMENTATION=OFF \ - -DENABLE_TESTING=OFF \ - -DWARNINGS_AS_ERRORS=OFF diff --git a/.github/workflows/dependencies/nvhpc.sh b/.github/workflows/dependencies/nvhpc.sh deleted file mode 100755 index 74f391e29..000000000 --- a/.github/workflows/dependencies/nvhpc.sh +++ /dev/null @@ -1,67 +0,0 @@ -#!/usr/bin/env bash -# -# Copyright 2021-2022 The WarpX Community -# -# Author: Axel Huebl -# License: BSD-3-Clause-LBNL - -set -eu -o pipefail - -# `man apt.conf`: -# Number of retries to perform. If this is non-zero APT will retry -# failed files the given number of times. -echo 'Acquire::Retries "3";' | sudo tee /etc/apt/apt.conf.d/80-retries - -sudo apt -qqq update -sudo apt install -y \ - build-essential \ - ca-certificates \ - cmake \ - environment-modules \ - gnupg \ - libhiredis-dev \ - libzstd-dev \ - ninja-build \ - pkg-config \ - wget - -# ccache -$(dirname "$0")/ccache.sh - -# parse version number from command line argument -VERSION_DOTTED=${1:-25.1} -VERSION_DASHED=${VERSION_DOTTED/./-} # replace first occurence of "." with "-" - -# install nvhpc -curl https://developer.download.nvidia.com/hpc-sdk/ubuntu/DEB-GPG-KEY-NVIDIA-HPC-SDK | sudo gpg --dearmor -o /usr/share/keyrings/nvidia-hpcsdk-archive-keyring.gpg -echo 'deb [signed-by=/usr/share/keyrings/nvidia-hpcsdk-archive-keyring.gpg] https://developer.download.nvidia.com/hpc-sdk/ubuntu/amd64 /' | sudo tee /etc/apt/sources.list.d/nvhpc.list -sudo apt update -y -sudo apt install -y --no-install-recommends nvhpc-${VERSION_DASHED} - -# clean up space -sudo rm -rf /var/lib/apt/lists/* -sudo rm -rf /opt/nvidia/hpc_sdk/Linux_x86_64/${VERSION_DOTTED}/examples -sudo rm -rf /opt/nvidia/hpc_sdk/Linux_x86_64/${VERSION_DOTTED}/profilers -sudo rm -rf /opt/nvidia/hpc_sdk/Linux_x86_64/${VERSION_DOTTED}/math_libs/12.6/targets/x86_64-linux/lib/lib*_static*.a - -# things should reside in /opt/nvidia/hpc_sdk now - -# activation via: -# source /etc/profile.d/modules.sh -# module load /opt/nvidia/hpc_sdk/modulefiles/nvhpc/${VERSION_DOTTED} - -# cmake-easyinstall -# -sudo curl -L -o /usr/local/bin/cmake-easyinstall https://raw.githubusercontent.com/ax3l/cmake-easyinstall/main/cmake-easyinstall -sudo chmod a+x /usr/local/bin/cmake-easyinstall -export CEI_SUDO="sudo" -export CEI_TMP="/tmp/cei" - -# ccache 4.2+ -# -# CXXFLAGS="" cmake-easyinstall --prefix=/usr/local \ -# git+https://github.com/ccache/ccache.git@v4.6 \ -# -DCMAKE_BUILD_TYPE=Release \ -# -DENABLE_DOCUMENTATION=OFF \ -# -DENABLE_TESTING=OFF \ -# -DWARNINGS_AS_ERRORS=OFF diff --git a/.github/workflows/dependencies/pyfull.sh b/.github/workflows/dependencies/pyfull.sh deleted file mode 100755 index b0a4f607a..000000000 --- a/.github/workflows/dependencies/pyfull.sh +++ /dev/null @@ -1,60 +0,0 @@ -#!/usr/bin/env bash -# -# Copyright 2021 The WarpX Community -# -# License: BSD-3-Clause-LBNL -# Authors: Axel Huebl - -set -eu -o pipefail - -# `man apt.conf`: -# Number of retries to perform. If this is non-zero APT will retry -# failed files the given number of times. -echo 'Acquire::Retries "3";' | sudo tee /etc/apt/apt.conf.d/80-retries - -sudo apt-get -qqq update -sudo apt-get install -y \ - build-essential \ - ca-certificates \ - ccache \ - clang \ - cmake \ - gnupg \ - libblas-dev \ - libboost-math-dev \ - libfftw3-dev \ - libfftw3-mpi-dev \ - libhdf5-openmpi-dev \ - liblapack-dev \ - libopenmpi-dev \ - make \ - ninja-build \ - pkg-config \ - python3 \ - python3-pip \ - python3-setuptools \ - wget - -# cmake-easyinstall -# -sudo curl -L -o /usr/local/bin/cmake-easyinstall https://raw.githubusercontent.com/ax3l/cmake-easyinstall/main/cmake-easyinstall -sudo chmod a+x /usr/local/bin/cmake-easyinstall -export CEI_SUDO="sudo" -export CEI_TMP="/tmp/cei" - -# BLAS++ & LAPACK++ -cmake-easyinstall \ - --prefix=/usr/local \ - git+https://github.com/icl-utk-edu/blaspp.git \ - -Duse_openmp=OFF \ - -Dbuild_tests=OFF \ - -DCMAKE_CXX_COMPILER_LAUNCHER=$(which ccache) \ - -DCMAKE_VERBOSE_MAKEFILE=ON - -cmake-easyinstall \ - --prefix=/usr/local \ - git+https://github.com/icl-utk-edu/lapackpp.git \ - -Duse_cmake_find_lapack=ON \ - -Dbuild_tests=OFF \ - -DCMAKE_CXX_COMPILER_LAUNCHER=$(which ccache) \ - -DCMAKE_VERBOSE_MAKEFILE=ON diff --git a/.github/workflows/hip.yml.disabled b/.github/workflows/hip.yml.disabled deleted file mode 100644 index 072d325ec..000000000 --- a/.github/workflows/hip.yml.disabled +++ /dev/null @@ -1,123 +0,0 @@ -name: 🐧 HIP - -on: [push, pull_request] - -concurrency: - group: ${{ github.ref }}-${{ github.head_ref }}-hip - cancel-in-progress: true - -jobs: - build_hip_3d_sp: - name: HIP 3D SP - runs-on: ubuntu-24.04 - env: - CXXFLAGS: "-Werror -Wno-deprecated-declarations -Wno-error=pass-failed" - CMAKE_GENERATOR: Ninja - if: github.event.pull_request.draft == false - steps: - - uses: actions/checkout@v4 - - name: install dependencies - shell: bash - run: .github/workflows/dependencies/hip.sh 6.3.2 - - name: CCache Cache - uses: actions/cache@v4 - with: - path: | - ~/.ccache - ~/.cache/ccache - key: ccache-hip-3dsp-${{ hashFiles('.github/workflows/hip.yml') }}-${{ hashFiles('cmake/dependencies/AMReX.cmake') }} - restore-keys: | - ccache-hip-3dsp-${{ hashFiles('.github/workflows/hip.yml') }}- - ccache-hip-3dsp- - - name: build WarpX - shell: bash - run: | - export CCACHE_COMPRESS=1 - export CCACHE_COMPRESSLEVEL=10 - export CCACHE_MAXSIZE=100M - ccache -z - - source /etc/profile.d/rocm.sh - hipcc --version - which clang - which clang++ - export CXX=$(which clang++) - export CC=$(which clang) - - cmake -S . -B build_sp \ - -D_GLIBCXX_ASSERTIONS=0 \ - -DCMAKE_VERBOSE_MAKEFILE=ON \ - -DAMReX_AMD_ARCH=gfx900 \ - -DWarpX_COMPUTE=HIP \ - -DWarpX_EB=ON \ - -DWarpX_LIB=ON \ - -DWarpX_MPI=ON \ - -DWarpX_OPENPMD=ON \ - -DWarpX_PRECISION=SINGLE \ - -DWarpX_PSATD=ON - cmake --build build_sp -j 2 - - export WARPX_MPI=OFF - PYWARPX_LIB_DIR=$PWD/build_sp/lib python3 -m pip wheel . - python3 -m pip install *.whl - - ccache -s - du -hs ~/.cache/ccache - - build_hip_2d_dp: - name: HIP 2D DP - runs-on: ubuntu-24.04 - env: - CXXFLAGS: "-Werror -Wno-deprecated-declarations -Wno-error=pass-failed" - CMAKE_GENERATOR: Ninja - if: github.event.pull_request.draft == false - steps: - - uses: actions/checkout@v4 - - name: install dependencies - shell: bash - run: .github/workflows/dependencies/hip.sh 6.3.2 - - name: CCache Cache - uses: actions/cache@v4 - with: - path: | - ~/.ccache - ~/.cache/ccache - key: ccache-hip-2ddp-${{ hashFiles('.github/workflows/hip.yml') }}-${{ hashFiles('cmake/dependencies/AMReX.cmake') }} - restore-keys: | - ccache-hip-2ddp-${{ hashFiles('.github/workflows/hip.yml') }}- - ccache-hip-2ddp- - - name: build WarpX - shell: bash - run: | - export CCACHE_COMPRESS=1 - export CCACHE_COMPRESSLEVEL=10 - export CCACHE_MAXSIZE=100M - ccache -z - - source /etc/profile.d/rocm.sh - hipcc --version - which clang - which clang++ - export CXX=$(which clang++) - export CC=$(which clang) - - cmake -S . -B build_2d \ - -D_GLIBCXX_ASSERTIONS=0 \ - -DCMAKE_VERBOSE_MAKEFILE=ON \ - -DAMReX_AMD_ARCH=gfx900 \ - -DWarpX_DIMS=2 \ - -DWarpX_COMPUTE=HIP \ - -DWarpX_EB=ON \ - -DWarpX_LIB=ON \ - -DWarpX_MPI=ON \ - -DWarpX_OPENPMD=ON \ - -DWarpX_PRECISION=DOUBLE \ - -DWarpX_PSATD=ON - cmake --build build_2d -j 2 - - export WARPX_MPI=OFF - PYWARPX_LIB_DIR=$PWD/build_2d/lib python3 -m pip wheel . - python3 -m pip install *.whl - - ccache -s - du -hs ~/.cache/ccache diff --git a/.github/workflows/insitu.yml b/.github/workflows/insitu.yml deleted file mode 100644 index 298e6b225..000000000 --- a/.github/workflows/insitu.yml +++ /dev/null @@ -1,59 +0,0 @@ -name: 🐧 In Situ Vis - -on: [push, pull_request] - -concurrency: - group: ${{ github.ref }}-${{ github.head_ref }}-insituvis - cancel-in-progress: true - -jobs: - sensei: - name: SENSEI - runs-on: ubuntu-24.04 - if: github.event.pull_request.draft == false - env: - CXX: clang++ - CC: clang - CXXFLAGS: "-Werror -Wshadow -Woverloaded-virtual -Wunreachable-code -Wno-error=pass-failed" - CMAKE_GENERATOR: Ninja - CMAKE_PREFIX_PATH: /root/install/sensei/v4.0.0/lib64/cmake - container: - image: senseiinsitu/ci:fedora35-amrex-20220613 - steps: - - uses: actions/checkout@v4 - - name: Install zlib - run: | - dnf install -y zlib-devel - - name: Configure - run: | - cmake -S . -B build \ - -DWarpX_SENSEI=ON \ - -DWarpX_MAG_LLG=OFF \ - -DWarpX_COMPUTE=NOACC - - name: Build - run: | - cmake --build build -j 2 - - ascent: - name: Ascent - runs-on: ubuntu-24.04 - if: github.event.pull_request.draft == false - env: - CXX: g++ - CC: gcc - CMAKE_PREFIX_PATH: /ascent/install/lib/cmake/ - container: - image: alpinedav/ascent:0.9.2 - steps: - - uses: actions/checkout@v4 - - name: Configure - run: | - . /ascent_docker_setup_env.sh - cmake -S . -B build \ - -DWarpX_ASCENT=ON \ - -DWarpX_MAG_LLG=OFF \ - -DWarpX_COMPUTE=NOACC - - name: Build - run: | - . /ascent_docker_setup_env.sh - cmake --build build -j 2 diff --git a/.github/workflows/intel.yml b/.github/workflows/intel.yml deleted file mode 100644 index b75129313..000000000 --- a/.github/workflows/intel.yml +++ /dev/null @@ -1,134 +0,0 @@ -name: 🐧 Intel - -on: [push, pull_request] - -concurrency: - group: ${{ github.ref }}-${{ github.head_ref }}-intel - cancel-in-progress: true - -jobs: - - build_icpx: - name: oneAPI ICX SP - runs-on: ubuntu-24.04 - # Since 2021.4.0, AMReX_GpuUtility.H: error: comparison with NaN - # always evaluates to false in fast floating point modes - # oneAPI 2022.2.0 hangs for -O2 and higher: - # https://github.com/ECP-WarpX/WarpX/issues/3442 - env: - CXXFLAGS: "-Werror -Wno-error=pass-failed \ - -Wno-tautological-constant-compare" - # For oneAPI, Ninja is slower than the default: - # CMAKE_GENERATOR: Ninja - if: github.event.pull_request.draft == false - steps: - - uses: actions/checkout@v4 - - name: install dependencies - shell: bash - run: | - .github/workflows/dependencies/dpcpp.sh - - name: CCache Cache - uses: actions/cache@v4 - with: - path: | - ~/.ccache - ~/.cache/ccache - key: ccache-intel-icpx-${{ hashFiles('.github/workflows/intel.yml') }}-${{ hashFiles('cmake/dependencies/AMReX.cmake') }} - restore-keys: | - ccache-intel-icpx-${{ hashFiles('.github/workflows/intel.yml') }}- - ccache-intel-icpx- - - name: build WarpX - shell: bash - run: | - export CCACHE_COMPRESS=1 - export CCACHE_COMPRESSLEVEL=10 - export CCACHE_MAXSIZE=100M - export CCACHE_DEPEND=1 - ccache -z - - set +e - source /opt/intel/oneapi/setvars.sh - set -e - export CXX=$(which icpx) - export CC=$(which icx) - - cmake -S . -B build_sp \ - -DCMAKE_CXX_FLAGS_RELEASE="-O1 -DNDEBUG" \ - -DCMAKE_VERBOSE_MAKEFILE=ON \ - -DWarpX_EB=ON \ - -DWarpX_LIB=ON \ - -DWarpX_MPI=OFF \ - -DWarpX_OPENPMD=ON \ - -DWarpX_PRECISION=SINGLE - cmake --build build_sp -j 2 - - build_dpcc: - name: oneAPI DPC++ SP - runs-on: ubuntu-24.04 - # Since 2021.4.0, AMReX_GpuUtility.H: error: comparison with NaN - # always evaluates to false in fast floating point modes - # oneAPI 2022.2.0 hangs for -O2 and higher: - # https://github.com/ECP-WarpX/WarpX/issues/3442 - env: - CXXFLAGS: "-Werror -Wno-tautological-constant-compare" - # For oneAPI, Ninja is slower than the default: - # CMAKE_GENERATOR: Ninja - if: github.event.pull_request.draft == false - steps: - - uses: actions/checkout@v4 - - name: install dependencies - shell: bash - run: | - .github/workflows/dependencies/dpcpp.sh - - name: CCache Cache - uses: actions/cache@v4 - with: - path: | - ~/.ccache - ~/.cache/ccache - key: ccache-intel-dpcc-${{ hashFiles('.github/workflows/intel.yml') }}-${{ hashFiles('cmake/dependencies/AMReX.cmake') }} - restore-keys: | - ccache-intel-dpcc-${{ hashFiles('.github/workflows/intel.yml') }}- - ccache-intel-dpcc- - - name: build WarpX - shell: bash - run: | - export CCACHE_COMPRESS=1 - export CCACHE_COMPRESSLEVEL=10 - export CCACHE_MAXSIZE=100M - export CCACHE_DEPEND=1 - ccache -z - - set +e - source /opt/intel/oneapi/setvars.sh - set -e - export CXX=$(which icpx) - export CC=$(which icx) - export CXXFLAGS="-fsycl ${CXXFLAGS}" - - cmake -S . -B build_sp \ - -DCMAKE_CXX_FLAGS_RELEASE="-O1 -DNDEBUG" \ - -DBUILD_SHARED_LIBS=ON \ - -DCMAKE_VERBOSE_MAKEFILE=ON \ - -DWarpX_COMPUTE=SYCL \ - -DAMReX_SYCL_AOT=ON \ - -DAMReX_INTEL_ARCH=pvc \ - -DAMReX_PARALLEL_LINK_JOBS=4 \ - -DWarpX_EB=ON \ - -DWarpX_LIB=ON \ - -DWarpX_MPI=OFF \ - -DWarpX_OPENPMD=ON \ - -DWarpX_PRECISION=SINGLE - cmake --build build_sp -j 2 - # TODO: re-enable -DWarpX_LIB=ON as soon as "dpcpp -fPIC" - # segfaults are fixed - - ccache -s - du -hs ~/.cache/ccache - - # Skip this as it will copy the binary artifacts and we are - # tight on disk space - # python3 -m pip install --upgrade pip - # python3 -m pip install --upgrade setuptools wheel - # PYWARPX_LIB_DIR=$PWD/build_sp/lib python3 -m pip wheel . - # python3 -m pip install *.whl diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml deleted file mode 100644 index de486dfe3..000000000 --- a/.github/workflows/macos.yml +++ /dev/null @@ -1,93 +0,0 @@ -name: 🍏 macOS - -on: [push, pull_request] - -concurrency: - group: ${{ github.ref }}-${{ github.head_ref }}-macos - cancel-in-progress: true - -jobs: - build_appleclang: - name: AppleClang - runs-on: macos-latest - if: github.event.pull_request.draft == false - env: - CXXFLAGS: "-Werror -Wno-error=pass-failed" - # For macOS, Ninja is slower than the default: - #CMAKE_GENERATOR: Ninja - # setuptools/mp4py work-around, see - # https://github.com/mpi4py/mpi4py/pull/159 - # https://github.com/mpi4py/mpi4py/issues/157#issuecomment-1001022274 - SETUPTOOLS_USE_DISTUTILS: stdlib - steps: - - uses: actions/checkout@v5 - - uses: actions/setup-python@v5 - name: Install Python - with: - python-version: '3.x' - - name: Brew Cache - uses: actions/cache@v3 - # - once stored under a key, they become immutable (even if local cache path content changes) - # - for a refresh the key has to change, e.g., hash of a tracked file in the key - with: - path: | - /usr/local/bin - /usr/local/lib - /usr/local/share - /Users/runner/Library/Caches/Homebrew - key: brew-macos-appleclang-${{ hashFiles('.github/workflows/macos.yml') }} - restore-keys: | - brew-macos-appleclang- - - name: install dependencies - run: | - brew --cache - set +e - brew unlink gcc - brew update - brew install ccache - brew install fftw - brew install libomp - brew link --force libomp - brew install ninja - brew install open-mpi - brew install pkg-config - brew install zlib - set -e - brew tap openpmd/openpmd - brew install openpmd-api - - name: install pip dependencies - run: | - python3 -m pip install --upgrade pip - python3 -m pip install --upgrade build packaging setuptools wheel - python3 -m pip install --upgrade mpi4py - - name: CCache Cache - uses: actions/cache@v3 - # - once stored under a key, they become immutable (even if local cache path content changes) - # - for a refresh the key has to change, e.g., hash of a tracked file in the key - with: - path: /Users/runner/Library/Caches/ccache - key: ccache-macos-appleclang-${{ hashFiles('.github/workflows/macos.yml') }}-${{ hashFiles('cmake/dependencies/AMReX.cmake') }} - restore-keys: | - ccache-macos-appleclang-${{ hashFiles('.github/workflows/macos.yml') }}- - ccache-macos-appleclang- - - name: build WarpX - run: | - export ZLIB_ROOT=$(brew --prefix zlib) - export PKG_CONFIG_PATH="$ZLIB_ROOT/lib/pkgconfig:$PKG_CONFIG_PATH" - cmake -S . -B build_dp \ - -DCMAKE_VERBOSE_MAKEFILE=ON \ - -DWarpX_EB=ON \ - -DWarpX_OPENPMD=ON \ - -DWarpX_openpmd_internal=OFF \ - -DZLIB_ROOT="$ZLIB_ROOT" - cmake --build build_dp -j 3 - - cmake -S . -B build_sp \ - -DCMAKE_VERBOSE_MAKEFILE=ON \ - -DWarpX_EB=ON \ - -DWarpX_LIB=ON \ - -DWarpX_OPENPMD=ON \ - -DWarpX_openpmd_internal=OFF \ - -DWarpX_PRECISION=SINGLE \ - -DZLIB_ROOT="$ZLIB_ROOT" - cmake --build build_sp -j 3 diff --git a/.github/workflows/source.yml b/.github/workflows/source.yml index 2df373d63..d2f993fee 100644 --- a/.github/workflows/source.yml +++ b/.github/workflows/source.yml @@ -27,17 +27,3 @@ jobs: run: .github/workflows/source/hasTabs - name: End-of-Line whitespaces run: .github/workflows/source/hasEOLwhiteSpace - - name: Proper file names in Examples - if: false - run: .github/workflows/source/wrongFileNameInExamples - - name: Examples are tested - if: false - run: .github/workflows/source/inputsNotTested - - name: Check that the test matrix for CI includes all tests - if: false - run: .github/workflows/source/test_ci_matrix.sh - - name: Doxygen - if: false - run: | - sudo apt-get install -y --no-install-recommends doxygen - .github/workflows/source/doxygen diff --git a/.github/workflows/source/ci_matrix.py b/.github/workflows/source/ci_matrix.py deleted file mode 100644 index 79f4d878c..000000000 --- a/.github/workflows/source/ci_matrix.py +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env python - -# Concatenation of tests in each of the 6 elements in CI matrix -f = open('./ci_matrix_elements.txt') ; matrix_elements = f.readlines() ; f.close() -# All tests read by prepare_file_ci.py -f = open('./ci_all_tests.txt') ; all_tests = f.readlines() ; f.close() - -# Now let's make sure these two are equal - -# Remove these elements from both lists, as they are are not test names -elements_to_remove = ['[main]\n', '[AMReX]\n', '[source]\n', '[extra-PICSAR]\n'] -for element in elements_to_remove: - for x in range(matrix_elements.count(element)): - matrix_elements.remove(element) - for x in range(all_tests.count(element)): - all_tests.remove(element) - -# Sort lists, and make sure they are equal -matrix_elements.sort() -all_tests.sort() -print("Tests in matrix, but not in initial list (typically if a test is done twice):") -print(list(set(matrix_elements) - set(all_tests))) -print("Tests in initial list but not in the matrix:") -print(list(set(all_tests) - set(matrix_elements))) - -assert( matrix_elements == all_tests ) diff --git a/.github/workflows/source/doxygen b/.github/workflows/source/doxygen deleted file mode 100755 index 31356442e..000000000 --- a/.github/workflows/source/doxygen +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/env bash -# -# Copyright 2020 Axel Huebl -# -# License: BSD-3-Clause-LBNL - -# search recursive inside a folder if a file contains tabs -# -# @result 0 if no files are found, else 1 -# - -set -eu -o pipefail - -cd Docs -doxygen diff --git a/.github/workflows/source/inputsNotTested b/.github/workflows/source/inputsNotTested deleted file mode 100755 index 2c7d88652..000000000 --- a/.github/workflows/source/inputsNotTested +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env bash - -# Search input files in Examples/ and verify if all input files are tested - -set -eu -o pipefail - -ok=0 - -exit $ok diff --git a/.github/workflows/source/test_ci_matrix.sh b/.github/workflows/source/test_ci_matrix.sh deleted file mode 100755 index e77d5ce26..000000000 --- a/.github/workflows/source/test_ci_matrix.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env bash - -set -eu -o pipefail - -cp .github/workflows/source/ci_matrix.py Regression/ -cd Regression/ - -# Put the name of all CI tests into a text file -python prepare_file_ci.py -grep "\[" ci-tests.ini > ci_all_tests.txt - - -export WARPX_CI_PSATD=TRUE - -# Concatenate the names of all elements in CI matrix into another test file -WARPX_CI_REGULAR_CARTESIAN_1D=TRUE python prepare_file_ci.py -grep "\[" ci-tests.ini > ci_matrix_elements.txt -WARPX_CI_REGULAR_CARTESIAN_2D=TRUE python prepare_file_ci.py -grep "\[" ci-tests.ini >> ci_matrix_elements.txt -WARPX_CI_REGULAR_CARTESIAN_3D=TRUE python prepare_file_ci.py -grep "\[" ci-tests.ini >> ci_matrix_elements.txt -WARPX_CI_SINGLE_PRECISION=TRUE python prepare_file_ci.py -grep "\[" ci-tests.ini >> ci_matrix_elements.txt -WARPX_CI_RZ_OR_NOMPI=TRUE python prepare_file_ci.py -grep "\[" ci-tests.ini >> ci_matrix_elements.txt -WARPX_CI_QED=TRUE python prepare_file_ci.py -grep "\[" ci-tests.ini >> ci_matrix_elements.txt -WARPX_CI_EB=TRUE python prepare_file_ci.py -grep "\[" ci-tests.ini >> ci_matrix_elements.txt - -# Check that the resulting lists are equal -{ - python ci_matrix.py && - rm ci_all_tests.txt ci_matrix_elements.txt ci_matrix.py && - echo "test passed" && - exit 0 -} || { - rm ci_all_tests.txt ci_matrix_elements.txt ci_matrix.py && - echo "tests failed" && - exit 1 -} diff --git a/.github/workflows/source/wrongFileNameInExamples b/.github/workflows/source/wrongFileNameInExamples deleted file mode 100755 index e116b9df0..000000000 --- a/.github/workflows/source/wrongFileNameInExamples +++ /dev/null @@ -1,42 +0,0 @@ -#!/usr/bin/env bash -# -# Search inside Examples/ and check that file names start with -# inputs -# PICMI_inputs -# analysis -# README - -set -eu -o pipefail - -ok=0 -files=() - -for pathtofile in $(find Examples -type f) -do - file=$(basename $pathtofile) - if [[ ${file:0:6 } != inputs ]] && - [[ ${file:0:12} != PICMI_inputs ]] && - [[ ${file:0:8 } != analysis ]] && - [[ ${file: -4} != yaml ]] && - [[ ${file:0:6 } != README ]] - then - files+=($file) - echo "$pathtofile does not have a proper name!" - ok=1 - fi -done - -if [ $ok -ne 0 ] -then - echo "" - echo "Files in Examples/ must start with one of:" - echo " - inputs : for WarpX input files" - echo " - PICMI_inputs : for PICMI-compliant input scripts" - echo " - analysis : for scripts testing the accuracy of a test" - echo " - *.yaml : for third-party input, e.g. Ascent in situ visualization" - echo " - README : for readme files" - echo "" - echo "Please rename the file(s) to comply, or move to another folder" -fi - -exit $ok diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index c39dd26be..4c7f1a076 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -1,168 +1,53 @@ -name: 🐧 OpenMP +name: 🐧 GCC on: [push, pull_request] concurrency: - group: ${{ github.ref }}-${{ github.head_ref }}-ubuntu + group: ${{ github.ref }}-${{ github.head_ref }}-gcc cancel-in-progress: true jobs: - build_cxxminimal: - name: GCC Minimal w/o MPI + build_gnumake: + name: ${{ matrix.name }} runs-on: ubuntu-24.04 if: github.event.pull_request.draft == false - env: - CXXFLAGS: "-Werror" + strategy: + fail-fast: false + matrix: + include: + - name: GCC + llg: FALSE + - name: GCC with LLG + llg: TRUE steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: install dependencies run: | .github/workflows/dependencies/gcc.sh + sudo apt-get install -y libopenmpi-dev openmpi-bin - name: CCache Cache - uses: actions/cache@v3 - # - once stored under a key, they become immutable (even if local cache path content changes) - # - for a refresh the key has to change, e.g., hash of a tracked file in the key - with: - path: | - ~/.ccache - ~/.cache/ccache - key: ccache-openmp-cxxminimal-${{ hashFiles('.github/workflows/ubuntu.yml') }}-${{ hashFiles('cmake/dependencies/AMReX.cmake') }} - restore-keys: | - ccache-openmp-cxxminimal-${{ hashFiles('.github/workflows/ubuntu.yml') }}- - ccache-openmp-cxxminimal- - - name: build WarpX - run: | - cmake -S . -B build_3D \ - -DCMAKE_VERBOSE_MAKEFILE=ON \ - -DWarpX_EB=OFF \ - -DWarpX_MPI=OFF \ - -DWarpX_QED=OFF - cmake --build build_3D -j 2 - - cmake -S . -B build_3D_EM \ - -DCMAKE_VERBOSE_MAKEFILE=ON \ - -DWarpX_EB=OFF \ - -DWarpX_MPI=OFF \ - -DWarpX_QED=OFF \ - -DWarpX_MAG_LLG=OFF - cmake --build build_3D_EM -j 2 - - build_1D_2D: - name: GCC 1D & 2D w/ MPI - runs-on: ubuntu-22.04 - if: github.event.pull_request.draft == false && false - env: - CXXFLAGS: "-Werror" - CXX: "g++-12" - CC: "gcc-12" - steps: - - uses: actions/checkout@v3 - - name: install dependencies - run: | - .github/workflows/dependencies/gcc12.sh - - name: CCache Cache - uses: actions/cache@v3 + uses: actions/cache@v4 # - once stored under a key, they become immutable (even if local cache path content changes) # - for a refresh the key has to change, e.g., hash of a tracked file in the key with: path: | ~/.ccache ~/.cache/ccache - key: ccache-openmp-1D-2D-${{ hashFiles('.github/workflows/ubuntu.yml') }}-${{ hashFiles('cmake/dependencies/AMReX.cmake') }} + key: ccache-gcc-llg${{ matrix.llg }}-${{ hashFiles('.github/workflows/ubuntu.yml') }}-${{ hashFiles('dependencies.json') }} restore-keys: | - ccache-openmp-1D-2D-${{ hashFiles('.github/workflows/ubuntu.yml') }}- - ccache-openmp-1D-2D- - - name: build WarpX + ccache-gcc-llg${{ matrix.llg }}-${{ hashFiles('.github/workflows/ubuntu.yml') }}- + ccache-gcc-llg${{ matrix.llg }}- + - name: build run: | - # cmake -S . -B build_1D \ - # -GNinja \ - # -DCMAKE_VERBOSE_MAKEFILE=ON \ - # -DWarpX_DIMS=1 \ - # -DWarpX_EB=OFF \ - # -DWarpX_MAG_LLG=OFF \ - # -DWarpX_PSATD=ON \ - # -DWarpX_QED_TABLE_GEN=ON - # cmake --build build_1D -j 2 + export CCACHE_COMPRESS=1 + export CCACHE_COMPRESSLEVEL=10 + export CCACHE_MAXSIZE=600M + ccache -z - cmake -S . -B build_2D \ - -GNinja \ - -DCMAKE_VERBOSE_MAKEFILE=ON \ - -DWarpX_DIMS=2 \ - -DWarpX_EB=OFF \ - -DWarpX_MAG_LLG=OFF \ - -DWarpX_PSATD=ON \ - -DWarpX_QED_TABLE_GEN=ON - cmake --build build_2D -j 2 + # AMReX at the commit pinned in dependencies.json, next to the repo (GNUmakefile expects ../amrex) + git clone https://github.com/AMReX-Codes/amrex.git ../amrex + git -C ../amrex checkout --detach $(jq -r .commit_amrex dependencies.json) - build_gcc_ablastr: - name: GCC ABLASTR w/o MPI - runs-on: ubuntu-24.04 - if: github.event.pull_request.draft == false - env: - CMAKE_GENERATOR: Ninja - CXXFLAGS: "-Werror" - steps: - - uses: actions/checkout@v3 - - name: install dependencies - run: | - .github/workflows/dependencies/gcc.sh - sudo apt-get install -y libopenmpi-dev openmpi-bin - - name: CCache Cache - uses: actions/cache@v3 - # - once stored under a key, they become immutable (even if local cache path content changes) - # - for a refresh the key has to change, e.g., hash of a tracked file in the key - with: - path: | - ~/.ccache - ~/.cache/ccache - key: ccache-openmp-gccablastr-${{ hashFiles('.github/workflows/ubuntu.yml') }}-${{ hashFiles('cmake/dependencies/AMReX.cmake') }} - restore-keys: | - ccache-openmp-gccablastr-${{ hashFiles('.github/workflows/ubuntu.yml') }}- - ccache-openmp-gccablastr- - - name: build WarpX - run: | - cmake -S . -B build \ - -DCMAKE_VERBOSE_MAKEFILE=ON \ - -DWarpX_APP=OFF \ - -DWarpX_LIB=OFF - cmake --build build -j 2 + make -j 2 DIM=3 USE_MPI=TRUE USE_OMP=FALSE USE_LLG=${{ matrix.llg }} USE_CCACHE=TRUE - build_pyfull: - name: Clang pywarpx - runs-on: ubuntu-24.04 - if: github.event.pull_request.draft == false && false # Second condition prevents running - env: - # On CI for this test, Ninja is slower than the default: - #CMAKE_GENERATOR: Ninja - # setuptools/mp4py work-around, see - # https://github.com/mpi4py/mpi4py/pull/159 - # https://github.com/mpi4py/mpi4py/issues/157#issuecomment-1001022274 - SETUPTOOLS_USE_DISTUTILS: stdlib - steps: - - uses: actions/checkout@v3 - - name: install dependencies - run: | - .github/workflows/dependencies/pyfull.sh - - name: CCache Cache - uses: actions/cache@v3 - # - once stored under a key, they become immutable (even if local cache path content changes) - # - for a refresh the key has to change, e.g., hash of a tracked file in the key - with: - path: | - ~/.ccache - ~/.cache/ccache - key: ccache-openmp-pyfull-${{ hashFiles('.github/workflows/ubuntu.yml') }}-${{ hashFiles('cmake/dependencies/AMReX.cmake') }} - restore-keys: | - ccache-openmp-pyfull-${{ hashFiles('.github/workflows/ubuntu.yml') }}- - ccache-openmp-pyfull- - - name: build WarpX - run: | - python3 -m pip install --upgrade pip setuptools wheel - export WARPX_MPI=ON - export WARPX_OPENPMD=ON - export WARPX_PSATD=ON - export WARPX_QED_TABLE_GEN=ON - export CC=$(which clang) - export CXX=$(which clang++) - export CXXFLAGS="-Werror -Wno-error=pass-failed" - python3 -m pip install -v . + ccache -s diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml deleted file mode 100644 index a1dab4ce3..000000000 --- a/.github/workflows/windows.yml +++ /dev/null @@ -1,106 +0,0 @@ -name: 🪟 Windows - -on: [push, pull_request] - -concurrency: - group: ${{ github.ref }}-${{ github.head_ref }}-windows - cancel-in-progress: true - -jobs: - build_win_msvc: - name: MSVC C++17 w/o MPI - runs-on: windows-latest - if: github.event.pull_request.draft == false - steps: - - uses: actions/checkout@v3 - - - name: Install zlib - run: | - vcpkg install zlib:x64-windows - - - name: CCache Cache - uses: actions/cache@v3 - # - once stored under a key, they become immutable (even if local cache path content changes) - # - for a refresh the key has to change, e.g., hash of a tracked file in the key - with: - path: | - ~/.ccache - ~/.cache/ccache - key: ccache-windows-winmsvc-${{ hashFiles('.github/workflows/windows.yml') }}-${{ hashFiles('cmake/dependencies/AMReX.cmake') }} - restore-keys: | - ccache-windows-winmsvc-${{ hashFiles('.github/workflows/windows.yml') }}- - ccache-windows-winmsvc- - - - name: Build & Install - run: | - cmake -S . -B build ` - -DCMAKE_BUILD_TYPE=Debug ` - -DCMAKE_VERBOSE_MAKEFILE=ON ` - -DWarpX_COMPUTE=NOACC ` - -DWarpX_OPENPMD=ON ` - -DWarpX_MPI=OFF ` - -DWarpX_MAG_LLG=OFF ` - -DWarpX_LIB=ON ` - -DCMAKE_TOOLCHAIN_FILE="$env:VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake" - if(!$?) { Exit $LASTEXITCODE } - cmake --build build --config Debug --parallel 2 - if(!$?) { Exit $LASTEXITCODE } - - python3 -m pip install --upgrade pip setuptools wheel - if(!$?) { Exit $LASTEXITCODE } - cmake --build build --config Debug --target pip_install - if(!$?) { Exit $LASTEXITCODE } - - # python3 Examples\Tests\gaussian_beam\PICMI_inputs_gaussian_beam.py -# JSON writes are currently very slow (50min) with MSVC -# --diagformat=openpmd - - build_win_clang: - name: Clang C++17 w/ OMP w/o MPI - runs-on: windows-2022 - if: github.event.pull_request.draft == false - steps: - - uses: actions/checkout@v3 - - - name: Install zlib - run: | - vcpkg install zlib:x64-windows - - - name: CCache Cache - uses: actions/cache@v3 - # - once stored under a key, they become immutable (even if local cache path content changes) - # - for a refresh the key has to change, e.g., hash of a tracked file in the key - with: - path: | - ~/.ccache - ~/.cache/ccache - key: ccache-windows-winclang-${{ hashFiles('.github/workflows/windows.yml') }}-${{ hashFiles('cmake/dependencies/AMReX.cmake') }} - restore-keys: | - ccache-windows-winclang-${{ hashFiles('.github/workflows/windows.yml') }}- - ccache-windows-winclang- - - uses: seanmiddleditch/gha-setup-ninja@master - - name: Build & Install - shell: cmd - run: | - call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\vc\Auxiliary\build\vcvarsall.bat" x64 - cmake -S . -B build ^ - -G "Ninja" ^ - -DCMAKE_C_COMPILER=clang-cl ^ - -DCMAKE_CXX_COMPILER=clang-cl ^ - -DCMAKE_BUILD_TYPE=Release ^ - -DCMAKE_VERBOSE_MAKEFILE=ON ^ - -DWarpX_COMPUTE=OMP ^ - -DWarpX_EB=ON ^ - -DWarpX_LIB=ON ^ - -DWarpX_MPI=OFF ^ - -DWarpX_MAG_LLG=OFF ^ - -DWarpX_OPENPMD=ON ^ - -DCMAKE_TOOLCHAIN_FILE="%VCPKG_INSTALLATION_ROOT%/scripts/buildsystems/vcpkg.cmake" - if errorlevel 1 exit 1 - cmake --build build --config Release --parallel 2 - if errorlevel 1 exit 1 - - python3 -m pip install --upgrade pip setuptools wheel - if errorlevel 1 exit 1 - cmake --build build --config Release --target pip_install - if errorlevel 1 exit 1 diff --git a/.mailmap b/.mailmap deleted file mode 100644 index be5ee843e..000000000 --- a/.mailmap +++ /dev/null @@ -1,47 +0,0 @@ -Andrew Myers Andrew Myers -Andrew Myers atmyers -Aurore Blelly ablelly -Aurore Blelly ablelly <48810880+ablelly@users.noreply.github.com> -Axel Huebl Axel Huebl -David Bizzozero dbizzozero -David Grote grote -David Grote Dave -David Grote Dave Grote -David Grote Grote -Edoardo Zoni Edoardo Zoni -Edoardo Zoni Edoardo Zoni <59625522+EZoni@users.noreply.github.com> -Glenn Richardson gtrichardson -Jaehong Park jaehongp -Jean-Luc Vay Jean-Luc Vay -Jean-Luc Vay Jean-Luc Vay -Jean-Luc Vay Jean-Luc Vay -Junmin Gu guj -Ligia Diana Amorim L. Diana Amorim -Ligia Diana Amorim Diana Amorim -Ligia Diana Amorim Ligia Diana Amorim -Ligia Diana Amorim Ligia Diana Amorim -Lixin Ge lixin -Luca Fedeli Luca Fedeli -Luca Fedeli lucafedeli88 -Luca Fedeli Luca Fedeli -Luca Fedeli Luca Fedeli -Luca Fedeli Luca -Kevin Gott kngott <30483578+kngott@users.noreply.github.com> -Mathieu Lobet Mathieu Lobet -Mathieu Lobet mathieu_lobet -Maxence Thevenet MaxThevenet -Maxence Thevenet Maxence Thévenet -Maxence Thevenet mthevenet -Remi Lehe Remi Lehe -Revathi Jambunathan RevathiJambunathan -Revathi Jambunathan RevathiJambunathan -Revathi Jambunathan Revathi Jambunathan -Revathi Jambunathan Revathi Jambunathan -Revathi Jambunathan Revathi Jambunathan -Revathi Jambunathan Revathi Jambunathan -Revathi Jambunathan Revathi Jambunathan <41089244+RevathiJambunathan@users.noreply.github.com> -Revathi Jambunathan Revathi Jambunathan -Weiqun Zhang Weiqun Zhang -Weiqun Zhang WeiqunZhang Yin-YinjianZhao -Yinjian Zhao Yin-YinjianZhao <56095356+Yin-YinjianZhao@users.noreply.github.com> diff --git a/.zenodo.json b/.zenodo.json deleted file mode 100644 index 43af64573..000000000 --- a/.zenodo.json +++ /dev/null @@ -1,263 +0,0 @@ -{ - "creators": [ - { - "affiliation": "Lawrence Berkeley National Laboratory", - "name": "Vay, Jean-Luc", - "orcid": "0000-0002-0040-799X" - }, - { - "affiliation": "Lawrence Berkeley National Laboratory", - "name": "Almgren, Ann", - "orcid": "0000-0003-2103-312X" - }, - { - "affiliation": "Lawrence Berkeley National Laboratory", - "name": "Amorim, L\u00edgia Diana", - "orcid": "0000-0002-1445-0032" - }, - { - "affiliation": "Laboratoire d'Optique Appliqu\u00e9e", - "name": "Andriyash, Igor", - "orcid": "0000-0003-0313-4496" - }, - { - "affiliation": "Lawrence Berkeley National Laboratory", - "name": "Belkin, Daniel", - "orcid": "0000-0002-3936-6419" - }, - { - "affiliation": "Lawrence Berkeley National Laboratory", - "name": "Bizzozero, David" - }, - { - "affiliation": "Lawrence Berkeley National Laboratory", - "name": "Blelly, Aurore" - }, - { - "affiliation": "Lawrence Livermore National Laboratory", - "name": "Clark, Stephen Eric", - "orcid": "0000-0002-0117-776X" - }, - { - "affiliation": "LIDYL, CEA-Universit\u00e9 Paris-Saclay, CEA Saclay", - "name": "Fedeli, Luca", - "orcid": "0000-0002-7215-4178" - }, - { - "affiliation": "Lawrence Berkeley National Laboratory", - "name": "Garten, Marco", - "orcid": "0000-0001-6994-2475" - }, - { - "affiliation": "SLAC National Accelerator Laboratory", - "name": "Ge, Lixin", - "orcid": "0000-0002-1442-0706" - }, - { - "affiliation": "Lawrence Berkeley National Laboratory", - "name": "Gott, Kevin", - "orcid": "0000-0003-3244-5525" - }, - { - "affiliation": "Lawrence Livermore National Laboratory", - "name": "Harrison, Cyrus", - "orcid": "0000-0001-8985-0906" - }, - { - "affiliation": "Lawrence Berkeley National Laboratory", - "name": "Huebl, Axel", - "orcid": "0000-0003-1943-7141" - }, - { - "affiliation": "CERN", - "name": "Giacomel, Lorenzo", - "orcid": "0000-0002-1750-9757" - }, - { - "affiliation": "Modern Electron", - "name": "Groenewald, Roelof E.", - "orcid": "0000-0002-5282-7152" - }, - { - "affiliation": "Lawrence Livermore National Laboratory", - "name": "Grote, David", - "orcid": "0000-0002-4057-8582" - }, - { - "affiliation": "Lawrence Berkeley National Laboratory", - "name": "Gu, Junmin", - "orcid": "0000-0002-1521-8534" - }, - { - "affiliation": "Lawrence Berkeley National Laboratory", - "name": "Jambunathan, Revathi", - "orcid": "0000-0001-9432-2091" - }, - { - "affiliation": "Lawrence Berkeley National Laboratory", - "name": "Klion, Hannah", - "orcid": "0000-0003-2095-4293" - }, - { - "affiliation": "Lawrence Berkeley National Laboratory", - "name": "Kumar, Prabhat", - "orcid": "0000-0002-8454-7497" - }, - { - "affiliation": "Lawrence Berkeley National Laboratory, now DESY", - "name": "Th\u00e9venet, Maxence", - "orcid": "0000-0001-7216-2277" - }, - { - "affiliation": "Lawrence Berkeley National Laboratory", - "name": "Richardson, Glenn", - "orcid": "0000-0003-0313-4496" - }, - { - "affiliation": "Lawrence Berkeley National Laboratory", - "name": "Shapoval, Olga", - "orcid": "0000-0003-4003-4507" - }, - { - "affiliation": "Lawrence Berkeley National Laboratory", - "name": "Lehe, Remi", - "orcid": "0000-0002-3656-9659" - }, - { - "affiliation": "Lawrence Berkeley National Laboratory", - "name": "Loring, Burlen", - "orcid": "0000-0002-4678-8142" - }, - { - "affiliation": "Intense Computing", - "name": "Miller, Phil", - "orcid": "0000-0001-5772-3654" - }, - { - "affiliation": "Lawrence Berkeley National Laboratory", - "name": "Myers, Andrew", - "orcid": "0000-0001-8427-8330" - }, - { - "affiliation": "Lawrence Berkeley National Laboratory", - "name": "Rheaume, Elisa", - "orcid": "0000-0002-6710-0650" - }, - { - "affiliation": "Lawrence Berkeley National Laboratory", - "name": "Rowan, Michael E.", - "orcid": "0000-0003-2406-1273" - }, - { - "affiliation": "Lawrence Berkeley National Laboratory", - "name": "Sandberg, Ryan T.", - "orcid": "0000-0001-7680-8733" - }, - { - "affiliation": "Modern Electron", - "name": "Scherpelz, Peter", - "orcid": "0000-0001-8185-3387" - }, - { - "affiliation": "Lawrence Berkeley National Laboratory", - "name": "Yang, Eloise", - "orcid": "0000-0002-9319-4216" - }, - { - "affiliation": "Lawrence Berkeley National Laboratory", - "name": "Zhang, Weiqun", - "orcid": "0000-0001-8092-1974" - }, - { - "affiliation": "Lawrence Berkeley National Laboratory", - "name": "Zhao, Yinjian", - "orcid": "0000-0003-4362-3630" - }, - { - "affiliation": "Modern Electron", - "name": "Zhu, Kevin Z.", - "orcid": "0000-0002-8992-305X" - }, - { - "affiliation": "Lawrence Berkeley National Laboratory", - "name": "Zoni, Edoardo", - "orcid": "0000-0001-5662-4646" - }, - { - "affiliation": "LIDYL, CEA-Universit\u00e9 Paris-Saclay, CEA Saclay", - "name": "Zaim, Ne\u00efl", - "orcid": "0000-0003-0313-4496" - } - ], - "contributors": [ - { - "type": "Other", - "affiliation": "Lawrence Berkeley National Laboratory", - "name": "Weber, Gunther H.", - "orcid": "0000-0002-1794-1398" - }, - { - "type": "Other", - "affiliation": "Intel", - "name": "Cohn, Robert" - }, - { - "type": "Other", - "affiliation": "Modern Electron", - "name": "Kieburtz, Michael", - "orcid": "0000-0001-6161-3669" - }, - { - "type": "Other", - "affiliation": "Bloomberg LP", - "name": "Levine, Michael" - }, - { - "type": "Other", - "affiliation": "Helmholtz Institute Jena", - "name": "Liu, Bin", - "orcid": "0000-0002-8066-184X" - }, - { - "type": "Other", - "affiliation": "SLAC National Accelerator Laboratory", - "name": "Ng, Cho-Kuen", - "orcid": "0000-0002-1903-904X" - }, - { - "type": "Other", - "affiliation": "Lawrence Berkeley National Laboratory", - "name": "Park, Jaehong" - }, - { - "type": "Other", - "affiliation": "Modern Electron", - "name": "Ruof, Nicholas W.", - "orcid": "0000-0001-9665-6722" - } - ], - "license": { - "id": "BSD-3-Clause-LBNL" - }, - "language": "eng", - "keywords": [ - "research", - "simulation", - "plasma", - "particle-in-cell", - "gpu", - "laser", - "physics", - "pic" - ], - "access_right": "open", - "references": [ - "Myers A, Almgren A, Amorim LD, Bell J, Fedeli L, Ge L, Gott K, Grote DP, Hogan M, Huebl A, Jambunathan R, Lehe R, Ng C, Rowan M, Shapoval O, Thevenet M, Vay JL, Vincenti H, Yang E, Zaim N, Zhang W, Zhao Y, Zoni E. Porting WarpX to GPU-accelerated platforms. Parallel Computing. 2021 Sep, 108:102833. https://doi.org/10.1016/j.parco.2021.102833", - "Fedeli L, Zaim N, Sainte-Marie A, Thevenet M, Huebl A, Myers A, Vay J-L, Vincenti H. PICSAR-QED: a Monte Carlo module to simulate Strong-Field Quantum Electrodynamics in Particle-In-Cell codes for exascale architectures. New Journal of Physics. in-press, 2022. https://arxiv.org/abs/2110.00256", - "Zoni E, Lehe R, Shapoval O, Belkin D, Zaim N, Fedeli L, Vincenti H, Vay J-L. A Hybrid Nodal-Staggered Pseudo-Spectral Electromagnetic Particle-In-Cell Method with Finite-Order Centering. under review, 2022. https://arxiv.org/abs/2106.12919", - "Shapoval O, Lehe R, Thevenet M, Zoni E, Zhao Y, Vay J-L. Overcoming timestep limitations in boosted-frame Particle-In-Cell simulations of plasma-based acceleration. Phys. Rev. E. Nov 2021, 104:055311. https://doi.org/10.1103/PhysRevE.104.055311", - "Vay JL, Huebl A, Almgren A, Amorim LD, Bell J, Fedeli L, Ge L, Gott K, Grote DP, Hogan M, Jambunathan R, Lehe R, Myers A, Ng C, Rowan M, Shapoval O, Thevenet M, Vincenti H, Yang E, Zaim N, Zhang W, Zhao Y, Zoni E. Modeling of a chain of three plasma accelerator stages with the WarpX electromagnetic PIC code on GPUs. Physics of Plasmas. 2021 Feb 9, 28(2):023105. https://doi.org/10.1063/5.0028512", - "Rowan ME, Gott KN, Deslippe J, Huebl A, Thevenet M, Lehe R, Vay JL. In-situ assessment of device-side compute work for dynamic load balancing in a GPU-accelerated PIC code. PASC '21: Proceedings of the Platform for Advanced Scientific Computing Conference. 2021 July, 10, pages 1-11. https://doi.org/10.1145/3468267.3470614", - "Vay JL, Almgren A, Bell J, Ge L, Grote DPHogan M, Kononenko O, Lehe R, Myers A, Ng C, Park J, Ryne R, Shapovala O, Thevene M, Zhang W. Warp-X: A new exascale computing platform for beam–plasma simulations. Nuclear Instruments and Methods in Physics Research Section A: Accelerators, Spectrometers, Detectors and Associated Equipment. 2018 Nov, 909(12) Pages 476-479. https://doi.org/10.1016/j.nima.2018.01.035" - ] -} diff --git a/CMakeLists.txt b/CMakeLists.txt index f32cb341b..71e447630 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -33,7 +33,7 @@ endif() # C++ Standard in Superbuilds ################################################# # -# This is the easiest way to push up a C++17 requirement for AMReX, PICSAR and +# This is the easiest way to push up a C++17 requirement for AMReX and # openPMD-api until they increase their requirement. set_cxx17_superbuild() @@ -69,8 +69,6 @@ option(WarpX_MPI "Multi-node support (message-passing)" ON) option(WarpX_OPENPMD "openPMD I/O (HDF5, ADIOS)" ON) option(WarpX_PSATD "spectral solver support" OFF) option(WarpX_SENSEI "SENSEI in situ diagnostics" OFF) -option(WarpX_QED "QED support (requires PICSAR)" ON) -option(WarpX_QED_TABLE_GEN "QED table generation (requires PICSAR and Boost)" OFF) option(WarpX_MAG_LLG "LLG for magnetization modeling" ON) set(WarpX_DIMS_VALUES 1 2 3 RZ) @@ -133,10 +131,6 @@ include(${WarpX_SOURCE_DIR}/cmake/dependencies/AMReX.cmake) # suppress warnings in AMReX headers (use -isystem instead of -I) warpx_make_third_party_includes_system(AMReX::amrex AMReX) -# PICSAR -# builds PICSAR from source -include(${WarpX_SOURCE_DIR}/cmake/dependencies/PICSAR.cmake) - # openPMD # builds openPMD-api from source (default) or finds an existing install include(${WarpX_SOURCE_DIR}/cmake/dependencies/openPMD.cmake) @@ -281,14 +275,6 @@ if(WarpX_MAG_LLG) target_compile_definitions(WarpX PUBLIC WARPX_MAG_LLG) endif() -if(WarpX_QED) - target_compile_definitions(ablastr PUBLIC WARPX_QED) - if(WarpX_QED_TABLE_GEN) - target_compile_definitions(ablastr PUBLIC WARPX_QED_TABLE_GEN) - endif() - target_link_libraries(ablastr PUBLIC PXRMP_QED::PXRMP_QED) -endif() - # Link zlib for cnpy support target_link_libraries(ablastr PUBLIC ZLIB::ZLIB) @@ -345,13 +331,6 @@ if(WarpX_OPENPMD) target_compile_definitions(ablastr PUBLIC WARPX_USE_OPENPMD) endif() -if(WarpX_QED) - target_compile_definitions(ablastr PUBLIC WARPX_QED) - if(WarpX_QED_TABLE_GEN) - target_compile_definitions(ablastr PUBLIC WarpX_QED_TABLE_GEN) - endif() -endif() - if(WarpX_PSATD) target_compile_definitions(ablastr PUBLIC WARPX_USE_PSATD) endif() @@ -445,59 +424,6 @@ endif() #) -# pip helpers for the pywarpx package ######################################### -# -if(WarpX_LIB) - set(PYINSTALLOPTIONS "" CACHE STRING - "Additional parameters to pass to `pip install`") - - # add a prefix to custom targets so we do not collide if used as a subproject - if(CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR) - set(_WarpX_CUSTOM_TARGET_PREFIX_DEFAULT "") - else() - set(_WarpX_CUSTOM_TARGET_PREFIX_DEFAULT "warpx_") - endif() - set(WarpX_CUSTOM_TARGET_PREFIX "${_WarpX_CUSTOM_TARGET_PREFIX_DEFAULT}" - CACHE STRING "Prefix for custom targets") - - # build the wheel by re-using the shared library we build - add_custom_target(${WarpX_CUSTOM_TARGET_PREFIX}pip_wheel - ${CMAKE_COMMAND} -E rm -f -r warpx-whl - COMMAND - ${CMAKE_COMMAND} -E env PYWARPX_LIB_DIR=$ - python3 -m pip wheel -v --no-build-isolation --no-deps --wheel-dir=warpx-whl ${WarpX_SOURCE_DIR} - WORKING_DIRECTORY - ${WarpX_BINARY_DIR} - DEPENDS - shared - ) - - # this will also upgrade/downgrade dependencies, e.g., when the version of picmistandard changes - if(WarpX_MPI) - set(pyWarpX_REQUIREMENT_FILE "requirements_mpi.txt") - else() - set(pyWarpX_REQUIREMENT_FILE "requirements.txt") - endif() - add_custom_target(${WarpX_CUSTOM_TARGET_PREFIX}pip_install_requirements - python3 -m pip install ${PYINSTALLOPTIONS} -r "${WarpX_SOURCE_DIR}/${pyWarpX_REQUIREMENT_FILE}" - WORKING_DIRECTORY - ${WarpX_BINARY_DIR} - ) - - # We force-install because in development, it is likely that the version of - # the package does not change, but the code did change. We need --no-deps, - # because otherwise pip would also force reinstall all dependencies. - add_custom_target(${WarpX_CUSTOM_TARGET_PREFIX}pip_install - ${CMAKE_COMMAND} -E env WARPX_MPI=${WarpX_MPI} - python3 -m pip install --force-reinstall --no-index --no-deps ${PYINSTALLOPTIONS} --find-links=warpx-whl pywarpx - WORKING_DIRECTORY - ${WarpX_BINARY_DIR} - DEPENDS - shared ${WarpX_CUSTOM_TARGET_PREFIX}pip_wheel ${WarpX_CUSTOM_TARGET_PREFIX}pip_install_requirements - ) -endif() - - # Tests ####################################################################### # diff --git a/CODE_OF_CONDUCT.rst b/CODE_OF_CONDUCT.rst deleted file mode 100644 index 2bacf9f62..000000000 --- a/CODE_OF_CONDUCT.rst +++ /dev/null @@ -1,61 +0,0 @@ -.. _coc: - -Code of Conduct -=============== - -Our Pledge ----------- - -In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation. - -Our Standards -------------- - -Examples of behavior that contributes to creating a positive environment include: - -- Using welcoming and inclusive language -- Being respectful of differing viewpoints and experiences -- Gracefully accepting constructive criticism -- Focusing on what is best for the community -- Showing empathy towards other community members - -Examples of unacceptable behavior by participants include: - -- The use of sexualized language or imagery and unwelcome sexual attention or advances -- Trolling, insulting/derogatory comments, and personal or political attacks -- Public or private harassment -- Publishing others' private information, such as a physical or electronic address, without explicit permission -- Other conduct which could reasonably be considered inappropriate in a professional setting - -Our Responsibilities --------------------- - -Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior. - -Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. - -Scope ------ - -This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. -Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. -Representation of a project may be further defined and clarified by project maintainers. - -Enforcement ------------ - -Instances of abusive, harassing, or otherwise unacceptable behavior may be -reported by contacting the project team at warpx-coc@lbl.gov. -All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. -The project team is obligated to maintain confidentiality with regard to the reporter of an incident. -Further details of specific enforcement policies may be posted separately. - -Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. - -Attribution ------------ - -This Code of Conduct is adapted from the `Contributor Covenant `_, version 1.4, available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html - -For answers to common questions about this code of conduct, see -https://www.contributor-covenant.org/faq diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst deleted file mode 100644 index 1495a98a9..000000000 --- a/CONTRIBUTING.rst +++ /dev/null @@ -1,235 +0,0 @@ -.. _developers-contributing: - -Contribute to WarpX -=================== - -We welcome new contributors! -Here is how to participate to the WarpX development. - -Git workflow ------------- - -The WarpX project uses `git `_ for version control. -If you are new to git, you can follow one of these tutorials: - -- `Learn git with bitbucket `_ -- `git - the simple guide `_ - -Configure your GitHub Account & Development Machine -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -First, let's setup your Git environment and GitHub account. - -1. Go to https://github.com/settings/profile and add your real name and affiliation -2. Go to https://github.com/settings/emails and add & verify the professional e-mails you want to be associated with. -3. Configure ``git`` on the machine you develop on to *use the same spelling of your name and email*: - - - ``git config --global user.name "FIRSTNAME LASTNAME"`` - - ``git config --global user.email EMAIL@EXAMPLE.com`` -4. Go to https://github.com/settings/keys and add the SSH public key of the machine you develop on. (Check out the GitHub guide to `generating SSH keys `__ or `troubleshoot common SSH problems `__. ) - -Make your own fork -^^^^^^^^^^^^^^^^^^ - -First, fork the WarpX `"mainline" repo on GitHub `__ by pressing the *Fork* button on the top right of the page. -A fork is a copy of WarpX on GitHub, which is under your full control. - -Then, we create local copies, for development: - -.. code-block:: sh - - # Clone the mainline WarpX source code to your local computer. - # You cannot write to this repository, but you can read from it. - git clone git@github.com:ECP-WarpX/WarpX.git - cd WarpX - - # rename what we just cloned: call it "mainline" - git remote rename origin mainline - - # Add your own fork. You can get this address on your fork's Github page. - # Here is where you will publish new developments, so that they can be - # reviewed and integrated into "mainline" later on. - # "myGithubUsername" needs to be replaced with your user name on GitHub. - git remote add myGithubUsername git@github.com:myGithubUsername/WarpX.git - -Now you are free to play with your fork (for additional information, you can visit the -`Github fork help page `__). - -.. note:: - - We only need to do the above steps for the first time. - -Let's Develop -^^^^^^^^^^^^^ - -You are all set! -Now, the basic WarpX development workflow is: - -1. Implement your changes and push them on a new branch ``branch_name`` on your fork. -2. Create a Pull Request from branch ``branch_name`` on your fork to branch ``development`` on the main WarpX repo. - -Create a branch ``branch_name`` (the branch name should reflect the piece of code you want to add, like ``fix-spectral-solver``) with - -.. code-block:: sh - - # start from an up-to-date development branch - git checkout development - git pull mainline development - - # create a fresh branch - git checkout -b branch_name - -and do the coding you want. - -It is probably a good time to look at the `AMReX documentation `_ and at the Doxygen reference pages: - -* WarpX Doxygen: https://warpx.readthedocs.io/en/latest/_static/doxyhtml -* AMReX Doxygen: https://amrex-codes.github.io/amrex/doxygen -* PICSAR Doxygen: (todo) - -Once you are done developing, add the files you created and/or modified to the ``git`` *staging area* with - -.. code-block:: sh - - git add - - -Build your changes -^^^^^^^^^^^^^^^^^^ - -If you changed C++ files, then now is a good time to test those changes by compiling WarpX locally. -Follow the `developer instructions in our manual `__ to set up a local development environment, then compile and `run `__ WarpX. - - -Commit & push your changes -^^^^^^^^^^^^^^^^^^^^^^^^^^ - -Periodically commit your changes with - -.. code-block:: sh - - git commit - -The commit message is super important in order to follow the developments during code-review and identify bugs. -A typical format is: - -.. code-block:: text - - This is a short, 40-character title - - After a newline, you can write arbitray paragraphs. You - usually limit the lines to 70 characters, but if you don't, then - nothing bad will happen. - - The most important part is really that you find a descriptive title - and add an empty newline after it. - -For the moment, commits are on your local repo only. -You can push them to your fork with - -.. code-block:: sh - - git push -u myGithubUsername branch_name - -If you want to synchronize your branch with the ``development`` branch (this is useful when the ``development`` branch is being modified while you are working on ``branch_name``), you can use - -.. code-block:: sh - - git pull mainline development - -and fix any conflict that may occur. - -Submit a Pull Request -^^^^^^^^^^^^^^^^^^^^^ - -A Pull Request (PR) is the way to efficiently visualize the changes you made and to propose your new feature/improvement/fix to the WarpX project. -Right after you push changes, a banner should appear on the Github page of your fork, with your ````. - -- Click on the ``compare & pull request`` button to prepare your PR. -- It is time to communicate your changes: write a title and a description for your PR. - People who review your PR are happy to know - - * what feature/fix you propose, and why - * how you made it (added new/edited files, created a new class than inherits from...) - * how you tested it and what was the output you got - * and anything else relevant to your PR (attach images and scripts, link papers, *etc.*) -- Press ``Create pull request``. - Now you can navigate through your PR, which highlights the changes you made. - -Please DO NOT write large pull requests, as they are very difficult and time-consuming to review. -As much as possible, split them into small, targeted PRs. -For example, if find typos in the documentation open a pull request that only fixes typos. -If you want to fix a bug, make a small pull request that only fixes a bug. - -If you want to implement a feature and are not too sure how to split it, just open an issue about your plans and ping other WarpX developers on it to chime in. -Generally, write helper functionality first, test it and then write implementation code. -Submit tests, documentation changes and implementation of a feature together for pull request review. - -Even before your work is ready to merge, it can be convenient to create a PR (so you can use Github tools to visualize your changes). -In this case, please put the ``[WIP]`` tag (for Work-In-Progress) at the beginning of the PR title. -You can also use the GitHub project tab in your fork to organize the work into separate tasks/PRs and share it with the WarpX community to get feedback. - -Include a test to your PR -""""""""""""""""""""""""" - -A new feature is great, a **working** new feature is even better! -Please test your code and add your test to the automated test suite. -It's the way to protect your work from adventurous developers. -Instructions are given in the :ref:`testing section ` of our `developer's documentation `_. - -Include documentation about your PR -""""""""""""""""""""""""""""""""""" - -Now, let users know about your new feature by describing its usage in the `WarpX documentation `_. -Our documentation uses `Sphinx `_, and it is located in ``Docs/source/``. -For instance, if you introduce a new runtime parameter in the input file, you can add it to :ref:`Docs/source/running_cpp/parameters.rst `. -If Sphinx is installed on your computer, you should be able to generate the html documentation with - -.. code-block:: sh - - make html - -in ``Docs/``. Then open ``Docs/build/html/index.html`` with your favorite web browser and look -for your changes. - -Once your code is ready with documentation and automated test, congratulations! -You can create the PR (or remove the ``[WIP]`` tag if you already created it). -Reviewers will interact with you if they have comments/questions. - - -.. _developers-contributing-style-conventions: - -Style and conventions ---------------------- - -- For indentation, WarpX uses four spaces (no tabs) - -- Some text editors automatically modify the files you open. We recommend to turn on to remove trailing spaces and replace Tabs with 4 spaces. - -- The number of characters per line should be <100 - -- Exception: in documentation files (``.rst``/``.md``) use one sentence per line independent of its number of characters, which will allow easier edits. - -- Space before and after assignment operator (``=``) - -- To define a function , for e.g., ``myfunction()`` use a space between the name of the function and the paranthesis - ``myfunction ()``. - To call the function, the space is not required, i.e., just use ``myfunction()``. - -- The reason this is beneficial is that when we do a ``git grep`` to search for ``myfunction ()``, we can clearly see the locations where ``myfunction ()`` is defined and where ``myfunction()`` is called. - -- Also, using ``git grep "myfunction ()"`` searches for files only in the git repo, which is more efficient compared to the ``grep "myfunction ()"`` command that searches through all the files in a directory, including plotfiles for example. - -- It is recommended that style changes are not included in the PR where new code is added. - This is to avoid any errors that may be introduced in a PR just to do style change. - -- WarpX uses ``CamelCase`` convention for file names and class names, rather than ``snake_case``. - -- The names of all member variables should be prefixed with ``m_``. - This is particularly useful to avoid capturing member variables by value in a lambda function, which causes the whole object to be copied to GPU when running on a GPU-accelerated architecture. - This convention should be used for all new piece of code, and it should be applied progressively to old code. - -- ``#include`` directives in C++ have a distinct order to avoid bugs, see :ref:`the WarpX repo structure ` for details - -- For all new code, we should avoid relying on ``using namespace amrex;`` and all amrex types should be prefixed with `amrex::`. - Inside limited scopes, AMReX type literals can be included with ``using namespace amrex::literals;``. - Ideally, old code should be modified accordingly. diff --git a/Docs/Makefile b/Docs/Makefile deleted file mode 100644 index 5c9c4d418..000000000 --- a/Docs/Makefile +++ /dev/null @@ -1,33 +0,0 @@ -# Minimal makefile for Sphinx documentation -# - -# You can set these variables from the command line. -SPHINXOPTS = -SPHINXBUILD = sphinx-build -SPHINXPROJ = WarpX -SOURCEDIR = source -BUILDDIR = build - -# Put it first so that "make" without argument is like "make help". -help: - @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) - -clean: - rm -rf - @$(SPHINXBUILD) -M clean "$(SOURCEDIR)" "$(BUILDDIR)" amrex-doxygen-web.tag.xml warpx-doxygen-web.tag.xml - -.PHONY: help Makefile - -# Catch-all target: route all unknown targets to Sphinx using the new -# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). -%: Makefile - @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) - -Python-build: - cd ../Python; make pybuild - -Doxygen-build: - doxygen Doxyfile - -Latex-conversion: - cd source/latex_theory; make diff --git a/GNUmakefile b/GNUmakefile index d7fd5b6a9..a19a49bfb 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -10,9 +10,6 @@ WARN_ALL = TRUE #DIM = 2 DIM = 3 -QED = FALSE -#QED_TABLE_GEN = TRUE - COMP = gcc #COMP = intel #COMP = pgi @@ -38,7 +35,6 @@ USE_OPENPMD = FALSE WarpxBinDir = Bin USE_PSATD = FALSE -USE_PSATD_PICSAR = FALSE USE_RZ = FALSE USE_LLG = FALSE diff --git a/MANIFEST.in b/MANIFEST.in deleted file mode 100644 index fede8d8ef..000000000 --- a/MANIFEST.in +++ /dev/null @@ -1,10 +0,0 @@ -include README.md LEGAL.txt LICENSE.txt -include pyproject.toml -include requirements.txt requirements_mpi.txt -global-include CMakeLists.txt *.cmake *.in -recursive-include Source * -recursive-include Python * - -# see .gitignore -prune cmake-build* -prune .spack-env* diff --git a/Python/README b/Python/README deleted file mode 100644 index 776cc30f5..000000000 --- a/Python/README +++ /dev/null @@ -1,8 +0,0 @@ -The initial python wrapped version. This has the main capability of allowing specification of the -input parameters (i.e. the input file) in python, passing that into amrex and then running the time steps. -It also includes pgroups that can be used with Warp species. - -To build it, run "make" in the main WarpX directory setting USE_PYTHON_MAIN to TRUE in the GNUmakefile or -on the command line. This will compile the code and install the wrapper in the Python site-packages directory. - -There are several example python scripts in the "Examples" subdirectories. diff --git a/Python/pywarpx/Algo.py b/Python/pywarpx/Algo.py deleted file mode 100644 index f80492070..000000000 --- a/Python/pywarpx/Algo.py +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright 2016 David Grote -# -# This file is part of WarpX. -# -# License: BSD-3-Clause-LBNL - -from .Bucket import Bucket - -algo = Bucket('algo') diff --git a/Python/pywarpx/Amr.py b/Python/pywarpx/Amr.py deleted file mode 100644 index f9164f4d4..000000000 --- a/Python/pywarpx/Amr.py +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright 2016 David Grote -# -# This file is part of WarpX. -# -# License: BSD-3-Clause-LBNL - -from .Bucket import Bucket - -amr = Bucket('amr') diff --git a/Python/pywarpx/Amrex.py b/Python/pywarpx/Amrex.py deleted file mode 100644 index 4dab8225a..000000000 --- a/Python/pywarpx/Amrex.py +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright 2022 S. Eric CLark, LLNL -# -# This file is part of WarpX. -# -# License: BSD-3-Clause-LBNL - -from .Bucket import Bucket - -amrex = Bucket('amrex') diff --git a/Python/pywarpx/Boundary.py b/Python/pywarpx/Boundary.py deleted file mode 100644 index b7ebd17af..000000000 --- a/Python/pywarpx/Boundary.py +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright 2021 Roelof Groenewald -# -# This file is part of WarpX. -# -# License: BSD-3-Clause-LBNL - -from .Bucket import Bucket - -boundary = Bucket('boundary') diff --git a/Python/pywarpx/Bucket.py b/Python/pywarpx/Bucket.py deleted file mode 100644 index 6beb97c82..000000000 --- a/Python/pywarpx/Bucket.py +++ /dev/null @@ -1,74 +0,0 @@ -# Copyright 2016-2020 Andrew Myers, David Grote, Maxence Thevenet -# -# -# This file is part of WarpX. -# -# License: BSD-3-Clause-LBNL - -import numpy as np - - -class Bucket(object): - """ - The purpose of this class is to be a named bucket for holding attributes. - This attributes will be concatenated into a string and passed into argv during initialization. - """ - def __init__(self, instancename, **defaults): - self._localsetattr('instancename', instancename) - self._localsetattr('argvattrs', {}) - for name, value in defaults.items(): - self.add_new_attr(name, value) - - def _localsetattr(self, name, value): - object.__setattr__(self, name, value) - - def add_new_attr(self, name, value): - """Names starting with "_" are make instance attributes. - Otherwise the attribute is added to the args list. - """ - if name.startswith('_'): - self._localsetattr(name, value) - else: - self.argvattrs[name] = value - - def __setattr__(self, name, value): - self.add_new_attr(name, value) - - def __getattr__(self, name): - try: - return self.argvattrs[name] - except KeyError: - return object.__getattribute__(self, name) - - def check_consistency(self, vname, value, errmsg): - if vname in self.argvattrs: - assert (self.argvattrs[vname] is None) or (self.argvattrs[vname] == value), Exception(errmsg) - - def attrlist(self): - "Concatenate the attributes into a string" - result = [] - for attr, value in self.argvattrs.items(): - if value is None: - continue - # --- repr is applied to value so that for floats, all of the digits are included. - # --- The strip of "'" is then needed when value is a string. - if isinstance(value, str): - if value.find('=') > -1: - # --- Expressions with temporary variables need to be inside quotes - rhs = f'"{value}"' - else: - rhs = value - elif np.iterable(value): - if len(value) == 0: - # --- Skip if empty - continue - # --- For lists, tuples, and arrays make a space delimited string of the values. - # --- The lambda is needed in case this is a list of strings. - rhs = ' '.join(map(lambda s : repr(s).strip("'"), value)) - elif isinstance(value, bool): - rhs = 1 if value else 0 - else: - rhs = value - attrstring = '{0}.{1} = {2}'.format(self.instancename, attr, repr(rhs).strip("'")) - result += [attrstring] - return result diff --git a/Python/pywarpx/Collisions.py b/Python/pywarpx/Collisions.py deleted file mode 100644 index 9ad7f9e14..000000000 --- a/Python/pywarpx/Collisions.py +++ /dev/null @@ -1,15 +0,0 @@ -# Copyright 2021 Modern Electron -# -# This file is part of WarpX. -# -# License: BSD-3-Clause-LBNL - -from .Bucket import Bucket - -collisions = Bucket('collisions') -collisions_list = [] - -def newcollision(name): - result = Bucket(name) - collisions_list.append(result) - return result diff --git a/Python/pywarpx/Constants.py b/Python/pywarpx/Constants.py deleted file mode 100644 index e899fa255..000000000 --- a/Python/pywarpx/Constants.py +++ /dev/null @@ -1,53 +0,0 @@ -# Copyright 2018-2019 David Grote -# -# This file is part of WarpX. -# -# License: BSD-3-Clause-LBNL - -import re - -from .Bucket import Bucket - - -class Constants(Bucket): - """ - The purpose of this class is to be hold user defined constants - """ - def __init__(self): - Bucket.__init__(self, 'my_constants') - - def __setattr__(self, name, value): - # Make sure that any constants redefined have a consistent value - if name in self.argvattrs: - assert self.argvattrs[name] == value, Exception('Inconsistent values given for user defined constants') - Bucket.__setattr__(self, name, value) - - def add_keywords(self, kwdict): - mangle_dict = {} - for k,v in kwdict.items(): - # WarpX has a single global dictionary of expression variables, my_constants, - # so each variable must be unique. - # Check if keyword has already been defined. If so and it has a different - # value than the already defined value, then mangle the name. - mangle_number = 0 - k_mangled = k - while k_mangled in self.argvattrs and self.argvattrs[k_mangled] != v: - mangle_number += 1 - k_mangled = f'{k}{mangle_number}' - if mangle_number > 0: - # The mangle_dict contains only mangled names - mangle_dict[k] = k_mangled - setattr(self, k_mangled, v) - return mangle_dict - - def mangle_expression(self, expression, mangle_dict): - if expression is None: - return None - # For each key in mangle_dict, modify the expression replacing - # the key with its value, the mangled version of key - for k,v in mangle_dict.items(): - expression = re.sub(r'\b%s\b'%k, v, expression) - return expression - - -my_constants = Constants() diff --git a/Python/pywarpx/Diagnostics.py b/Python/pywarpx/Diagnostics.py deleted file mode 100644 index 06562c28d..000000000 --- a/Python/pywarpx/Diagnostics.py +++ /dev/null @@ -1,28 +0,0 @@ -# Copyright 2017-2020 David Grote -# -# This file is part of WarpX. -# -# License: BSD-3-Clause-LBNL - -from .Bucket import Bucket - -diagnostics = Bucket('diagnostics', _diagnostics_dict={}) -reduced_diagnostics = Bucket('warpx', _diagnostics_dict={}) - -class Diagnostic(Bucket): - """ - This is the same as a Bucket, but checks that any attributes are always given the same value. - """ - def add_new_attr_with_check(self, name, value): - if name.startswith('_'): - self._localsetattr(name, value) - else: - if name in self.argvattrs: - assert value == self.argvattrs[name], \ - Exception(f'Diagnostic attributes not consistent for ' - f'"{self.instancename}": ' - f'"{value}" != "{self.argvattrs[name]}"') - self.argvattrs[name] = value - - def __setattr__(self, name, value): - self.add_new_attr_with_check(name, value) diff --git a/Python/pywarpx/EB2.py b/Python/pywarpx/EB2.py deleted file mode 100644 index 4b74aafb0..000000000 --- a/Python/pywarpx/EB2.py +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright 2022 Lorenzo Giacomel -# -# This file is part of WarpX. -# -# License: BSD-3-Clause-LBNL - -from .Bucket import Bucket - -eb2 = Bucket('eb2') diff --git a/Python/pywarpx/Geometry.py b/Python/pywarpx/Geometry.py deleted file mode 100644 index 2eddb9b8f..000000000 --- a/Python/pywarpx/Geometry.py +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright 2016 David Grote -# -# This file is part of WarpX. -# -# License: BSD-3-Clause-LBNL - -from .Bucket import Bucket - -geometry = Bucket('geometry') diff --git a/Python/pywarpx/Interpolation.py b/Python/pywarpx/Interpolation.py deleted file mode 100644 index d25539de7..000000000 --- a/Python/pywarpx/Interpolation.py +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright 2016 David Grote -# -# This file is part of WarpX. -# -# License: BSD-3-Clause-LBNL - -from .Bucket import Bucket - -interpolation = Bucket('interpolation') diff --git a/Python/pywarpx/Langmuirwave.py b/Python/pywarpx/Langmuirwave.py deleted file mode 100644 index 43d672a4a..000000000 --- a/Python/pywarpx/Langmuirwave.py +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright 2016 David Grote -# -# This file is part of WarpX. -# -# License: BSD-3-Clause-LBNL - -from .Bucket import Bucket - -langmuirwave = Bucket('langmuirwave') diff --git a/Python/pywarpx/Lasers.py b/Python/pywarpx/Lasers.py deleted file mode 100644 index 60dfaca31..000000000 --- a/Python/pywarpx/Lasers.py +++ /dev/null @@ -1,16 +0,0 @@ -# Copyright 2019-2020 David Grote -# -# This file is part of WarpX. -# -# License: BSD-3-Clause-LBNL - -from .Bucket import Bucket - -lasers = Bucket('lasers', names=[]) -lasers_list = [] - -def newlaser(name): - result = Bucket(name) - lasers_list.append(result) - lasers.names.append(name) - return result diff --git a/Python/pywarpx/PGroup.py b/Python/pywarpx/PGroup.py deleted file mode 100644 index 0dcb664e5..000000000 --- a/Python/pywarpx/PGroup.py +++ /dev/null @@ -1,182 +0,0 @@ -# Copyright 2017-2019 David Grote -# -# This file is part of WarpX. -# -# License: BSD-3-Clause-LBNL - -import numpy as np - -from ._libwarpx import libwarpx -from ._picmi import constants - - -class PGroup(object): - """Implements a class that has the same API as a warp ParticleGroup instance. - """ - - def __init__(self, igroup, ispecie, level=0): - self.igroup = igroup - self.ispecie = ispecie - self.level = level - self.ns = 1 # Number of species - - self.gallot() - - def name(self): - return 'WarpXParticleGroup' - - def gallot(self): - self.lebcancel_pusher = 0 # turns on/off cancellation of E+VxB within V push (logical type) - self.lebcancel = 0 # turns on/off cancellation of E+VxB before V push (logical type) - - self.sm = np.zeros(self.ns) # Species mass [kg] - self.sq = np.zeros(self.ns) # Species charge [C] - self.sw = np.ones(self.ns) # Species weight, (real particles per simulation particles) - - self.sid = np.arange(self.ns, dtype=int) # Global species index for each species - self.ndts = np.ones(self.ns, dtype=int) # Stride for time step advance for each species - self.ldts = np.ones(self.ns, dtype=int) # (logical type) - self.lvdts = np.ones(self.ns, dtype=int) # (logical type) - self.iselfb = np.zeros(self.ns, dtype=int) # Group number for particles that are affected by - # their own magnetic field, using the 1/gamma**2 - # approximation. The correction is not applied to - # group number -1. - self.fselfb = np.zeros(self.ns) # The scaling factor, vz. - self.l_maps = np.zeros(self.ns) - self.dtscale = np.ones(self.ns) # Scale factor applied to time step size for each - # species. Only makes sense in steaday and and - # transverse slice modes. - - self.limplicit = np.zeros(self.ns, dtype=int) # Flags implicit particle species (logical type) - self.iimplicit = np.full(self.ns, -1, dtype=int) # Group number for implicit particles - self.ldoadvance = np.ones(self.ns, dtype=int) # Flags whether particles are time advanced (logical type) - self.lboundaries = np.ones(self.ns, dtype=int) # Flags whether boundary conditions need to be applied (logical type) - self.lparaxial = np.zeros(self.ns, dtype=int) # Flags to turn on/off paraxial approximation (logical type) - - self.zshift = np.zeros(self.ns) - self.gamma_ebcancel_max = np.ones(self.ns) # maximum value allowed for ExB cancellation - - # --- Temporary fix - gchange = gallot - - def allocated(self, name): - return True - - def addspecies(self): - pass - - def getnpid(self): - return libwarpx.get_nattr() - npid = property(getnpid) - - def getnps(self): - return np.array([len(self.xp)], dtype='l') - nps = property(getnps) - - def getins(self): - return np.ones(self.ns, dtype='l') - ins = property(getins) - - def getipmax(self): - return np.array([0, len(self.xp)], dtype='l') - ipmax = property(getipmax) - - def getnpmax(self): - return self.nps.sum() - npmax = property(getnpmax) - - def getxp(self): - return libwarpx.get_particle_x(self.ispecie, self.level)[self.igroup] - xp = property(getxp) - - def getyp(self): - return libwarpx.get_particle_y(self.ispecie, self.level)[self.igroup] - yp = property(getyp) - - def getrp(self): - return libwarpx.get_particle_r(self.ispecie, self.level)[self.igroup] - rp = property(getrp) - - def getzp(self): - return libwarpx.get_particle_z(self.ispecie, self.level)[self.igroup] - zp = property(getzp) - - def getuxp(self): - return libwarpx.get_particle_ux(self.ispecie, self.level)[self.igroup] - uxp = property(getuxp) - - def getuyp(self): - return libwarpx.get_particle_uy(self.ispecie, self.level)[self.igroup] - uyp = property(getuyp) - - def getuzp(self): - return libwarpx.get_particle_uz(self.ispecie, self.level)[self.igroup] - uzp = property(getuzp) - - def getw(self): - return libwarpx.get_particle_weight(self.ispecie, self.level)[self.igroup] - - def getpid(self, id): - pid = libwarpx.get_particle_arrays(self.ispecie, id, self.level)[self.igroup] - return np.array([pid]).T - - def getgaminv(self): - uxp = self.getuxp() - uyp = self.getuyp() - uzp = self.getuzp() - return np.sqrt(1. - (uxp**2 + uyp**2 + uzp**2)/constants.c**2) - gaminv = property(getgaminv) - - def getex(self): - raise Exception('Particle E fields not supported') - ex = property(getex) - - def getey(self): - raise Exception('Particle E fields not supported') - ey = property(getey) - - def getez(self): - raise Exception('Particle E fields not supported') - ez = property(getez) - - def getbx(self): - raise Exception('Particle B fields not supported') - bx = property(getbx) - - def getby(self): - raise Exception('Particle B fields not supported') - by = property(getby) - - def getbz(self): - raise Exception('Particle B fields not supported') - bz = property(getbz) - - def gettheta(self): - return libwarpx.get_particle_theta(self.ispecie, self.level)[self.igroup] - theta = property(gettheta) - -class PGroups(object): - def __init__(self, ispecie=0, level=0): - self.ispecie = ispecie - self.level = level - - def setuppgroups(self): - xall = libwarpx.get_particle_x(self.ispecie, self.level) - self.ngroups = len(xall) - - self._pgroups = [] - for igroup in range(self.ngroups): - self._pgroups.append(PGroup(igroup, self.ispecie, self.level)) - - def __iter__(self): - self.setuppgroups() - for igroup in range(self.ngroups): - yield self._pgroups[igroup] - - def __getitem__(self, key): - self.setuppgroups() - return self._pgroups[key] - - def __len__(self): - self.setuppgroups() - return len(self._pgroups) diff --git a/Python/pywarpx/PSATD.py b/Python/pywarpx/PSATD.py deleted file mode 100644 index 0cd303833..000000000 --- a/Python/pywarpx/PSATD.py +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright 2016 David Grote -# -# This file is part of WarpX. -# -# License: BSD-3-Clause-LBNL - -from .Bucket import Bucket - -psatd = Bucket('psatd') diff --git a/Python/pywarpx/Particles.py b/Python/pywarpx/Particles.py deleted file mode 100644 index 7022190f1..000000000 --- a/Python/pywarpx/Particles.py +++ /dev/null @@ -1,35 +0,0 @@ -# Copyright 2017-2020 Andrew Myers, David Grote -# -# This file is part of WarpX. -# -# License: BSD-3-Clause-LBNL - -from .Bucket import Bucket - -particles = Bucket('particles', species_names=[], rigid_injected_species=[]) -particles_list = [] - -electrons = Bucket('electrons') -electrons.charge = "-q_e" -electrons.mass = "m_e" -electrons.injection_style = None - -positrons = Bucket('positrons') -positrons.charge = "q_e" -positrons.mass = "m_e" -positrons.injection_style = None - -protons = Bucket('protons') -protons.charge = "q_e" -protons.mass = "m_p" -protons.injection_style = None - -particle_dict = {'electrons':electrons, - 'positrons':positrons, - 'protons':protons - } - -def newspecies(name): - result = Bucket(name) - particles_list.append(result) - return result diff --git a/Python/pywarpx/WarpInterface.py b/Python/pywarpx/WarpInterface.py deleted file mode 100644 index dc80e4bc9..000000000 --- a/Python/pywarpx/WarpInterface.py +++ /dev/null @@ -1,190 +0,0 @@ -# Copyright 2019 David Grote -# -# This file is part of WarpX. -# -# License: BSD-3-Clause-LBNL - -# This sets up an interface between Warp and WarpX, allowing access to WarpX data using -# classes from Warp. - -# The routine warp_species will return an instance of the Species class from Warp, -# giving nearly all of the capability of that class, including accessing the data -# using down selection and all of the plots. - -# The class WarpX_EM3D inherits from Warp's EM3D class. It primarily provides -# access to the field plotting routines. - -import warp - -from pywarpx import PGroup - -from . import fields - -# The particle weight is always the first pid -warp.top.wpid = 1 - -def warp_species(warp_type, picmi_species, level=0): - """Returns a Warp species that has a reference to the WarpX particles. - """ - pgroups = PGroup.PGroups(ispecie=picmi_species.species_number, level=level) - return warp.Species(type=warp_type, pgroups=pgroups) - - -class _WarpX_FIELDtype(object): - """Mirrors part of the EM3D_FIELDtype type from Warp - yf - """ - def __init__(self, yf): - self.yf = yf - - -class _WarpX_BLOCKtype(object): - """Mirrors part of the EM3D_BLOCKtype type from Warp - core - xmin, ymin, zmin - xmax, ymax, zmax - dx, dy, dz - xrbnd, yrbnd, zrbnd - """ - def __init__(self, fields, picmi_grid): - self.core = _WarpX_FIELDtype(fields) - self.picmi_grid = picmi_grid - - self.xmin = self.picmi_grid.lower_bound[0] - if self.picmi_grid.number_of_dimensions == 3: - self.ymin = self.picmi_grid.lower_bound[1] - else: - self.ymin = 0. - self.zmin = self.picmi_grid.lower_bound[-1] - - self.xmax = self.picmi_grid.upper_bound[0] - if self.picmi_grid.number_of_dimensions == 3: - self.ymax = self.picmi_grid.upper_bound[1] - else: - self.ymax = 0. - self.zmax = self.picmi_grid.upper_bound[-1] - - self.dx = (self.xmax - self.xmin)/self.picmi_grid.number_of_cells[0] - if self.picmi_grid.number_of_dimensions == 3: - self.dy = (self.ymax - self.ymin)/self.picmi_grid.number_of_cells[1] - else: - self.dy = 1. - self.dz = (self.zmax - self.zmin)/self.picmi_grid.number_of_cells[-1] - - self.xrbnd = 0 - self.yrbnd = 0 - self.zrbnd = 0 - - -class _WarpX_YEEFIELDtype(object): - """Mirrors part of the EM3D_YEEFIELDtype type from Warp - Exp, Eyp, Ezp - Bxp, Byp, Bzp - Ex, Ey, Ez - Bx, By, Bz - Jx, Jy, Jz - """ - def __init__(self, level=0): - self.level = level - self._Ex_wrap = fields.ExWrapper(level, include_ghosts=True) - self._Ey_wrap = fields.EyWrapper(level, include_ghosts=True) - self._Ez_wrap = fields.EzWrapper(level, include_ghosts=True) - self._Bx_wrap = fields.BxWrapper(level, include_ghosts=True) - self._By_wrap = fields.ByWrapper(level, include_ghosts=True) - self._Bz_wrap = fields.BzWrapper(level, include_ghosts=True) - self._Jx_wrap = fields.JxWrapper(level, include_ghosts=True) - self._Jy_wrap = fields.JyWrapper(level, include_ghosts=True) - self._Jz_wrap = fields.JzWrapper(level, include_ghosts=True) - - self._Ex_wrap._getlovects() # --- Calculated nghosts - self.nxguard = self._Ex_wrap.nghosts - self.nyguard = self._Ex_wrap.nghosts - self.nzguard = self._Ex_wrap.nghosts - - def _get_wrapped_array(self, wrapper): - result = wrapper[...] - if len(result.shape) == 2: - # --- Add the middle dimension that Warp is expecting - result.shape = [result.shape[0], 1, result.shape[1]] - return result - - @property - def Exp(self): - return self._get_wrapped_array(self._Ex_wrap) - @property - def Eyp(self): - return self._get_wrapped_array(self._Ey_wrap) - @property - def Ezp(self): - return self._get_wrapped_array(self._Ez_wrap) - @property - def Bxp(self): - return self._get_wrapped_array(self._Bx_wrap) - @property - def Byp(self): - return self._get_wrapped_array(self._By_wrap) - @property - def Bzp(self): - return self._get_wrapped_array(self._Bz_wrap) - @property - def Ex(self): - return self._get_wrapped_array(self._Ex_wrap) - @property - def Ey(self): - return self._get_wrapped_array(self._Ey_wrap) - @property - def Ez(self): - return self._get_wrapped_array(self._Ez_wrap) - @property - def Bx(self): - return self._get_wrapped_array(self._Bx_wrap) - @property - def By(self): - return self._get_wrapped_array(self._By_wrap) - @property - def Bz(self): - return self._get_wrapped_array(self._Bz_wrap) - @property - def Jx(self): - return self._get_wrapped_array(self._Jx_wrap) - @property - def Jy(self): - return self._get_wrapped_array(self._Jy_wrap) - @property - def Jz(self): - return self._get_wrapped_array(self._Jz_wrap) - - -class WarpX_EM3D(warp.EM3D): - """Mirrors part of the Warp EM3D class, mostly diagnostics. - """ - def __init__(self, picmi_grid, level=0): - self.picmi_grid = picmi_grid - self.level = level - - # --- Only define what is necessary for the diagnostics - self.fields = _WarpX_YEEFIELDtype(level) - self.block = _WarpX_BLOCKtype(self.fields, picmi_grid) - - self.isactive = True - - self.l_1dz = (picmi_grid.number_of_dimensions == 1) - self.l_2dxz = (picmi_grid.number_of_dimensions == 2) - try: - picmi_grid.nr - except AttributeError: - self.l_2drz = False - else: - self.l_2drz = True - - self.l4symtry = False - self.l2symtry = False - - self.nx = picmi_grid.number_of_cells[0] - if not self.l_2dxz: - self.ny = picmi_grid.number_of_cells[1] - else: - self.ny = 0 - self.nz = picmi_grid.number_of_cells[-1] - - self.zgrid = 0. # --- This should be obtained from WarpX diff --git a/Python/pywarpx/WarpX.py b/Python/pywarpx/WarpX.py deleted file mode 100644 index e8c170a76..000000000 --- a/Python/pywarpx/WarpX.py +++ /dev/null @@ -1,130 +0,0 @@ -# Copyright 2016-2022 Andrew Myers, David Grote, Maxence Thevenet -# Remi Lehe, Lorenzo Giacomel -# -# This file is part of WarpX. -# -# License: BSD-3-Clause-LBNL - -import re - -from . import Particles -from .Algo import algo -from .Amr import amr -from .Amrex import amrex -from .Boundary import boundary -from .Bucket import Bucket -from .Collisions import collisions, collisions_list -from .Constants import my_constants -from .Diagnostics import diagnostics, reduced_diagnostics -from .EB2 import eb2 -from .Geometry import geometry -from .Interpolation import interpolation -from .Langmuirwave import langmuirwave -from .Lasers import lasers, lasers_list -from .PSATD import psatd -from .Particles import particles, particles_list -from ._libwarpx import libwarpx - - -class WarpX(Bucket): - """ - A Python wrapper for the WarpX C++ class - """ - - def create_argv_list(self, **kw): - argv = [] - - for k, v in kw.items(): - if v is not None: - argv.append(f'{k} = {v}') - - argv += warpx.attrlist() - argv += my_constants.attrlist() - argv += amr.attrlist() - argv += amrex.attrlist() - argv += geometry.attrlist() - argv += boundary.attrlist() - argv += algo.attrlist() - argv += langmuirwave.attrlist() - argv += interpolation.attrlist() - argv += psatd.attrlist() - argv += eb2.attrlist() - - # --- Search through species_names and add any predefined particle objects in the list. - particles_list_names = [p.instancename for p in particles_list] - for pstring in particles.species_names: - if pstring in particles_list_names: - # --- The species is already included in particles_list - continue - elif hasattr(Particles, pstring): - # --- Add the predefined species to particles_list - particles_list.append(getattr(Particles, pstring)) - particles_list_names.append(pstring) - else: - raise Exception('Species %s listed in species_names not defined'%pstring) - - argv += particles.attrlist() - for particle in particles_list: - argv += particle.attrlist() - - argv += collisions.attrlist() - for collision in collisions_list: - argv += collision.attrlist() - - argv += lasers.attrlist() - for laser in lasers_list: - argv += laser.attrlist() - - diagnostics.diags_names = diagnostics._diagnostics_dict.keys() - argv += diagnostics.attrlist() - for diagnostic in diagnostics._diagnostics_dict.values(): - diagnostic.species = diagnostic._species_dict.keys() - argv += diagnostic.attrlist() - for species_diagnostic in diagnostic._species_dict.values(): - argv += species_diagnostic.attrlist() - - reduced_diagnostics.reduced_diags_names = reduced_diagnostics._diagnostics_dict.keys() - argv += reduced_diagnostics.attrlist() - for diagnostic in reduced_diagnostics._diagnostics_dict.values(): - argv += diagnostic.attrlist() - - return argv - - def init(self, mpi_comm=None, **kw): - argv = ['warpx'] + self.create_argv_list(**kw) - libwarpx.initialize(argv, mpi_comm=mpi_comm) - - def evolve(self, nsteps=-1): - libwarpx.evolve(nsteps) - - def finalize(self, finalize_mpi=1): - libwarpx.finalize(finalize_mpi) - - def getProbLo(self, direction): - return libwarpx.libwarpx_so.warpx_getProbLo(direction) - - def getProbHi(self, direction): - return libwarpx.libwarpx_so.warpx_getProbHi(direction) - - def write_inputs(self, filename='inputs', **kw): - argv = self.create_argv_list(**kw) - - # Sort the argv list to make it more human readable - argv.sort() - - with open(filename, 'w') as ff: - - prefix_old = '' - for arg in argv: - # This prints the name of the input group (prefix) as a header - # before each group to make the input file more human readable - prefix_new = re.split(' |\.', arg)[0] - if prefix_new != prefix_old: - if prefix_old != '': - ff.write('\n') - ff.write(f'# {prefix_new}\n') - prefix_old = prefix_new - - ff.write(f'{arg}\n') - -warpx = WarpX('warpx') diff --git a/Python/pywarpx/WarpXPIC.py b/Python/pywarpx/WarpXPIC.py deleted file mode 100644 index a2efaffbd..000000000 --- a/Python/pywarpx/WarpXPIC.py +++ /dev/null @@ -1,64 +0,0 @@ -# Copyright 2017 David Grote -# -# This file is part of WarpX. -# -# License: BSD-3-Clause-LBNL - -# The WarpXPIC class is the beginnings of an implementation of a standard interface -# for running PIC codes. This is the run time equivalent to the PICMI standard. -# This standard would specify the API for calling the various pieces of typical -# time step loops, for example get_self_fields and put_Efields. Ideally, a user -# could write a loop using the standard and, importing one of compliant codes, be -# able to run a customized PIC simulation with that code. - -from warp.run_modes.timestepper import PICAPI - -from ._libwarpx import libwarpx - - -class WarpXPIC(PICAPI): - - def get_time(self): - return libwarpx.libwarpx_so.warpx_gett_new(0) - - def set_time(self, time): - for i in range(libwarpx.libwarpx_so.warpx_finestLevel()+1): - libwarpx.libwarpx_so.warpx_sett_new(i, time) - - def get_step_size(self): - libwarpx.libwarpx_so.warpx_ComputeDt() - return libwarpx.libwarpx_so.warpx_getdt(0) - - def get_step_number(self): - return libwarpx.libwarpx_so.warpx_getistep(0) - - def set_step_number(self, it): - for i in range(libwarpx.libwarpx_so.warpx_finestLevel()+1): - libwarpx.libwarpx_so.warpx_setistep(i, it) - - def push_positions(self, dt): - libwarpx.libwarpx_so.warpx_PushX(0, dt) - - def push_velocities_withE(self, dt): - libwarpx.libwarpx_so.warpx_EPushV(0, dt) - - def push_velocities_withB(self, dt): - libwarpx.libwarpx_so.warpx_BPushV(0, dt) - - def get_self_fields(self): - libwarpx.libwarpx_so.warpx_FieldGather(0) - - def calculate_source(self): - libwarpx.libwarpx_so.warpx_CurrentDeposition(0) - - def push_Efields(self, dt): - libwarpx.libwarpx_so.warpx_EvolveE(0, dt) - libwarpx.libwarpx_so.warpx_FillBoundaryE(0, True) - - def push_Bfields(self, dt): - libwarpx.libwarpx_so.warpx_EvolveB(0, dt) - libwarpx.libwarpx_so.warpx_FillBoundaryB(0, True) - - def apply_particle_boundary_conditions(self): - libwarpx.libwarpx_so.mypc_Redistribute() # Redistribute particles - libwarpx.libwarpx_so.warpx_MoveWindow(self.istep,True) # !!! not the correct place yet diff --git a/Python/pywarpx/__init__.py b/Python/pywarpx/__init__.py deleted file mode 100644 index 5000180f3..000000000 --- a/Python/pywarpx/__init__.py +++ /dev/null @@ -1,25 +0,0 @@ -# Copyright 2016-2022 Andrew Myers, David Grote, Lorenzo Giacomel -# -# This file is part of WarpX. -# -# License: BSD-3-Clause-LBNL - -from .Algo import algo -from .Amr import amr -from .Amrex import amrex -from .Boundary import boundary -from .Collisions import collisions -from .Constants import my_constants -from .Diagnostics import diagnostics, reduced_diagnostics -from .EB2 import eb2 -from .Geometry import geometry -from .Interpolation import interpolation -from .Langmuirwave import langmuirwave -from .Lasers import lasers -from .PSATD import psatd -from .Particles import electrons, newspecies, particles, positrons, protons -from .WarpX import warpx -from ._libwarpx import libwarpx - -# This is a circulor import and must happen after the import of libwarpx -from . import picmi # isort:skip diff --git a/Python/pywarpx/_libwarpx.py b/Python/pywarpx/_libwarpx.py deleted file mode 100755 index dc802bc3e..000000000 --- a/Python/pywarpx/_libwarpx.py +++ /dev/null @@ -1,2868 +0,0 @@ -# Copyright 2017-2019 Andrew Myers, David Grote, Remi Lehe -# Weiqun Zhang -# -# This file is part of WarpX. -# -# License: BSD-3-Clause-LBNL - -import atexit -import ctypes -from ctypes.util import find_library as _find_library -# --- This defines the wrapper functions that directly call the underlying compiled routines -import os -import platform -import sys - -import numpy as np -from numpy.ctypeslib import ndpointer as _ndpointer - -from .Geometry import geometry - -try: - # --- If mpi4py is going to be used, this needs to be imported - # --- before libwarpx is loaded, because mpi4py calls MPI_Init - from mpi4py import MPI - - # --- Change MPI Comm type depending on MPICH (int) or OpenMPI (void*) - if MPI._sizeof(MPI.Comm) == ctypes.sizeof(ctypes.c_int): - _MPI_Comm_type = ctypes.c_int - else: - _MPI_Comm_type = ctypes.c_void_p -except ImportError: - MPI = None - _MPI_Comm_type = ctypes.c_void_p - -if platform.system() == 'Windows': - _path_libc = _find_library('msvcrt') -else: - _path_libc = _find_library('c') -_libc = ctypes.CDLL(_path_libc) -_LP_c_int = ctypes.POINTER(ctypes.c_int) -_LP_c_char = ctypes.c_char_p - - -class LibWarpX(): - - """This class manages the warpx shared object, the library from the compiled C++ code. - It will only load the library when it is referenced, and this can only be done after - the geometry is defined so that the version of the library that is needed can be determined. - Once loaded, all of the setting of function call interfaces is setup. - """ - - def __init__(self): - # Track whether amrex and warpx have been initialized - self.initialized = False - atexit.register(self.finalize) - - def __getattr__(self, attribute): - if attribute == 'libwarpx_so': - # If the 'libwarpx_so' is referenced, load it. - # Once loaded, it gets added to the dictionary so this code won't be called again. - self.load_library() - return self.__dict__[attribute] - else: - # For any other attribute, call the built-in routine - this should always - # return an AttributeException. - return self.__getattribute__(attribute) - - def _get_package_root(self): - ''' - Get the path to the installation location (where libwarpx.so would be installed). - ''' - cur = os.path.abspath(__file__) - while True: - name = os.path.basename(cur) - if name == 'pywarpx': - return cur - elif not name: - return '' - cur = os.path.dirname(cur) - - def load_library(self): - - if 'libwarpx_so' in self.__dict__: - raise RuntimeError( - "Invalid attempt to load libwarpx_so library multiple times." - ) - - # --- Use geometry to determine whether to import the 1D, 2D, 3D or RZ version. - # --- The geometry must be setup before the lib warpx shared object can be loaded. - try: - _prob_lo = geometry.prob_lo - _dims = geometry.dims - except AttributeError: - raise Exception('The shared object could not be loaded. The geometry must be setup before the WarpX shared object can be accessesd. The geometry determines which version of the shared object to load.') - - if _dims == 'RZ': - self.geometry_dim = 'rz' - elif (_dims == '1' or _dims == '2' or _dims == '3'): - self.geometry_dim = '%dd'%len(_prob_lo) - else: - raise Exception('Undefined geometry %d'%_dims) - - # this is a plain C/C++ shared library, not a Python module - if os.name == 'nt': - mod_ext = 'dll' - else: - mod_ext = 'so' - libname = f'libwarpx.{self.geometry_dim}.{mod_ext}' - - try: - self.libwarpx_so = ctypes.CDLL(os.path.join(self._get_package_root(), libname)) - except OSError as e: - value = e.args[0] - if f'{libname}: cannot open shared object file: No such file or directory' in value: - raise Exception(f'"{libname}" was not installed. Installation instructions can be found here https://warpx.readthedocs.io/en/latest/install/users.html') from e - else: - print("Failed to load the libwarpx shared object library") - raise - - # WarpX can be compiled using either double or float - self.libwarpx_so.warpx_Real_size.restype = ctypes.c_int - self.libwarpx_so.warpx_ParticleReal_size.restype = ctypes.c_int - - _Real_size = self.libwarpx_so.warpx_Real_size() - _ParticleReal_size = self.libwarpx_so.warpx_ParticleReal_size() - - if _Real_size == 8: - c_real = ctypes.c_double - self._numpy_real_dtype = 'f8' - else: - c_real = ctypes.c_float - self._numpy_real_dtype = 'f4' - - if _ParticleReal_size == 8: - c_particlereal = ctypes.c_double - self._numpy_particlereal_dtype = 'f8' - else: - c_particlereal = ctypes.c_float - self._numpy_particlereal_dtype = 'f4' - - self.dim = self.libwarpx_so.warpx_SpaceDim() - - # our particle data type, depends on _ParticleReal_size - _p_struct = ( - [(d, self._numpy_particlereal_dtype) for d in 'xyz'[:self.dim]] - + [('idcpu', 'u8')] - ) - self._p_dtype = np.dtype(_p_struct, align=True) - - _numpy_to_ctypes = {} - _numpy_to_ctypes[self._numpy_particlereal_dtype] = c_particlereal - _numpy_to_ctypes['u8'] = ctypes.c_uint64 - - class Particle(ctypes.Structure): - _fields_ = [(v[0], _numpy_to_ctypes[v[1]]) for v in _p_struct] - - # some useful typenames - _LP_particle_p = ctypes.POINTER(ctypes.POINTER(Particle)) - _LP_LP_c_int = ctypes.POINTER(_LP_c_int) - #_LP_c_void_p = ctypes.POINTER(ctypes.c_void_p) - _LP_c_real = ctypes.POINTER(c_real) - _LP_LP_c_real = ctypes.POINTER(_LP_c_real) - _LP_c_particlereal = ctypes.POINTER(c_particlereal) - _LP_LP_c_particlereal = ctypes.POINTER(_LP_c_particlereal) - _LP_LP_c_char = ctypes.POINTER(_LP_c_char) - - # set the arg and return types of the wrapped functions - self.libwarpx_so.amrex_init.argtypes = (ctypes.c_int, _LP_LP_c_char) - self.libwarpx_so.warpx_getParticleStructs.restype = _LP_particle_p - self.libwarpx_so.warpx_getParticleArrays.restype = _LP_LP_c_particlereal - self.libwarpx_so.warpx_getParticleCompIndex.restype = ctypes.c_int - self.libwarpx_so.warpx_getEfield.restype = _LP_LP_c_real - self.libwarpx_so.warpx_getEfieldLoVects.restype = _LP_c_int - self.libwarpx_so.warpx_getEfieldCP.restype = _LP_LP_c_real - self.libwarpx_so.warpx_getEfieldCPLoVects.restype = _LP_c_int - self.libwarpx_so.warpx_getEfieldFP.restype = _LP_LP_c_real - self.libwarpx_so.warpx_getEfieldFPLoVects.restype = _LP_c_int - self.libwarpx_so.warpx_getEfieldCP_PML.restype = _LP_LP_c_real - self.libwarpx_so.warpx_getEfieldCPLoVects_PML.restype = _LP_c_int - self.libwarpx_so.warpx_getEfieldFP_PML.restype = _LP_LP_c_real - self.libwarpx_so.warpx_getEfieldFPLoVects_PML.restype = _LP_c_int - self.libwarpx_so.warpx_getBfield.restype = _LP_LP_c_real - self.libwarpx_so.warpx_getBfieldLoVects.restype = _LP_c_int - self.libwarpx_so.warpx_getBfieldCP.restype = _LP_LP_c_real - self.libwarpx_so.warpx_getBfieldCPLoVects.restype = _LP_c_int - self.libwarpx_so.warpx_getBfieldFP.restype = _LP_LP_c_real - self.libwarpx_so.warpx_getBfieldFPLoVects.restype = _LP_c_int - self.libwarpx_so.warpx_getBfieldCP_PML.restype = _LP_LP_c_real - self.libwarpx_so.warpx_getBfieldCPLoVects_PML.restype = _LP_c_int - self.libwarpx_so.warpx_getBfieldFP_PML.restype = _LP_LP_c_real - self.libwarpx_so.warpx_getBfieldFPLoVects_PML.restype = _LP_c_int - self.libwarpx_so.warpx_getCurrentDensity.restype = _LP_LP_c_real - self.libwarpx_so.warpx_getCurrentDensityLoVects.restype = _LP_c_int - self.libwarpx_so.warpx_getCurrentDensityCP.restype = _LP_LP_c_real - self.libwarpx_so.warpx_getCurrentDensityCPLoVects.restype = _LP_c_int - self.libwarpx_so.warpx_getCurrentDensityFP.restype = _LP_LP_c_real - self.libwarpx_so.warpx_getCurrentDensityFPLoVects.restype = _LP_c_int - self.libwarpx_so.warpx_getCurrentDensityCP_PML.restype = _LP_LP_c_real - self.libwarpx_so.warpx_getCurrentDensityCPLoVects_PML.restype = _LP_c_int - self.libwarpx_so.warpx_getCurrentDensityFP_PML.restype = _LP_LP_c_real - self.libwarpx_so.warpx_getCurrentDensityFPLoVects_PML.restype = _LP_c_int - self.libwarpx_so.warpx_getChargeDensityCP.restype = _LP_LP_c_real - self.libwarpx_so.warpx_getChargeDensityCPLoVects.restype = _LP_c_int - self.libwarpx_so.warpx_getChargeDensityFP.restype = _LP_LP_c_real - self.libwarpx_so.warpx_getChargeDensityFPLoVects.restype = _LP_c_int - self.libwarpx_so.warpx_getPhiFP.restype = _LP_LP_c_real - self.libwarpx_so.warpx_getPhiFPLoVects.restype = _LP_c_int - self.libwarpx_so.warpx_getVectorPotentialFP.restype = _LP_LP_c_real - self.libwarpx_so.warpx_getVectorPotentialFPLoVects.restype = _LP_c_int - self.libwarpx_so.warpx_getFfieldCP.restype = _LP_LP_c_real - self.libwarpx_so.warpx_getFfieldCPLoVects.restype = _LP_c_int - self.libwarpx_so.warpx_getFfieldFP.restype = _LP_LP_c_real - self.libwarpx_so.warpx_getFfieldFPLoVects.restype = _LP_c_int - self.libwarpx_so.warpx_getFfieldCP_PML.restype = _LP_LP_c_real - self.libwarpx_so.warpx_getFfieldCPLoVects_PML.restype = _LP_c_int - self.libwarpx_so.warpx_getFfieldFP_PML.restype = _LP_LP_c_real - self.libwarpx_so.warpx_getFfieldFPLoVects_PML.restype = _LP_c_int - self.libwarpx_so.warpx_getGfieldCP.restype = _LP_LP_c_real - self.libwarpx_so.warpx_getGfieldCPLoVects.restype = _LP_c_int - self.libwarpx_so.warpx_getGfieldFP.restype = _LP_LP_c_real - self.libwarpx_so.warpx_getGfieldFPLoVects.restype = _LP_c_int - self.libwarpx_so.warpx_getGfieldCP_PML.restype = _LP_LP_c_real - self.libwarpx_so.warpx_getGfieldCPLoVects_PML.restype = _LP_c_int - self.libwarpx_so.warpx_getGfieldFP_PML.restype = _LP_LP_c_real - self.libwarpx_so.warpx_getGfieldFPLoVects_PML.restype = _LP_c_int - self.libwarpx_so.warpx_getEdgeLengths.restype = _LP_LP_c_real - self.libwarpx_so.warpx_getEdgeLengthsLoVects.restype = _LP_c_int - self.libwarpx_so.warpx_getFaceAreas.restype = _LP_LP_c_real - self.libwarpx_so.warpx_getFaceAreasLoVects.restype = _LP_c_int - - self.libwarpx_so.warpx_sumParticleCharge.restype = c_real - self.libwarpx_so.warpx_getParticleBoundaryBufferSize.restype = ctypes.c_int - self.libwarpx_so.warpx_getParticleBoundaryBufferStructs.restype = _LP_LP_c_particlereal - self.libwarpx_so.warpx_getParticleBoundaryBuffer.restype = _LP_LP_c_particlereal - self.libwarpx_so.warpx_getParticleBoundaryBufferScrapedSteps.restype = _LP_LP_c_int - - self.libwarpx_so.warpx_getEx_nodal_flag.restype = _LP_c_int - self.libwarpx_so.warpx_getEy_nodal_flag.restype = _LP_c_int - self.libwarpx_so.warpx_getEz_nodal_flag.restype = _LP_c_int - self.libwarpx_so.warpx_getBx_nodal_flag.restype = _LP_c_int - self.libwarpx_so.warpx_getBy_nodal_flag.restype = _LP_c_int - self.libwarpx_so.warpx_getBz_nodal_flag.restype = _LP_c_int - self.libwarpx_so.warpx_getJx_nodal_flag.restype = _LP_c_int - self.libwarpx_so.warpx_getJy_nodal_flag.restype = _LP_c_int - self.libwarpx_so.warpx_getJz_nodal_flag.restype = _LP_c_int - self.libwarpx_so.warpx_getAx_nodal_flag.restype = _LP_c_int - self.libwarpx_so.warpx_getAy_nodal_flag.restype = _LP_c_int - self.libwarpx_so.warpx_getAz_nodal_flag.restype = _LP_c_int - self.libwarpx_so.warpx_getRho_nodal_flag.restype = _LP_c_int - self.libwarpx_so.warpx_getPhi_nodal_flag.restype = _LP_c_int - self.libwarpx_so.warpx_getF_nodal_flag.restype = _LP_c_int - self.libwarpx_so.warpx_getG_nodal_flag.restype = _LP_c_int - self.libwarpx_so.warpx_getF_pml_nodal_flag.restype = _LP_c_int - self.libwarpx_so.warpx_getG_pml_nodal_flag.restype = _LP_c_int - - self.libwarpx_so.warpx_get_edge_lengths_x_nodal_flag.restype = _LP_c_int - self.libwarpx_so.warpx_get_edge_lengths_y_nodal_flag.restype = _LP_c_int - self.libwarpx_so.warpx_get_edge_lengths_z_nodal_flag.restype = _LP_c_int - self.libwarpx_so.warpx_get_face_areas_x_nodal_flag.restype = _LP_c_int - self.libwarpx_so.warpx_get_face_areas_y_nodal_flag.restype = _LP_c_int - self.libwarpx_so.warpx_get_face_areas_z_nodal_flag.restype = _LP_c_int - - #self.libwarpx_so.warpx_getPMLSigma.restype = _LP_c_real - #self.libwarpx_so.warpx_getPMLSigmaStar.restype = _LP_c_real - #self.libwarpx_so.warpx_ComputePMLFactors.argtypes = (ctypes.c_int, c_real) - self.libwarpx_so.warpx_addNParticles.argtypes = (ctypes.c_char_p, ctypes.c_int, - _ndpointer(c_particlereal, flags="C_CONTIGUOUS"), - _ndpointer(c_particlereal, flags="C_CONTIGUOUS"), - _ndpointer(c_particlereal, flags="C_CONTIGUOUS"), - _ndpointer(c_particlereal, flags="C_CONTIGUOUS"), - _ndpointer(c_particlereal, flags="C_CONTIGUOUS"), - _ndpointer(c_particlereal, flags="C_CONTIGUOUS"), - ctypes.c_int, - _ndpointer(c_particlereal, flags="C_CONTIGUOUS"), - ctypes.c_int, - _ndpointer(ctypes.c_int, flags="C_CONTIGUOUS"), - ctypes.c_int) - self.libwarpx_so.warpx_convert_id_to_long.argtypes = (_ndpointer(ctypes.c_int64, flags="C_CONTIGUOUS"), - _ndpointer(Particle, flags="C_CONTIGUOUS"), - ctypes.c_int) - self.libwarpx_so.warpx_convert_cpu_to_int.argtypes = (_ndpointer(ctypes.c_int32, flags="C_CONTIGUOUS"), - _ndpointer(Particle, flags="C_CONTIGUOUS"), - ctypes.c_int) - self.libwarpx_so.warpx_getProbLo.restype = c_real - self.libwarpx_so.warpx_getProbHi.restype = c_real - self.libwarpx_so.warpx_getCellSize.restype = c_real - self.libwarpx_so.warpx_getistep.restype = ctypes.c_int - self.libwarpx_so.warpx_gett_new.restype = c_real - self.libwarpx_so.warpx_getdt.restype = c_real - self.libwarpx_so.warpx_maxStep.restype = ctypes.c_int - self.libwarpx_so.warpx_stopTime.restype = c_real - self.libwarpx_so.warpx_finestLevel.restype = ctypes.c_int - self.libwarpx_so.warpx_getMyProc.restype = ctypes.c_int - self.libwarpx_so.warpx_getNProcs.restype = ctypes.c_int - - self.libwarpx_so.warpx_EvolveE.argtypes = [c_real] - self.libwarpx_so.warpx_EvolveB.argtypes = [c_real] - self.libwarpx_so.warpx_FillBoundaryE.argtypes = [] - self.libwarpx_so.warpx_FillBoundaryB.argtypes = [] - self.libwarpx_so.warpx_UpdateAuxilaryData.argtypes = [] - self.libwarpx_so.warpx_SyncCurrent.argtypes = [] - self.libwarpx_so.warpx_PushParticlesandDepose.argtypes = [c_real] - self.libwarpx_so.warpx_getProbLo.argtypes = [ctypes.c_int] - self.libwarpx_so.warpx_getProbHi.argtypes = [ctypes.c_int] - self.libwarpx_so.warpx_getCellSize.argtypes = [ctypes.c_int, ctypes.c_int] - self.libwarpx_so.warpx_getistep.argtypes = [ctypes.c_int] - self.libwarpx_so.warpx_setistep.argtypes = [ctypes.c_int, ctypes.c_int] - self.libwarpx_so.warpx_gett_new.argtypes = [ctypes.c_int] - self.libwarpx_so.warpx_sett_new.argtypes = [ctypes.c_int, c_real] - self.libwarpx_so.warpx_getdt.argtypes = [ctypes.c_int] - self.libwarpx_so.warpx_setPotentialEB.argtypes = [ctypes.c_char_p] - - def _get_boundary_number(self, boundary): - ''' - - Utility function to find the boundary number given a boundary name. - - Parameters - ---------- - - boundary : str - The boundary from which to get the scraped particle data. In the - form x/y/z_hi/lo or eb. - - Returns - ------- - int - Integer index in the boundary scraper buffer for the given boundary. - ''' - if self.geometry_dim == '3d': - dimensions = {'x' : 0, 'y' : 1, 'z' : 2} - elif self.geometry_dim == '2d' or self.geometry_dim == 'rz': - dimensions = {'x' : 0, 'z' : 1} - elif self.geometry_dim == '1d': - dimensions = {'z' : 0} - else: - raise RuntimeError(f"Unknown simulation geometry: {self.geometry_dim}") - - if boundary != 'eb': - boundary_parts = boundary.split("_") - dim_num = dimensions[boundary_parts[0]] - if boundary_parts[1] == 'lo': - side = 0 - elif boundary_parts[1] == 'hi': - side = 1 - else: - raise RuntimeError(f'Unknown boundary specified: {boundary}') - boundary_num = 2 * dim_num + side - else: - if self.geometry_dim == '3d': - boundary_num = 6 - elif self.geometry_dim == '2d' or self.geometry_dim == 'rz': - boundary_num = 4 - elif self.geometry_dim == '1d': - boundary_num = 2 - - return boundary_num - - @staticmethod - def _array1d_from_pointer(pointer, dtype, size): - ''' - - Function for converting a ctypes pointer to a numpy array - - ''' - if not pointer: - raise Exception(f'_array1d_from_pointer: pointer is a nullptr') - if sys.version_info.major >= 3: - # from where do I import these? this might only work for CPython... - #PyBuf_READ = 0x100 - PyBUF_WRITE = 0x200 - buffer_from_memory = ctypes.pythonapi.PyMemoryView_FromMemory - buffer_from_memory.argtypes = (ctypes.c_void_p, ctypes.c_int, ctypes.c_int) - buffer_from_memory.restype = ctypes.py_object - buf = buffer_from_memory(pointer, dtype.itemsize*size, PyBUF_WRITE) - else: - buffer_from_memory = ctypes.pythonapi.PyBuffer_FromReadWriteMemory - buffer_from_memory.restype = ctypes.py_object - buf = buffer_from_memory(pointer, dtype.itemsize*size) - return np.frombuffer(buf, dtype=dtype, count=size) - - def getNProcs(self): - ''' - - Get the number of processors - - ''' - return self.libwarpx_so.warpx_getNProcs() - - def getMyProc(self): - ''' - - Get the number of the processor - - ''' - return self.libwarpx_so.warpx_getMyProc() - - def get_nattr(self): - ''' - - Get the number of extra particle attributes. - - ''' - # --- The -3 is because the comps include the velocites - return self.libwarpx_so.warpx_nComps() - 3 - - def get_nattr_species(self, species_name): - ''' - Get the number of real attributes for the given species. - - Parameters - ---------- - - species_name: str - Name of the species - ''' - - return self.libwarpx_so.warpx_nCompsSpecies( - ctypes.c_char_p(species_name.encode('utf-8'))) - - def amrex_init(self, argv, mpi_comm=None): - # --- Construct the ctype list of strings to pass in - argc = len(argv) - - # note: +1 since there is an extra char-string array element, - # that ANSII C requires to be a simple NULL entry - # https://stackoverflow.com/a/39096006/2719194 - argvC = (_LP_c_char * (argc+1))() - for i, arg in enumerate(argv): - enc_arg = arg.encode('utf-8') - argvC[i] = _LP_c_char(enc_arg) - argvC[argc] = _LP_c_char(b"\0") # +1 element must be NULL - - if mpi_comm is None or MPI is None: - self.libwarpx_so.amrex_init(argc, argvC) - else: - raise Exception("mpi_comm argument not yet supported") - - def initialize(self, argv=None, mpi_comm=None): - ''' - - Initialize WarpX and AMReX. Must be called before doing anything else. - - ''' - if argv is None: - argv = sys.argv - self.amrex_init(argv, mpi_comm) - self.libwarpx_so.warpx_ConvertLabParamsToBoost() - self.libwarpx_so.warpx_ReadBCParams() - if self.geometry_dim == 'rz': - self.libwarpx_so.warpx_CheckGriddingForRZSpectral() - self.libwarpx_so.warpx_init() - - self.initialized = True - - def finalize(self, finalize_mpi=1): - ''' - - Call finalize for WarpX and AMReX. Registered to run at program exit. - - ''' - if self.initialized: - self.libwarpx_so.warpx_finalize() - self.libwarpx_so.amrex_finalize(finalize_mpi) - - def getistep(self, level=0): - ''' - Get the current time step number for the specified level - - Parameter - --------- - - level : int - The refinement level to reference - ''' - - return self.libwarpx_so.warpx_getistep(level) - - def gett_new(self, level=0): - ''' - - Get the next time for the specified level. - - Parameters - ---------- - - level : int - The refinement level to reference - ''' - - return self.libwarpx_so.warpx_gett_new(level) - - def evolve(self, num_steps=-1): - ''' - Evolve the simulation for num_steps steps. If num_steps=-1, - the simulation will be run until the end as specified in the - inputs file. - - Parameters - ---------- - - num_steps: int - The number of steps to take - ''' - - self.libwarpx_so.warpx_evolve(num_steps); - - def getProbLo(self, direction): - ''' - Get the values of the lower domain boundary. - - Parameters - ---------- - - direction : int - Direction of interest - ''' - - assert 0 <= direction < self.dim, 'Inappropriate direction specified' - return self.libwarpx_so.warpx_getProbLo(direction) - - def getProbHi(self, direction): - ''' - Get the values of the upper domain boundary. - - Parameters - ---------- - - direction : int - Direction of interest - ''' - - assert 0 <= direction < self.dim, 'Inappropriate direction specified' - return self.libwarpx_so.warpx_getProbHi(direction) - - def getCellSize(self, direction, level=0): - ''' - Get the cell size in the given direction and on the given level. - - Parameters - ---------- - - direction : int - Direction of interest - - level : int - The refinement level to reference - ''' - - assert 0 <= direction < 3, 'Inappropriate direction specified' - assert 0 <= level and level <= self.libwarpx_so.warpx_finestLevel(), 'Inappropriate level specified' - return self.libwarpx_so.warpx_getCellSize(direction, level) - - #def get_sigma(self, direction): - # ''' - # - # Return the 'sigma' PML coefficients for the electric field - # in a given direction. - # - # ''' - # - # size = ctypes.c_int(0) - # data = self.libwarpx_so.warpx_getPMLSigma(direction, ctypes.byref(size)) - # arr = np.ctypeslib.as_array(data, (size.value,)) - # arr.setflags(write=1) - # return arr - # - # - #def get_sigma_star(self, direction): - # ''' - # - # Return the 'sigma*' PML coefficients for the magnetic field - # in the given direction. - # - # ''' - # - # size = ctypes.c_int(0) - # data = self.libwarpx_so.warpx_getPMLSigmaStar(direction, ctypes.byref(size)) - # arr = np.ctypeslib.as_array(data, (size.value,)) - # arr.setflags(write=1) - # return arr - # - # - #def compute_pml_factors(self, lev, dt): - # ''' - # - # This recomputes the PML coefficients for a given level, using the - # time step dt. This needs to be called after modifying the coefficients - # from Python. - # - # ''' - # - # self.libwarpx_so.warpx_ComputePMLFactors(lev, dt) - - def add_particles(self, species_name, x=None, y=None, z=None, ux=None, uy=None, - uz=None, w=None, unique_particles=True, **kwargs): - ''' - A function for adding particles to the WarpX simulation. - - Parameters - ---------- - - species_name : str - The type of species for which particles will be added - - x, y, z : arrays or scalars - The particle positions (default = 0.) - - ux, uy, uz : arrays or scalars - The particle momenta (default = 0.) - - w : array or scalars - Particle weights (default = 0.) - - unique_particles : bool - Whether the particles are unique or duplicated on several processes - (default = True) - - kwargs : dict - Containing an entry for all the extra particle attribute arrays. If - an attribute is not given it will be set to 0. - ''' - - # --- Get length of arrays, set to one for scalars - lenx = np.size(x) - leny = np.size(y) - lenz = np.size(z) - lenux = np.size(ux) - lenuy = np.size(uy) - lenuz = np.size(uz) - lenw = np.size(w) - - # --- Find the max length of the parameters supplied - maxlen = 0 - if x is not None: - maxlen = max(maxlen, lenx) - if y is not None: - maxlen = max(maxlen, leny) - if z is not None: - maxlen = max(maxlen, lenz) - if ux is not None: - maxlen = max(maxlen, lenux) - if uy is not None: - maxlen = max(maxlen, lenuy) - if uz is not None: - maxlen = max(maxlen, lenuz) - if w is not None: - maxlen = max(maxlen, lenw) - - # --- Make sure that the lengths of the input parameters are consistent - assert x is None or lenx==maxlen or lenx==1, "Length of x doesn't match len of others" - assert y is None or leny==maxlen or leny==1, "Length of y doesn't match len of others" - assert z is None or lenz==maxlen or lenz==1, "Length of z doesn't match len of others" - assert ux is None or lenux==maxlen or lenux==1, "Length of ux doesn't match len of others" - assert uy is None or lenuy==maxlen or lenuy==1, "Length of uy doesn't match len of others" - assert uz is None or lenuz==maxlen or lenuz==1, "Length of uz doesn't match len of others" - assert w is None or lenw==maxlen or lenw==1, "Length of w doesn't match len of others" - for key, val in kwargs.items(): - assert np.size(val)==1 or len(val)==maxlen, f"Length of {key} doesn't match len of others" - - # --- Broadcast scalars into appropriate length arrays - # --- If the parameter was not supplied, use the default value - if lenx == 1: - x = np.full(maxlen, (x or 0.), self._numpy_particlereal_dtype) - if leny == 1: - y = np.full(maxlen, (y or 0.), self._numpy_particlereal_dtype) - if lenz == 1: - z = np.full(maxlen, (z or 0.), self._numpy_particlereal_dtype) - if lenux == 1: - ux = np.full(maxlen, (ux or 0.), self._numpy_particlereal_dtype) - if lenuy == 1: - uy = np.full(maxlen, (uy or 0.), self._numpy_particlereal_dtype) - if lenuz == 1: - uz = np.full(maxlen, (uz or 0.), self._numpy_particlereal_dtype) - if lenw == 1: - w = np.full(maxlen, (w or 0.), self._numpy_particlereal_dtype) - for key, val in kwargs.items(): - if np.size(val) == 1: - kwargs[key] = np.full( - maxlen, val, self._numpy_particlereal_dtype - ) - - # --- The number of built in attributes - # --- The three velocities - built_in_attrs = 3 - if self.geometry_dim == 'rz': - # --- With RZ, there is also theta - built_in_attrs += 1 - - # --- The number of extra attributes (including the weight) - nattr = self.get_nattr_species(species_name) - built_in_attrs - attr = np.zeros((maxlen, nattr), self._numpy_particlereal_dtype) - attr[:,0] = w - - # --- Note that the velocities are handled separately and not included in attr - # --- (even though they are stored as attributes in the C++) - for key, vals in kwargs.items(): - attr[:,self.get_particle_comp_index(species_name, key) - built_in_attrs] = vals - - nattr_int = 0 - attr_int = np.empty([0], ctypes.c_int) - - # Iff x/y/z/ux/uy/uz are not numpy arrays of the correct dtype, new - # array copies are made with the correct dtype - x = x.astype(self._numpy_particlereal_dtype, copy=False) - y = y.astype(self._numpy_particlereal_dtype, copy=False) - z = z.astype(self._numpy_particlereal_dtype, copy=False) - ux = ux.astype(self._numpy_particlereal_dtype, copy=False) - uy = uy.astype(self._numpy_particlereal_dtype, copy=False) - uz = uz.astype(self._numpy_particlereal_dtype, copy=False) - - self.libwarpx_so.warpx_addNParticles( - ctypes.c_char_p(species_name.encode('utf-8')), x.size, - x, y, z, ux, uy, uz, nattr, attr, nattr_int, attr_int, unique_particles - ) - - def get_particle_count(self, species_name, local=False): - ''' - Get the number of particles of the specified species in the simulation. - - Parameters - ---------- - - species_name : str - The species name that the number will be returned for - - local : bool - If True the particle count on this processor will be returned. - Default False. - - Returns - ------- - - int - An integer count of the number of particles - ''' - - return self.libwarpx_so.warpx_getNumParticles( - ctypes.c_char_p(species_name.encode('utf-8')), local - ) - - def get_particle_structs(self, species_name, level): - ''' - This returns a list of numpy arrays containing the particle struct data - on each tile for this process. The particle data is represented as a structured - numpy array and contains the particle 'x', 'y', 'z', and 'idcpu'. - - The data for the numpy arrays are not copied, but share the underlying - memory buffer with WarpX. The numpy arrays are fully writeable. - - Parameters - ---------- - - species_name : str - The species name that the data will be returned for - - level : int - The refinement level to reference - - Returns - ------- - - List of numpy arrays - The requested particle struct data - ''' - - particles_per_tile = _LP_c_int() - num_tiles = ctypes.c_int(0) - data = self.libwarpx_so.warpx_getParticleStructs( - ctypes.c_char_p(species_name.encode('utf-8')), level, - ctypes.byref(num_tiles), ctypes.byref(particles_per_tile) - ) - - particle_data = [] - for i in range(num_tiles.value): - if particles_per_tile[i] == 0: - continue - arr = self._array1d_from_pointer(data[i], self._p_dtype, particles_per_tile[i]) - particle_data.append(arr) - - _libc.free(particles_per_tile) - _libc.free(data) - return particle_data - - def get_particle_arrays(self, species_name, comp_name, level): - ''' - This returns a list of numpy arrays containing the particle array data - on each tile for this process. - - The data for the numpy arrays are not copied, but share the underlying - memory buffer with WarpX. The numpy arrays are fully writeable. - - Parameters - ---------- - - species_name : str - The species name that the data will be returned for - - comp_name : str - The component of the array data that will be returned - - level : int - The refinement level to reference - - Returns - ------- - - List of numpy arrays - The requested particle array data - ''' - - particles_per_tile = _LP_c_int() - num_tiles = ctypes.c_int(0) - data = self.libwarpx_so.warpx_getParticleArrays( - ctypes.c_char_p(species_name.encode('utf-8')), - ctypes.c_char_p(comp_name.encode('utf-8')), - level, ctypes.byref(num_tiles), ctypes.byref(particles_per_tile) - ) - - particle_data = [] - for i in range(num_tiles.value): - if particles_per_tile[i] == 0: - continue - if not data[i]: - raise Exception(f'get_particle_arrays: data[i] for i={i} was not initialized') - arr = np.ctypeslib.as_array(data[i], (particles_per_tile[i],)) - try: - # This fails on some versions of numpy - arr.setflags(write=1) - except ValueError: - pass - particle_data.append(arr) - - _libc.free(particles_per_tile) - _libc.free(data) - return particle_data - - def get_particle_x(self, species_name, level=0): - ''' - - Return a list of numpy arrays containing the particle 'x' - positions on each tile. - - ''' - structs = self.get_particle_structs(species_name, level) - if self.geometry_dim == '3d' or self.geometry_dim == '2d': - return [struct['x'] for struct in structs] - elif self.geometry_dim == 'rz': - return [struct['x']*np.cos(theta) for struct, theta in zip(structs, self.get_particle_theta(species_name))] - elif self.geometry_dim == '1d': - raise Exception('get_particle_x: There is no x coordinate with 1D Cartesian') - - def get_particle_y(self, species_name, level=0): - ''' - - Return a list of numpy arrays containing the particle 'y' - positions on each tile. - - ''' - structs = self.get_particle_structs(species_name, level) - if self.geometry_dim == '3d': - return [struct['y'] for struct in structs] - elif self.geometry_dim == 'rz': - return [struct['x']*np.sin(theta) for struct, theta in zip(structs, self.get_particle_theta(species_name))] - elif self.geometry_dim == '1d' or self.geometry_dim == '2d': - raise Exception('get_particle_y: There is no y coordinate with 1D or 2D Cartesian') - - def get_particle_r(self, species_name, level=0): - ''' - - Return a list of numpy arrays containing the particle 'r' - positions on each tile. - - ''' - structs = self.get_particle_structs(species_name, level) - if self.geometry_dim == 'rz': - return [struct['x'] for struct in structs] - elif self.geometry_dim == '3d': - return [np.sqrt(struct['x']**2 + struct['y']**2) for struct in structs] - elif self.geometry_dim == '2d' or self.geometry_dim == '1d': - raise Exception('get_particle_r: There is no r coordinate with 1D or 2D Cartesian') - - def get_particle_z(self, species_name, level=0): - ''' - - Return a list of numpy arrays containing the particle 'z' - positions on each tile. - - ''' - structs = self.get_particle_structs(species_name, level) - if self.geometry_dim == '3d': - return [struct['z'] for struct in structs] - elif self.geometry_dim == 'rz' or self.geometry_dim == '2d': - return [struct['y'] for struct in structs] - elif self.geometry_dim == '1d': - return [struct['x'] for struct in structs] - - def get_particle_id(self, species_name, level=0): - ''' - - Return a list of numpy arrays containing the particle 'id' - numbers on each tile. - - ''' - ids = [] - structs = self.get_particle_structs(species_name, level) - for ptile_of_structs in structs: - arr = np.empty(ptile_of_structs.shape, np.int64) - self.libwarpx_so.warpx_convert_id_to_long(arr, ptile_of_structs, arr.size) - ids.append(arr) - return ids - - def get_particle_cpu(self, species_name, level=0): - ''' - - Return a list of numpy arrays containing the particle 'cpu' - numbers on each tile. - - ''' - cpus = [] - structs = self.get_particle_structs(species_name, level) - for ptile_of_structs in structs: - arr = np.empty(ptile_of_structs.shape, np.int32) - self.libwarpx_so.warpx_convert_cpu_to_int(arr, ptile_of_structs, arr.size) - cpus.append(arr) - return cpus - - def get_particle_weight(self, species_name, level=0): - ''' - - Return a list of numpy arrays containing the particle - weight on each tile. - - ''' - - return self.get_particle_arrays(species_name, 'w', level) - - def get_particle_ux(self, species_name, level=0): - ''' - - Return a list of numpy arrays containing the particle - x momentum on each tile. - - ''' - - return self.get_particle_arrays(species_name, 'ux', level) - - def get_particle_uy(self, species_name, level=0): - ''' - - Return a list of numpy arrays containing the particle - y momentum on each tile. - - ''' - - return self.get_particle_arrays(species_name, 'uy', level) - - def get_particle_uz(self, species_name, level=0): - ''' - - Return a list of numpy arrays containing the particle - z momentum on each tile. - - ''' - - return self.get_particle_arrays(species_name, 'uz', level) - - def get_particle_theta(self, species_name, level=0): - ''' - - Return a list of numpy arrays containing the particle - theta on each tile. - - ''' - - if self.geometry_dim == 'rz': - return self.get_particle_arrays(species_name, 'theta', level) - elif self.geometry_dim == '3d': - structs = self.get_particle_structs(species_name, level) - return [np.arctan2(struct['y'], struct['x']) for struct in structs] - elif self.geometry_dim == '2d' or self.geometry_dim == '1d': - raise Exception('get_particle_theta: There is no theta coordinate with 1D or 2D Cartesian') - - def get_particle_comp_index(self, species_name, pid_name): - ''' - Get the component index for a given particle attribute. This is useful - to get the corrent ordering of attributes when adding new particles using - `add_particles()`. - - Parameters - ---------- - - species_name : str - The name of the species - - pid_name : str - Name of the component for which the index will be returned - - Returns - ------- - - int - Integer corresponding to the index of the requested attribute - ''' - - return self.libwarpx_so.warpx_getParticleCompIndex( - ctypes.c_char_p(species_name.encode('utf-8')), - ctypes.c_char_p(pid_name.encode('utf-8')) - ) - - def add_real_comp(self, species_name, pid_name, comm=True): - ''' - Add a real component to the particle data array. - - Parameters - ---------- - - species_name : str - The species name for which the new component will be added - - pid_name : str - Name that can be used to identify the new component - - comm : bool - Should the component be communicated - ''' - - self.libwarpx_so.warpx_addRealComp( - ctypes.c_char_p(species_name.encode('utf-8')), - ctypes.c_char_p(pid_name.encode('utf-8')), comm - ) - - def get_species_charge_sum(self, species_name, local=False): - ''' - Returns the total charge in the simulation due to the given species. - - Parameters - ---------- - - species_name : str - The species name for which charge will be summed - - local : bool - If True return total charge per processor - ''' - - return self.libwarpx_so.warpx_sumParticleCharge( - ctypes.c_char_p(species_name.encode('utf-8')), local - ) - - def get_particle_boundary_buffer_size(self, species_name, boundary, local=False): - ''' - This returns the number of particles that have been scraped so far in the simulation - from the specified boundary and of the specified species. - - Parameters - ---------- - - species_name : str - Return the number of scraped particles of this species - - boundary : str - The boundary from which to get the scraped particle data in the - form x/y/z_hi/lo - - local : bool - Whether to only return the number of particles in the current - processor's buffer - ''' - - return self.libwarpx_so.warpx_getParticleBoundaryBufferSize( - ctypes.c_char_p(species_name.encode('utf-8')), - self._get_boundary_number(boundary), local - ) - - def get_particle_boundary_buffer_structs(self, species_name, boundary, level): - ''' - This returns a list of numpy arrays containing the particle struct data - for a species that has been scraped by a specific simulation boundary. The - particle data is represented as a structured numpy array and contains the - particle 'x', 'y', 'z', and 'idcpu'. - - The data for the numpy arrays are not copied, but share the underlying - memory buffer with WarpX. The numpy arrays are fully writeable. - - Parameters - ---------- - - species_name : str - The species name that the data will be returned for - - boundary : str - The boundary from which to get the scraped particle data in the - form x/y/z_hi/lo or eb. - - level : int - Which AMR level to retrieve scraped particle data from. - ''' - - particles_per_tile = _LP_c_int() - num_tiles = ctypes.c_int(0) - data = self.libwarpx_so.warpx_getParticleBoundaryBufferStructs( - ctypes.c_char_p(species_name.encode('utf-8')), - self._get_boundary_number(boundary), level, - ctypes.byref(num_tiles), ctypes.byref(particles_per_tile) - ) - - particle_data = [] - for i in range(num_tiles.value): - if particles_per_tile[i] == 0: - continue - arr = self._array1d_from_pointer(data[i], self._p_dtype, particles_per_tile[i]) - particle_data.append(arr) - - _libc.free(particles_per_tile) - _libc.free(data) - return particle_data - - def get_particle_boundary_buffer(self, species_name, boundary, comp_name, level): - ''' - This returns a list of numpy arrays containing the particle array data - for a species that has been scraped by a specific simulation boundary. - - The data for the numpy arrays are not copied, but share the underlying - memory buffer with WarpX. The numpy arrays are fully writeable. - - Parameters - ---------- - - species_name : str - The species name that the data will be returned for. - - boundary : str - The boundary from which to get the scraped particle data in the - form x/y/z_hi/lo or eb. - - comp_name : str - The component of the array data that will be returned. If - "step_scraped" the special attribute holding the timestep at - which a particle was scraped will be returned. - - level : int - Which AMR level to retrieve scraped particle data from. - ''' - - particles_per_tile = _LP_c_int() - num_tiles = ctypes.c_int(0) - if comp_name == 'step_scraped': - data = self.libwarpx_so.warpx_getParticleBoundaryBufferScrapedSteps( - ctypes.c_char_p(species_name.encode('utf-8')), - self._get_boundary_number(boundary), level, - ctypes.byref(num_tiles), ctypes.byref(particles_per_tile) - ) - else: - data = self.libwarpx_so.warpx_getParticleBoundaryBuffer( - ctypes.c_char_p(species_name.encode('utf-8')), - self._get_boundary_number(boundary), level, - ctypes.byref(num_tiles), ctypes.byref(particles_per_tile), - ctypes.c_char_p(comp_name.encode('utf-8')) - ) - - particle_data = [] - for i in range(num_tiles.value): - if particles_per_tile[i] == 0: - continue - if not data[i]: - raise Exception(f'get_particle_arrays: data[i] for i={i} was not initialized') - arr = np.ctypeslib.as_array(data[i], (particles_per_tile[i],)) - try: - # This fails on some versions of numpy - arr.setflags(write=1) - except ValueError: - pass - particle_data.append(arr) - - _libc.free(particles_per_tile) - _libc.free(data) - return particle_data - - def clearParticleBoundaryBuffer(self): - ''' - - Clear the buffer that holds the particles lost at the boundaries. - - ''' - self.libwarpx_so.warpx_clearParticleBoundaryBuffer() - - def depositChargeDensity(self, species_name, level, clear_rho=True, sync_rho=True): - ''' - Deposit the specified species' charge density in rho_fp in order to - access that data via pywarpx.fields.RhoFPWrapper(). - - Parameters - ---------- - - species_name : str - The species name that will be deposited. - - level : int - Which AMR level to retrieve scraped particle data from. - - clear_rho : bool - If True, zero out rho_fp before deposition. - - sync_rho : bool - If True, perform MPI exchange and properly set boundary cells for rho_fp. - ''' - - if clear_rho: - from . import fields - fields.RhoFPWrapper(level, True)[...] = 0.0 - self.libwarpx_so.warpx_depositChargeDensity( - ctypes.c_char_p(species_name.encode('utf-8')), level - ) - if sync_rho: - self.libwarpx_so.warpx_SyncRho() - - def set_potential_EB(self, potential): - """ - Set the expression string for the embedded boundary potential - - Parameters - ---------- - - potential : str - The expression string - """ - self.libwarpx_so.warpx_setPotentialEB(ctypes.c_char_p(potential.encode('utf-8'))) - - def _get_mesh_field_list(self, warpx_func, level, direction, include_ghosts): - """ - Generic routine to fetch the list of field data arrays. - """ - shapes = _LP_c_int() - size = ctypes.c_int(0) - ncomps = ctypes.c_int(0) - ngrowvect = _LP_c_int() - if direction is None: - data = warpx_func(level, - ctypes.byref(size), ctypes.byref(ncomps), - ctypes.byref(ngrowvect), ctypes.byref(shapes)) - else: - data = warpx_func(level, direction, - ctypes.byref(size), ctypes.byref(ncomps), - ctypes.byref(ngrowvect), ctypes.byref(shapes)) - if not data: - raise Exception('object was not initialized') - - ngvect = [ngrowvect[i] for i in range(self.dim)] - grid_data = [] - shapesize = self.dim - if ncomps.value > 1: - shapesize += 1 - for i in range(size.value): - shape = tuple([shapes[shapesize*i + d] for d in range(shapesize)]) - # --- The data is stored in Fortran order, hence shape is reversed and a transpose is taken. - if shape[::-1] == 0: - continue - if not data[i]: - raise Exception(f'get_particle_arrays: data[i] for i={i} was not initialized') - arr = np.ctypeslib.as_array(data[i], shape[::-1]).T - try: - # This fails on some versions of numpy - arr.setflags(write=1) - except ValueError: - pass - if include_ghosts: - grid_data.append(arr) - else: - grid_data.append(arr[tuple([slice(ngvect[d], -ngvect[d]) for d in range(self.dim)])]) - - _libc.free(shapes) - _libc.free(data) - return grid_data - - def get_mesh_electric_field(self, level, direction, include_ghosts=True): - ''' - - This returns a list of numpy arrays containing the mesh electric field - data on each grid for this process. - - This version is for the full "auxiliary" solution on the given level. - - The data for the numpy arrays are not copied, but share the underlying - memory buffer with WarpX. The numpy arrays are fully writeable. - - Parameters - ---------- - - level : the AMR level to get the data for - direction : the component of the data you want - include_ghosts : whether to include ghost zones or not - - Returns - ------- - - A List of numpy arrays. - - ''' - - return self._get_mesh_field_list(self.libwarpx_so.warpx_getEfield, level, direction, include_ghosts) - - def get_mesh_electric_field_cp(self, level, direction, include_ghosts=True): - ''' - - This returns a list of numpy arrays containing the mesh electric field - data on each grid for this process. This version returns the field on - the coarse patch for the given level. - - The data for the numpy arrays are not copied, but share the underlying - memory buffer with WarpX. The numpy arrays are fully writeable. - - Parameters - ---------- - - level : the AMR level to get the data for - direction : the component of the data you want - include_ghosts : whether to include ghost zones or not - - Returns - ------- - - A List of numpy arrays. - - ''' - - return self._get_mesh_field_list(self.libwarpx_so.warpx_getEfieldCP, level, direction, include_ghosts) - - def get_mesh_electric_field_fp(self, level, direction, include_ghosts=True): - ''' - - This returns a list of numpy arrays containing the mesh electric field - data on each grid for this process. This version returns the field on - the fine patch for the given level. - - The data for the numpy arrays are not copied, but share the underlying - memory buffer with WarpX. The numpy arrays are fully writeable. - - Parameters - ---------- - - level : the AMR level to get the data for - direction : the component of the data you want - include_ghosts : whether to include ghost zones or not - - Returns - ------- - - A List of numpy arrays. - - ''' - - return self._get_mesh_field_list(self.libwarpx_so.warpx_getEfieldFP, level, direction, include_ghosts) - - def get_mesh_electric_field_cp_pml(self, level, direction, include_ghosts=True): - ''' - - This returns a list of numpy arrays containing the mesh electric field - data on each grid for this process. This version returns the field on - the coarse patch for the PML for the given level. - - The data for the numpy arrays are not copied, but share the underlying - memory buffer with WarpX. The numpy arrays are fully writeable. - - Parameters - ---------- - - level : the AMR level to get the data for - direction : the component of the data you want - include_ghosts : whether to include ghost zones or not - - Returns - ------- - - A List of numpy arrays. - - ''' - - try: - return self._get_mesh_field_list(self.libwarpx_so.warpx_getEfieldCP_PML, level, direction, include_ghosts) - except ValueError: - raise Exception('PML not initialized') - - def get_mesh_electric_field_fp_pml(self, level, direction, include_ghosts=True): - ''' - - This returns a list of numpy arrays containing the mesh electric field - data on each grid for this process. This version returns the field on - the fine patch for the PML for the given level. - - The data for the numpy arrays are not copied, but share the underlying - memory buffer with WarpX. The numpy arrays are fully writeable. - - Parameters - ---------- - - level : the AMR level to get the data for - direction : the component of the data you want - include_ghosts : whether to include ghost zones or not - - Returns - ------- - - A List of numpy arrays. - - ''' - - try: - return self._get_mesh_field_list(self.libwarpx_so.warpx_getEfieldFP_PML, level, direction, include_ghosts) - except ValueError: - raise Exception('PML not initialized') - - def get_mesh_magnetic_field(self, level, direction, include_ghosts=True): - ''' - - This returns a list of numpy arrays containing the mesh magnetic field - data on each grid for this process. - - This version is for the full "auxiliary" solution on the given level. - - The data for the numpy arrays are not copied, but share the underlying - memory buffer with WarpX. The numpy arrays are fully writeable. - - Parameters - ---------- - - level : the AMR level to get the data for - direction : the component of the data you want - include_ghosts : whether to include ghost zones or not - - Returns - ------- - - A List of numpy arrays. - - ''' - - return self._get_mesh_field_list(self.libwarpx_so.warpx_getBfield, level, direction, include_ghosts) - - def get_mesh_magnetic_field_cp(self, level, direction, include_ghosts=True): - ''' - - This returns a list of numpy arrays containing the mesh magnetic field - data on each grid for this process. This version returns the field on - the coarse patch for the given level. - - The data for the numpy arrays are not copied, but share the underlying - memory buffer with WarpX. The numpy arrays are fully writeable. - - Parameters - ---------- - - level : the AMR level to get the data for - direction : the component of the data you want - include_ghosts : whether to include ghost zones or not - - Returns - ------- - - A List of numpy arrays. - - ''' - - return self._get_mesh_field_list(self.libwarpx_so.warpx_getBfieldCP, level, direction, include_ghosts) - - def get_mesh_magnetic_field_fp(self, level, direction, include_ghosts=True): - ''' - - This returns a list of numpy arrays containing the mesh magnetic field - data on each grid for this process. This version returns the field on - the fine patch for the given level. - - The data for the numpy arrays are not copied, but share the underlying - memory buffer with WarpX. The numpy arrays are fully writeable. - - Parameters - ---------- - - level : the AMR level to get the data for - direction : the component of the data you want - include_ghosts : whether to include ghost zones or not - - Returns - ------- - - A List of numpy arrays. - - ''' - - return self._get_mesh_field_list(self.libwarpx_so.warpx_getBfieldFP, level, direction, include_ghosts) - - def get_mesh_vector_potential_fp(self, level, direction, include_ghosts=True): - ''' - - This returns a list of numpy arrays containing the mesh vector potential - data on each grid for this process. This version returns the field on - the fine patch for the given level. - - The data for the numpy arrays are not copied, but share the underlying - memory buffer with WarpX. The numpy arrays are fully writeable. - - Parameters - ---------- - - level : the AMR level to get the data for - direction : the component of the data you want - include_ghosts : whether to include ghost zones or not - - Returns - ------- - - A List of numpy arrays. - - ''' - - return self._get_mesh_field_list(self.libwarpx_so.warpx_getVectorPotentialFP, level, direction, include_ghosts) - - def get_mesh_magnetic_field_cp_pml(self, level, direction, include_ghosts=True): - ''' - - This returns a list of numpy arrays containing the mesh magnetic field - data on each grid for this process. This version returns the field on - the coarse patch for the PML for the given level. - - The data for the numpy arrays are not copied, but share the underlying - memory buffer with WarpX. The numpy arrays are fully writeable. - - Parameters - ---------- - - level : the AMR level to get the data for - direction : the component of the data you want - include_ghosts : whether to include ghost zones or not - - Returns - ------- - - A List of numpy arrays. - - ''' - - try: - return self._get_mesh_field_list(self.libwarpx_so.warpx_getBfieldCP_PML, level, direction, include_ghosts) - except ValueError: - raise Exception('PML not initialized') - - def get_mesh_magnetic_field_fp_pml(self, level, direction, include_ghosts=True): - ''' - - This returns a list of numpy arrays containing the mesh magnetic field - data on each grid for this process. This version returns the field on - the fine patch for the PML for the given level. - - The data for the numpy arrays are not copied, but share the underlying - memory buffer with WarpX. The numpy arrays are fully writeable. - - Parameters - ---------- - - level : the AMR level to get the data for - direction : the component of the data you want - include_ghosts : whether to include ghost zones or not - - Returns - ------- - - A List of numpy arrays. - - ''' - - try: - return self._get_mesh_field_list(self.libwarpx_so.warpx_getBfieldFP_PML, level, direction, include_ghosts) - except ValueError: - raise Exception('PML not initialized') - - def get_mesh_current_density(self, level, direction, include_ghosts=True): - ''' - - This returns a list of numpy arrays containing the mesh current density - data on each grid for this process. - - The data for the numpy arrays are not copied, but share the underlying - memory buffer with WarpX. The numpy arrays are fully writeable. - - Parameters - ---------- - - level : the AMR level to get the data for - direction : the component of the data you want - include_ghosts : whether to include ghost zones or not - - Returns - ------- - - A List of numpy arrays. - - ''' - - return self._get_mesh_field_list(self.libwarpx_so.warpx_getCurrentDensity, level, direction, include_ghosts) - - def get_mesh_current_density_cp(self, level, direction, include_ghosts=True): - ''' - - This returns a list of numpy arrays containing the mesh current density - data on each grid for this process. This version returns the density for - the coarse patch on the given level. - - The data for the numpy arrays are not copied, but share the underlying - memory buffer with WarpX. The numpy arrays are fully writeable. - - Parameters - ---------- - - level : the AMR level to get the data for - direction : the component of the data you want - include_ghosts : whether to include ghost zones or not - - Returns - ------- - - A List of numpy arrays. - - ''' - - return self._get_mesh_field_list(self.libwarpx_so.warpx_getCurrentDensityCP, level, direction, include_ghosts) - - def get_mesh_current_density_fp(self, level, direction, include_ghosts=True): - ''' - - This returns a list of numpy arrays containing the mesh current density - data on each grid for this process. This version returns the density on - the fine patch for the given level. - - The data for the numpy arrays are not copied, but share the underlying - memory buffer with WarpX. The numpy arrays are fully writeable. - - Parameters - ---------- - - level : the AMR level to get the data for - direction : the component of the data you want - include_ghosts : whether to include ghost zones or not - - Returns - ------- - - A List of numpy arrays. - - ''' - - return self._get_mesh_field_list(self.libwarpx_so.warpx_getCurrentDensityFP, level, direction, include_ghosts) - - def get_mesh_current_density_cp_pml(self, level, direction, include_ghosts=True): - ''' - - This returns a list of numpy arrays containing the mesh current density - data on each grid for this process. This version returns the density for - the coarse patch for the PML for the given level. - - The data for the numpy arrays are not copied, but share the underlying - memory buffer with WarpX. The numpy arrays are fully writeable. - - Parameters - ---------- - - level : the AMR level to get the data for - direction : the component of the data you want - include_ghosts : whether to include ghost zones or not - - Returns - ------- - - A List of numpy arrays. - - ''' - - try: - return self._get_mesh_field_list(self.libwarpx_so.warpx_getCurrentDensityCP_PML, level, direction, include_ghosts) - except ValueError: - raise Exception('PML not initialized') - - def get_mesh_current_density_fp_pml(self, level, direction, include_ghosts=True): - ''' - - This returns a list of numpy arrays containing the mesh current density - data on each grid for this process. This version returns the density on - the fine patch for the PML for the given level. - - The data for the numpy arrays are not copied, but share the underlying - memory buffer with WarpX. The numpy arrays are fully writeable. - - Parameters - ---------- - - level : the AMR level to get the data for - direction : the component of the data you want - include_ghosts : whether to include ghost zones or not - - Returns - ------- - - A List of numpy arrays. - - ''' - - try: - return self._get_mesh_field_list(self.libwarpx_so.warpx_getCurrentDensityFP_PML, level, direction, include_ghosts) - except ValueError: - raise Exception('PML not initialized') - - def get_mesh_charge_density_cp(self, level, include_ghosts=True): - ''' - - This returns a list of numpy arrays containing the mesh charge density - data on each grid for this process. This version returns the density for - the coarse patch on the given level. - - The data for the numpy arrays are not copied, but share the underlying - memory buffer with WarpX. The numpy arrays are fully writeable. - - Parameters - ---------- - - level : the AMR level to get the data for - include_ghosts : whether to include ghost zones or not - - Returns - ------- - - A List of numpy arrays. - - ''' - - return self._get_mesh_field_list(self.libwarpx_so.warpx_getChargeDensityCP, level, None, include_ghosts) - - def get_mesh_charge_density_fp(self, level, include_ghosts=True): - ''' - - This returns a list of numpy arrays containing the mesh charge density - data on each grid for this process. This version returns the density on - the fine patch for the given level. - - The data for the numpy arrays are not copied, but share the underlying - memory buffer with WarpX. The numpy arrays are fully writeable. - - Parameters - ---------- - - level : the AMR level to get the data for - include_ghosts : whether to include ghost zones or not - - Returns - ------- - - A List of numpy arrays. - - ''' - - return self._get_mesh_field_list(self.libwarpx_so.warpx_getChargeDensityFP, level, None, include_ghosts) - - def get_mesh_phi_fp(self, level, include_ghosts=True): - ''' - - This returns a list of numpy arrays containing the mesh electrostatic - potential data on each grid for this process. This version returns the - potential on the fine patch for the given level. - - The data for the numpy arrays are not copied, but share the underlying - memory buffer with WarpX. The numpy arrays are fully writeable. - - Parameters - ---------- - - level : the AMR level to get the data for - include_ghosts : whether to include ghost zones or not - - Returns - ------- - - A List of numpy arrays. - - ''' - return self._get_mesh_field_list(self.libwarpx_so.warpx_getPhiFP, level, None, include_ghosts) - - def get_mesh_F_cp(self, level, include_ghosts=True): - ''' - - This returns a list of numpy arrays containing the mesh F field - data on each grid for this process. This version returns the F field for - the coarse patch on the given level. - - The data for the numpy arrays are not copied, but share the underlying - memory buffer with WarpX. The numpy arrays are fully writeable. - - Parameters - ---------- - - level : the AMR level to get the data for - include_ghosts : whether to include ghost zones or not - - Returns - ------- - - A List of numpy arrays. - - ''' - - return self._get_mesh_field_list(self.libwarpx_so.warpx_getFfieldCP, level, None, include_ghosts) - - def get_mesh_F_fp(self, level, include_ghosts=True): - ''' - - This returns a list of numpy arrays containing the mesh F field - data on each grid for this process. This version returns the F field on - the fine patch for the given level. - - The data for the numpy arrays are not copied, but share the underlying - memory buffer with WarpX. The numpy arrays are fully writeable. - - Parameters - ---------- - - level : the AMR level to get the data for - include_ghosts : whether to include ghost zones or not - - Returns - ------- - - A List of numpy arrays. - - ''' - - return self._get_mesh_field_list(self.libwarpx_so.warpx_getFfieldFP, level, None, include_ghosts) - - def get_mesh_F_fp_pml(self, level, include_ghosts=True): - ''' - - This returns a list of numpy arrays containing the mesh F field - data on each grid for this process. This version returns the F field on - the fine patch for the PML on the given level. - - The data for the numpy arrays are not copied, but share the underlying - memory buffer with WarpX. The numpy arrays are fully writeable. - - Parameters - ---------- - - level : the AMR level to get the data for - include_ghosts : whether to include ghost zones or not - - Returns - ------- - - A List of numpy arrays. - - ''' - try: - return self._get_mesh_field_list(self.libwarpx_so.warpx_getFfieldFP_PML, level, None, include_ghosts) - except ValueError: - raise Exception('PML not initialized') - - def get_mesh_F_cp_pml(self, level, include_ghosts=True): - ''' - - This returns a list of numpy arrays containing the mesh F field - data on each grid for this process. This version returns the F field on - the coarse patch for the PML on the given level. - - The data for the numpy arrays are not copied, but share the underlying - memory buffer with WarpX. The numpy arrays are fully writeable. - - Parameters - ---------- - - level : the AMR level to get the data for - include_ghosts : whether to include ghost zones or not - - Returns - ------- - - A List of numpy arrays. - - ''' - try: - return self._get_mesh_field_list(self.libwarpx_so.warpx_getFfieldCP_PML, level, None, include_ghosts) - except ValueError: - raise Exception('PML not initialized') - - def get_mesh_G_cp(self, level, include_ghosts=True): - ''' - - This returns a list of numpy arrays containing the mesh G field - data on each grid for this process. This version returns the G field for - the coarse patch on the given level. - - The data for the numpy arrays are not copied, but share the underlying - memory buffer with WarpX. The numpy arrays are fully writeable. - - Parameters - ---------- - - level : the AMR level to get the data for - include_ghosts : whether to include ghost zones or not - - Returns - ------- - - A List of numpy arrays. - - ''' - - return self._get_mesh_field_list(self.libwarpx_so.warpx_getGfieldCP, level, None, include_ghosts) - - def get_mesh_G_fp(self, level, include_ghosts=True): - ''' - - This returns a list of numpy arrays containing the mesh G field - data on each grid for this process. This version returns the G field on - the fine patch for the given level. - - The data for the numpy arrays are not copied, but share the underlying - memory buffer with WarpX. The numpy arrays are fully writeable. - - Parameters - ---------- - - level : the AMR level to get the data for - include_ghosts : whether to include ghost zones or not - - Returns - ------- - - A List of numpy arrays. - - ''' - - return self._get_mesh_field_list(self.libwarpx_so.warpx_getGfieldFP, level, None, include_ghosts) - - def get_mesh_G_cp_pml(self, level, include_ghosts=True): - ''' - - This returns a list of numpy arrays containing the mesh G field - data on each grid for this process. This version returns the G field on - the coarse patch for the PML on the given level. - - The data for the numpy arrays are not copied, but share the underlying - memory buffer with WarpX. The numpy arrays are fully writeable. - - Parameters - ---------- - - level : the AMR level to get the data for - include_ghosts : whether to include ghost zones or not - - Returns - ------- - - A List of numpy arrays. - - ''' - try: - return self._get_mesh_field_list(self.libwarpx_so.warpx_getGfieldCP_PML, level, None, include_ghosts) - except ValueError: - raise Exception('PML not initialized') - - def get_mesh_G_fp_pml(self, level, include_ghosts=True): - ''' - - This returns a list of numpy arrays containing the mesh G field - data on each grid for this process. This version returns the G field on - the fine patch for the PML on the given level. - - The data for the numpy arrays are not copied, but share the underlying - memory buffer with WarpX. The numpy arrays are fully writeable. - - Parameters - ---------- - - level : the AMR level to get the data for - include_ghosts : whether to include ghost zones or not - - Returns - ------- - - A List of numpy arrays. - - ''' - try: - return self._get_mesh_field_list(self.libwarpx_so.warpx_getGfieldFP_PML, level, None, include_ghosts) - except ValueError: - raise Exception('PML not initialized') - - def get_mesh_edge_lengths(self, level, direction, include_ghosts=True): - ''' - - This returns a list of numpy arrays containing the mesh edge lengths - data on each grid for this process. This version returns the density on - the fine patch for the given level. - - The data for the numpy arrays are not copied, but share the underlying - memory buffer with WarpX. The numpy arrays are fully writeable. - - Parameters - ---------- - - level : the AMR level to get the data for - direction : the component of the data you want - include_ghosts : whether to include ghost zones or not - - Returns - ------- - - A List of numpy arrays. - - ''' - - return self._get_mesh_field_list(self.libwarpx_so.warpx_getEdgeLengths, level, direction, include_ghosts) - - def get_mesh_face_areas(self, level, direction, include_ghosts=True): - ''' - - This returns a list of numpy arrays containing the mesh face areas - data on each grid for this process. This version returns the density on - the fine patch for the given level. - - The data for the numpy arrays are not copied, but share the underlying - memory buffer with WarpX. The numpy arrays are fully writeable. - - Parameters - ---------- - - level : the AMR level to get the data for - direction : the component of the data you want - include_ghosts : whether to include ghost zones or not - - Returns - ------- - - A List of numpy arrays. - - ''' - - return self._get_mesh_field_list(self.libwarpx_so.warpx_getFaceAreas, level, direction, include_ghosts) - - def _get_mesh_array_lovects(self, level, direction, include_ghosts=True, getlovectsfunc=None): - assert(0 <= level and level <= self.libwarpx_so.warpx_finestLevel()) - - size = ctypes.c_int(0) - ngrowvect = _LP_c_int() - if direction is None: - data = getlovectsfunc(level, ctypes.byref(size), ctypes.byref(ngrowvect)) - else: - data = getlovectsfunc(level, direction, ctypes.byref(size), ctypes.byref(ngrowvect)) - - if not data: - raise Exception('object was not initialized') - - lovects_ref = np.ctypeslib.as_array(data, (size.value, self.dim)) - - # --- Make a copy of the data to avoid memory problems - # --- Also, take the transpose to give shape (dims, number of grids) - lovects = lovects_ref.copy().T - - ng = [] - if include_ghosts: - for d in range(self.dim): - ng.append(ngrowvect[d]) - else: - for d in range(self.dim): - ng.append(0) - lovects[d,:] += ngrowvect[d] - - del lovects_ref - _libc.free(data) - return lovects, ng - - def get_mesh_electric_field_lovects(self, level, direction, include_ghosts=True): - ''' - - This returns a list of the lo vectors of the arrays containing the mesh electric field - data on each grid for this process. - - This version is for the full "auxiliary" solution on the given level. - - Parameters - ---------- - - level : the AMR level to get the data for - direction : the component of the data you want - include_ghosts : whether to include ghost zones or not - - Returns - ------- - - A 2d numpy array of the lo vector for each grid with the shape (dims, number of grids) - - ''' - return self._get_mesh_array_lovects(level, direction, include_ghosts, self.libwarpx_so.warpx_getEfieldLoVects) - - def get_mesh_electric_field_cp_lovects(self, level, direction, include_ghosts=True): - ''' - - This returns a list of the lo vectors of the arrays containing the mesh electric field - data on each grid for this process. - - Parameters - ---------- - - level : the AMR level to get the data for - direction : the component of the data you want - include_ghosts : whether to include ghost zones or not - - Returns - ------- - - A 2d numpy array of the lo vector for each grid with the shape (dims, number of grids) - - ''' - return self._get_mesh_array_lovects(level, direction, include_ghosts, self.libwarpx_so.warpx_getEfieldCPLoVects) - - def get_mesh_electric_field_fp_lovects(self, level, direction, include_ghosts=True): - ''' - - This returns a list of the lo vectors of the arrays containing the mesh electric field - data on each grid for this process. - - Parameters - ---------- - - level : the AMR level to get the data for - direction : the component of the data you want - include_ghosts : whether to include ghost zones or not - - Returns - ------- - - A 2d numpy array of the lo vector for each grid with the shape (dims, number of grids) - - ''' - return self._get_mesh_array_lovects(level, direction, include_ghosts, self.libwarpx_so.warpx_getEfieldFPLoVects) - - def get_mesh_electric_field_cp_lovects_pml(self, level, direction, include_ghosts=True): - ''' - - This returns a list of the lo vectors of the arrays containing the mesh electric field - data on each PML grid for this process. - - Parameters - ---------- - - level : the AMR level to get the data for - direction : the component of the data you want - include_ghosts : whether to include ghost zones or not - - Returns - ------- - - A 2d numpy array of the lo vector for each grid with the shape (dims, number of grids) - - ''' - try: - return self._get_mesh_array_lovects(level, direction, include_ghosts, self.libwarpx_so.warpx_getEfieldCPLoVects_PML) - except ValueError: - raise Exception('PML not initialized') - - def get_mesh_electric_field_fp_lovects_pml(self, level, direction, include_ghosts=True): - ''' - - This returns a list of the lo vectors of the arrays containing the mesh electric field - data on each PML grid for this process. - - Parameters - ---------- - - level : the AMR level to get the data for - direction : the component of the data you want - include_ghosts : whether to include ghost zones or not - - Returns - ------- - - A 2d numpy array of the lo vector for each grid with the shape (dims, number of grids) - - ''' - try: - return self._get_mesh_array_lovects(level, direction, include_ghosts, self.libwarpx_so.warpx_getEfieldFPLoVects_PML) - except ValueError: - raise Exception('PML not initialized') - - def get_mesh_magnetic_field_lovects(self, level, direction, include_ghosts=True): - ''' - - This returns a list of the lo vectors of the arrays containing the mesh electric field - data on each grid for this process. - - This version is for the full "auxiliary" solution on the given level. - - Parameters - ---------- - - level : the AMR level to get the data for - direction : the component of the data you want - include_ghosts : whether to include ghost zones or not - - Returns - ------- - - A 2d numpy array of the lo vector for each grid with the shape (dims, number of grids) - - ''' - return self._get_mesh_array_lovects(level, direction, include_ghosts, self.libwarpx_so.warpx_getBfieldLoVects) - - def get_mesh_magnetic_field_cp_lovects(self, level, direction, include_ghosts=True): - ''' - - This returns a list of the lo vectors of the arrays containing the mesh electric field - data on each grid for this process. - - Parameters - ---------- - - level : the AMR level to get the data for - direction : the component of the data you want - include_ghosts : whether to include ghost zones or not - - Returns - ------- - - A 2d numpy array of the lo vector for each grid with the shape (dims, number of grids) - - ''' - return self._get_mesh_array_lovects(level, direction, include_ghosts, self.libwarpx_so.warpx_getBfieldCPLoVects) - - def get_mesh_magnetic_field_fp_lovects(self, level, direction, include_ghosts=True): - ''' - - This returns a list of the lo vectors of the arrays containing the mesh electric field - data on each grid for this process. - - Parameters - ---------- - - level : the AMR level to get the data for - direction : the component of the data you want - include_ghosts : whether to include ghost zones or not - - Returns - ------- - - A 2d numpy array of the lo vector for each grid with the shape (dims, number of grids) - - ''' - return self._get_mesh_array_lovects(level, direction, include_ghosts, self.libwarpx_so.warpx_getBfieldFPLoVects) - - def get_mesh_vector_potential_fp_lovects(self, level, direction, include_ghosts=True): - ''' - - This returns a list of the lo vectors of the arrays containing the mesh vector potential field - data on each grid for this process. - - Parameters - ---------- - - level : the AMR level to get the data for - direction : the component of the data you want - include_ghosts : whether to include ghost zones or not - - Returns - ------- - - A 2d numpy array of the lo vector for each grid with the shape (dims, number of grids) - - ''' - return self._get_mesh_array_lovects(level, direction, include_ghosts, self.libwarpx_so.warpx_getVectorPotentialFPLoVects) - - def get_mesh_magnetic_field_cp_lovects_pml(self, level, direction, include_ghosts=True): - ''' - - This returns a list of the lo vectors of the arrays containing the mesh electric field - data on each PML grid for this process. - - Parameters - ---------- - - level : the AMR level to get the data for - direction : the component of the data you want - include_ghosts : whether to include ghost zones or not - - Returns - ------- - - A 2d numpy array of the lo vector for each grid with the shape (dims, number of grids) - - ''' - try: - return self._get_mesh_array_lovects(level, direction, include_ghosts, self.libwarpx_so.warpx_getBfieldCPLoVects_PML) - except ValueError: - raise Exception('PML not initialized') - - def get_mesh_magnetic_field_fp_lovects_pml(self, level, direction, include_ghosts=True): - ''' - - This returns a list of the lo vectors of the arrays containing the mesh electric field - data on each PML grid for this process. - - Parameters - ---------- - - level : the AMR level to get the data for - direction : the component of the data you want - include_ghosts : whether to include ghost zones or not - - Returns - ------- - - A 2d numpy array of the lo vector for each grid with the shape (dims, number of grids) - - ''' - try: - return self._get_mesh_array_lovects(level, direction, include_ghosts, self.libwarpx_so.warpx_getBfieldFPLoVects_PML) - except ValueError: - raise Exception('PML not initialized') - - def get_mesh_current_density_lovects(self, level, direction, include_ghosts=True): - ''' - - This returns a list of the lo vectors of the arrays containing the mesh electric field - data on each grid for this process. - - Parameters - ---------- - - level : the AMR level to get the data for - direction : the component of the data you want - include_ghosts : whether to include ghost zones or not - - Returns - ------- - - A 2d numpy array of the lo vector for each grid with the shape (dims, number of grids) - - ''' - return self._get_mesh_array_lovects(level, direction, include_ghosts, self.libwarpx_so.warpx_getCurrentDensityLoVects) - - def get_mesh_current_density_cp_lovects(self, level, direction, include_ghosts=True): - ''' - - This returns a list of the lo vectors of the arrays containing the mesh electric field - data on each grid for this process. - - Parameters - ---------- - - level : the AMR level to get the data for - direction : the component of the data you want - include_ghosts : whether to include ghost zones or not - - Returns - ------- - - A 2d numpy array of the lo vector for each grid with the shape (dims, number of grids) - - ''' - return self._get_mesh_array_lovects(level, direction, include_ghosts, self.libwarpx_so.warpx_getCurrentDensityCPLoVects) - - def get_mesh_current_density_fp_lovects(self, level, direction, include_ghosts=True): - ''' - - This returns a list of the lo vectors of the arrays containing the mesh electric field - data on each grid for this process. - - Parameters - ---------- - - level : the AMR level to get the data for - direction : the component of the data you want - include_ghosts : whether to include ghost zones or not - - Returns - ------- - - A 2d numpy array of the lo vector for each grid with the shape (dims, number of grids) - - ''' - return self._get_mesh_array_lovects(level, direction, include_ghosts, self.libwarpx_so.warpx_getCurrentDensityFPLoVects) - - def get_mesh_current_density_cp_lovects_pml(self, level, direction, include_ghosts=True): - ''' - - This returns a list of the lo vectors of the arrays containing the mesh electric field - data on each PML grid for this process. - - Parameters - ---------- - - level : the AMR level to get the data for - direction : the component of the data you want - include_ghosts : whether to include ghost zones or not - - Returns - ------- - - A 2d numpy array of the lo vector for each grid with the shape (dims, number of grids) - - ''' - try: - return self._get_mesh_array_lovects(level, direction, include_ghosts, self.libwarpx_so.warpx_getCurrentDensityCPLoVects_PML) - except ValueError: - raise Exception('PML not initialized') - - def get_mesh_current_density_fp_lovects_pml(self, level, direction, include_ghosts=True): - ''' - - This returns a list of the lo vectors of the arrays containing the mesh electric field - data on each PML grid for this process. - - Parameters - ---------- - - level : the AMR level to get the data for - direction : the component of the data you want - include_ghosts : whether to include ghost zones or not - - Returns - ------- - - A 2d numpy array of the lo vector for each grid with the shape (dims, number of grids) - - ''' - try: - return self._get_mesh_array_lovects(level, direction, include_ghosts, self.libwarpx_so.warpx_getCurrentDensityFPLoVects_PML) - except ValueError: - raise Exception('PML not initialized') - - def get_mesh_charge_density_cp_lovects(self, level, include_ghosts=True): - ''' - - This returns a list of the lo vectors of the arrays containing the mesh electric field - data on each grid for this process. - - Parameters - ---------- - - level : the AMR level to get the data for - include_ghosts : whether to include ghost zones or not - - Returns - ------- - - A 2d numpy array of the lo vector for each grid with the shape (dims, number of grids) - - ''' - return self._get_mesh_array_lovects(level, None, include_ghosts, self.libwarpx_so.warpx_getChargeDensityCPLoVects) - - def get_mesh_charge_density_fp_lovects(self, level, include_ghosts=True): - ''' - - This returns a list of the lo vectors of the arrays containing the mesh - charge density data on each grid for this process. - - Parameters - ---------- - - level : the AMR level to get the data for - include_ghosts : whether to include ghost zones or not - - Returns - ------- - - A 2d numpy array of the lo vector for each grid with the shape (dims, number of grids) - - ''' - return self._get_mesh_array_lovects(level, None, include_ghosts, self.libwarpx_so.warpx_getChargeDensityFPLoVects) - - def get_mesh_phi_fp_lovects(self, level, include_ghosts=True): - ''' - - This returns a list of the lo vectors of the arrays containing the mesh - electrostatic potential data on each grid for this process. - - Parameters - ---------- - - level : the AMR level to get the data for - include_ghosts : whether to include ghost zones or not - - Returns - ------- - - A 2d numpy array of the lo vector for each grid with the shape (dims, number of grids) - - ''' - return self._get_mesh_array_lovects(level, None, include_ghosts, self.libwarpx_so.warpx_getPhiFPLoVects) - - def get_mesh_F_cp_lovects(self, level, include_ghosts=True): - ''' - - This returns a list of the lo vectors of the arrays containing the mesh F field - data on each grid for this process. - - Parameters - ---------- - - level : the AMR level to get the data for - include_ghosts : whether to include ghost zones or not - - Returns - ------- - - A 2d numpy array of the lo vector for each grid with the shape (dims, number of grids) - - ''' - return self._get_mesh_array_lovects(level, None, include_ghosts, self.libwarpx_so.warpx_getFfieldCPLoVects) - - def get_mesh_F_fp_lovects(self, level, include_ghosts=True): - ''' - - This returns a list of the lo vectors of the arrays containing the mesh F field - data on each grid for this process. - - Parameters - ---------- - - level : the AMR level to get the data for - include_ghosts : whether to include ghost zones or not - - Returns - ------- - - A 2d numpy array of the lo vector for each grid with the shape (dims, number of grids) - - ''' - return self._get_mesh_array_lovects(level, None, include_ghosts, self.libwarpx_so.warpx_getFfieldFPLoVects) - - def get_mesh_F_cp_lovects_pml(self, level, include_ghosts=True): - ''' - - This returns a list of the lo vectors of the arrays containing the mesh F field - data on each PML grid for this process. - - Parameters - ---------- - - level : the AMR level to get the data for - include_ghosts : whether to include ghost zones or not - - Returns - ------- - - A 2d numpy array of the lo vector for each grid with the shape (dims, number of grids) - - ''' - try: - return self._get_mesh_array_lovects(level, None, include_ghosts, self.libwarpx_so.warpx_getFfieldCPLoVects_PML) - except ValueError: - raise Exception('PML not initialized') - - def get_mesh_F_fp_lovects_pml(self, level, include_ghosts=True): - ''' - - This returns a list of the lo vectors of the arrays containing the mesh F field - data on each PML grid for this process. - - Parameters - ---------- - - level : the AMR level to get the data for - include_ghosts : whether to include ghost zones or not - - Returns - ------- - - A 2d numpy array of the lo vector for each grid with the shape (dims, number of grids) - - ''' - try: - return self._get_mesh_array_lovects(level, None, include_ghosts, self.libwarpx_so.warpx_getFfieldFPLoVects_PML) - except ValueError: - raise Exception('PML not initialized') - - def get_mesh_G_cp_lovects(self, level, include_ghosts=True): - ''' - - This returns a list of the lo vectors of the arrays containing the mesh G field - data on each grid for this process. - - Parameters - ---------- - - level : the AMR level to get the data for - include_ghosts : whether to include ghost zones or not - - Returns - ------- - - A 2d numpy array of the lo vector for each grid with the shape (dims, number of grids) - - ''' - return self._get_mesh_array_lovects(level, None, include_ghosts, self.libwarpx_so.warpx_getGfieldCPLoVects) - - def get_mesh_G_fp_lovects(self, level, include_ghosts=True): - ''' - - This returns a list of the lo vectors of the arrays containing the mesh G field - data on each grid for this process. - - Parameters - ---------- - - level : the AMR level to get the data for - include_ghosts : whether to include ghost zones or not - - Returns - ------- - - A 2d numpy array of the lo vector for each grid with the shape (dims, number of grids) - - ''' - return self._get_mesh_array_lovects(level, None, include_ghosts, self.libwarpx_so.warpx_getGfieldFPLoVects) - - def get_mesh_G_cp_lovects_pml(self, level, include_ghosts=True): - ''' - - This returns a list of the lo vectors of the arrays containing the mesh G field - data on each PML grid for this process. - - Parameters - ---------- - - level : the AMR level to get the data for - include_ghosts : whether to include ghost zones or not - - Returns - ------- - - A 2d numpy array of the lo vector for each grid with the shape (dims, number of grids) - - ''' - try: - return self._get_mesh_array_lovects(level, None, include_ghosts, self.libwarpx_so.warpx_getGfieldCPLoVects_PML) - except ValueError: - raise Exception('PML not initialized') - - def get_mesh_G_fp_lovects_pml(self, level, include_ghosts=True): - ''' - - This returns a list of the lo vectors of the arrays containing the mesh G field - data on each PML grid for this process. - - Parameters - ---------- - - level : the AMR level to get the data for - include_ghosts : whether to include ghost zones or not - - Returns - ------- - - A 2d numpy array of the lo vector for each grid with the shape (dims, number of grids) - - ''' - try: - return self._get_mesh_array_lovects(level, None, include_ghosts, self.libwarpx_so.warpx_getGfieldFPLoVects_PML) - except ValueError: - raise Exception('PML not initialized') - - def get_mesh_edge_lengths_lovects(self, level, direction, include_ghosts=True): - ''' - - This returns a list of the lo vectors of the arrays containing the mesh edge lengths - data on each grid for this process. - - Parameters - ---------- - - level : the AMR level to get the data for - direction : the component of the data you want - include_ghosts : whether to include ghost zones or not - - Returns - ------- - - A 2d numpy array of the lo vector for each grid with the shape (dims, number of grids) - - ''' - return self._get_mesh_array_lovects(level, direction, include_ghosts, self.libwarpx_so.warpx_getEdgeLengthsLoVects) - - def get_mesh_face_areas_lovects(self, level, direction, include_ghosts=True): - ''' - - This returns a list of the lo vectors of the arrays containing the mesh face areas - data on each grid for this process. - - Parameters - ---------- - - level : the AMR level to get the data for - direction : the component of the data you want - include_ghosts : whether to include ghost zones or not - - Returns - ------- - - A 2d numpy array of the lo vector for each grid with the shape (dims, number of grids) - - ''' - return self._get_mesh_array_lovects(level, direction, include_ghosts, self.libwarpx_so.warpx_getFaceAreasLoVects) - - def _get_nodal_flag(self, getdatafunc): - data = getdatafunc() - if not data: - raise Exception('object was not initialized') - - nodal_flag_ref = np.ctypeslib.as_array(data, (self.dim,)) - - # --- Make a copy of the data to avoid memory problems - nodal_flag = nodal_flag_ref.copy() - - del nodal_flag_ref - _libc.free(data) - return nodal_flag - - def get_Ex_nodal_flag(self): - ''' - This returns a 1d array of the nodal flags for Ex along each direction. A 1 means node centered, and 0 cell centered. - ''' - return self._get_nodal_flag(self.libwarpx_so.warpx_getEx_nodal_flag) - - def get_Ey_nodal_flag(self): - ''' - This returns a 1d array of the nodal flags for Ey along each direction. A 1 means node centered, and 0 cell centered. - ''' - return self._get_nodal_flag(self.libwarpx_so.warpx_getEy_nodal_flag) - - def get_Ez_nodal_flag(self): - ''' - This returns a 1d array of the nodal flags for Ez along each direction. A 1 means node centered, and 0 cell centered. - ''' - return self._get_nodal_flag(self.libwarpx_so.warpx_getEz_nodal_flag) - - def get_Bx_nodal_flag(self): - ''' - This returns a 1d array of the nodal flags for Bx along each direction. A 1 means node centered, and 0 cell centered. - ''' - return self._get_nodal_flag(self.libwarpx_so.warpx_getBx_nodal_flag) - - def get_By_nodal_flag(self): - ''' - This returns a 1d array of the nodal flags for By along each direction. A 1 means node centered, and 0 cell centered. - ''' - return self._get_nodal_flag(self.libwarpx_so.warpx_getBy_nodal_flag) - - def get_Bz_nodal_flag(self): - ''' - This returns a 1d array of the nodal flags for Bz along each direction. A 1 means node centered, and 0 cell centered. - ''' - return self._get_nodal_flag(self.libwarpx_so.warpx_getBz_nodal_flag) - - def get_Jx_nodal_flag(self): - ''' - This returns a 1d array of the nodal flags for Jx along each direction. A 1 means node centered, and 0 cell centered. - ''' - return self._get_nodal_flag(self.libwarpx_so.warpx_getJx_nodal_flag) - - def get_Jy_nodal_flag(self): - ''' - This returns a 1d array of the nodal flags for Jy along each direction. A 1 means node centered, and 0 cell centered. - ''' - return self._get_nodal_flag(self.libwarpx_so.warpx_getJy_nodal_flag) - - def get_Jz_nodal_flag(self): - ''' - This returns a 1d array of the nodal flags for Jz along each direction. A 1 means node centered, and 0 cell centered. - ''' - return self._get_nodal_flag(self.libwarpx_so.warpx_getJz_nodal_flag) - - def get_Ax_nodal_flag(self): - ''' - This returns a 1d array of the nodal flags for Ax along each direction. A 1 means node centered, and 0 cell centered. - ''' - return self._get_nodal_flag(self.libwarpx_so.warpx_getAx_nodal_flag) - - def get_Ay_nodal_flag(self): - ''' - This returns a 1d array of the nodal flags for Ay along each direction. A 1 means node centered, and 0 cell centered. - ''' - return self._get_nodal_flag(self.libwarpx_so.warpx_getAy_nodal_flag) - - def get_Az_nodal_flag(self): - ''' - This returns a 1d array of the nodal flags for Az along each direction. A 1 means node centered, and 0 cell centered. - ''' - return self._get_nodal_flag(self.libwarpx_so.warpx_getAz_nodal_flag) - - def get_Rho_nodal_flag(self): - ''' - This returns a 1d array of the nodal flags for Rho along each direction. A 1 means node centered, and 0 cell centered. - ''' - return self._get_nodal_flag(self.libwarpx_so.warpx_getRho_nodal_flag) - - def get_Phi_nodal_flag(self): - ''' - This returns a 1d array of the nodal flags for Phi along each direction. A 1 means node centered, and 0 cell centered. - ''' - return self._get_nodal_flag(self.libwarpx_so.warpx_getPhi_nodal_flag) - - def get_F_nodal_flag(self): - ''' - This returns a 1d array of the nodal flags for F along each direction. A 1 means node centered, and 0 cell centered. - ''' - return self._get_nodal_flag(self.libwarpx_so.warpx_getF_nodal_flag) - - def get_G_nodal_flag(self): - ''' - This returns a 1d array of the nodal flags for G along each direction. A 1 means node centered, and 0 cell centered. - ''' - return self._get_nodal_flag(self.libwarpx_so.warpx_getG_nodal_flag) - - def get_edge_lengths_x_nodal_flag(self): - ''' - This returns a 1d array of the nodal flags for the x edge lengths along each direction. A 1 means node centered, and 0 cell centered. - ''' - return self._get_nodal_flag(self.libwarpx_so.warpx_get_edge_lengths_x_nodal_flag) - - def get_edge_lengths_y_nodal_flag(self): - ''' - This returns a 1d array of the nodal flags for the y edge lengths along each direction. A 1 means node centered, and 0 cell centered. - ''' - return self._get_nodal_flag(self.libwarpx_so.warpx_get_edge_lengths_y_nodal_flag) - - def get_edge_lengths_z_nodal_flag(self): - ''' - This returns a 1d array of the nodal flags for the z edge lengths along each direction. A 1 means node centered, and 0 cell centered. - ''' - return self._get_nodal_flag(self.libwarpx_so.warpx_get_edge_lengths_z_nodal_flag) - - def get_face_areas_x_nodal_flag(self): - ''' - This returns a 1d array of the nodal flags for the x face areas along each direction. A 1 means node centered, and 0 cell centered. - ''' - return self._get_nodal_flag(self.libwarpx_so.warpx_get_face_areas_x_nodal_flag) - - def get_face_areas_y_nodal_flag(self): - ''' - This returns a 1d array of the nodal flags for the y face areas along each direction. A 1 means node centered, and 0 cell centered. - ''' - return self._get_nodal_flag(self.libwarpx_so.warpx_get_face_areas_y_nodal_flag) - - def get_face_areas_z_nodal_flag(self): - ''' - This returns a 1d array of the nodal flags for the z face areas along each direction. A 1 means node centered, and 0 cell centered. - ''' - return self._get_nodal_flag(self.libwarpx_so.warpx_get_face_areas_z_nodal_flag) - - def get_F_pml_nodal_flag(self): - ''' - This returns a 1d array of the nodal flags for F in the PML along each direction. A 1 means node centered, and 0 cell centered. - ''' - return self._get_nodal_flag(self.libwarpx_so.warpx_getF_pml_nodal_flag) - - def get_G_pml_nodal_flag(self): - ''' - This returns a 1d array of the nodal flags for G in the PML along each direction. A 1 means node centered, and 0 cell centered. - ''' - return self._get_nodal_flag(self.libwarpx_so.warpx_getG_pml_nodal_flag) - - -libwarpx = LibWarpX() diff --git a/Python/pywarpx/callbacks.py b/Python/pywarpx/callbacks.py deleted file mode 100644 index 02a8f5aad..000000000 --- a/Python/pywarpx/callbacks.py +++ /dev/null @@ -1,614 +0,0 @@ -# Copyright 2017 David Grote -# -# This file is part of WarpX. -# -# License: BSD-3-Clause-LBNL - -"""call back operations -===================== - -These are the functions which allow installing user created functions so that -they are called at various places along the time step. - -For each call back type, the following three functions are defined. - - install___: Installs a function to be called at that specified time - - uninstall___: Uninstalls the function (so it won't be called anymore) - - isinstalled___: Checks if the function is installed - -These functions all take a function or instance method as an argument. Note that -if an instance method is used, an extra reference to the method's object is saved. - -The install can be done using a decorator, which has the prefix "callfrom". See example below. - -Functions can be called at the following times: - - beforeInitEsolve : before the initial solve for the E fields (i.e. before the PIC loop starts) - - afterInitEsolve : after the initial solve for the E fields (i.e. before the PIC loop starts) - - afterinit : immediately after the init is complete - - beforeEsolve : before the solve for E fields - - poissonsolver : In place of the computePhi call but only in an electrostatic simulation - - afterEsolve : after the solve for E fields - - beforedeposition : before the particle deposition (for charge and/or current) - - afterdeposition : after particle deposition (for charge and/or current) - - beforestep : before the time step - - afterstep : after the time step - - afterdiagnostics : after diagnostic output - - oncheckpointsignal : on a checkpoint signal - - onbreaksignal : on a break signal. These callbacks will be the last ones executed - before the simulation ends. - - particlescraper : just after the particle boundary conditions are applied - but before lost particles are processed - - particleloader : at the time that the standard particle loader is called - - particleinjection : called when particle injection happens, after the position - advance and before deposition is called, allowing a user defined - particle distribution to be injected each time step - - appliedfields : allows directly specifying any fields to be applied to the particles - during the advance - -To use a decorator, the syntax is as follows. This will install the function myplots to be called after each step. - -@callfromafterstep -def myplots(): - ppzx() - -This is equivalent to the following: - -def myplots(): - ppzx() -installafterstep(myplots) - -""" -from __future__ import generators - -import copy -import ctypes -import sys -import time -import types - -import numpy - -from ._libwarpx import libwarpx - - -class CallbackFunctions(object): - """ - Class to handle call back function lists. - - Note that for functions passed in that are methods of a class instance, - a full reference of the instance is saved. This extra reference means - that the object will not actually be deleted if the user deletes the - original reference. This is good since the user does not need to keep - the reference to the object (for example it can be created using a local - variable in a function). It may be bad if the user thinks an object was - deleted, but it actually isn't since it had (unkown to the user) - installed a method in one of the call back lists. - """ - - def __init__(self,name=None,lcallonce=0): - self.funcs = [] - self.time = 0. - self.timers = {} - self.name = name - self.lcallonce = lcallonce - - def __call__(self,*args,**kw): - """Call all of the functions in the list""" - tt = self.callfuncsinlist(*args,**kw) - self.time = self.time + tt - if self.lcallonce: self.funcs = [] - - def clearlist(self): - """Unregister/clear out all registered C callbacks""" - self.funcs = [] - libwarpx.libwarpx_so.warpx_clear_callback_py( - ctypes.c_char_p(self.name.encode('utf-8')) - ) - - def __bool__(self): - """Returns True if functions are installed, otherwise False""" - return self.hasfuncsinstalled() - - def __len__(self): - """Returns number of functions installed""" - return len(self.funcs) - - def hasfuncsinstalled(self): - """Checks if there are any functions installed""" - return len(self.funcs) > 0 - - def _getmethodobject(self,func): - """For call backs that are methods, returns the method's instance""" - return func[0] - - def callbackfunclist(self): - """Generator returning callable functions from the list""" - funclistcopy = copy.copy(self.funcs) - for f in funclistcopy: - if isinstance(f,list): - object = self._getmethodobject(f) - if object is None: - self.funcs.remove(f) - continue - result = getattr(object,f[1]) - elif isinstance(f,str): - import __main__ - if f in __main__.__dict__: - result = __main__.__dict__[f] - # --- If the function with the name is found, then replace the - # --- name in the list with the function. - self.funcs[self.funcs.index(f)] = result - else: - continue - else: - result = f - if not callable(result): - print("\n\nWarning: a call back was found that is not callable.") - if self.name is not None: - print("For %s"%self.name) - print("Only callable objects can be installed.") - print("It is possible that the callable's name has been overwritten") - print("by something not callable. This can happen during restart") - print("if a function name had later been used as a variable name.") - print(self.name) - if isinstance(f,str): - print("The name of the call back is %s"%f) - print("\n\n") - continue - yield result - - def installfuncinlist(self,f): - """Check if the specified function is installed""" - if len(self.funcs) == 0: - # If this is the first function installed, set the callback in the C++ - # to call this class instance. - # Note that the _c_func must be saved. - _CALLBACK_FUNC_0 = ctypes.CFUNCTYPE(None) - self._c_func = _CALLBACK_FUNC_0(self) - libwarpx.libwarpx_so.warpx_set_callback_py( - ctypes.c_char_p(self.name.encode('utf-8')), self._c_func - ) - if isinstance(f,types.MethodType): - # --- If the function is a method of a class instance, then save a full - # --- reference to that instance and the method name. - finstance = f.__self__ - fname = f.__name__ - self.funcs.append([finstance,fname]) - elif callable(f): - # --- If a function had already been installed by name, then skip the install. - # --- This is problematic, since no warning message is given, but it is unlikely - # --- to arise under normal circumstances. - # --- The purpose of this check is to avoid redundant installation of functions - # --- during a restore from a dump file. Without the check, functions that had been - # --- installed via a decorator would be installed an extra time since the source - # --- of the function contains the decoration (which is activated when the source - # --- is exec'd). - if f.__name__ not in self.funcs: - self.funcs.append(f) - else: - self.funcs.append(f) - - def uninstallfuncinlist(self,f): - """Uninstall the specified function""" - # --- An element by element search is needed - # --- f can be a function or method object, or a name (string). - # --- Note that method objects can not be removed by name. - funclistcopy = copy.copy(self.funcs) - for func in funclistcopy: - if f == func: - self.funcs.remove(f) - break - elif isinstance(func,list) and isinstance(f,types.MethodType): - object = self._getmethodobject(func) - if f.__self__ is object and f.__name__ == func[1]: - self.funcs.remove(func) - break - elif isinstance(func,str): - if f.__name__ == func: - self.funcs.remove(func) - break - elif isinstance(f,str): - if isinstance(func,str): funcname = func - elif isinstance(func,list): funcname = None - else: funcname = func.__name__ - if f == funcname: - self.funcs.remove(func) - break - - # check that a function was removed - if len(self.funcs) == len(funclistcopy): - raise Exception(f'Warning: no function, {f}, had been installed') - - # if there are no functions left, remove the C callback - if not self.hasfuncsinstalled(): - self.clearlist() - - def isinstalledfuncinlist(self,f): - """Checks if the specified function is installed""" - # --- An element by element search is needed - funclistcopy = copy.copy(self.funcs) - for func in funclistcopy: - if f == func: - return 1 - elif isinstance(func,list) and isinstance(f,types.MethodType): - object = self._getmethodobject(func) - if f.__self__ is object and f.__name__ == func[1]: - return 1 - elif isinstance(func,str): - if f.__name__ == func: - return 1 - return 0 - - def callfuncsinlist(self,*args,**kw): - """Call the functions in the list""" - bb = time.time() - for f in self.callbackfunclist(): - #barrier() - t1 = time.time() - f(*args,**kw) - #barrier() - t2 = time.time() - # --- For the timers, use the function (or method) name as the key. - self.timers[f.__name__] = self.timers.get(f.__name__,0.) + (t2 - t1) - aa = time.time() - return aa - bb - -#============================================================================= - -# --- Now create the actual instances. -_beforeInitEsolve = CallbackFunctions('beforeInitEsolve') -_afterInitEsolve = CallbackFunctions('afterInitEsolve') -_afterinit = CallbackFunctions('afterinit') -_beforecollisions = CallbackFunctions('beforecollisions') -_aftercollisions = CallbackFunctions('aftercollisions') -_beforeEsolve = CallbackFunctions('beforeEsolve') -_poissonsolver = CallbackFunctions('poissonsolver') -_afterEsolve = CallbackFunctions('afterEsolve') -_beforedeposition = CallbackFunctions('beforedeposition') -_afterdeposition = CallbackFunctions('afterdeposition') -_particlescraper = CallbackFunctions('particlescraper') -_particleloader = CallbackFunctions('particleloader') -_beforestep = CallbackFunctions('beforestep') -_afterstep = CallbackFunctions('afterstep') -_afterdiagnostics = CallbackFunctions('afterdiagnostics') -_afterrestart = CallbackFunctions('afterrestart',lcallonce=1) -_oncheckpointsignal = CallbackFunctions('oncheckpointsignal') -_onbreaksignal = CallbackFunctions('onbreaksignal') -_particleinjection = CallbackFunctions('particleinjection') -_appliedfields = CallbackFunctions('appliedfields') - - -#============================================================================= -def printcallbacktimers(tmin=1.,lminmax=False,ff=None): - """Prints timings of installed functions. - - tmin=1.: only functions with time greater than tmin will be printed - - lminmax=False: If True, prints the min and max times over all processors - - ff=None: If given, timings will be written to the file object instead of stdout - """ - if ff is None: ff = sys.stdout - for c in [ _beforeInitEsolve, _afterInitEsolve, - _afterinit,_beforeEsolve,_poissonsolver,_afterEsolve, - _beforedeposition,_afterdeposition, - _particlescraper, - _particleloader, - _beforestep,_afterstep, - _afterdiagnostics, - _afterrestart, - _oncheckpointsignal, - _onbreaksignal, - _particleinjection, - _appliedfields]: - for fname, time in c.timers.items(): - #vlist = numpy.array(gather(time)) - vlist = numpy.array([time]) - #if me > 0: continue - vsum = numpy.sum(vlist) - if vsum <= tmin: continue - vrms = numpy.sqrt(max(0.,numpy.sum(vlist**2)/len(vlist) - (numpy.sum(vlist)/len(vlist))**2)) - npes = 1. # Only works for one processor - ff.write('%20s %s %10.4f %10.4f %10.4f'%(c.name,fname,vsum,vsum/npes,vrms)) - if lminmax: - vmin = numpy.min(vlist) - vmax = numpy.max(vlist) - ff.write(' %10.4f %10.4f'%(vmin,vmax)) - it = libwarpx.libwarpx_so.warpx_getistep(0) - if it > 0: - ff.write(' %10.4f'%(vsum/npes/(it))) - ff.write('\n') - -#============================================================================= -# ---------------------------------------------------------------------------- -def callfrombeforeInitEsolve(f): - installbeforeInitEsolve(f) - return f -def installbeforeInitEsolve(f): - "Adds a function to the list of functions called before the initial E solve" - _beforeInitEsolve.installfuncinlist(f) -def uninstallbeforeInitEsolve(f): - "Removes the function from the list of functions called before the initial E solve" - _beforeInitEsolve.uninstallfuncinlist(f) -def isinstalledbeforeInitEsolve(f): - "Checks if the function is called before the initial E solve" - return _beforeInitEsolve.isinstalledfuncinlist(f) - -# ---------------------------------------------------------------------------- -def callfromafterInitEsolve(f): - installafterInitEsolve(f) - return f -def installafterInitEsolve(f): - "Adds a function to the list of functions called after the initial E solve" - _afterInitEsolve.installfuncinlist(f) -def uninstallafterInitEsolve(f): - "Removes the function from the list of functions called after the initial E solve" - _afterInitEsolve.uninstallfuncinlist(f) -def isinstalledafterInitEsolve(f): - "Checks if the function is called after the initial E solve" - return _afterInitEsolve.isinstalledfuncinlist(f) - -# ---------------------------------------------------------------------------- -def callfromafterinit(f): - installafterinit(f) - return f -def installafterinit(f): - "Adds a function to the list of functions called after the init" - _afterinit.installfuncinlist(f) -def uninstallafterinit(f): - "Removes the function from the list of functions called after the init" - _afterinit.uninstallfuncinlist(f) -def isinstalledafterinit(f): - "Checks if the function is called after a init" - return _afterinit.isinstalledfuncinlist(f) - -# ---------------------------------------------------------------------------- -def callfrombeforecollisions(f): - installbeforecollisions(f) - return f -def installbeforecollisions(f): - "Adds a function to the list of functions called before collisions" - _beforecollisions.installfuncinlist(f) -def uninstallbeforecollisions(f): - "Removes the function from the list of functions called before collisions" - _beforecollisions.uninstallfuncinlist(f) -def isinstalledbeforecollisions(f): - "Checks if the function is called before collisions" - return _beforecollisions.isinstalledfuncinlist(f) - -# ---------------------------------------------------------------------------- -def callfromaftercollisions(f): - installaftercollisions(f) - return f -def installaftercollisions(f): - "Adds a function to the list of functions called after collisions" - _aftercollisions.installfuncinlist(f) -def uninstallaftercollisions(f): - "Removes the function from the list of functions called after collisions" - _aftercollisions.uninstallfuncinlist(f) -def isinstalledaftercollisions(f): - "Checks if the function is called after collisions" - return _aftercollisions.isinstalledfuncinlist(f) - -# ---------------------------------------------------------------------------- -def callfrombeforeEsolve(f): - installbeforeEsolve(f) - return f -def installbeforeEsolve(f): - "Adds a function to the list of functions called before an E solve" - _beforeEsolve.installfuncinlist(f) -def uninstallbeforeEsolve(f): - "Removes the function from the list of functions called before an E solve" - _beforeEsolve.uninstallfuncinlist(f) -def isinstalledbeforeEsolve(f): - "Checks if the function is called before an E solve" - return _beforeEsolve.isinstalledfuncinlist(f) - -# ---------------------------------------------------------------------------- -def callfrompoissonsolver(f): - installpoissonsolver(f) - return f -def installpoissonsolver(f): - """Installs an external function to solve Poisson's equation""" - if _poissonsolver.hasfuncsinstalled(): - raise RuntimeError("Only one external Poisson solver can be installed.") - _poissonsolver.installfuncinlist(f) -def uninstallpoissonsolver(f): - """Removes the external function to solve Poisson's equation""" - _poissonsolver.uninstallfuncinlist(f) -def isinstalledpoissonsolver(f): - """Checks if the function is called to solve Poisson's equation""" - return _poissonsolver.isinstalledfuncinlist(f) - -# ---------------------------------------------------------------------------- -def callfromafterEsolve(f): - installafterEsolve(f) - return f -def installafterEsolve(f): - "Adds a function to the list of functions called after an E solve" - _afterEsolve.installfuncinlist(f) -def uninstallafterEsolve(f): - "Removes the function from the list of functions called after an E solve" - _afterEsolve.uninstallfuncinlist(f) -def isinstalledafterEsolve(f): - "Checks if the function is called after an E solve" - return _afterEsolve.isinstalledfuncinlist(f) - -# ---------------------------------------------------------------------------- -def callfrombeforedeposition(f): - installbeforedeposition(f) - return f -def installbeforedeposition(f): - "Adds a function to the list of functions called before a particle deposition" - _beforedeposition.installfuncinlist(f) -def uninstallbeforedeposition(f): - "Removes the function from the list of functions called before a particle deposition" - _beforedeposition.uninstallfuncinlist(f) -def isinstalledbeforedeposition(f): - "Checks if the function is called before a particle deposition" - return _beforedeposition.isinstalledfuncinlist(f) - -# ---------------------------------------------------------------------------- -def callfromafterdeposition(f): - installafterdeposition(f) - return f -def installafterdeposition(f): - "Adds a function to the list of functions called after a particle deposition" - _afterdeposition.installfuncinlist(f) -def uninstallafterdeposition(f): - "Removes the function from the list of functions called after a particle deposition" - _afterdeposition.uninstallfuncinlist(f) -def isinstalledafterdeposition(f): - "Checks if the function is called after a particle deposition" - return _afterdeposition.isinstalledfuncinlist(f) - -# ---------------------------------------------------------------------------- -def callfromparticlescraper(f): - installparticlescraper(f) - return f -def installparticlescraper(f): - "Adds a function to the list of functions called to scrape particles" - _particlescraper.installfuncinlist(f) -def uninstallparticlescraper(f): - "Removes the function from the list of functions called to scrape particles" - _particlescraper.uninstallfuncinlist(f) -def isinstalledparticlescraper(f): - "Checks if the function is called to scrape particles" - return _particlescraper.isinstalledfuncinlist(f) - -# ---------------------------------------------------------------------------- -def callfromparticleloader(f): - installparticleloader(f) - return f -def installparticleloader(f): - "Adds a function to the list of functions called to load particles" - _particleloader.installfuncinlist(f) -def uninstallparticleloader(f): - "Removes the function from the list of functions called to load particles" - _particleloader.uninstallfuncinlist(f) -def isinstalledparticleloader(f): - "Checks if the function is called to load particles" - return _particleloader.isinstalledfuncinlist(f) - -# ---------------------------------------------------------------------------- -def callfrombeforestep(f): - installbeforestep(f) - return f -def installbeforestep(f): - "Adds a function to the list of functions called before a step" - _beforestep.installfuncinlist(f) -def uninstallbeforestep(f): - "Removes the function from the list of functions called before a step" - _beforestep.uninstallfuncinlist(f) -def isinstalledbeforestep(f): - "Checks if the function is called before a step" - return _beforestep.isinstalledfuncinlist(f) - -# ---------------------------------------------------------------------------- -def callfromafterstep(f): - installafterstep(f) - return f -def installafterstep(f): - "Adds a function to the list of functions called after a step" - _afterstep.installfuncinlist(f) -def uninstallafterstep(f): - "Removes the function from the list of functions called after a step" - _afterstep.uninstallfuncinlist(f) -def isinstalledafterstep(f): - "Checks if the function is called after a step" - return _afterstep.isinstalledfuncinlist(f) - -# ---------------------------------------------------------------------------- -def callfromafterdiagnostics(f): - installafterdiagnostics(f) - return f -def installafterdiagnostics(f): - "Adds a function to the list of functions called after diagnostic output" - _afterdiagnostics.installfuncinlist(f) -def uninstallafterdiagnostics(f): - "Removes the function from the list of functions called after diagnostic output" - _afterdiagnostics.uninstallfuncinlist(f) -def isinstalledafterdiagnostics(f): - "Checks if the function is called after diagnostic output" - return _afterdiagnostics.isinstalledfuncinlist(f) - -# ---------------------------------------------------------------------------- -def callfromafterrestart(f): - raise Exception('restart call back not implemented yet') - installafterrestart(f) - return f -def installafterrestart(f): - "Adds a function to the list of functions called immediately after a restart" - raise Exception('restart call back not implemented yet') - _afterrestart.installfuncinlist(f) -def uninstallafterrestart(f): - "Removes the function from the list of functions called immediately after a restart" - raise Exception('restart call back not implemented yet') - _afterrestart.uninstallfuncinlist(f) -def isinstalledafterrestart(f): - "Checks if the function is called immediately after a restart" - raise Exception('restart call back not implemented yet') - return _afterrestart.isinstalledfuncinlist(f) - -# ---------------------------------------------------------------------------- -def oncheckpointsignal(f): - installoncheckpointsignal(f) - return f -def installoncheckpointsignal(f): - "Adds a function to the list of functions called on checkpoint signal" - _oncheckpointsignal.installfuncinlist(f) -def uninstalloncheckpointsignal(f): - "Removes the function from the list of functions called on checkpoint signal" - _oncheckpointsignal.uninstallfuncinlist(f) -def isinstalledoncheckpointsignal(f): - "Checks if the function is called on checkpoint signal" - return _oncheckpointsignal.isinstalledfuncinlist(f) - -# ---------------------------------------------------------------------------- -def onbreaksignal(f): - installonbreaksignal(f) - return f -def installonbreaksignal(f): - "Adds a function to the list of functions called on a break signal" - _onbreaksignal.installfuncinlist(f) -def uninstallonbreaksignal(f): - "Removes the function from the list of functions called on a break signal" - _onbreaksignal.uninstallfuncinlist(f) -def isinstalledonbreaksignal(f): - "Checks if the function is called on a break signal" - return _onbreaksignal.isinstalledfuncinlist(f) - -# ---------------------------------------------------------------------------- -def callfromparticleinjection(f): - installparticleinjection(f) - return f -def installparticleinjection(f): - """ - Adds a user defined function that is to be called when particle - injection happens, after the position advance and before deposition is - called, allowing a user defined particle distribution to be injected - each time step""" - _particleinjection.installfuncinlist(f) -def uninstallparticleinjection(f): - "Removes the function installed by installparticleinjection" - _particleinjection.uninstallfuncinlist(f) -def isinstalledparticleinjection(f): - "Checks if the function is called when particles injection happens" - return _particleinjection.isinstalledfuncinlist(f) - -# ---------------------------------------------------------------------------- -def callfromappliedfields(f): - raise Exception('applied fields call back not implemented yet') - installappliedfields(f) - return f -def installappliedfields(f): - """ - Adds a user defined function which can specify E and B fields which are applied - to the particles during the particle advance. - """ - raise Exception('applied fields call back not implemented yet') - _appliedfields.installfuncinlist(f) -def uninstallappliedfields(f): - "Removes the function installed by installappliedfields" - raise Exception('applied fields call back not implemented yet') - _appliedfields.uninstallfuncinlist(f) -def isinstalledappliedfields(f): - "Checks if the function is called when which applies fields" - raise Exception('applied fields call back not implemented yet') - return _appliedfields.isinstalledfuncinlist(f) diff --git a/Python/pywarpx/fields.py b/Python/pywarpx/fields.py deleted file mode 100644 index 2577902c4..000000000 --- a/Python/pywarpx/fields.py +++ /dev/null @@ -1,912 +0,0 @@ -# Copyright 2017-2019 David Grote -# -# This file is part of WarpX. -# -# License: BSD-3-Clause-LBNL - -"""Provides wrappers around field and current density on multiFABs - -Available routines: - -ExWrapper, EyWrapper, EzWrapper -BxWrapper, ByWrapper, BzWrapper -JxWrapper, JyWrapper, JzWrapper - -""" -import numpy as np - -try: - from mpi4py import MPI as mpi - comm_world = mpi.COMM_WORLD - npes = comm_world.Get_size() -except ImportError: - npes = 1 - -from ._libwarpx import libwarpx - - -class _MultiFABWrapper(object): - """Wrapper around field arrays at level 0 - This provides a convenient way to query and set fields that are broken up into FABs. - The indexing is based on global indices. - - direction: component to access, one of the values (0, 1, 2) or None - - get_lovects: routine that returns the list of lo vectors - - get_fabs: routine that returns the list of FABs - - get_nodal_flag: routine that returns the list of nodal flag - - level: refinement level - """ - def __init__(self, direction, get_lovects, get_fabs, get_nodal_flag, level, include_ghosts=False): - self.direction = direction - self.get_lovects = get_lovects - self.get_fabs = get_fabs - self.get_nodal_flag = get_nodal_flag - self.level = level - self.include_ghosts = include_ghosts - - self.dim = libwarpx.dim - - # overlaps is one along the axes where the grid boundaries overlap the neighboring grid, - # which is the case with node centering. - # This presumably will never change during a calculation. - self.overlaps = self.get_nodal_flag() - - def _getlovects(self): - if self.direction is None: - lovects, ngrow = self.get_lovects(self.level, self.include_ghosts) - else: - lovects, ngrow = self.get_lovects(self.level, self.direction, self.include_ghosts) - return lovects, ngrow - - def _gethivects(self): - lovects, ngrow = self._getlovects() - fields = self._getfields() - - hivects = np.zeros_like(lovects) - for i in range(len(fields)): - hivects[:,i] = lovects[:,i] + np.array(fields[i].shape[:self.dim]) - self.overlaps - - return hivects, ngrow - - def _getfields(self): - if self.direction is None: - return self.get_fabs(self.level, self.include_ghosts) - else: - return self.get_fabs(self.level, self.direction, self.include_ghosts) - - def __len__(self): - lovects, ngrow = self._getlovects() - return len(lovects) - - def mesh(self, direction): - """Returns the mesh along the specified direction with the appropriate centering. - - direction: In 3d, one of 'x', 'y', or 'z'. - In 2d, Cartesian, one of 'x', or 'z'. - In RZ, one of 'r', or 'z' - In Z, 'z'. - """ - - try: - if libwarpx.geometry_dim == '3d': - idir = ['x', 'y', 'z'].index(direction) - celldir = idir - elif libwarpx.geometry_dim == '2d': - idir = ['x', 'z'].index(direction) - celldir = 2*idir - elif libwarpx.geometry_dim == 'rz': - idir = ['r', 'z'].index(direction) - celldir = 2*idir - elif libwarpx.geometry_dim == '1d': - idir = ['z'].index(direction) - celldir = idir - except ValueError: - raise Exception('Inappropriate direction given') - - # --- Get the total number of cells along the direction - hivects, ngrow = self._gethivects() - nn = hivects[idir,:].max() - ngrow[idir] + self.overlaps[idir] - if npes > 1: - nn = comm_world.allreduce(nn, op=mpi.MAX) - - # --- Cell size in the direction - dd = libwarpx.getCellSize(celldir, self.level) - - # --- Get the nodal flag along direction - nodal_flag = self.get_nodal_flag()[idir] - - # --- The centering shift - if nodal_flag == 1: - # node centered - shift = 0. - else: - # cell centered - shift = 0.5*dd - - return np.arange(nn)*dd + shift - - def _find_start_stop(self, ii, imin, imax, d): - """Given the input index, calculate the start and stop range of the indices. - - ii: input index, either a slice object or an integer - - imin: the global lowest lovect value in the specified direction - - imax: the global highest hivect value in the specified direction - - d: the direction, an integer, 0, 1, or 2 - If ii is a slice, the start and stop values are used directly, - unless they are None, then the lower or upper bound is used. - An assertion checks if the indices are within the bounds. - """ - if isinstance(ii, slice): - if ii.start is None: - iistart = imin - else: - iistart = ii.start - if ii.stop is None: - iistop = imax + self.overlaps[d] - else: - iistop = ii.stop - else: - iistart = ii - iistop = ii + 1 - assert imin <= iistart <= imax + self.overlaps[d], Exception(f'Dimension {d} lower index is out of bounds') - assert imin <= iistop <= imax + self.overlaps[d], Exception(f'Dimension {d} upper index is out of bounds') - return iistart, iistop - - def _get_indices(self, index): - if self.dim == 1: - return None, None, index[0] - elif self.dim == 2: - return index[0], None, index[1] - elif self.dim == 3: - return index[0], index[1], index[2] - - def _get_min_indices(self, lovects): - if self.dim == 1: - return 0, 0, lovects[0,:].min() - elif self.dim == 2: - return lovects[0,:].min(), 0, lovects[1,:].min() - elif self.dim == 3: - return lovects[0,:].min(), lovects[1,:].min(), lovects[2,:].min() - - def _get_max_indices(self, hivects): - if self.dim == 1: - return 0, 0, hivects[0,:].max() - elif self.dim == 2: - return hivects[0,:].max(), 0, hivects[1,:].max() - elif self.dim == 3: - return hivects[0,:].max(), hivects[1,:].max(), hivects[2,:].max() - - def _get_vslice(self, lovects, fields_shape, ixstart, ixstop, iystart, - iystop, izstart, izstop, ic): - # --- The ix1, 2 etc are relative to global indexing - if self.dim == 1: - ix1, ix2 = 0, 1 - iy1, iy2 = 0, 1 - iz1 = max(izstart, lovects[0]) - iz2 = min(izstop, lovects[0] + fields_shape[0]) - elif self.dim == 2: - ix1 = max(ixstart, lovects[0]) - ix2 = min(ixstop, lovects[0] + fields_shape[0]) - iy1, iy2 = 0, 1 - iz1 = max(izstart, lovects[1]) - iz2 = min(izstop, lovects[1] + fields_shape[1]) - elif self.dim == 3: - ix1 = max(ixstart, lovects[0]) - ix2 = min(ixstop, lovects[0] + fields_shape[0]) - iy1 = max(iystart, lovects[1]) - iy2 = min(iystop, lovects[1] + fields_shape[1]) - iz1 = max(izstart, lovects[2]) - iz2 = min(izstop, lovects[2] + fields_shape[2]) - - if ix1 < ix2 and iy1 < iy2 and iz1 < iz2: - - if self.dim == 1: - sss = (slice(iz1 - lovects[0], iz2 - lovects[0])) - vslice = (slice(iz1 - izstart, iz2 - izstart)) - - elif self.dim == 2: - sss = (slice(ix1 - lovects[0], ix2 - lovects[0]), - slice(iz1 - lovects[1], iz2 - lovects[1])) - vslice = (slice(ix1 - ixstart, ix2 - ixstart), - slice(iz1 - izstart, iz2 - izstart)) - - elif self.dim == 3: - sss = (slice(ix1 - lovects[0], ix2 - lovects[0]), - slice(iy1 - lovects[1], iy2 - lovects[1]), - slice(iz1 - lovects[2], iz2 - lovects[2])) - vslice = (slice(ix1 - ixstart, ix2 - ixstart), - slice(iy1 - iystart, iy2 - iystart), - slice(iz1 - izstart, iz2 - izstart)) - - if ic is not None: - sss = tuple(list(sss) + [ic]) - - return sss, vslice - else: - return None, None - - def __getitem__(self, index): - """Returns slices of a decomposed array, The shape of - the object returned depends on the number of ix, iy and iz specified, which - can be from none to all three. Note that the values of ix, iy and iz are - relative to the fortran indexing, meaning that 0 is the lower boundary - of the whole domain. - """ - if index == Ellipsis: - index = tuple(self.dim*[slice(None)]) - - if len(index) < self.dim: - # --- Add extra dims to index if needed - index = list(index) - for i in range(len(index), self.dim): - index.append(slice(None)) - index = tuple(index) - - lovects, ngrow = self._getlovects() - hivects, ngrow = self._gethivects() - fields = self._getfields() - - ix, iy, iz = self._get_indices(index) - - if len(fields[0].shape) > self.dim: - ncomps = fields[0].shape[-1] - else: - ncomps = 1 - - if len(index) > self.dim: - if ncomps > 1: - ic = index[self.dim] - else: - raise Exception('Too many indices given') - else: - ic = None - - ixmin, iymin, izmin = self._get_min_indices(lovects) - ixmax, iymax, izmax = self._get_max_indices(hivects) - - if npes > 1: - izmin = comm_world.allreduce(izmin, op=mpi.MIN) - izmax = comm_world.allreduce(izmax, op=mpi.MAX) - if self.dim > 1: - ixmin = comm_world.allreduce(ixmin, op=mpi.MIN) - ixmax = comm_world.allreduce(ixmax, op=mpi.MAX) - if self.dim == 3: - iymin = comm_world.allreduce(iymin, op=mpi.MIN) - iymax = comm_world.allreduce(iymax, op=mpi.MAX) - - # --- Setup the size of the array to be returned. - if self.dim == 1: - ixstart, ixstop = None, None - iystart, iystop = None, None - izstart, izstop = self._find_start_stop(iz, izmin, izmax, 0) - - sss = [max(0, izstop - izstart)] - - elif self.dim == 2: - ixstart, ixstop = self._find_start_stop(ix, ixmin, ixmax, 0) - iystart, iystop = None, None - izstart, izstop = self._find_start_stop(iz, izmin, izmax, 1) - - sss = (max(0, ixstop - ixstart), - max(0, izstop - izstart)) - - elif self.dim == 3: - ixstart, ixstop = self._find_start_stop(ix, ixmin, ixmax, 0) - iystart, iystop = self._find_start_stop(iy, iymin, iymax, 1) - izstart, izstop = self._find_start_stop(iz, izmin, izmax, 2) - - sss = (max(0, ixstop - ixstart), - max(0, iystop - iystart), - max(0, izstop - izstart)) - - # --- Space is added for multiple components if needed. - if ncomps > 1 and ic is None: - sss = tuple(list(sss) + [ncomps]) - # --- Create the array to be returned. - resultglobal = np.zeros(sss, dtype=libwarpx._numpy_real_dtype) - - datalist = [] - for i in range(len(fields)): - sss, vslice = self._get_vslice( - lovects[:,i], fields[i].shape, ixstart, ixstop, iystart, - iystop, izstart, izstop, ic - ) - if vslice is not None: - datalist.append((vslice, fields[i][sss])) - - if npes == 1: - all_datalist = [datalist] - else: - all_datalist = comm_world.allgather(datalist) - - for datalist in all_datalist: - for vslice, ff in datalist: - resultglobal[vslice] = ff - - # --- Now remove any of the reduced dimensions. - if self.dim == 1: - sss = [slice(None)] - if not isinstance(iz, slice): - sss[0] = 0 - elif self.dim == 2: - sss = [slice(None), slice(None)] - if not isinstance(ix, slice): - sss[0] = 0 - if not isinstance(iz, slice): - sss[1] = 0 - elif self.dim == 3: - sss = [slice(None), slice(None), slice(None)] - if not isinstance(ix, slice): - sss[0] = 0 - if not isinstance(iy, slice): - sss[1] = 0 - if not isinstance(iz, slice): - sss[2] = 0 - - return resultglobal[tuple(sss)] - - def __setitem__(self, index, value): - """Sets slices of a decomposed array. The shape of - the input object depends on the number of arguments specified, which can - be from none to all three. - - value: input array (must be supplied) - """ - if index == Ellipsis: - index = tuple(self.dim*[slice(None)]) - - if len(index) < self.dim: - # --- Add extra dims to index if needed - index = list(index) - for i in range(len(index), self.dim): - index.append(slice(None)) - index = tuple(index) - - lovects, ngrow = self._getlovects() - hivects, ngrow = self._gethivects() - fields = self._getfields() - - ix, iy, iz = self._get_indices(index) - - if len(fields[0].shape) > self.dim: - ncomps = fields[0].shape[-1] - else: - ncomps = 1 - - if len(index) > self.dim: - if ncomps > 1: - ic = index[self.dim] - else: - raise Exception('Too many indices given') - else: - ic = None - - ixmin, iymin, izmin = self._get_min_indices(lovects) - ixmax, iymax, izmax = self._get_max_indices(hivects) - - if npes > 1: - izmin = comm_world.allreduce(izmin, op=mpi.MIN) - izmax = comm_world.allreduce(izmax, op=mpi.MAX) - if self.dim > 1: - ixmin = comm_world.allreduce(ixmin, op=mpi.MIN) - ixmax = comm_world.allreduce(ixmax, op=mpi.MAX) - if self.dim == 3: - iymin = comm_world.allreduce(iymin, op=mpi.MIN) - iymax = comm_world.allreduce(iymax, op=mpi.MAX) - - # --- Add extra dimensions so that the input has the same number of - # --- dimensions as array. - if self.dim == 1: - ixstart, ixstop = None, None - iystart, iystop = None, None - izstart, izstop = self._find_start_stop(iz, izmin, izmax, 0) - - elif self.dim == 2: - ixstart, ixstop = self._find_start_stop(ix, ixmin, ixmax, 0) - iystart, iystop = None, None - izstart, izstop = self._find_start_stop(iz, izmin, izmax, 1) - - elif self.dim == 3: - ixstart, ixstop = self._find_start_stop(ix, ixmin, ixmax, 0) - iystart, iystop = self._find_start_stop(iy, iymin, iymax, 1) - izstart, izstop = self._find_start_stop(iz, izmin, izmax, 2) - - if isinstance(value, np.ndarray): - value3d = np.array(value, copy=False) - sss = list(value3d.shape) - if self.dim == 1: - if not isinstance(iz, slice): sss[0:0] = [1] - elif self.dim == 2: - if not isinstance(ix, slice): sss[0:0] = [1] - if not isinstance(iz, slice): sss[1:1] = [1] - elif self.dim == 3: - if not isinstance(ix, slice): sss[0:0] = [1] - if not isinstance(iy, slice): sss[1:1] = [1] - if not isinstance(iz, slice): sss[2:2] = [1] - value3d.shape = sss - - for i in range(len(fields)): - sss, vslice = self._get_vslice( - lovects[:,i], fields[i].shape, ixstart, ixstop, iystart, - iystop, izstart, izstop, ic - ) - if vslice is not None: - if isinstance(value, np.ndarray): - fields[i][sss] = value3d[vslice] - else: - fields[i][sss] = value - - -def ExWrapper(level=0, include_ghosts=False): - return _MultiFABWrapper(direction=0, - get_lovects=libwarpx.get_mesh_electric_field_lovects, - get_fabs=libwarpx.get_mesh_electric_field, - get_nodal_flag=libwarpx.get_Ex_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def EyWrapper(level=0, include_ghosts=False): - return _MultiFABWrapper(direction=1, - get_lovects=libwarpx.get_mesh_electric_field_lovects, - get_fabs=libwarpx.get_mesh_electric_field, - get_nodal_flag=libwarpx.get_Ey_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def EzWrapper(level=0, include_ghosts=False): - return _MultiFABWrapper(direction=2, - get_lovects=libwarpx.get_mesh_electric_field_lovects, - get_fabs=libwarpx.get_mesh_electric_field, - get_nodal_flag=libwarpx.get_Ez_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def BxWrapper(level=0, include_ghosts=False): - return _MultiFABWrapper(direction=0, - get_lovects=libwarpx.get_mesh_magnetic_field_lovects, - get_fabs=libwarpx.get_mesh_magnetic_field, - get_nodal_flag=libwarpx.get_Bx_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def ByWrapper(level=0, include_ghosts=False): - return _MultiFABWrapper(direction=1, - get_lovects=libwarpx.get_mesh_magnetic_field_lovects, - get_fabs=libwarpx.get_mesh_magnetic_field, - get_nodal_flag=libwarpx.get_By_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def BzWrapper(level=0, include_ghosts=False): - return _MultiFABWrapper(direction=2, - get_lovects=libwarpx.get_mesh_magnetic_field_lovects, - get_fabs=libwarpx.get_mesh_magnetic_field, - get_nodal_flag=libwarpx.get_Bz_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def JxWrapper(level=0, include_ghosts=False): - return _MultiFABWrapper(direction=0, - get_lovects=libwarpx.get_mesh_current_density_lovects, - get_fabs=libwarpx.get_mesh_current_density, - get_nodal_flag=libwarpx.get_Jx_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def JyWrapper(level=0, include_ghosts=False): - return _MultiFABWrapper(direction=1, - get_lovects=libwarpx.get_mesh_current_density_lovects, - get_fabs=libwarpx.get_mesh_current_density, - get_nodal_flag=libwarpx.get_Jy_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def JzWrapper(level=0, include_ghosts=False): - return _MultiFABWrapper(direction=2, - get_lovects=libwarpx.get_mesh_current_density_lovects, - get_fabs=libwarpx.get_mesh_current_density, - get_nodal_flag=libwarpx.get_Jz_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def ExCPWrapper(level=1, include_ghosts=False): - assert level>0, Exception('Coarse patch only available on levels > 0') - return _MultiFABWrapper(direction=0, - get_lovects=libwarpx.get_mesh_electric_field_cp_lovects, - get_fabs=libwarpx.get_mesh_electric_field_cp, - get_nodal_flag=libwarpx.get_Ex_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def EyCPWrapper(level=1, include_ghosts=False): - assert level>0, Exception('Coarse patch only available on levels > 0') - return _MultiFABWrapper(direction=1, - get_lovects=libwarpx.get_mesh_electric_field_cp_lovects, - get_fabs=libwarpx.get_mesh_electric_field_cp, - get_nodal_flag=libwarpx.get_Ey_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def EzCPWrapper(level=1, include_ghosts=False): - assert level>0, Exception('Coarse patch only available on levels > 0') - return _MultiFABWrapper(direction=2, - get_lovects=libwarpx.get_mesh_electric_field_cp_lovects, - get_fabs=libwarpx.get_mesh_electric_field_cp, - get_nodal_flag=libwarpx.get_Ez_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def BxCPWrapper(level=1, include_ghosts=False): - assert level>0, Exception('Coarse patch only available on levels > 0') - return _MultiFABWrapper(direction=0, - get_lovects=libwarpx.get_mesh_magnetic_field_cp_lovects, - get_fabs=libwarpx.get_mesh_magnetic_field_cp, - get_nodal_flag=libwarpx.get_Bx_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def ByCPWrapper(level=1, include_ghosts=False): - assert level>0, Exception('Coarse patch only available on levels > 0') - return _MultiFABWrapper(direction=1, - get_lovects=libwarpx.get_mesh_magnetic_field_cp_lovects, - get_fabs=libwarpx.get_mesh_magnetic_field_cp, - get_nodal_flag=libwarpx.get_By_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def BzCPWrapper(level=1, include_ghosts=False): - assert level>0, Exception('Coarse patch only available on levels > 0') - return _MultiFABWrapper(direction=2, - get_lovects=libwarpx.get_mesh_magnetic_field_cp_lovects, - get_fabs=libwarpx.get_mesh_magnetic_field_cp, - get_nodal_flag=libwarpx.get_Bz_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def JxCPWrapper(level=1, include_ghosts=False): - assert level>0, Exception('Coarse patch only available on levels > 0') - return _MultiFABWrapper(direction=0, - get_lovects=libwarpx.get_mesh_current_density_cp_lovects, - get_fabs=libwarpx.get_mesh_current_density_cp, - get_nodal_flag=libwarpx.get_Jx_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def JyCPWrapper(level=1, include_ghosts=False): - assert level>0, Exception('Coarse patch only available on levels > 0') - return _MultiFABWrapper(direction=1, - get_lovects=libwarpx.get_mesh_current_density_cp_lovects, - get_fabs=libwarpx.get_mesh_current_density_cp, - get_nodal_flag=libwarpx.get_Jy_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def JzCPWrapper(level=1, include_ghosts=False): - assert level>0, Exception('Coarse patch only available on levels > 0') - return _MultiFABWrapper(direction=2, - get_lovects=libwarpx.get_mesh_current_density_cp_lovects, - get_fabs=libwarpx.get_mesh_current_density_cp, - get_nodal_flag=libwarpx.get_Jz_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def RhoCPWrapper(level=1, include_ghosts=False): - assert level>0, Exception('Coarse patch only available on levels > 0') - return _MultiFABWrapper(direction=None, - get_lovects=libwarpx.get_mesh_charge_density_cp_lovects, - get_fabs=libwarpx.get_mesh_charge_density_cp, - get_nodal_flag=libwarpx.get_Rho_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def FCPWrapper(level=1, include_ghosts=False): - assert level>0, Exception('Coarse patch only available on levels > 0') - return _MultiFABWrapper(direction=None, - get_lovects=libwarpx.get_mesh_F_cp_lovects, - get_fabs=libwarpx.get_mesh_F_cp, - get_nodal_flag=libwarpx.get_F_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def GCPWrapper(level=1, include_ghosts=False): - assert level>0, Exception('Coarse patch only available on levels > 0') - return _MultiFABWrapper(direction=None, - get_lovects=libwarpx.get_mesh_G_cp_lovects, - get_fabs=libwarpx.get_mesh_G_cp, - get_nodal_flag=libwarpx.get_G_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def ExFPWrapper(level=0, include_ghosts=False): - return _MultiFABWrapper(direction=0, - get_lovects=libwarpx.get_mesh_electric_field_fp_lovects, - get_fabs=libwarpx.get_mesh_electric_field_fp, - get_nodal_flag=libwarpx.get_Ex_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def EyFPWrapper(level=0, include_ghosts=False): - return _MultiFABWrapper(direction=1, - get_lovects=libwarpx.get_mesh_electric_field_fp_lovects, - get_fabs=libwarpx.get_mesh_electric_field_fp, - get_nodal_flag=libwarpx.get_Ey_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def EzFPWrapper(level=0, include_ghosts=False): - return _MultiFABWrapper(direction=2, - get_lovects=libwarpx.get_mesh_electric_field_fp_lovects, - get_fabs=libwarpx.get_mesh_electric_field_fp, - get_nodal_flag=libwarpx.get_Ez_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def BxFPWrapper(level=0, include_ghosts=False): - return _MultiFABWrapper(direction=0, - get_lovects=libwarpx.get_mesh_magnetic_field_fp_lovects, - get_fabs=libwarpx.get_mesh_magnetic_field_fp, - get_nodal_flag=libwarpx.get_Bx_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def ByFPWrapper(level=0, include_ghosts=False): - return _MultiFABWrapper(direction=1, - get_lovects=libwarpx.get_mesh_magnetic_field_fp_lovects, - get_fabs=libwarpx.get_mesh_magnetic_field_fp, - get_nodal_flag=libwarpx.get_By_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def BzFPWrapper(level=0, include_ghosts=False): - return _MultiFABWrapper(direction=2, - get_lovects=libwarpx.get_mesh_magnetic_field_fp_lovects, - get_fabs=libwarpx.get_mesh_magnetic_field_fp, - get_nodal_flag=libwarpx.get_Bz_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def JxFPWrapper(level=0, include_ghosts=False): - return _MultiFABWrapper(direction=0, - get_lovects=libwarpx.get_mesh_current_density_fp_lovects, - get_fabs=libwarpx.get_mesh_current_density_fp, - get_nodal_flag=libwarpx.get_Jx_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def JyFPWrapper(level=0, include_ghosts=False): - return _MultiFABWrapper(direction=1, - get_lovects=libwarpx.get_mesh_current_density_fp_lovects, - get_fabs=libwarpx.get_mesh_current_density_fp, - get_nodal_flag=libwarpx.get_Jy_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def JzFPWrapper(level=0, include_ghosts=False): - return _MultiFABWrapper(direction=2, - get_lovects=libwarpx.get_mesh_current_density_fp_lovects, - get_fabs=libwarpx.get_mesh_current_density_fp, - get_nodal_flag=libwarpx.get_Jz_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def RhoFPWrapper(level=0, include_ghosts=False): - return _MultiFABWrapper(direction=None, - get_lovects=libwarpx.get_mesh_charge_density_fp_lovects, - get_fabs=libwarpx.get_mesh_charge_density_fp, - get_nodal_flag=libwarpx.get_Rho_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def PhiFPWrapper(level=0, include_ghosts=False): - return _MultiFABWrapper(direction=None, - get_lovects=libwarpx.get_mesh_phi_fp_lovects, - get_fabs=libwarpx.get_mesh_phi_fp, - get_nodal_flag=libwarpx.get_Phi_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def AxFPWrapper(level=0, include_ghosts=False): - return _MultiFABWrapper(direction=0, - get_lovects=libwarpx.get_mesh_vector_potential_fp_lovects, - get_fabs=libwarpx.get_mesh_vector_potential_fp, - get_nodal_flag=libwarpx.get_Ax_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def AyFPWrapper(level=0, include_ghosts=False): - return _MultiFABWrapper(direction=1, - get_lovects=libwarpx.get_mesh_vector_potential_fp_lovects, - get_fabs=libwarpx.get_mesh_vector_potential_fp, - get_nodal_flag=libwarpx.get_Ay_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def AzFPWrapper(level=0, include_ghosts=False): - return _MultiFABWrapper(direction=2, - get_lovects=libwarpx.get_mesh_vector_potential_fp_lovects, - get_fabs=libwarpx.get_mesh_vector_potential_fp, - get_nodal_flag=libwarpx.get_Az_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def FFPWrapper(level=0, include_ghosts=False): - return _MultiFABWrapper(direction=None, - get_lovects=libwarpx.get_mesh_F_fp_lovects, - get_fabs=libwarpx.get_mesh_F_fp, - get_nodal_flag=libwarpx.get_F_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def GFPWrapper(level=0, include_ghosts=False): - return _MultiFABWrapper(direction=None, - get_lovects=libwarpx.get_mesh_G_fp_lovects, - get_fabs=libwarpx.get_mesh_G_fp, - get_nodal_flag=libwarpx.get_G_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def EdgeLengthsxWrapper(level=0, include_ghosts=False): - return _MultiFABWrapper(direction=0, - get_lovects=libwarpx.get_mesh_edge_lengths_lovects, - get_fabs=libwarpx.get_mesh_edge_lengths, - get_nodal_flag=libwarpx.get_edge_lengths_x_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def EdgeLengthsyWrapper(level=0, include_ghosts=False): - return _MultiFABWrapper(direction=1, - get_lovects=libwarpx.get_mesh_edge_lengths_lovects, - get_fabs=libwarpx.get_mesh_edge_lengths, - get_nodal_flag=libwarpx.get_edge_lengths_y_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def EdgeLengthszWrapper(level=0, include_ghosts=False): - return _MultiFABWrapper(direction=2, - get_lovects=libwarpx.get_mesh_edge_lengths_lovects, - get_fabs=libwarpx.get_mesh_edge_lengths, - get_nodal_flag=libwarpx.get_edge_lengths_z_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def FaceAreasxWrapper(level=0, include_ghosts=False): - return _MultiFABWrapper(direction=0, - get_lovects=libwarpx.get_mesh_face_areas_lovects, - get_fabs=libwarpx.get_mesh_face_areas, - get_nodal_flag=libwarpx.get_face_areas_x_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def FaceAreasyWrapper(level=0, include_ghosts=False): - return _MultiFABWrapper(direction=1, - get_lovects=libwarpx.get_mesh_face_areas_lovects, - get_fabs=libwarpx.get_mesh_face_areas, - get_nodal_flag=libwarpx.get_face_areas_y_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def FaceAreaszWrapper(level=0, include_ghosts=False): - return _MultiFABWrapper(direction=2, - get_lovects=libwarpx.get_mesh_face_areas_lovects, - get_fabs=libwarpx.get_mesh_face_areas, - get_nodal_flag=libwarpx.get_face_areas_z_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def ExCPPMLWrapper(level=1, include_ghosts=False): - assert level>0, Exception('Coarse patch only available on levels > 0') - return _MultiFABWrapper(direction=0, - get_lovects=libwarpx.get_mesh_electric_field_cp_lovects_pml, - get_fabs=libwarpx.get_mesh_electric_field_cp_pml, - get_nodal_flag=libwarpx.get_Ex_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def EyCPPMLWrapper(level=1, include_ghosts=False): - assert level>0, Exception('Coarse patch only available on levels > 0') - return _MultiFABWrapper(direction=1, - get_lovects=libwarpx.get_mesh_electric_field_cp_lovects_pml, - get_fabs=libwarpx.get_mesh_electric_field_cp_pml, - get_nodal_flag=libwarpx.get_Ey_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def EzCPPMLWrapper(level=1, include_ghosts=False): - assert level>0, Exception('Coarse patch only available on levels > 0') - return _MultiFABWrapper(direction=2, - get_lovects=libwarpx.get_mesh_electric_field_cp_lovects_pml, - get_fabs=libwarpx.get_mesh_electric_field_cp_pml, - get_nodal_flag=libwarpx.get_Ez_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def BxCPPMLWrapper(level=1, include_ghosts=False): - assert level>0, Exception('Coarse patch only available on levels > 0') - return _MultiFABWrapper(direction=0, - get_lovects=libwarpx.get_mesh_magnetic_field_cp_lovects_pml, - get_fabs=libwarpx.get_mesh_magnetic_field_cp_pml, - get_nodal_flag=libwarpx.get_Bx_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def ByCPPMLWrapper(level=1, include_ghosts=False): - assert level>0, Exception('Coarse patch only available on levels > 0') - return _MultiFABWrapper(direction=1, - get_lovects=libwarpx.get_mesh_magnetic_field_cp_lovects_pml, - get_fabs=libwarpx.get_mesh_magnetic_field_cp_pml, - get_nodal_flag=libwarpx.get_By_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def BzCPPMLWrapper(level=1, include_ghosts=False): - assert level>0, Exception('Coarse patch only available on levels > 0') - return _MultiFABWrapper(direction=2, - get_lovects=libwarpx.get_mesh_magnetic_field_cp_lovects_pml, - get_fabs=libwarpx.get_mesh_magnetic_field_cp_pml, - get_nodal_flag=libwarpx.get_Bz_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def JxCPPMLWrapper(level=1, include_ghosts=False): - assert level>0, Exception('Coarse patch only available on levels > 0') - return _MultiFABWrapper(direction=0, - get_lovects=libwarpx.get_mesh_current_density_cp_lovects_pml, - get_fabs=libwarpx.get_mesh_current_density_cp_pml, - get_nodal_flag=libwarpx.get_Jx_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def JyCPPMLWrapper(level=1, include_ghosts=False): - assert level>0, Exception('Coarse patch only available on levels > 0') - return _MultiFABWrapper(direction=1, - get_lovects=libwarpx.get_mesh_current_density_cp_lovects_pml, - get_fabs=libwarpx.get_mesh_current_density_cp_pml, - get_nodal_flag=libwarpx.get_Jy_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def JzCPPMLWrapper(level=1, include_ghosts=False): - assert level>0, Exception('Coarse patch only available on levels > 0') - return _MultiFABWrapper(direction=2, - get_lovects=libwarpx.get_mesh_current_density_cp_lovects_pml, - get_fabs=libwarpx.get_mesh_current_density_cp_pml, - get_nodal_flag=libwarpx.get_Jz_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def FCPPMLWrapper(level=1, include_ghosts=False): - assert level>0, Exception('Coarse patch only available on levels > 0') - return _MultiFABWrapper(direction=None, - get_lovects=libwarpx.get_mesh_F_cp_lovects_pml, - get_fabs=libwarpx.get_mesh_F_cp_pml, - get_nodal_flag=libwarpx.get_F_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def GCPPMLWrapper(level=1, include_ghosts=False): - assert level>0, Exception('Coarse patch only available on levels > 0') - return _MultiFABWrapper(direction=None, - get_lovects=libwarpx.get_mesh_G_cp_lovects_pml, - get_fabs=libwarpx.get_mesh_G_cp_pml, - get_nodal_flag=libwarpx.get_G_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def ExFPPMLWrapper(level=0, include_ghosts=False): - return _MultiFABWrapper(direction=0, - get_lovects=libwarpx.get_mesh_electric_field_fp_lovects_pml, - get_fabs=libwarpx.get_mesh_electric_field_fp_pml, - get_nodal_flag=libwarpx.get_Ex_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def EyFPPMLWrapper(level=0, include_ghosts=False): - return _MultiFABWrapper(direction=1, - get_lovects=libwarpx.get_mesh_electric_field_fp_lovects_pml, - get_fabs=libwarpx.get_mesh_electric_field_fp_pml, - get_nodal_flag=libwarpx.get_Ey_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def EzFPPMLWrapper(level=0, include_ghosts=False): - return _MultiFABWrapper(direction=2, - get_lovects=libwarpx.get_mesh_electric_field_fp_lovects_pml, - get_fabs=libwarpx.get_mesh_electric_field_fp_pml, - get_nodal_flag=libwarpx.get_Ez_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def BxFPPMLWrapper(level=0, include_ghosts=False): - return _MultiFABWrapper(direction=0, - get_lovects=libwarpx.get_mesh_magnetic_field_fp_lovects_pml, - get_fabs=libwarpx.get_mesh_magnetic_field_fp_pml, - get_nodal_flag=libwarpx.get_Bx_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def ByFPPMLWrapper(level=0, include_ghosts=False): - return _MultiFABWrapper(direction=1, - get_lovects=libwarpx.get_mesh_magnetic_field_fp_lovects_pml, - get_fabs=libwarpx.get_mesh_magnetic_field_fp_pml, - get_nodal_flag=libwarpx.get_By_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def BzFPPMLWrapper(level=0, include_ghosts=False): - return _MultiFABWrapper(direction=2, - get_lovects=libwarpx.get_mesh_magnetic_field_fp_lovects_pml, - get_fabs=libwarpx.get_mesh_magnetic_field_fp_pml, - get_nodal_flag=libwarpx.get_Bz_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def JxFPPMLWrapper(level=0, include_ghosts=False): - return _MultiFABWrapper(direction=0, - get_lovects=libwarpx.get_mesh_current_density_fp_lovects_pml, - get_fabs=libwarpx.get_mesh_current_density_fp_pml, - get_nodal_flag=libwarpx.get_Jx_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def JyFPPMLWrapper(level=0, include_ghosts=False): - return _MultiFABWrapper(direction=1, - get_lovects=libwarpx.get_mesh_current_density_fp_lovects_pml, - get_fabs=libwarpx.get_mesh_current_density_fp_pml, - get_nodal_flag=libwarpx.get_Jy_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def JzFPPMLWrapper(level=0, include_ghosts=False): - return _MultiFABWrapper(direction=2, - get_lovects=libwarpx.get_mesh_current_density_fp_lovects_pml, - get_fabs=libwarpx.get_mesh_current_density_fp_pml, - get_nodal_flag=libwarpx.get_Jz_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def FFPPMLWrapper(level=0, include_ghosts=False): - return _MultiFABWrapper(direction=None, - get_lovects=libwarpx.get_mesh_F_fp_lovects_pml, - get_fabs=libwarpx.get_mesh_F_fp_pml, - get_nodal_flag=libwarpx.get_F_pml_nodal_flag, - level=level, include_ghosts=include_ghosts) - -def GFPPMLWrapper(level=0, include_ghosts=False): - return _MultiFABWrapper(direction=None, - get_lovects=libwarpx.get_mesh_G_fp_lovects_pml, - get_fabs=libwarpx.get_mesh_G_fp_pml, - get_nodal_flag=libwarpx.get_G_pml_nodal_flag, - level=level, include_ghosts=include_ghosts) diff --git a/Python/pywarpx/picmi.py b/Python/pywarpx/picmi.py deleted file mode 100644 index 4a3798059..000000000 --- a/Python/pywarpx/picmi.py +++ /dev/null @@ -1,2429 +0,0 @@ -# Copyright 2018-2022 Andrew Myers, David Grote, Ligia Diana Amorim -# Maxence Thevenet, Remi Lehe, Revathi Jambunathan, Lorenzo Giacomel -# -# -# This file is part of WarpX. -# -# License: BSD-3-Clause-LBNL - -"""Classes following the PICMI standard -""" -import os -import re - -import numpy as np -import periodictable - -import picmistandard -import pywarpx - -codename = 'warpx' -picmistandard.register_codename(codename) - -# dictionary to map field boundary conditions from picmistandard to WarpX -BC_map = { - 'open':'pml', 'dirichlet':'pec', 'periodic':'periodic', 'damped':'damped', - 'absorbing_silver_mueller':'absorbing_silver_mueller', - 'neumann':'neumann', 'none':'none', None:'none' -} - -class constants: - # --- Put the constants in their own namespace - # --- Values from WarpXConst.H - c = 299792458. - ep0 = 8.8541878128e-12 - mu0 = 1.25663706212e-06 - q_e = 1.602176634e-19 - m_e = 9.1093837015e-31 - m_p = 1.67262192369e-27 - hbar = 1.054571817e-34 - kb = 1.380649e-23 - -picmistandard.register_constants(constants) - - -class Species(picmistandard.PICMI_Species): - """ - See `Input Parameters `_ for more information. - - Parameters - ---------- - warpx_boost_adjust_transverse_positions: bool, default=False - Whether to adjust transverse positions when apply the boost - to the simulation frame - - warpx_self_fields_required_precision: float, default=1.e-11 - Relative precision on the electrostatic solver - (when using the relativistic solver) - - warpx_self_fields_absolute_tolerance: float, default=0. - Absolute precision on the electrostatic solver - (when using the relativistic solver) - - warpx_self_fields_max_iters: integer, default=200 - Maximum number of iterations for the electrostatic - solver for the species - - warpx_self_fields_verbosity: integer, default=2 - Level of verbosity for the electrostatic solver - - warpx_save_previous_position: bool, default=False - Whether to save the old particle positions - - warpx_do_not_deposit: bool, default=False - Whether or not to deposit the charge and current density for - for this species - - warpx_do_not_push: bool, default=False - Whether or not to push this species - - warpx_do_not_gather: bool, default=False - Whether or not to gahter the fields from grids for this species - - warpx_random_theta: bool, default=True - Whether or not to add random angle to the particles in theta - when in RZ mode. - - warpx_reflection_model_xlo: string, default='0.' - Expression (in terms of the velocity "v") specifying the probability - that the particle will reflect on the lower x boundary - - warpx_reflection_model_xhi: string, default='0.' - Expression (in terms of the velocity "v") specifying the probability - that the particle will reflect on the upper x boundary - - warpx_reflection_model_ylo: string, default='0.' - Expression (in terms of the velocity "v") specifying the probability - that the particle will reflect on the lower y boundary - - warpx_reflection_model_yhi: string, default='0.' - Expression (in terms of the velocity "v") specifying the probability - that the particle will reflect on the upper y boundary - - warpx_reflection_model_zlo: string, default='0.' - Expression (in terms of the velocity "v") specifying the probability - that the particle will reflect on the lower z boundary - - warpx_reflection_model_zhi: string, default='0.' - Expression (in terms of the velocity "v") specifying the probability - that the particle will reflect on the upper z boundary - - warpx_save_particles_at_xlo: bool, default=False - Whether to save particles lost at the lower x boundary - - warpx_save_particles_at_xhi: bool, default=False - Whether to save particles lost at the upper x boundary - - warpx_save_particles_at_ylo: bool, default=False - Whether to save particles lost at the lower y boundary - - warpx_save_particles_at_yhi: bool, default=False - Whether to save particles lost at the upper y boundary - - warpx_save_particles_at_zlo: bool, default=False - Whether to save particles lost at the lower z boundary - - warpx_save_particles_at_zhi: bool, default=False - Whether to save particles lost at the upper z boundary - - warpx_save_particles_at_eb: bool, default=False - Whether to save particles lost at the embedded boundary - """ - def init(self, kw): - - if self.particle_type == 'electron': - if self.charge is None: self.charge = '-q_e' - if self.mass is None: self.mass = 'm_e' - elif self.particle_type == 'positron': - if self.charge is None: self.charge = 'q_e' - if self.mass is None: self.mass = 'm_e' - elif self.particle_type == 'proton': - if self.charge is None: self.charge = 'q_e' - if self.mass is None: self.mass = 'm_p' - elif self.particle_type == 'anti-proton': - if self.charge is None: self.charge = '-q_e' - if self.mass is None: self.mass = 'm_p' - else: - if self.charge is None and self.charge_state is not None: - if self.charge_state == +1.: - self.charge = 'q_e' - elif self.charge_state == -1.: - self.charge = '-q_e' - else: - self.charge = self.charge_state*constants.q_e - if self.particle_type is not None: - # Match a string of the format '#nXx', with the '#n' optional isotope number. - m = re.match(r'(?P#[\d+])*(?P[A-Za-z]+)', self.particle_type) - if m is not None: - element = periodictable.elements.symbol(m['sym']) - if m['iso'] is not None: - element = element[m['iso'][1:]] - if self.charge_state is not None: - assert self.charge_state <= element.number, Exception('%s charge state not valid'%self.particle_type) - try: - element = element.ion[self.charge_state] - except ValueError: - # Note that not all valid charge states are defined in elements, - # so this value error can be ignored. - pass - self.element = element - if self.mass is None: - self.mass = element.mass*periodictable.constants.atomic_mass_constant - else: - raise Exception('The species "particle_type" is not known') - - self.boost_adjust_transverse_positions = kw.pop('warpx_boost_adjust_transverse_positions', None) - - # For the relativistic electrostatic solver - self.self_fields_required_precision = kw.pop('warpx_self_fields_required_precision', None) - self.self_fields_absolute_tolerance = kw.pop('warpx_self_fields_absolute_tolerance', None) - self.self_fields_max_iters = kw.pop('warpx_self_fields_max_iters', None) - self.self_fields_verbosity = kw.pop('warpx_self_fields_verbosity', None) - self.save_previous_position = kw.pop('warpx_save_previous_position', None) - self.do_not_deposit = kw.pop('warpx_do_not_deposit', None) - self.do_not_push = kw.pop('warpx_do_not_push', None) - self.do_not_gather = kw.pop('warpx_do_not_gather', None) - self.random_theta = kw.pop('warpx_random_theta', None) - - # For particle reflection - self.reflection_model_xlo = kw.pop('warpx_reflection_model_xlo', None) - self.reflection_model_xhi = kw.pop('warpx_reflection_model_xhi', None) - self.reflection_model_ylo = kw.pop('warpx_reflection_model_ylo', None) - self.reflection_model_yhi = kw.pop('warpx_reflection_model_yhi', None) - self.reflection_model_zlo = kw.pop('warpx_reflection_model_zlo', None) - self.reflection_model_zhi = kw.pop('warpx_reflection_model_zhi', None) - # self.reflection_model_eb = kw.pop('warpx_reflection_model_eb', None) - - # For the scraper buffer - self.save_particles_at_xlo = kw.pop('warpx_save_particles_at_xlo', None) - self.save_particles_at_xhi = kw.pop('warpx_save_particles_at_xhi', None) - self.save_particles_at_ylo = kw.pop('warpx_save_particles_at_ylo', None) - self.save_particles_at_yhi = kw.pop('warpx_save_particles_at_yhi', None) - self.save_particles_at_zlo = kw.pop('warpx_save_particles_at_zlo', None) - self.save_particles_at_zhi = kw.pop('warpx_save_particles_at_zhi', None) - self.save_particles_at_eb = kw.pop('warpx_save_particles_at_eb', None) - - def initialize_inputs(self, layout, - initialize_self_fields = False, - injection_plane_position = None, - injection_plane_normal_vector = None): - self.species_number = len(pywarpx.particles.species_names) - - if self.name is None: - self.name = 'species{}'.format(self.species_number) - - pywarpx.particles.species_names.append(self.name) - - if initialize_self_fields is None: - initialize_self_fields = False - - self.species = pywarpx.Bucket.Bucket(self.name, - mass = self.mass, - charge = self.charge, - injection_style = None, - initialize_self_fields = int(initialize_self_fields), - boost_adjust_transverse_positions = self.boost_adjust_transverse_positions, - self_fields_required_precision = self.self_fields_required_precision, - self_fields_absolute_tolerance = self.self_fields_absolute_tolerance, - self_fields_max_iters = self.self_fields_max_iters, - self_fields_verbosity = self.self_fields_verbosity, - save_particles_at_xlo = self.save_particles_at_xlo, - save_particles_at_xhi = self.save_particles_at_xhi, - save_particles_at_ylo = self.save_particles_at_ylo, - save_particles_at_yhi = self.save_particles_at_yhi, - save_particles_at_zlo = self.save_particles_at_zlo, - save_particles_at_zhi = self.save_particles_at_zhi, - save_particles_at_eb = self.save_particles_at_eb, - save_previous_position = self.save_previous_position, - do_not_deposit = self.do_not_deposit, - do_not_push = self.do_not_push, - do_not_gather = self.do_not_gather, - random_theta = self.random_theta) - - # add reflection models - self.species.add_new_attr("reflection_model_xlo(E)", self.reflection_model_xlo) - self.species.add_new_attr("reflection_model_xhi(E)", self.reflection_model_xhi) - self.species.add_new_attr("reflection_model_ylo(E)", self.reflection_model_ylo) - self.species.add_new_attr("reflection_model_yhi(E)", self.reflection_model_yhi) - self.species.add_new_attr("reflection_model_zlo(E)", self.reflection_model_zlo) - self.species.add_new_attr("reflection_model_zhi(E)", self.reflection_model_zhi) - # self.species.add_new_attr("reflection_model_eb(E)", self.reflection_model_eb) - - pywarpx.Particles.particles_list.append(self.species) - - if self.initial_distribution is not None: - self.initial_distribution.initialize_inputs(self.species_number, layout, self.species, self.density_scale) - - if injection_plane_position is not None: - if injection_plane_normal_vector is not None: - assert injection_plane_normal_vector[0] == 0. and injection_plane_normal_vector[1] == 0.,\ - Exception('Rigid injection can only be done along z') - pywarpx.particles.rigid_injected_species.append(self.name) - self.species.rigid_advance = 1 - self.species.zinject_plane = injection_plane_position - - for interaction in self.interactions: - assert interaction[0] == 'ionization' - assert interaction[1] == 'ADK', 'WarpX only has ADK ionization model implemented' - self.species.do_field_ionization=1 - self.species.physical_element=self.particle_type - self.species.ionization_product_species = interaction[2].name - self.species.ionization_initial_level = self.charge_state - self.species.charge = 'q_e' - -picmistandard.PICMI_MultiSpecies.Species_class = Species -class MultiSpecies(picmistandard.PICMI_MultiSpecies): - def initialize_inputs(self, layout, - initialize_self_fields = False, - injection_plane_position = None, - injection_plane_normal_vector = None): - for species in self.species_instances_list: - species.initialize_inputs(layout, - initialize_self_fields, - injection_plane_position, - injection_plane_normal_vector) - - -class GaussianBunchDistribution(picmistandard.PICMI_GaussianBunchDistribution): - def initialize_inputs(self, species_number, layout, species, density_scale): - species.injection_style = "gaussian_beam" - species.x_m = self.centroid_position[0] - species.y_m = self.centroid_position[1] - species.z_m = self.centroid_position[2] - species.x_rms = self.rms_bunch_size[0] - species.y_rms = self.rms_bunch_size[1] - species.z_rms = self.rms_bunch_size[2] - - # --- Only PseudoRandomLayout is supported - species.npart = layout.n_macroparticles - - # --- Calculate the total charge. Note that charge might be a string instead of a number. - charge = species.charge - if charge == 'q_e' or charge == '+q_e': - charge = constants.q_e - elif charge == '-q_e': - charge = -constants.q_e - species.q_tot = self.n_physical_particles*charge - if density_scale is not None: - species.q_tot *= density_scale - - # --- The PICMI standard doesn't yet have a way of specifying these values. - # --- They should default to the size of the domain. They are not typically - # --- necessary though since any particles outside the domain are rejected. - #species.xmin - #species.xmax - #species.ymin - #species.ymax - #species.zmin - #species.zmax - - # --- Note that WarpX takes gamma*beta as input - if np.any(np.not_equal(self.velocity_divergence, 0.)): - species.momentum_distribution_type = "radial_expansion" - species.u_over_r = self.velocity_divergence[0]/constants.c - #species.u_over_y = self.velocity_divergence[1]/constants.c - #species.u_over_z = self.velocity_divergence[2]/constants.c - elif np.any(np.not_equal(self.rms_velocity, 0.)): - species.momentum_distribution_type = "gaussian" - species.ux_m = self.centroid_velocity[0]/constants.c - species.uy_m = self.centroid_velocity[1]/constants.c - species.uz_m = self.centroid_velocity[2]/constants.c - species.ux_th = self.rms_velocity[0]/constants.c - species.uy_th = self.rms_velocity[1]/constants.c - species.uz_th = self.rms_velocity[2]/constants.c - else: - species.momentum_distribution_type = "constant" - species.ux = self.centroid_velocity[0]/constants.c - species.uy = self.centroid_velocity[1]/constants.c - species.uz = self.centroid_velocity[2]/constants.c - - -class DensityDistributionBase(object): - """This is a base class for several predefined density distributions. It - captures universal initialization logic.""" - - def set_mangle_dict(self): - if not hasattr(self, 'mangle_dict'): - self.mangle_dict = None - - if hasattr(self, "user_defined_kw") and self.mangle_dict is None: - # Only do this once so that the same variables can be used multiple - # times - self.mangle_dict = pywarpx.my_constants.add_keywords(self.user_defined_kw) - - def set_species_attributes(self, species, layout): - if isinstance(layout, GriddedLayout): - # --- Note that the grid attribute of GriddedLayout is ignored - species.injection_style = "nuniformpercell" - species.num_particles_per_cell_each_dim = layout.n_macroparticle_per_cell - elif isinstance(layout, PseudoRandomLayout): - assert (layout.n_macroparticles_per_cell is not None), Exception('WarpX only supports n_macroparticles_per_cell for the PseudoRandomLayout with this distribution') - species.injection_style = "nrandompercell" - species.num_particles_per_cell = layout.n_macroparticles_per_cell - else: - raise Exception('WarpX does not support the specified layout for this distribution') - - species.xmin = self.lower_bound[0] - species.xmax = self.upper_bound[0] - species.ymin = self.lower_bound[1] - species.ymax = self.upper_bound[1] - species.zmin = self.lower_bound[2] - species.zmax = self.upper_bound[2] - - if self.fill_in: - species.do_continuous_injection = 1 - - # --- Note that WarpX takes gamma*beta as input - if (hasattr(self, "momentum_expressions") - and np.any(np.not_equal(self.momentum_expressions, None)) - ): - species.momentum_distribution_type = 'parse_momentum_function' - self.setup_parse_momentum_functions(species) - elif np.any(np.not_equal(self.rms_velocity, 0.)): - species.momentum_distribution_type = "gaussian" - species.ux_m = self.directed_velocity[0]/constants.c - species.uy_m = self.directed_velocity[1]/constants.c - species.uz_m = self.directed_velocity[2]/constants.c - species.ux_th = self.rms_velocity[0]/constants.c - species.uy_th = self.rms_velocity[1]/constants.c - species.uz_th = self.rms_velocity[2]/constants.c - else: - species.momentum_distribution_type = "constant" - species.ux = self.directed_velocity[0]/constants.c - species.uy = self.directed_velocity[1]/constants.c - species.uz = self.directed_velocity[2]/constants.c - - def setup_parse_momentum_functions(self, species): - for sdir, idir in zip(['x', 'y', 'z'], [0, 1, 2]): - if self.momentum_expressions[idir] is not None: - expression = pywarpx.my_constants.mangle_expression(self.momentum_expressions[idir], self.mangle_dict) - else: - expression = f'{self.directed_velocity[idir]}' - species.__setattr__(f'momentum_function_u{sdir}(x,y,z)', f'({expression})/{constants.c}') - - -class UniformFluxDistribution(picmistandard.PICMI_UniformFluxDistribution, DensityDistributionBase): - def initialize_inputs(self, species_number, layout, species, density_scale): - - self.fill_in = False - self.set_mangle_dict() - self.set_species_attributes(species, layout) - - species.profile = "constant" - species.density = self.flux - if density_scale is not None: - species.density *= density_scale - species.flux_normal_axis = self.flux_normal_axis - species.surface_flux_pos = self.surface_flux_position - species.flux_direction = self.flux_direction - species.flux_tmin = self.flux_tmin - species.flux_tmax = self.flux_tmax - - # --- Use specific attributes for flux injection - species.injection_style = "nfluxpercell" - assert (isinstance(layout, PseudoRandomLayout)), Exception('UniformFluxDistribution only supports the PseudoRandomLayout in WarpX') - if species.momentum_distribution_type == "gaussian": - species.momentum_distribution_type = "gaussianflux" - - -class UniformDistribution(picmistandard.PICMI_UniformDistribution, DensityDistributionBase): - def initialize_inputs(self, species_number, layout, species, density_scale): - - self.set_mangle_dict() - self.set_species_attributes(species, layout) - - # --- Only constant density is supported by this class - species.profile = "constant" - species.density = self.density - if density_scale is not None: - species.density *= density_scale - - -class AnalyticDistribution(picmistandard.PICMI_AnalyticDistribution, DensityDistributionBase): - def initialize_inputs(self, species_number, layout, species, density_scale): - - self.set_mangle_dict() - self.set_species_attributes(species, layout) - - species.profile = "parse_density_function" - expression = pywarpx.my_constants.mangle_expression(self.density_expression, self.mangle_dict) - if density_scale is None: - species.__setattr__('density_function(x,y,z)', expression) - else: - species.__setattr__('density_function(x,y,z)', "{}*({})".format(density_scale, expression)) - - -class ParticleListDistribution(picmistandard.PICMI_ParticleListDistribution): - def init(self, kw): - pass - - def initialize_inputs(self, species_number, layout, species, density_scale): - - species.injection_style = "multipleparticles" - species.multiple_particles_pos_x = self.x - species.multiple_particles_pos_y = self.y - species.multiple_particles_pos_z = self.z - species.multiple_particles_ux = np.array(self.ux)/constants.c - species.multiple_particles_uy = np.array(self.uy)/constants.c - species.multiple_particles_uz = np.array(self.uz)/constants.c - species.multiple_particles_weight = self.weight - if density_scale is not None: - species.multiple_particles_weight = self.weight*density_scale - - -class ParticleDistributionPlanarInjector(picmistandard.PICMI_ParticleDistributionPlanarInjector): - pass - - -class GriddedLayout(picmistandard.PICMI_GriddedLayout): - pass - - -class PseudoRandomLayout(picmistandard.PICMI_PseudoRandomLayout): - def init(self, kw): - if self.seed is not None: - print('Warning: WarpX does not support specifying the random number seed in PseudoRandomLayout') - - -class BinomialSmoother(picmistandard.PICMI_BinomialSmoother): - - def initialize_inputs(self, solver): - pywarpx.warpx.use_filter = 1 - pywarpx.warpx.use_filter_compensation = bool(np.all(self.compensation)) - if self.n_pass is None: - # If not specified, do at least one pass in each direction. - self.n_pass = 1 - try: - # Check if n_pass is a vector - len(self.n_pass) - except TypeError: - # If not, make it a vector - self.n_pass = solver.grid.number_of_dimensions*[self.n_pass] - pywarpx.warpx.filter_npass_each_dir = self.n_pass - - -class CylindricalGrid(picmistandard.PICMI_CylindricalGrid): - """ - This assumes that WarpX was compiled with USE_RZ = TRUE - - See `Input Parameters `_ for more information. - - Parameters - --------- - warpx_max_grid_size: integer, default=32 - Maximum block size in either direction - - warpx_max_grid_size_x: integer, optional - Maximum block size in radial direction - - warpx_max_grid_size_y: integer, optional - Maximum block size in longitudinal direction - - warpx_blocking_factor: integer, optional - Blocking factor (which controls the block size) - - warpx_blocking_factor_x: integer, optional - Blocking factor (which controls the block size) in the radial direction - - warpx_blocking_factor_y: integer, optional - Blocking factor (which controls the block size) in the longitudinal direction - - warpx_potential_lo_r: float, default=0. - Electrostatic potential on the lower radial boundary - - warpx_potential_hi_r: float, default=0. - Electrostatic potential on the upper radial boundary - - warpx_potential_lo_z: float, default=0. - Electrostatic potential on the lower longitudinal boundary - - warpx_potential_hi_z: float, default=0. - Electrostatic potential on the upper longitudinal boundary - - warpx_reflect_all_velocities: bool default=False - Whether the sign of all of the particle velocities are changed upon - reflection on a boundary, or only the velocity normal to the surface - """ - def init(self, kw): - self.max_grid_size = kw.pop('warpx_max_grid_size', 32) - self.max_grid_size_x = kw.pop('warpx_max_grid_size_x', None) - self.max_grid_size_y = kw.pop('warpx_max_grid_size_y', None) - self.blocking_factor = kw.pop('warpx_blocking_factor', None) - self.blocking_factor_x = kw.pop('warpx_blocking_factor_x', None) - self.blocking_factor_y = kw.pop('warpx_blocking_factor_y', None) - - self.potential_xmin = kw.pop('warpx_potential_lo_r', None) - self.potential_xmax = kw.pop('warpx_potential_hi_r', None) - self.potential_ymin = None - self.potential_ymax = None - self.potential_zmin = kw.pop('warpx_potential_lo_z', None) - self.potential_zmax = kw.pop('warpx_potential_hi_z', None) - self.reflect_all_velocities = kw.pop('warpx_reflect_all_velocities', None) - - # Geometry - # Set these as soon as the information is available - # (since these are needed to determine which shared object to load) - pywarpx.geometry.dims = 'RZ' - pywarpx.geometry.prob_lo = self.lower_bound # physical domain - pywarpx.geometry.prob_hi = self.upper_bound - - def initialize_inputs(self): - pywarpx.amr.n_cell = self.number_of_cells - - # Maximum allowable size of each subdomain in the problem domain; - # this is used to decompose the domain for parallel calculations. - pywarpx.amr.max_grid_size = self.max_grid_size - pywarpx.amr.max_grid_size_x = self.max_grid_size_x - pywarpx.amr.max_grid_size_y = self.max_grid_size_y - pywarpx.amr.blocking_factor = self.blocking_factor - pywarpx.amr.blocking_factor_x = self.blocking_factor_x - pywarpx.amr.blocking_factor_y = self.blocking_factor_y - - assert self.lower_bound[0] >= 0., Exception('Lower radial boundary must be >= 0.') - assert self.lower_boundary_conditions[0] != 'periodic' and self.upper_boundary_conditions[0] != 'periodic', Exception('Radial boundaries can not be periodic') - - pywarpx.warpx.n_rz_azimuthal_modes = self.n_azimuthal_modes - - # Boundary conditions - pywarpx.boundary.field_lo = [BC_map[bc] for bc in self.lower_boundary_conditions] - pywarpx.boundary.field_hi = [BC_map[bc] for bc in self.upper_boundary_conditions] - pywarpx.boundary.particle_lo = self.lower_boundary_conditions_particles - pywarpx.boundary.particle_hi = self.upper_boundary_conditions_particles - pywarpx.boundary.reflect_all_velocities = self.reflect_all_velocities - - if self.moving_window_velocity is not None and np.any(np.not_equal(self.moving_window_velocity, 0.)): - pywarpx.warpx.do_moving_window = 1 - if self.moving_window_velocity[0] != 0.: - pywarpx.warpx.moving_window_dir = 'r' - pywarpx.warpx.moving_window_v = self.moving_window_velocity[0]/constants.c # in units of the speed of light - if self.moving_window_velocity[1] != 0.: - pywarpx.warpx.moving_window_dir = 'z' - pywarpx.warpx.moving_window_v = self.moving_window_velocity[1]/constants.c # in units of the speed of light - - if self.refined_regions: - assert len(self.refined_regions) == 1, Exception('WarpX only supports one refined region.') - assert self.refined_regions[0][0] == 1, Exception('The one refined region can only be level 1') - pywarpx.amr.max_level = 1 - pywarpx.warpx.fine_tag_lo = self.refined_regions[0][1] - pywarpx.warpx.fine_tag_hi = self.refined_regions[0][2] - # The refinement_factor is ignored (assumed to be [2,2]) - else: - pywarpx.amr.max_level = 0 - - -class Cartesian1DGrid(picmistandard.PICMI_Cartesian1DGrid): - """ - See `Input Parameters `_ for more information. - - Parameters - --------- - warpx_max_grid_size: integer, default=32 - Maximum block size in either direction - - warpx_max_grid_size_x: integer, optional - Maximum block size in longitudinal direction - - warpx_blocking_factor: integer, optional - Blocking factor (which controls the block size) - - warpx_blocking_factor_x: integer, optional - Blocking factor (which controls the block size) in the longitudinal direction - - warpx_potential_lo_z: float, default=0. - Electrostatic potential on the lower longitudinal boundary - - warpx_potential_hi_z: float, default=0. - Electrostatic potential on the upper longitudinal boundary - """ - def init(self, kw): - self.max_grid_size = kw.pop('warpx_max_grid_size', 32) - self.max_grid_size_x = kw.pop('warpx_max_grid_size_x', None) - self.blocking_factor = kw.pop('warpx_blocking_factor', None) - self.blocking_factor_x = kw.pop('warpx_blocking_factor_x', None) - - self.potential_xmin = None - self.potential_xmax = None - self.potential_ymin = None - self.potential_ymax = None - self.potential_zmin = kw.pop('warpx_potential_lo_z', None) - self.potential_zmax = kw.pop('warpx_potential_hi_z', None) - - # Geometry - # Set these as soon as the information is available - # (since these are needed to determine which shared object to load) - pywarpx.geometry.dims = '1' - pywarpx.geometry.prob_lo = self.lower_bound # physical domain - pywarpx.geometry.prob_hi = self.upper_bound - - def initialize_inputs(self): - pywarpx.amr.n_cell = self.number_of_cells - - # Maximum allowable size of each subdomain in the problem domain; - # this is used to decompose the domain for parallel calculations. - pywarpx.amr.max_grid_size = self.max_grid_size - pywarpx.amr.max_grid_size_x = self.max_grid_size_x - pywarpx.amr.blocking_factor = self.blocking_factor - pywarpx.amr.blocking_factor_x = self.blocking_factor_x - - # Boundary conditions - pywarpx.boundary.field_lo = [BC_map[bc] for bc in self.lower_boundary_conditions] - pywarpx.boundary.field_hi = [BC_map[bc] for bc in self.upper_boundary_conditions] - pywarpx.boundary.particle_lo = self.lower_boundary_conditions_particles - pywarpx.boundary.particle_hi = self.upper_boundary_conditions_particles - - if self.moving_window_velocity is not None and np.any(np.not_equal(self.moving_window_velocity, 0.)): - pywarpx.warpx.do_moving_window = 1 - if self.moving_window_velocity[0] != 0.: - pywarpx.warpx.moving_window_dir = 'z' - pywarpx.warpx.moving_window_v = self.moving_window_velocity[0]/constants.c # in units of the speed of light - - if self.refined_regions: - assert len(self.refined_regions) == 1, Exception('WarpX only supports one refined region.') - assert self.refined_regions[0][0] == 1, Exception('The one refined region can only be level 1') - pywarpx.amr.max_level = 1 - pywarpx.warpx.fine_tag_lo = self.refined_regions[0][1] - pywarpx.warpx.fine_tag_hi = self.refined_regions[0][2] - # The refinement_factor is ignored (assumed to be [2,2]) - else: - pywarpx.amr.max_level = 0 - -class Cartesian2DGrid(picmistandard.PICMI_Cartesian2DGrid): - """ - See `Input Parameters `_ for more information. - - Parameters - --------- - warpx_max_grid_size: integer, default=32 - Maximum block size in either direction - - warpx_max_grid_size_x: integer, optional - Maximum block size in x direction - - warpx_max_grid_size_y: integer, optional - Maximum block size in z direction - - warpx_blocking_factor: integer, optional - Blocking factor (which controls the block size) - - warpx_blocking_factor_x: integer, optional - Blocking factor (which controls the block size) in the x direction - - warpx_blocking_factor_y: integer, optional - Blocking factor (which controls the block size) in the z direction - - warpx_potential_lo_x: float, default=0. - Electrostatic potential on the lower x boundary - - warpx_potential_hi_x: float, default=0. - Electrostatic potential on the upper x boundary - - warpx_potential_lo_z: float, default=0. - Electrostatic potential on the lower z boundary - - warpx_potential_hi_z: float, default=0. - Electrostatic potential on the upper z boundary - """ - def init(self, kw): - self.max_grid_size = kw.pop('warpx_max_grid_size', 32) - self.max_grid_size_x = kw.pop('warpx_max_grid_size_x', None) - self.max_grid_size_y = kw.pop('warpx_max_grid_size_y', None) - self.blocking_factor = kw.pop('warpx_blocking_factor', None) - self.blocking_factor_x = kw.pop('warpx_blocking_factor_x', None) - self.blocking_factor_y = kw.pop('warpx_blocking_factor_y', None) - - self.potential_xmin = kw.pop('warpx_potential_lo_x', None) - self.potential_xmax = kw.pop('warpx_potential_hi_x', None) - self.potential_ymin = None - self.potential_ymax = None - self.potential_zmin = kw.pop('warpx_potential_lo_z', None) - self.potential_zmax = kw.pop('warpx_potential_hi_z', None) - - # Geometry - # Set these as soon as the information is available - # (since these are needed to determine which shared object to load) - pywarpx.geometry.dims = '2' - pywarpx.geometry.prob_lo = self.lower_bound # physical domain - pywarpx.geometry.prob_hi = self.upper_bound - - def initialize_inputs(self): - pywarpx.amr.n_cell = self.number_of_cells - - # Maximum allowable size of each subdomain in the problem domain; - # this is used to decompose the domain for parallel calculations. - pywarpx.amr.max_grid_size = self.max_grid_size - pywarpx.amr.max_grid_size_x = self.max_grid_size_x - pywarpx.amr.max_grid_size_y = self.max_grid_size_y - pywarpx.amr.blocking_factor = self.blocking_factor - pywarpx.amr.blocking_factor_x = self.blocking_factor_x - pywarpx.amr.blocking_factor_y = self.blocking_factor_y - - # Boundary conditions - pywarpx.boundary.field_lo = [BC_map[bc] for bc in self.lower_boundary_conditions] - pywarpx.boundary.field_hi = [BC_map[bc] for bc in self.upper_boundary_conditions] - pywarpx.boundary.particle_lo = self.lower_boundary_conditions_particles - pywarpx.boundary.particle_hi = self.upper_boundary_conditions_particles - - if self.moving_window_velocity is not None and np.any(np.not_equal(self.moving_window_velocity, 0.)): - pywarpx.warpx.do_moving_window = 1 - if self.moving_window_velocity[0] != 0.: - pywarpx.warpx.moving_window_dir = 'x' - pywarpx.warpx.moving_window_v = self.moving_window_velocity[0]/constants.c # in units of the speed of light - if self.moving_window_velocity[1] != 0.: - pywarpx.warpx.moving_window_dir = 'z' - pywarpx.warpx.moving_window_v = self.moving_window_velocity[1]/constants.c # in units of the speed of light - - if self.refined_regions: - assert len(self.refined_regions) == 1, Exception('WarpX only supports one refined region.') - assert self.refined_regions[0][0] == 1, Exception('The one refined region can only be level 1') - pywarpx.amr.max_level = 1 - pywarpx.warpx.fine_tag_lo = self.refined_regions[0][1] - pywarpx.warpx.fine_tag_hi = self.refined_regions[0][2] - # The refinement_factor is ignored (assumed to be [2,2]) - else: - pywarpx.amr.max_level = 0 - - -class Cartesian3DGrid(picmistandard.PICMI_Cartesian3DGrid): - """ - See `Input Parameters `_ for more information. - - Parameters - --------- - warpx_max_grid_size: integer, default=32 - Maximum block size in either direction - - warpx_max_grid_size_x: integer, optional - Maximum block size in x direction - - warpx_max_grid_size_y: integer, optional - Maximum block size in z direction - - warpx_max_grid_size_z: integer, optional - Maximum block size in z direction - - warpx_blocking_factor: integer, optional - Blocking factor (which controls the block size) - - warpx_blocking_factor_x: integer, optional - Blocking factor (which controls the block size) in the x direction - - warpx_blocking_factor_y: integer, optional - Blocking factor (which controls the block size) in the z direction - - warpx_blocking_factor_z: integer, optional - Blocking factor (which controls the block size) in the z direction - - warpx_potential_lo_x: float, default=0. - Electrostatic potential on the lower x boundary - - warpx_potential_hi_x: float, default=0. - Electrostatic potential on the upper x boundary - - warpx_potential_lo_y: float, default=0. - Electrostatic potential on the lower z boundary - - warpx_potential_hi_y: float, default=0. - Electrostatic potential on the upper z boundary - - warpx_potential_lo_z: float, default=0. - Electrostatic potential on the lower z boundary - - warpx_potential_hi_z: float, default=0. - Electrostatic potential on the upper z boundary - """ - def init(self, kw): - self.max_grid_size = kw.pop('warpx_max_grid_size', 32) - self.max_grid_size_x = kw.pop('warpx_max_grid_size_x', None) - self.max_grid_size_y = kw.pop('warpx_max_grid_size_y', None) - self.max_grid_size_z = kw.pop('warpx_max_grid_size_z', None) - self.blocking_factor = kw.pop('warpx_blocking_factor', None) - self.blocking_factor_x = kw.pop('warpx_blocking_factor_x', None) - self.blocking_factor_y = kw.pop('warpx_blocking_factor_y', None) - self.blocking_factor_z = kw.pop('warpx_blocking_factor_z', None) - - self.potential_xmin = kw.pop('warpx_potential_lo_x', None) - self.potential_xmax = kw.pop('warpx_potential_hi_x', None) - self.potential_ymin = kw.pop('warpx_potential_lo_y', None) - self.potential_ymax = kw.pop('warpx_potential_hi_y', None) - self.potential_zmin = kw.pop('warpx_potential_lo_z', None) - self.potential_zmax = kw.pop('warpx_potential_hi_z', None) - - # Geometry - # Set these as soon as the information is available - # (since these are needed to determine which shared object to load) - pywarpx.geometry.dims = '3' - pywarpx.geometry.prob_lo = self.lower_bound # physical domain - pywarpx.geometry.prob_hi = self.upper_bound - - def initialize_inputs(self): - pywarpx.amr.n_cell = self.number_of_cells - - # Maximum allowable size of each subdomain in the problem domain; - # this is used to decompose the domain for parallel calculations. - pywarpx.amr.max_grid_size = self.max_grid_size - pywarpx.amr.max_grid_size_x = self.max_grid_size_x - pywarpx.amr.max_grid_size_y = self.max_grid_size_y - pywarpx.amr.max_grid_size_z = self.max_grid_size_z - pywarpx.amr.blocking_factor = self.blocking_factor - pywarpx.amr.blocking_factor_x = self.blocking_factor_x - pywarpx.amr.blocking_factor_y = self.blocking_factor_y - pywarpx.amr.blocking_factor_z = self.blocking_factor_z - - # Boundary conditions - pywarpx.boundary.field_lo = [BC_map[bc] for bc in self.lower_boundary_conditions] - pywarpx.boundary.field_hi = [BC_map[bc] for bc in self.upper_boundary_conditions] - pywarpx.boundary.particle_lo = self.lower_boundary_conditions_particles - pywarpx.boundary.particle_hi = self.upper_boundary_conditions_particles - - if self.moving_window_velocity is not None and np.any(np.not_equal(self.moving_window_velocity, 0.)): - pywarpx.warpx.do_moving_window = 1 - if self.moving_window_velocity[0] != 0.: - pywarpx.warpx.moving_window_dir = 'x' - pywarpx.warpx.moving_window_v = self.moving_window_velocity[0]/constants.c # in units of the speed of light - if self.moving_window_velocity[1] != 0.: - pywarpx.warpx.moving_window_dir = 'y' - pywarpx.warpx.moving_window_v = self.moving_window_velocity[1]/constants.c # in units of the speed of light - if self.moving_window_velocity[2] != 0.: - pywarpx.warpx.moving_window_dir = 'z' - pywarpx.warpx.moving_window_v = self.moving_window_velocity[2]/constants.c # in units of the speed of light - - if self.refined_regions: - assert len(self.refined_regions) == 1, Exception('WarpX only supports one refined region.') - assert self.refined_regions[0][0] == 1, Exception('The one refined region can only be level 1') - pywarpx.amr.max_level = 1 - pywarpx.warpx.fine_tag_lo = self.refined_regions[0][1] - pywarpx.warpx.fine_tag_hi = self.refined_regions[0][2] - # The refinement_factor is ignored (assumed to be [2,2,2]) - else: - pywarpx.amr.max_level = 0 - -class ElectromagneticSolver(picmistandard.PICMI_ElectromagneticSolver): - """ - See `Input Parameters `_ for more information. - - Parameters - ---------- - warpx_pml_ncell: integer, optional - The depth of the PML, in number of cells - - warpx_periodic_single_box_fft: bool, default=False - Whether to do the spectral solver FFTs assuming a single - simulation block - - warpx_current_correction: bool, default=True - Whether to do the current correction for the spectral solver. - See documentation for exceptions to the default value. - - warpx_psatd_update_with_rho: bool, optional - Whether to update with the actual rho for the spectral solver - - warpx_psatd_do_time_averaging: bool, optional - Whether to do the time averaging for the spectral solver - - warpx_psatd_J_in_time: {'constant', 'linear'}, default='constant' - This determines whether the current density is assumed to be constant - or linear in time, within the time step over which the electromagnetic - fields are evolved. - - warpx_psatd_rho_in_time: {'linear'}, default='linear' - This determines whether the charge density is assumed to be linear - in time, within the time step over which the electromagnetic fields are evolved. - - warpx_do_pml_in_domain: bool, default=False - Whether to do the PML boundaries within the domain (versus - in the guard cells) - - warpx_pml_has_particles: bool, default=False - Whether to allow particles in the PML region - - warpx_do_pml_j_damping: bool, default=False - Whether to do damping of J in the PML - """ - def init(self, kw): - assert self.method is None or self.method in ['Yee', 'CKC', 'PSATD', 'ECT'], Exception("Only 'Yee', 'CKC', 'PSATD', and 'ECT' are supported") - - self.pml_ncell = kw.pop('warpx_pml_ncell', None) - - if self.method == 'PSATD': - self.psatd_periodic_single_box_fft = kw.pop('warpx_periodic_single_box_fft', None) - self.psatd_current_correction = kw.pop('warpx_current_correction', None) - self.psatd_update_with_rho = kw.pop('warpx_psatd_update_with_rho', None) - self.psatd_do_time_averaging = kw.pop('warpx_psatd_do_time_averaging', None) - self.psatd_J_in_time = kw.pop('warpx_psatd_J_in_time', None) - self.psatd_rho_in_time = kw.pop('warpx_psatd_rho_in_time', None) - - self.do_pml_in_domain = kw.pop('warpx_do_pml_in_domain', None) - self.pml_has_particles = kw.pop('warpx_pml_has_particles', None) - self.do_pml_j_damping = kw.pop('warpx_do_pml_j_damping', None) - - def initialize_inputs(self): - - self.grid.initialize_inputs() - - pywarpx.warpx.pml_ncell = self.pml_ncell - - if self.method == 'PSATD': - pywarpx.psatd.periodic_single_box_fft = self.psatd_periodic_single_box_fft - pywarpx.psatd.current_correction = self.psatd_current_correction - pywarpx.psatd.update_with_rho = self.psatd_update_with_rho - pywarpx.psatd.do_time_averaging = self.psatd_do_time_averaging - pywarpx.psatd.J_in_time = self.psatd_J_in_time - pywarpx.psatd.rho_in_time = self.psatd_rho_in_time - - if self.grid.guard_cells is not None: - pywarpx.psatd.nx_guard = self.grid.guard_cells[0] - if self.grid.number_of_dimensions == 3: - pywarpx.psatd.ny_guard = self.grid.guard_cells[1] - pywarpx.psatd.nz_guard = self.grid.guard_cells[-1] - - if self.stencil_order is not None: - pywarpx.psatd.nox = self.stencil_order[0] - if self.grid.number_of_dimensions == 3: - pywarpx.psatd.noy = self.stencil_order[1] - pywarpx.psatd.noz = self.stencil_order[-1] - - if self.galilean_velocity is not None: - if self.grid.number_of_dimensions == 2: - self.galilean_velocity = [self.galilean_velocity[0], 0., self.galilean_velocity[1]] - pywarpx.psatd.v_galilean = np.array(self.galilean_velocity)/constants.c - - # --- Same method names are used, though mapped to lower case. - pywarpx.algo.maxwell_solver = self.method - - if self.cfl is not None: - pywarpx.warpx.cfl = self.cfl - - if self.source_smoother is not None: - self.source_smoother.initialize_inputs(self) - - pywarpx.warpx.do_dive_cleaning = self.divE_cleaning - pywarpx.warpx.do_divb_cleaning = self.divB_cleaning - - pywarpx.warpx.do_pml_dive_cleaning = self.pml_divE_cleaning - pywarpx.warpx.do_pml_divb_cleaning = self.pml_divB_cleaning - - pywarpx.warpx.do_pml_in_domain = self.do_pml_in_domain - pywarpx.warpx.pml_has_particles = self.pml_has_particles - pywarpx.warpx.do_pml_j_damping = self.do_pml_j_damping - -class ElectrostaticSolver(picmistandard.PICMI_ElectrostaticSolver): - """ - See `Input Parameters `_ for more information. - - Parameters - ---------- - warpx_relativistic: bool, default=False - Whether to use the relativistic solver or lab frame solver - - warpx_absolute_tolerance: float, default=0. - Absolute tolerance on the lab fram solver - - warpx_self_fields_verbosity: integer, default=2 - Level of verbosity for the lab frame solver - """ - def init(self, kw): - self.relativistic = kw.pop('warpx_relativistic', False) - self.absolute_tolerance = kw.pop('warpx_absolute_tolerance', None) - self.self_fields_verbosity = kw.pop('warpx_self_fields_verbosity', None) - self.magnetostatic = kw.pop('warpx_magnetostatic', False) - - def initialize_inputs(self): - - self.grid.initialize_inputs() - - if self.relativistic: - pywarpx.warpx.do_electrostatic = 'relativistic' - else: - if self.magnetostatic: - pywarpx.warpx.do_electrostatic = 'labframe-electromagnetostatic' - else: - pywarpx.warpx.do_electrostatic = 'labframe' - pywarpx.warpx.self_fields_required_precision = self.required_precision - pywarpx.warpx.self_fields_absolute_tolerance = self.absolute_tolerance - pywarpx.warpx.self_fields_max_iters = self.maximum_iterations - pywarpx.warpx.self_fields_verbosity = self.self_fields_verbosity - pywarpx.boundary.potential_lo_x = self.grid.potential_xmin - pywarpx.boundary.potential_lo_y = self.grid.potential_ymin - pywarpx.boundary.potential_lo_z = self.grid.potential_zmin - pywarpx.boundary.potential_hi_x = self.grid.potential_xmax - pywarpx.boundary.potential_hi_y = self.grid.potential_ymax - pywarpx.boundary.potential_hi_z = self.grid.potential_zmax - - -class GaussianLaser(picmistandard.PICMI_GaussianLaser): - def initialize_inputs(self): - self.laser_number = len(pywarpx.lasers.names) + 1 - if self.name is None: - self.name = 'laser{}'.format(self.laser_number) - - self.laser = pywarpx.Lasers.newlaser(self.name) - - self.laser.profile = "Gaussian" - self.laser.wavelength = self.wavelength # The wavelength of the laser (in meters) - self.laser.e_max = self.E0 # Maximum amplitude of the laser field (in V/m) - self.laser.polarization = self.polarization_direction # The main polarization vector - self.laser.profile_waist = self.waist # The waist of the laser (in meters) - self.laser.profile_duration = self.duration # The duration of the laser (in seconds) - self.laser.direction = self.propagation_direction - self.laser.zeta = self.zeta - self.laser.beta = self.beta - self.laser.phi2 = self.phi2 - self.laser.phi0 = self.phi0 - - self.laser.do_continuous_injection = self.fill_in - -class AnalyticLaser(picmistandard.PICMI_AnalyticLaser): - def init(self, kw): - self.mangle_dict = None - - def initialize_inputs(self): - self.laser_number = len(pywarpx.lasers.names) + 1 - if self.name is None: - self.name = 'laser{}'.format(self.laser_number) - - self.laser = pywarpx.Lasers.newlaser(self.name) - - self.laser.profile = "parse_field_function" - self.laser.wavelength = self.wavelength # The wavelength of the laser (in meters) - self.laser.e_max = self.Emax # Maximum amplitude of the laser field (in V/m) - self.laser.polarization = self.polarization_direction # The main polarization vector - self.laser.direction = self.propagation_direction - self.laser.do_continuous_injection = self.fill_in - - if self.mangle_dict is None: - # Only do this once so that the same variables are used in this distribution - # is used multiple times - self.mangle_dict = pywarpx.my_constants.add_keywords(self.user_defined_kw) - expression = pywarpx.my_constants.mangle_expression(self.field_expression, self.mangle_dict) - self.laser.__setattr__('field_function(X,Y,t)', expression) - - -class LaserAntenna(picmistandard.PICMI_LaserAntenna): - def initialize_inputs(self, laser): - laser.laser.position = self.position # This point is on the laser plane - if ( - self.normal_vector is not None - and not np.allclose(laser.laser.direction, self.normal_vector) - ): - raise AttributeError( - 'The specified laser direction does not match the ' - 'specified antenna normal.' - ) - self.normal_vector = laser.laser.direction # The plane normal direction - if isinstance(laser, GaussianLaser): - # Focal distance from the antenna (in meters) - laser.laser.profile_focal_distance = np.sqrt( - (laser.focal_position[0] - self.position[0])**2 + - (laser.focal_position[1] - self.position[1])**2 + - (laser.focal_position[2] - self.position[2])**2 - ) - # The time at which the laser reaches its peak (in seconds) - laser.laser.profile_t_peak = np.sqrt( - (self.position[0] - laser.centroid_position[0])**2 + - (self.position[1] - laser.centroid_position[1])**2 + - (self.position[2] - laser.centroid_position[2])**2 - ) / constants.c - - -class AnalyticInitialField(picmistandard.PICMI_AnalyticAppliedField): - def init(self, kw): - self.mangle_dict = None - - def initialize_inputs(self): - # Note that lower and upper_bound are not used by WarpX - - if self.mangle_dict is None: - # Only do this once so that the same variables are used in this distribution - # is used multiple times - self.mangle_dict = pywarpx.my_constants.add_keywords(self.user_defined_kw) - - if (self.Ex_expression is not None or - self.Ey_expression is not None or - self.Ez_expression is not None): - pywarpx.warpx.E_ext_grid_init_style = 'parse_e_ext_grid_function' - for sdir, expression in zip(['x', 'y', 'z'], [self.Ex_expression, self.Ey_expression, self.Ez_expression]): - expression = pywarpx.my_constants.mangle_expression(expression, self.mangle_dict) - pywarpx.warpx.__setattr__(f'E{sdir}_external_grid_function(x,y,z)', expression) - - if (self.Bx_expression is not None or - self.By_expression is not None or - self.Bz_expression is not None): - pywarpx.warpx.B_ext_grid_init_style = 'parse_b_ext_grid_function' - for sdir, expression in zip(['x', 'y', 'z'], [self.Bx_expression, self.By_expression, self.Bz_expression]): - expression = pywarpx.my_constants.mangle_expression(expression, self.mangle_dict) - pywarpx.warpx.__setattr__(f'B{sdir}_external_grid_function(x,y,z)', expression) - - -class ConstantAppliedField(picmistandard.PICMI_ConstantAppliedField): - def initialize_inputs(self): - # Note that lower and upper_bound are not used by WarpX - - if (self.Ex is not None or - self.Ey is not None or - self.Ez is not None): - pywarpx.particles.E_ext_particle_init_style = 'constant' - pywarpx.particles.E_external_particle = [self.Ex or 0., self.Ey or 0., self.Ez or 0.] - - if (self.Bx is not None or - self.By is not None or - self.Bz is not None): - pywarpx.particles.B_ext_particle_init_style = 'constant' - pywarpx.particles.B_external_particle = [self.Bx or 0., self.By or 0., self.Bz or 0.] - - -class AnalyticAppliedField(picmistandard.PICMI_AnalyticAppliedField): - def init(self, kw): - self.mangle_dict = None - - def initialize_inputs(self): - # Note that lower and upper_bound are not used by WarpX - - if self.mangle_dict is None: - # Only do this once so that the same variables are used in this distribution - # is used multiple times - self.mangle_dict = pywarpx.my_constants.add_keywords(self.user_defined_kw) - - if (self.Ex_expression is not None or - self.Ey_expression is not None or - self.Ez_expression is not None): - pywarpx.particles.E_ext_particle_init_style = 'parse_e_ext_particle_function' - for sdir, expression in zip(['x', 'y', 'z'], [self.Ex_expression, self.Ey_expression, self.Ez_expression]): - expression = pywarpx.my_constants.mangle_expression(expression, self.mangle_dict) - pywarpx.particles.__setattr__(f'E{sdir}_external_particle_function(x,y,z,t)', expression) - - if (self.Bx_expression is not None or - self.By_expression is not None or - self.Bz_expression is not None): - pywarpx.particles.B_ext_particle_init_style = 'parse_b_ext_particle_function' - for sdir, expression in zip(['x', 'y', 'z'], [self.Bx_expression, self.By_expression, self.Bz_expression]): - expression = pywarpx.my_constants.mangle_expression(expression, self.mangle_dict) - pywarpx.particles.__setattr__(f'B{sdir}_external_particle_function(x,y,z,t)', expression) - - -class Mirror(picmistandard.PICMI_Mirror): - def initialize_inputs(self): - try: - pywarpx.warpx.num_mirrors - except AttributeError: - pywarpx.warpx.num_mirrors = 0 - pywarpx.warpx.mirror_z = [] - pywarpx.warpx.mirror_z_width = [] - pywarpx.warpx.mirror_z_npoints = [] - - pywarpx.warpx.num_mirrors += 1 - pywarpx.warpx.mirror_z.append(self.z_front_location) - pywarpx.warpx.mirror_z_width.append(self.depth) - pywarpx.warpx.mirror_z_npoints.append(self.number_of_cells) - - -class CoulombCollisions(picmistandard.base._ClassWithInit): - """ - Custom class to handle setup of binary Coulmb collisions in WarpX. If - collision initialization is added to picmistandard this can be changed to - inherit that functionality. - - Parameters - ---------- - name: string - Name of instance (used in the inputs file) - - species: list of species instances - The species involved in the collision. Must be of length 2. - - CoulombLog: float, optional - Value of the Coulomb log to use in the collision cross section. - If not supplied, it is calculated from the local conditions. - - ndt: integer, optional - The collisions will be applied every "ndt" steps. Must be 1 or larger. - """ - def __init__(self, name, species, CoulombLog=None, ndt=None, **kw): - self.name = name - self.species = species - self.CoulombLog = CoulombLog - self.ndt = ndt - - self.handle_init(kw) - - def initialize_inputs(self): - collision = pywarpx.Collisions.newcollision(self.name) - collision.type = 'pairwisecoulomb' - collision.species = [species.name for species in self.species] - collision.CoulombLog = self.CoulombLog - collision.ndt = self.ndt - - -class MCCCollisions(picmistandard.base._ClassWithInit): - """ - Custom class to handle setup of MCC collisions in WarpX. If collision - initialization is added to picmistandard this can be changed to inherit - that functionality. - - Parameters - ---------- - name: string - Name of instance (used in the inputs file) - - species: species instance - The species involved in the collision - - background_density: float - The density of the background - - background_temperature: float - The temperature of the background - - scattering_processes: dictionary - The scattering process to use and any needed information - - background_mass: float, optional - The mass of the background particle. If not supplied, the default depends - on the type of scattering process. - - ndt: integer, optional - The collisions will be applied every "ndt" steps. Must be 1 or larger. - """ - - def __init__(self, name, species, background_density, - background_temperature, scattering_processes, - background_mass=None, ndt=None, **kw): - self.name = name - self.species = species - self.background_density = background_density - self.background_temperature = background_temperature - self.background_mass = background_mass - self.scattering_processes = scattering_processes - self.ndt = ndt - - self.handle_init(kw) - - def initialize_inputs(self): - collision = pywarpx.Collisions.newcollision(self.name) - collision.type = 'background_mcc' - collision.species = self.species.name - collision.background_density = self.background_density - collision.background_temperature = self.background_temperature - collision.background_mass = self.background_mass - collision.ndt = self.ndt - - collision.scattering_processes = self.scattering_processes.keys() - for process, kw in self.scattering_processes.items(): - for key, val in kw.items(): - if key == 'species': - val = val.name - collision.add_new_attr(process+'_'+key, val) - - -class EmbeddedBoundary(picmistandard.base._ClassWithInit): - """ - Custom class to handle set up of embedded boundaries specific to WarpX. - If embedded boundary initialization is added to picmistandard this can be - changed to inherit that functionality. The geometry can be specified either as - an implicit function or as an STL file (ASCII or binary). In the latter case the - geometry specified in the STL file can be scaled, translated and inverted. - - Parameters - ---------- - implicit_function: string - Analytic expression describing the embedded boundary - - stl_file: string - STL file path (string), file contains the embedded boundary geometry - - stl_scale: float - Factor by which the STL geometry is scaled - - stl_center: vector of floats - Vector by which the STL geometry is translated (in meters) - - stl_reverse_normal: bool - If True inverts the orientation of the STL geometry - - potential: string, default=0. - Analytic expression defining the potential. Can only be specified - when the solver is electrostatic. - - cover_multiple_cuts: bool, default=None - Whether to cover cells with multiple cuts. - (If False, this will raise an error if some cells have multiple cuts) - - Parameters used in the analytic expressions should be given as additional keyword arguments. - - """ - def __init__(self, implicit_function=None, stl_file=None, stl_scale=None, stl_center=None, stl_reverse_normal=False, - potential=None, cover_multiple_cuts=None, **kw): - - assert stl_file is None or implicit_function is None, Exception('Only one between implicit_function and ' - 'stl_file can be specified') - - self.implicit_function = implicit_function - self.stl_file = stl_file - - if stl_file is None: - assert stl_scale is None, Exception('EB can only be scaled only when using an stl file') - assert stl_center is None, Exception('EB can only be translated only when using an stl file') - assert stl_reverse_normal is False, Exception('EB can only be reversed only when using an stl file') - - self.stl_scale = stl_scale - self.stl_center = stl_center - self.stl_reverse_normal = stl_reverse_normal - - self.potential = potential - - self.cover_multiple_cuts = cover_multiple_cuts - - # Handle keyword arguments used in expressions - self.user_defined_kw = {} - for k in list(kw.keys()): - if (implicit_function is not None and re.search(r'\b%s\b'%k, implicit_function) or - (potential is not None and re.search(r'\b%s\b'%k, potential))): - self.user_defined_kw[k] = kw[k] - del kw[k] - - self.handle_init(kw) - - def initialize_inputs(self, solver): - - # Add the user defined keywords to my_constants - # The keywords are mangled if there is a conflicting variable already - # defined in my_constants with the same name but different value. - self.mangle_dict = pywarpx.my_constants.add_keywords(self.user_defined_kw) - - if self.implicit_function is not None: - expression = pywarpx.my_constants.mangle_expression(self.implicit_function, self.mangle_dict) - pywarpx.warpx.eb_implicit_function = expression - - if self.stl_file is not None: - pywarpx.eb2.geom_type = "stl" - pywarpx.eb2.stl_file = self.stl_file - pywarpx.eb2.stl_scale = self.stl_scale - pywarpx.eb2.stl_center = self.stl_center - pywarpx.eb2.stl_reverse_normal = self.stl_reverse_normal - - pywarpx.eb2.cover_multiple_cuts = self.cover_multiple_cuts - - if self.potential is not None: - assert isinstance(solver, ElectrostaticSolver), Exception('The potential is only supported with the ElectrostaticSolver') - expression = pywarpx.my_constants.mangle_expression(self.potential, self.mangle_dict) - pywarpx.warpx.__setattr__('eb_potential(x,y,z,t)', expression) - - -class PlasmaLens(picmistandard.base._ClassWithInit): - """ - Custom class to setup a plasma lens lattice. - The applied fields are dependent only on the transverse position. - - Parameters - ---------- - period: float - Periodicity of the lattice (in lab frame, in meters) - - starts: list of floats - The start of each lens relative to the periodic repeat - - lengths: list of floats - The length of each lens - - strengths_E=None: list of floats, default = 0. - The electric field strength of each lens - - strengths_B=None: list of floats, default = 0. - The magnetic field strength of each lens - - - The field that is applied depends on the transverse position of the particle, (x,y) - - - Ex = x*stengths_E - - - Ey = y*stengths_E - - - Bx = +y*stengths_B - - - By = -x*stengths_B - - """ - def __init__(self, period, starts, lengths, strengths_E=None, strengths_B=None, **kw): - self.period = period - self.starts = starts - self.lengths = lengths - self.strengths_E = strengths_E - self.strengths_B = strengths_B - - assert (self.strengths_E is not None) or (self.strengths_B is not None),\ - Exception('One of strengths_E or strengths_B must be supplied') - - self.handle_init(kw) - - def initialize_inputs(self): - - pywarpx.particles.E_ext_particle_init_style = 'repeated_plasma_lens' - pywarpx.particles.B_ext_particle_init_style = 'repeated_plasma_lens' - pywarpx.particles.repeated_plasma_lens_period = self.period - pywarpx.particles.repeated_plasma_lens_starts = self.starts - pywarpx.particles.repeated_plasma_lens_lengths = self.lengths - pywarpx.particles.repeated_plasma_lens_strengths_E = self.strengths_E - pywarpx.particles.repeated_plasma_lens_strengths_B = self.strengths_B - - -class Simulation(picmistandard.PICMI_Simulation): - """ - See `Input Parameters `_ for more information. - - Parameters - ---------- - warpx_current_deposition_algo: {'direct', 'esirkepov', and 'vay'}, optional - Current deposition algorithm. The default depends on conditions. - - warpx_charge_deposition_algo: {'standard'}, optional - Charge deposition algorithm. - - warpx_field_gathering_algo: {'energy-conserving', 'momentum-conserving'}, optional - Field gathering algorithm. The default depends on conditions. - - warpx_particle_pusher_algo: {'boris', 'vay', 'higuera'}, default='boris' - Particle pushing algorithm. - - warpx_use_filter: bool, optional - Whether to use filtering. The default depends on the conditions. - - warpx_do_multi_J: bool, default=0 - Whether to use the multi-J algorithm, where current deposition and - field update are performed multiple times within each time step. - - warpx_do_multi_J_n_depositions: integer - Number of sub-steps to use with the multi-J algorithm, when ``warpx_do_multi_J=1``. - Note that this input parameter is not optional and must always be set in all - input files where ``warpx.do_multi_J=1``. No default value is provided automatically. - - warpx_grid_type: {'collocated', 'staggered', 'hybrid'}, default='staggered' - Whether to use a collocated grid (all fields defined at the cell nodes), - a staggered grid (fields defined on a Yee grid), or a hybrid grid - (fields and currents are interpolated back and forth between a staggered grid - and a collocated grid, must be used with momentum-conserving field gathering algorithm). - - warpx_do_current_centering: bool, optional - If true, the current is deposited on a nodal grid and then centered - to a staggered grid (Yee grid), using finite-order interpolation. - Default: warpx.do_current_centering=0 with collocated or staggered grids, - warpx.do_current_centering=1 with hybrid grids. - - warpx_field_centering_nox/noy/noz: integer, optional - The order of interpolation used with staggered or hybrid grids (``warpx_grid_type=staggered`` - or ``warpx_grid_type=hybrid``) and momentum-conserving field gathering - (``warpx_field_gathering_algo=momentum-conserving``) to interpolate the - electric and magnetic fields from the cell centers to the cell nodes, - before gathering the fields from the cell nodes to the particle positions. - Default: ``warpx_field_centering_no=2`` with staggered grids, - ``warpx_field_centering_no=8`` with hybrid grids (typically necessary - to ensure stability in boosted-frame simulations of relativistic plasmas and beams). - - warpx_current_centering_nox/noy/noz: integer, optional - The order of interpolation used with hybrid grids (``warpx_grid_type=hybrid``) - to interpolate the currents from the cell nodes to the cell centers when - ``warpx_do_current_centering=1``, before pushing the Maxwell fields on staggered grids. - Default: ``warpx_current_centering_no=8`` with hybrid grids (typically necessary - to ensure stability in boosted-frame simulations of relativistic plasmas and beams). - - warpx_serialize_initial_conditions: bool, default=False - Controls the random numbers used for initialization. - This parameter should only be used for testing and continuous integration. - - warpx_random_seed: string or int, optional - (See documentation) - - warpx_do_dynamic_scheduling: bool, default=True - Whether to do dynamic scheduling with OpenMP - - warpx_load_balance_intervals: string, default='0' - The intervals for doing load balancing - - warpx_load_balance_efficiency_ratio_threshold: float, default=1.1 - (See documentation) - - warpx_load_balance_with_sfc: bool, default=0 - (See documentation) - - warpx_load_balance_knapsack_factor: float, default=1.24 - (See documentation) - - warpx_load_balance_costs_update: {'heuristic' or 'timers' or 'gpuclock'}, optional - (See documentation) - - warpx_costs_heuristic_particles_wt: float, optional - (See documentation) - - warpx_costs_heuristic_cells_wt: float, optional - (See documentation) - - warpx_use_fdtd_nci_corr: bool, optional - Whether to use the NCI correction when using the FDTD solver - - warpx_amr_check_input: bool, optional - Whether AMReX should perform checks on the input - (primarily related to the max grid size and blocking factors) - - warpx_amr_restart: string, optional - The name of the restart to use - - warpx_amrex_the_arena_is_managed: bool, optional - Whether to use managed memory in the AMReX Arena - - warpx_amrex_the_arena_init_size: long int, optional - The amount of memory in bytes to allocate in the Arena. - - warpx_zmax_plasma_to_compute_max_step: float, optional - Sets the simulation run time based on the maximum z value - - warpx_compute_max_step_from_btd: bool, default=0 - If specified, automatically calculates the number of iterations - required in the boosted frame for all back-transformed diagnostics - to be completed. - - warpx_collisions: collision instance, optional - The collision instance specifying the particle collisions - - warpx_embedded_boundary: embedded boundary instance, optional - - warpx_break_signals: list of strings - Signals on which to break - - warpx_checkpoint_signals: list of strings - Signals on which to write out a checkpoint - """ - - # Set the C++ WarpX interface (see _libwarpx.LibWarpX) as an extension to - # Simulation objects. In the future, LibWarpX objects may actually be owned - # by Simulation objects to permit multiple WarpX runs simultaneously. - extension = pywarpx.libwarpx - - def init(self, kw): - - self.current_deposition_algo = kw.pop('warpx_current_deposition_algo', None) - self.charge_deposition_algo = kw.pop('warpx_charge_deposition_algo', None) - self.field_gathering_algo = kw.pop('warpx_field_gathering_algo', None) - self.particle_pusher_algo = kw.pop('warpx_particle_pusher_algo', None) - self.use_filter = kw.pop('warpx_use_filter', None) - self.do_multi_J = kw.pop('warpx_do_multi_J', None) - self.do_multi_J_n_depositions = kw.pop('warpx_do_multi_J_n_depositions', None) - self.grid_type = kw.pop('warpx_grid_type', None) - self.do_current_centering = kw.pop('warpx_do_current_centering', None) - self.field_centering_order = kw.pop('warpx_field_centering_order', None) - self.current_centering_order = kw.pop('warpx_current_centering_order', None) - self.serialize_initial_conditions = kw.pop('warpx_serialize_initial_conditions', None) - self.random_seed = kw.pop('warpx_random_seed', None) - self.do_dynamic_scheduling = kw.pop('warpx_do_dynamic_scheduling', None) - self.load_balance_intervals = kw.pop('warpx_load_balance_intervals', None) - self.load_balance_efficiency_ratio_threshold = kw.pop('warpx_load_balance_efficiency_ratio_threshold', None) - self.load_balance_with_sfc = kw.pop('warpx_load_balance_with_sfc', None) - self.load_balance_knapsack_factor = kw.pop('warpx_load_balance_knapsack_factor', None) - self.load_balance_costs_update = kw.pop('warpx_load_balance_costs_update', None) - self.costs_heuristic_particles_wt = kw.pop('warpx_costs_heuristic_particles_wt', None) - self.costs_heuristic_cells_wt = kw.pop('warpx_costs_heuristic_cells_wt', None) - self.use_fdtd_nci_corr = kw.pop('warpx_use_fdtd_nci_corr', None) - self.amr_check_input = kw.pop('warpx_amr_check_input', None) - self.amr_restart = kw.pop('warpx_amr_restart', None) - self.amrex_the_arena_is_managed = kw.pop('warpx_amrex_the_arena_is_managed', None) - self.amrex_the_arena_init_size = kw.pop('warpx_amrex_the_arena_init_size', None) - self.zmax_plasma_to_compute_max_step = kw.pop('warpx_zmax_plasma_to_compute_max_step', None) - self.compute_max_step_from_btd = kw.pop('warpx_compute_max_step_from_btd', None) - - self.collisions = kw.pop('warpx_collisions', None) - self.embedded_boundary = kw.pop('warpx_embedded_boundary', None) - - self.break_signals = kw.pop('warpx_break_signals', None) - self.checkpoint_signals = kw.pop('warpx_checkpoint_signals', None) - - self.inputs_initialized = False - self.warpx_initialized = False - - def initialize_inputs(self): - if self.inputs_initialized: - return - - self.inputs_initialized = True - - pywarpx.warpx.verbose = self.verbose - if self.time_step_size is not None: - pywarpx.warpx.const_dt = self.time_step_size - - if self.gamma_boost is not None: - pywarpx.warpx.gamma_boost = self.gamma_boost - pywarpx.warpx.boost_direction = 'z' - - pywarpx.warpx.zmax_plasma_to_compute_max_step = self.zmax_plasma_to_compute_max_step - pywarpx.warpx.compute_max_step_from_btd = self.compute_max_step_from_btd - - pywarpx.algo.current_deposition = self.current_deposition_algo - pywarpx.algo.charge_deposition = self.charge_deposition_algo - pywarpx.algo.field_gathering = self.field_gathering_algo - pywarpx.algo.particle_pusher = self.particle_pusher_algo - pywarpx.algo.load_balance_intervals = self.load_balance_intervals - pywarpx.algo.load_balance_efficiency_ratio_threshold = self.load_balance_efficiency_ratio_threshold - pywarpx.algo.load_balance_with_sfc = self.load_balance_with_sfc - pywarpx.algo.load_balance_knapsack_factor = self.load_balance_knapsack_factor - pywarpx.algo.load_balance_costs_update = self.load_balance_costs_update - pywarpx.algo.costs_heuristic_particles_wt = self.costs_heuristic_particles_wt - pywarpx.algo.costs_heuristic_cells_wt = self.costs_heuristic_cells_wt - - pywarpx.warpx.grid_type = self.grid_type - pywarpx.warpx.do_current_centering = self.do_current_centering - pywarpx.warpx.use_filter = self.use_filter - pywarpx.warpx.do_multi_J = self.do_multi_J - pywarpx.warpx.do_multi_J_n_depositions = self.do_multi_J_n_depositions - pywarpx.warpx.serialize_initial_conditions = self.serialize_initial_conditions - pywarpx.warpx.random_seed = self.random_seed - - pywarpx.warpx.do_dynamic_scheduling = self.do_dynamic_scheduling - - pywarpx.particles.use_fdtd_nci_corr = self.use_fdtd_nci_corr - - pywarpx.amr.check_input = self.amr_check_input - - pywarpx.warpx.break_signals = self.break_signals - pywarpx.warpx.checkpoint_signals = self.checkpoint_signals - - particle_shape = self.particle_shape - for s in self.species: - if s.particle_shape is not None: - assert particle_shape is None or particle_shape == s.particle_shape, Exception('WarpX only supports one particle shape for all species') - # --- If this was set for any species, use that value. - particle_shape = s.particle_shape - - if particle_shape is not None and (len(self.species) > 0 or len(self.lasers) > 0): - if isinstance(particle_shape, str): - interpolation_order = {'NGP':0, 'linear':1, 'quadratic':2, 'cubic':3}[particle_shape] - else: - interpolation_order = particle_shape - pywarpx.algo.particle_shape = interpolation_order - - self.solver.initialize_inputs() - - # Initialize warpx.field_centering_no and warpx.current_centering_no - # if set by the user in the input (need to access grid info from solver attribute) - # warpx.field_centering_no - if self.field_centering_order is not None: - pywarpx.warpx.field_centering_nox = self.field_centering_order[0] - if self.solver.grid.number_of_dimensions == 3: - pywarpx.warpx.field_centering_noy = self.field_centering_order[1] - pywarpx.warpx.field_centering_noz = self.field_centering_order[-1] - # warpx.current_centering_no - if self.current_centering_order is not None: - pywarpx.warpx.current_centering_nox = self.current_centering_order[0] - if self.solver.grid.number_of_dimensions == 3: - pywarpx.warpx.current_centering_noy = self.current_centering_order[1] - pywarpx.warpx.current_centering_noz = self.current_centering_order[-1] - - for i in range(len(self.species)): - self.species[i].initialize_inputs(self.layouts[i], - self.initialize_self_fields[i], - self.injection_plane_positions[i], - self.injection_plane_normal_vectors[i]) - - if self.collisions is not None: - pywarpx.collisions.collision_names = [] - for collision in self.collisions: - pywarpx.collisions.collision_names.append(collision.name) - collision.initialize_inputs() - - if self.embedded_boundary is not None: - self.embedded_boundary.initialize_inputs(self.solver) - - for i in range(len(self.lasers)): - self.lasers[i].initialize_inputs() - self.laser_injection_methods[i].initialize_inputs(self.lasers[i]) - - for applied_field in self.applied_fields: - applied_field.initialize_inputs() - - for diagnostic in self.diagnostics: - diagnostic.initialize_inputs() - - if self.amr_restart: - pywarpx.amr.restart = self.amr_restart - - if self.amrex_the_arena_is_managed is not None: - pywarpx.amrex.the_arena_is_managed = self.amrex_the_arena_is_managed - - if self.amrex_the_arena_init_size is not None: - pywarpx.amrex.the_arena_init_size = self.amrex_the_arena_init_size - - def initialize_warpx(self, mpi_comm=None): - if self.warpx_initialized: - return - - self.warpx_initialized = True - pywarpx.warpx.init(mpi_comm, max_step=self.max_steps, stop_time=self.max_time) - - def write_input_file(self, file_name='inputs'): - self.initialize_inputs() - pywarpx.warpx.write_inputs(file_name, max_step=self.max_steps, stop_time=self.max_time) - - def step(self, nsteps=None, mpi_comm=None): - self.initialize_inputs() - self.initialize_warpx(mpi_comm) - if nsteps is None: - if self.max_steps is not None: - nsteps = self.max_steps - else: - nsteps = -1 - pywarpx.warpx.evolve(nsteps) - - def finalize(self): - if self.warpx_initialized: - self.warpx_initialized = False - pywarpx.warpx.finalize() - - -# ---------------------------- -# Simulation frame diagnostics -# ---------------------------- - -class WarpXDiagnosticBase(object): - """ - Base class for all WarpX diagnostic containing functionality shared by - all WarpX diagnostic installations. - """ - def add_diagnostic(self): - # reduced diagnostics go in a different bucket than regular diagnostics - if isinstance(self, ReducedDiagnostic): - bucket = pywarpx.reduced_diagnostics - name_template = 'reduced_diag' - else: - bucket = pywarpx.diagnostics - name_template = 'diag' - - name = getattr(self, 'name', None) - if name is None: - diagnostics_number = (len(bucket._diagnostics_dict) + 1) - self.name = f'{name_template}{diagnostics_number}' - - try: - self.diagnostic = bucket._diagnostics_dict[self.name] - except KeyError: - self.diagnostic = pywarpx.Diagnostics.Diagnostic( - self.name, _species_dict={} - ) - bucket._diagnostics_dict[self.name] = self.diagnostic - - def set_write_dir(self): - if self.write_dir is not None or self.file_prefix is not None: - write_dir = (self.write_dir or 'diags') - file_prefix = (self.file_prefix or self.name) - self.diagnostic.file_prefix = os.path.join(write_dir, file_prefix) - - -class FieldDiagnostic(picmistandard.PICMI_FieldDiagnostic, WarpXDiagnosticBase): - """ - See `Input Parameters `_ for more information. - - Parameters - ---------- - warpx_plot_raw_fields: bool, optional - Flag whether to dump the raw fields - - warpx_plot_raw_fields_guards: bool, optional - Flag whether the raw fields should include the guard cells - - warpx_write_species: bool, optional - Flag whether to output particle data with the diagnostic - - warpx_format: {plotfile, checkpoint, openpmd, ascent, sensei}, optional - Diagnostic file format - - warpx_openpmd_backend: {bp, h5, json}, optional - Openpmd backend file format - - warpx_file_prefix: string, optional - Prefix on the diagnostic file name - - warpx_file_min_digits: integer, optional - Minimum number of digits for the time step number in the file name - - warpx_dump_rz_modes: bool, optional - Flag whether to dump the data for all RZ modes - """ - def init(self, kw): - - self.plot_raw_fields = kw.pop('warpx_plot_raw_fields', None) - self.plot_raw_fields_guards = kw.pop('warpx_plot_raw_fields_guards', None) - self.plot_finepatch = kw.pop('warpx_plot_finepatch', None) - self.plot_crsepatch = kw.pop('warpx_plot_crsepatch', None) - self.write_species = kw.pop('warpx_write_species', None) - self.format = kw.pop('warpx_format', 'plotfile') - self.openpmd_backend = kw.pop('warpx_openpmd_backend', None) - self.file_prefix = kw.pop('warpx_file_prefix', None) - self.file_min_digits = kw.pop('warpx_file_min_digits', None) - self.dump_rz_modes = kw.pop('warpx_dump_rz_modes', None) - - def initialize_inputs(self): - - self.add_diagnostic() - - self.diagnostic.diag_type = 'Full' - self.diagnostic.format = self.format - self.diagnostic.openpmd_backend = self.openpmd_backend - self.diagnostic.file_min_digits = self.file_min_digits - self.diagnostic.dump_rz_modes = self.dump_rz_modes - self.diagnostic.intervals = self.period - self.diagnostic.diag_lo = self.lower_bound - self.diagnostic.diag_hi = self.upper_bound - if self.number_of_cells is not None: - self.diagnostic.coarsening_ratio = (np.array(self.grid.number_of_cells)/np.array(self.number_of_cells)).astype(int) - - # --- Use a set to ensure that fields don't get repeated. - fields_to_plot = set() - - if pywarpx.geometry.dims == 'RZ': - E_fields_list = ['Er', 'Et', 'Ez'] - B_fields_list = ['Br', 'Bt', 'Bz'] - J_fields_list = ['Jr', 'Jt', 'Jz'] - A_fields_list = ['Ar', 'At', 'Az'] - else: - E_fields_list = ['Ex', 'Ey', 'Ez'] - B_fields_list = ['Bx', 'By', 'Bz'] - J_fields_list = ['Jx', 'Jy', 'Jz'] - A_fields_list = ['Ax', 'Ay', 'Az'] - if self.data_list is not None: - for dataname in self.data_list: - if dataname == 'E': - for field_name in E_fields_list: - fields_to_plot.add(field_name) - elif dataname == 'B': - for field_name in B_fields_list: - fields_to_plot.add(field_name) - elif dataname == 'J': - for field_name in J_fields_list: - fields_to_plot.add(field_name.lower()) - elif dataname == 'A': - for field_name in A_fields_list: - fields_to_plot.add(field_name) - elif dataname in E_fields_list: - fields_to_plot.add(dataname) - elif dataname in B_fields_list: - fields_to_plot.add(dataname) - elif dataname in A_fields_list: - fields_to_plot.add(dataname) - elif dataname in ['rho', 'phi', 'F', 'proc_number', 'part_per_cell']: - fields_to_plot.add(dataname) - elif dataname in J_fields_list: - fields_to_plot.add(dataname.lower()) - elif dataname.startswith('rho_'): - # Adds rho_species diagnostic - fields_to_plot.add(dataname) - elif dataname == 'dive': - fields_to_plot.add('divE') - elif dataname == 'divb': - fields_to_plot.add('divB') - elif dataname == 'raw_fields': - self.plot_raw_fields = 1 - elif dataname == 'raw_fields_guards': - self.plot_raw_fields_guards = 1 - elif dataname == 'finepatch': - self.plot_finepatch = 1 - elif dataname == 'crsepatch': - self.plot_crsepatch = 1 - elif dataname == 'none': - fields_to_plot = set(('none',)) - - # --- Convert the set to a sorted list so that the order - # --- is the same on all processors. - fields_to_plot = list(fields_to_plot) - fields_to_plot.sort() - self.diagnostic.fields_to_plot = fields_to_plot - - self.diagnostic.plot_raw_fields = self.plot_raw_fields - self.diagnostic.plot_raw_fields_guards = self.plot_raw_fields_guards - self.diagnostic.plot_finepatch = self.plot_finepatch - self.diagnostic.plot_crsepatch = self.plot_crsepatch - self.diagnostic.write_species = self.write_species - - self.set_write_dir() - - -ElectrostaticFieldDiagnostic = FieldDiagnostic - - -class Checkpoint(picmistandard.base._ClassWithInit, WarpXDiagnosticBase): - """ - Sets up checkpointing of the simulation, allowing for later restarts - - See `Input Parameters `_ for more information. - - Parameters - ---------- - warpx_file_prefix: string - The prefix to the checkpoint directory names - - warpx_file_min_digits: integer - Minimum number of digits for the time step number in the checkpoint - directory name. - """ - - def __init__(self, period = 1, write_dir = None, name = None, **kw): - - self.period = period - self.write_dir = write_dir - self.file_prefix = kw.pop('warpx_file_prefix', None) - self.file_min_digits = kw.pop('warpx_file_min_digits', None) - self.name = name - - if self.name is None: - self.name = 'chkpoint' - - self.handle_init(kw) - - def initialize_inputs(self): - - self.add_diagnostic() - - self.diagnostic.intervals = self.period - self.diagnostic.diag_type = 'Full' - self.diagnostic.format = 'checkpoint' - self.diagnostic.file_min_digits = self.file_min_digits - - self.set_write_dir() - - -class ParticleDiagnostic(picmistandard.PICMI_ParticleDiagnostic, WarpXDiagnosticBase): - """ - See `Input Parameters `_ for more information. - - Parameters - ---------- - warpx_format: {plotfile, checkpoint, openpmd, ascent, sensei}, optional - Diagnostic file format - - warpx_openpmd_backend: {bp, h5, json}, optional - Openpmd backend file format - - warpx_file_prefix: string, optional - Prefix on the diagnostic file name - - warpx_file_min_digits: integer, optional - Minimum number of digits for the time step number in the file name - - warpx_random_fraction: float, optional - Random fraction of particles to include in the diagnostic - - warpx_uniform_stride: integer, optional - Stride to down select to the particles to include in the diagnostic - - warpx_plot_filter_function: string, optional - Analytic expression to down select the particles to in the diagnostic - """ - def init(self, kw): - - self.format = kw.pop('warpx_format', 'plotfile') - self.openpmd_backend = kw.pop('warpx_openpmd_backend', None) - self.file_prefix = kw.pop('warpx_file_prefix', None) - self.file_min_digits = kw.pop('warpx_file_min_digits', None) - self.random_fraction = kw.pop('warpx_random_fraction', None) - self.uniform_stride = kw.pop('warpx_uniform_stride', None) - self.plot_filter_function = kw.pop('warpx_plot_filter_function', None) - - self.user_defined_kw = {} - if self.plot_filter_function is not None: - # This allows variables to be used in the plot_filter_function, but - # in order not to break other codes, the variables must begin with "warpx_" - for k in list(kw.keys()): - if k.startswith('warpx_') and re.search(r'\b%s\b'%k, self.plot_filter_function): - self.user_defined_kw[k] = kw[k] - del kw[k] - - self.mangle_dict = None - - def initialize_inputs(self): - - self.add_diagnostic() - - self.diagnostic.diag_type = 'Full' - self.diagnostic.format = self.format - self.diagnostic.openpmd_backend = self.openpmd_backend - self.diagnostic.file_min_digits = self.file_min_digits - self.diagnostic.intervals = self.period - - self.set_write_dir() - - # --- Use a set to ensure that fields don't get repeated. - variables = set() - - if self.data_list is not None: - for dataname in self.data_list: - if dataname == 'position': - # --- The positions are alway written out anyway - pass - elif dataname == 'momentum': - variables.add('ux') - variables.add('uy') - variables.add('uz') - elif dataname == 'weighting': - variables.add('w') - elif dataname == 'fields': - variables.add('Ex') - variables.add('Ey') - variables.add('Ez') - variables.add('Bx') - variables.add('By') - variables.add('Bz') - elif dataname in ['ux', 'uy', 'uz', 'Ex', 'Ey', 'Ez', 'Bx', 'By', 'Bz']: - variables.add(dataname) - - # --- Convert the set to a sorted list so that the order - # --- is the same on all processors. - variables = list(variables) - variables.sort() - - if np.iterable(self.species): - species_list = self.species - else: - species_list = [self.species] - - if self.mangle_dict is None: - # Only do this once so that the same variables are used in this distribution - # is used multiple times - self.mangle_dict = pywarpx.my_constants.add_keywords(self.user_defined_kw) - - for specie in species_list: - diag = pywarpx.Bucket.Bucket(self.name + '.' + specie.name, - variables = variables, - random_fraction = self.random_fraction, - uniform_stride = self.uniform_stride) - expression = pywarpx.my_constants.mangle_expression(self.plot_filter_function, self.mangle_dict) - diag.__setattr__('plot_filter_function(t,x,y,z,ux,uy,uz)', expression) - self.diagnostic._species_dict[specie.name] = diag - -# ---------------------------- -# Lab frame diagnostics -# ---------------------------- - - -class LabFrameFieldDiagnostic(picmistandard.PICMI_LabFrameFieldDiagnostic, - WarpXDiagnosticBase): - """ - See `Input Parameters `_ for more information. - - Parameters - ---------- - warpx_format: string, optional - Passed to .format - - warpx_openpmd_backend: string, optional - Passed to .openpmd_backend - - warpx_file_prefix: string, optional - Passed to .file_prefix - - warpx_file_min_digits: integer, optional - Passed to .file_min_digits - - warpx_buffer_size: integer, optional - Passed to .buffer_size - - warpx_lower_bound: vector of floats, optional - Passed to .lower_bound - - warpx_upper_bound: vector of floats, optional - Passed to .upper_bound - """ - def init(self, kw): - # The user is using the new BTD - self.format = kw.pop('warpx_format', None) - self.openpmd_backend = kw.pop('warpx_openpmd_backend', None) - self.file_prefix = kw.pop('warpx_file_prefix', None) - self.file_min_digits = kw.pop('warpx_file_min_digits', None) - self.buffer_size = kw.pop('warpx_buffer_size', None) - self.lower_bound = kw.pop('warpx_lower_bound', None) - self.upper_bound = kw.pop('warpx_upper_bound', None) - - def initialize_inputs(self): - - self.add_diagnostic() - - self.diagnostic.diag_type = 'BackTransformed' - self.diagnostic.format = self.format - self.diagnostic.openpmd_backend = self.openpmd_backend - self.diagnostic.file_min_digits = self.file_min_digits - self.diagnostic.diag_lo = self.lower_bound - self.diagnostic.diag_hi = self.upper_bound - - self.diagnostic.do_back_transformed_fields = 1 - self.diagnostic.num_snapshots_lab = self.num_snapshots - self.diagnostic.dt_snapshots_lab = self.dt_snapshots - self.diagnostic.buffer_size = self.buffer_size - - # --- Use a set to ensure that fields don't get repeated. - fields_to_plot = set() - - if pywarpx.geometry.dims == 'RZ': - E_fields_list = ['Er', 'Et', 'Ez'] - B_fields_list = ['Br', 'Bt', 'Bz'] - J_fields_list = ['Jr', 'Jt', 'Jz'] - else: - E_fields_list = ['Ex', 'Ey', 'Ez'] - B_fields_list = ['Bx', 'By', 'Bz'] - J_fields_list = ['Jx', 'Jy', 'Jz'] - if self.data_list is not None: - for dataname in self.data_list: - if dataname == 'E': - for field_name in E_fields_list: - fields_to_plot.add(field_name) - elif dataname == 'B': - for field_name in B_fields_list: - fields_to_plot.add(field_name) - elif dataname == 'J': - for field_name in J_fields_list: - fields_to_plot.add(field_name.lower()) - elif dataname in E_fields_list: - fields_to_plot.add(dataname) - elif dataname in B_fields_list: - fields_to_plot.add(dataname) - elif dataname in J_fields_list: - fields_to_plot.add(dataname.lower()) - elif dataname.startswith('rho_'): - # Adds rho_species diagnostic - fields_to_plot.add(dataname) - - # --- Convert the set to a sorted list so that the order - # --- is the same on all processors. - fields_to_plot = list(fields_to_plot) - fields_to_plot.sort() - self.diagnostic.fields_to_plot = fields_to_plot - - self.set_write_dir() - -class ReducedDiagnostic(picmistandard.base._ClassWithInit, WarpXDiagnosticBase): - """ - Sets up a reduced diagnostic in the simulation. - - See `Input Parameters `_ - for more information. - - Parameters - ---------- - diag_type: string - The type of reduced diagnostic. See the link above for all the different - types of reduced diagnostics available. - - name: string - The name of this diagnostic which will also be the name of the data - file written to disk. - - period: integer - The simulation step interval at which to output this diagnostic. - - path: string - The file path in which the diagnostic file should be written. - - extension: string - The file extension used for the diagnostic output. - - separator: string - The separator between row values in the output file. - - species: species instance - The name of the species for which to calculate the diagnostic, required for - diagnostic types 'BeamRelevant', 'ParticleHistogram', and 'ParticleExtrema' - - bin_number: integer - For diagnostic type 'ParticleHistogram', the number of bins used for the histogram - - bin_max: float - For diagnostic type 'ParticleHistogram', the maximum value of the bins - - bin_min: float - For diagnostic type 'ParticleHistogram', the minimum value of the bins - - normalization: {'unity_particle_weight', 'max_to_unity', 'area_to_unity'}, optional - For diagnostic type 'ParticleHistogram', normalization method of the histogram. - - histogram_function: string - For diagnostic type 'ParticleHistogram', the function evaluated to produce the histogram data - - filter_function: string, optional - For diagnostic type 'ParticleHistogram', the function to filter whether particles are included in the histogram - - reduced_function: string - For diagnostic type 'FieldReduction', the function of the fields to evaluate - - weighting_function: string, optional - For diagnostic type 'ChargeOnEB', the function to weight contributions to the total charge - - reduction_type: {'Maximum', 'Minimum', or 'Integral'} - For diagnostic type 'FieldReduction', the type of reduction - - probe_geometry: {'Point', 'Line', 'Plane'}, defaut='Point' - For diagnostic type 'FieldProbe', the geometry of the probe - - integrate: bool, default=false - For diagnostic type 'FieldProbe', whether the field is integrated - - do_moving_window_FP: bool, default=False - For diagnostic type 'FieldProbe', whether the moving window is followed - - x_probe, y_probe, z_probe: floats - For diagnostic type 'FieldProbe', a probe location. For 'Point', the location of the point. For 'Line', the start of the - line. For 'Plane', the center of the square detector. - - interp_order: integer - For diagnostic type 'FieldProbe', the interpolation order for 'Line' and 'Plane' - - resolution: integer - For diagnostic type 'FieldProbe', the number of points along the 'Line' or along each edge of the square 'Plane' - - x1_probe, y1_probe, z1_probe: floats - For diagnostic type 'FieldProbe', the end point for 'Line' - - detector_radius: float - For diagnostic type 'FieldProbe', the detector "radius" (half edge length) of the 'Plane' - - target_normal_x, target_normal_y, target_normal_z: floats - For diagnostic type 'FieldProbe', the normal vector to the 'Plane'. Only applicable in 3D - - target_up_x, target_up_y, target_up_z: floats - For diagnostic type 'FieldProbe', the vector specifying up in the 'Plane' - """ - - def __init__(self, diag_type, name=None, period=1, path=None, - extension=None, separator=None, **kw): - - self.name = name - self.type = diag_type - self.intervals = period - self.path = path - self.extension = extension - self.separator = separator - - self.user_defined_kw = {} - - # Now we need to handle all the specific inputs required for the - # different reduced diagnostic types. - - # The simple diagnostics do not require any additional arguments - self._simple_reduced_diagnostics = [ - 'ParticleEnergy', 'ParticleMomentum', 'FieldEnergy', - 'FieldMomentum', 'FieldMaximum', 'RhoMaximum', 'ParticleNumber', - 'LoadBalanceCosts', 'LoadBalanceEfficiency' - ] - # The species diagnostics require a species to be provided - self._species_reduced_diagnostics = [ - 'BeamRelevant', 'ParticleHistogram', 'ParticleExtrema' - ] - - if self.type in self._simple_reduced_diagnostics: - pass - elif self.type in self._species_reduced_diagnostics: - species = kw.pop('species') - self.species = species.name - if self.type == 'ParticleHistogram': - kw = self._handle_particle_histogram(**kw) - elif self.type == "FieldProbe": - kw = self._handle_field_probe(**kw) - elif self.type == "FieldReduction": - kw = self._handle_field_reduction(**kw) - elif self.type == "ChargeOnEB": - kw = self._handle_charge_on_eb(**kw) - else: - raise RuntimeError( - f"{self.type} reduced diagnostic is not yet supported " - "in pywarpx." - ) - - self.handle_init(kw) - - def _handle_field_probe(self, **kw): - """Utility function to grab required inputs for a field probe from kw""" - self.probe_geometry = kw.pop("probe_geometry") - self.x_probe = kw.pop("x_probe", None) - self.y_probe = kw.pop("y_probe", None) - self.z_probe = kw.pop("z_probe") - - self.interp_order = kw.pop("interp_order", None) - self.integrate = kw.pop("integrate", None) - self.do_moving_window_FP = kw.pop("do_moving_window_FP", None) - - if self.probe_geometry.lower() != 'point': - self.resolution = kw.pop("resolution") - - if self.probe_geometry.lower() == 'line': - self.x1_probe = kw.pop("x1_probe", None) - self.y1_probe = kw.pop("y1_probe", None) - self.z1_probe = kw.pop("z1_probe") - - if self.probe_geometry.lower() == 'plane': - self.detector_radius = kw.pop("detector_radius") - - self.target_normal_x = kw.pop("target_normal_x", None) - self.target_normal_y = kw.pop("target_normal_y", None) - self.target_normal_z = kw.pop("target_normal_z", None) - - self.target_up_x = kw.pop("target_up_x", None) - self.target_up_y = kw.pop("target_up_y", None) - self.target_up_z = kw.pop("target_up_z", None) - - return kw - - def _handle_particle_histogram(self, **kw): - self.bin_number = kw.pop("bin_number") - self.bin_max = kw.pop("bin_max") - self.bin_min = kw.pop("bin_min") - self.normalization = kw.pop("normalization", None) - if self.normalization not in [None, "unity_particle_weight", "max_to_unity", "area_to_unity"]: - raise AttributeError( - "The ParticleHistogram normalization must be one of 'unity_particle_weight', 'max_to_unity', or 'area_to_unity'") - - histogram_function = kw.pop("histogram_function") - filter_function = kw.pop("filter_function", None) - - self.__setattr__("histogram_function(t,x,y,z,ux,uy,uz)", histogram_function) - self.__setattr__("filter_function(t,x,y,z,ux,uy,uz)", filter_function) - - # Check the reduced function expressions for constants - for k in list(kw.keys()): - if (re.search(r'\b%s\b'%k, histogram_function) or - (filter_function is not None and re.search(r'\b%s\b'%k, filter_function))): - self.user_defined_kw[k] = kw[k] - del kw[k] - - return kw - - def _handle_field_reduction(self, **kw): - self.reduction_type = kw.pop("reduction_type") - reduced_function = kw.pop("reduced_function") - - self.__setattr__("reduced_function(x,y,z,Ex,Ey,Ez,Bx,By,Bz)", reduced_function) - - # Check the reduced function expression for constants - for k in list(kw.keys()): - if re.search(r'\b%s\b'%k, reduced_function): - self.user_defined_kw[k] = kw[k] - del kw[k] - - return kw - - def _handle_charge_on_eb(self, **kw): - weighting_function = kw.pop("weighting_function", None) - - self.__setattr__("weighting_function(x,y,z)", weighting_function) - - # Check the reduced function expression for constants - for k in list(kw.keys()): - if re.search(r'\b%s\b'%k, weighting_function): - self.user_defined_kw[k] = kw[k] - del kw[k] - - return kw - - def initialize_inputs(self): - - self.add_diagnostic() - - self.mangle_dict = pywarpx.my_constants.add_keywords(self.user_defined_kw) - - for key, value in self.__dict__.items(): - if not key.startswith('_') and key not in ['name', 'diagnostic']: - if key.endswith(")"): - # Analytic expressions require processing to deal with constants - expression = pywarpx.my_constants.mangle_expression(value, self.mangle_dict) - self.diagnostic.__setattr__(key, expression) - else: - self.diagnostic.__setattr__(key, value) diff --git a/Python/pywarpx/timestepper.py b/Python/pywarpx/timestepper.py deleted file mode 100644 index de341097a..000000000 --- a/Python/pywarpx/timestepper.py +++ /dev/null @@ -1,81 +0,0 @@ -# Copyright 2017-2021 Andrew Myers, David Grote, Weiqun Zhang -# -# -# This file is part of WarpX. -# -# License: BSD-3-Clause-LBNL - -# This is intended to be a Python level example of how one might write a customized -# time stepping loop. This would replace the functionality of the WarpX::Evolve routine. -# Wrappers are available for the major pieces of a time step and they would be called -# here in the appropriate order. -# Note that this is intended to be an example only and may not be functional. The -# onestep routine as written here is out of date and is not consistent with WarpX::Evolve. - -from . import callbacks, libwarpx - - -class TimeStepper(object): - - def step(self, nsteps=1): - for i in range(nsteps): - self.onestep() - - def onestep(self): - - callbacks._beforestep() - - self.cur_time = libwarpx.libwarpx_so.warpx_gett_new(0) - self.istep = libwarpx.libwarpx_so.warpx_getistep(0) - - #if mpi.rank == 0: - print("\nSTEP %d starts ..."%(self.istep + 1)) - - #if (ParallelDescriptor::NProcs() > 1) - # if (okToRegrid(step)) RegridBaseLevel(); - - dt = libwarpx.libwarpx_so.warpx_getdt(0) - - # --- At the beginning, we have B^{n-1/2} and E^{n}. - # --- Particles have p^{n-1/2} and x^{n}. - libwarpx.libwarpx_so.warpx_FillBoundaryE() - libwarpx.libwarpx_so.warpx_EvolveB(0.5*dt,1) # We now B^{n} - - libwarpx.libwarpx_so.warpx_FillBoundaryB() - libwarpx.libwarpx_so.warpx_UpdateAuxilaryData() - - # --- Evolve particles to p^{n+1/2} and x^{n+1} - # --- Depose current, j^{n+1/2} - callbacks._particleinjection() - callbacks._particlescraper() - callbacks._beforedeposition() - libwarpx.libwarpx_so.warpx_PushParticlesandDepose(self.cur_time) - callbacks._afterdeposition() - - libwarpx.libwarpx_so.mypc_Redistribute() # Redistribute particles - - libwarpx.libwarpx_so.warpx_FillBoundaryE() - libwarpx.libwarpx_so.warpx_EvolveB(0.5*dt,2) # We now B^{n+1/2} - - libwarpx.libwarpx_so.warpx_SyncCurrent() - - libwarpx.libwarpx_so.warpx_FillBoundaryB() - callbacks._beforeEsolve() - libwarpx.libwarpx_so.warpx_EvolveE(dt,0) # We now have E^{n+1} - callbacks._afterEsolve() - - self.istep += 1 - - self.cur_time += dt - - libwarpx.libwarpx_so.warpx_MoveWindow(self.istep,True); - - #if mpi.rank == 0: - print("STEP %d ends. TIME = %e DT = %e"%(self.istep, self.cur_time, dt)) - - # --- Sync up time - for i in range(libwarpx.libwarpx_so.warpx_finestLevel()+1): - libwarpx.libwarpx_so.warpx_sett_new(i, self.cur_time) - libwarpx.libwarpx_so.warpx_setistep(i, self.istep) - - callbacks._afterstep() diff --git a/Python/setup.py b/Python/setup.py deleted file mode 100644 index fea89536a..000000000 --- a/Python/setup.py +++ /dev/null @@ -1,65 +0,0 @@ -#!/usr/bin/env python - -# Copyright 2016-2020 Andrew Myers, David Grote, Maxence Thevenet -# Remi Lehe -# -# This file is part of WarpX. -# -# License: BSD-3-Clause-LBNL - - -""" -setup.py file for WarpX -""" - -import argparse -import os -import sys - -from setuptools import setup - -argparser = argparse.ArgumentParser(add_help=False) -argparser.add_argument('--with-libwarpx', type=str, default=None, help='Install libwarpx with the given value as DIM. This option is only used by the GNU makefile build system.') -argparser.add_argument('--with-lib-dir', type=str, default=None, help='Install with all libwarpx* binaries found in a directory.') -args, unknown = argparser.parse_known_args() -sys.argv = [sys.argv[0]] + unknown - -allowed_dims = ["1d", "2d", "3d", "rz"] - -# Allow to control options via environment vars. -# Work-around for https://github.com/pypa/setuptools/issues/1712 -PYWARPX_LIB_DIR = os.environ.get('PYWARPX_LIB_DIR') - -if args.with_libwarpx: - # GNUmake - if args.with_libwarpx not in allowed_dims: - print("WARNING: '%s' is not an allowed WarpX DIM" % args.with_libwarpx) - package_data = {'pywarpx' : ['libwarpx.%s.so' % args.with_libwarpx]} - data_files = [] -elif args.with_lib_dir or PYWARPX_LIB_DIR: - # CMake and Package Managers - package_data = {'pywarpx' : []} - lib_dir = args.with_lib_dir if args.with_lib_dir else PYWARPX_LIB_DIR - my_path = os.path.dirname(os.path.realpath(__file__)) - for dim in allowed_dims: - lib_name = 'libwarpx.%s.so' % dim - lib_path = os.path.join(lib_dir, lib_name) - link_name = os.path.join(my_path, "pywarpx", lib_name) - if os.path.isfile(link_name): - os.remove(link_name) - if os.path.isfile(lib_path) and os.access(lib_path, os.R_OK): - os.symlink(lib_path, link_name) - package_data['pywarpx'].append(lib_name) -else: - package_data = {} - -setup(name = 'pywarpx', - version = '23.04', - packages = ['pywarpx'], - package_dir = {'pywarpx': 'pywarpx'}, - description = """Wrapper of WarpX""", - package_data = package_data, - install_requires = ['numpy', 'picmistandard==0.23.2', 'periodictable'], - python_requires = '>=3.7', - zip_safe=False -) diff --git a/Regression/Checksum/__init__.py b/Regression/Checksum/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/Regression/Checksum/benchmark.py b/Regression/Checksum/benchmark.py deleted file mode 100644 index fbbe44f98..000000000 --- a/Regression/Checksum/benchmark.py +++ /dev/null @@ -1,58 +0,0 @@ -""" -Copyright 2020 - -This file is part of WarpX. - -License: BSD-3-Clause-LBNL -""" - -import json -import os - -import config - - -class Benchmark: - """ - Holds data and functions for referenc benchmark of one checksum test. - """ - - def __init__(self, test_name, data=None): - """ - Benchmark constructor. - Store test name and reference checksum value, either from benchmark - (used for comparison) or from a plotfile (used to reset a benchmark). - - Parameters - ---------- - test_name: string - Name of test, as found between [] in .ini file. - - data: dictionary, optional - Checksum value. - If None, it is read from benchmark. - """ - - self.test_name = test_name - self.json_file = os.path.join(config.benchmark_location, - self.test_name + '.json') - if data is None: - self.data = self.get() - else: - self.data = data - - def reset(self): - """ - Update the benchmark (overwrites reference json file). - """ - with open(self.json_file, 'w') as outfile: - json.dump(self.data, outfile, sort_keys=True, indent=2) - - def get(self): - """ - Read benchmark from reference json file. - """ - with open(self.json_file) as infile: - data = json.load(infile) - - return data diff --git a/Regression/Checksum/benchmarks_json/Deuterium_Deuterium_Fusion_3D.json b/Regression/Checksum/benchmarks_json/Deuterium_Deuterium_Fusion_3D.json deleted file mode 100644 index 0d426c07e..000000000 --- a/Regression/Checksum/benchmarks_json/Deuterium_Deuterium_Fusion_3D.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "deuterium_1": { - "particle_momentum_x": 0.0, - "particle_momentum_y": 0.0, - "particle_momentum_z": 2.63689606713025e-13, - "particle_position_x": 40960140.72983793, - "particle_position_y": 40959772.69310104, - "particle_position_z": 81919021.52308556, - "particle_weight": 1024.000000000021 - }, - "helium3_1": { - "particle_momentum_x": 8.492383942294212e-16, - "particle_momentum_y": 8.507905928154269e-16, - "particle_momentum_z": 8.500197251270117e-16, - "particle_position_x": 151779.74563236872, - "particle_position_y": 152858.5501479658, - "particle_position_z": 322785.7613257161, - "particle_weight": 2.7065032055210726e-28 - }, - "hydrogen2_1": { - "particle_momentum_x": 0.0, - "particle_momentum_y": 0.0, - "particle_momentum_z": 2.63689606713025e-13, - "particle_position_x": 40958301.591654316, - "particle_position_y": 40961136.14476712, - "particle_position_z": 81920546.19181262, - "particle_weight": 1024.000000000021 - }, - "lev=0": { - "rho": 0.0 - }, - "neutron_1": { - "particle_momentum_x": 8.492383942294212e-16, - "particle_momentum_y": 8.507905928154269e-16, - "particle_momentum_z": 8.500197251270117e-16, - "particle_position_x": 151779.74563236872, - "particle_position_y": 152858.5501479658, - "particle_position_z": 322785.7613257161, - "particle_weight": 2.7065032055210726e-28 - } -} diff --git a/Regression/Checksum/benchmarks_json/Deuterium_Deuterium_Fusion_3D_intraspecies.json b/Regression/Checksum/benchmarks_json/Deuterium_Deuterium_Fusion_3D_intraspecies.json deleted file mode 100644 index 1c6af40e1..000000000 --- a/Regression/Checksum/benchmarks_json/Deuterium_Deuterium_Fusion_3D_intraspecies.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "deuterium": { - "particle_momentum_x": 1.3370046499332103e-14, - "particle_momentum_y": 1.3364310231320824e-14, - "particle_momentum_z": 1.3372728873714894e-14, - "particle_position_x": 2560.1613417364665, - "particle_position_y": 2560.082464065988, - "particle_position_z": 2560.0018477161034, - "particle_weight": 7.999999989895393e+17 - }, - "helium3": { - "particle_momentum_x": 2.2800935865848323e-15, - "particle_momentum_y": 2.2864983116288316e-15, - "particle_momentum_z": 2.290487090201156e-15, - "particle_position_x": 62.07326392385665, - "particle_position_y": 62.074468969610855, - "particle_position_z": 62.07087662970013, - "particle_weight": 505230602.2536906 - }, - "lev=0": { - "rho": 0.0, - "rho_deuterium": 8203144355.71876, - "rho_helium3": 10.36119892112141 - }, - "neutron": { - "particle_momentum_x": 2.2625878931428226e-15, - "particle_momentum_y": 2.2652096393691827e-15, - "particle_momentum_z": 2.27105060559148e-15, - "particle_position_x": 62.07326392385665, - "particle_position_y": 62.074468969610855, - "particle_position_z": 62.07087662970013, - "particle_weight": 505230602.2536906 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/Deuterium_Tritium_Fusion_3D.json b/Regression/Checksum/benchmarks_json/Deuterium_Tritium_Fusion_3D.json deleted file mode 100644 index 382c6010c..000000000 --- a/Regression/Checksum/benchmarks_json/Deuterium_Tritium_Fusion_3D.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "deuterium_1": { - "particle_momentum_x": 0.0, - "particle_momentum_y": 0.0, - "particle_momentum_z": 2.8875978729147693e-13, - "particle_position_x": 40960140.72983793, - "particle_position_y": 40959772.69310104, - "particle_position_z": 81919021.52308556, - "particle_weight": 1024.000000000021 - }, - "deuterium_2": { - "particle_momentum_x": 0.0, - "particle_momentum_y": 0.0, - "particle_momentum_z": 3.356807324363973e-14, - "particle_position_x": 4095630.698135355, - "particle_position_y": 4096073.5517983637, - "particle_position_z": 8191737.5566503005, - "particle_weight": 1.0227810240779905e+29 - }, - "helium4_1": { - "particle_momentum_x": 1.7519716491839538e-15, - "particle_momentum_y": 1.7523289312260283e-15, - "particle_momentum_z": 1.7480231586369996e-15, - "particle_position_x": 154379.32401483235, - "particle_position_y": 152618.63815943015, - "particle_position_z": 325970.4138010667, - "particle_weight": 4.421535775967805e-28 - }, - "helium4_2": { - "particle_momentum_x": 1.5330942227771018e-15, - "particle_momentum_y": 1.5328473121602395e-15, - "particle_momentum_z": 1.7635828326228758e-15, - "particle_position_x": 137011.89739173267, - "particle_position_y": 136605.24328988983, - "particle_position_z": 290143.4673994485, - "particle_weight": 5.756530048087129e+18 - }, - "lev=0": { - "rho": 0.0 - }, - "neutron_1": { - "particle_momentum_x": 1.7519716491839538e-15, - "particle_momentum_y": 1.7523289312260283e-15, - "particle_momentum_z": 1.7480231586369996e-15, - "particle_position_x": 154379.32401483235, - "particle_position_y": 152618.63815943015, - "particle_position_z": 325970.4138010667, - "particle_weight": 4.421535775967805e-28 - }, - "neutron_2": { - "particle_momentum_x": 1.5330942227771018e-15, - "particle_momentum_y": 1.5328473121602395e-15, - "particle_momentum_z": 1.549297051563983e-15, - "particle_position_x": 137011.89739173267, - "particle_position_y": 136605.24328988983, - "particle_position_z": 290143.4673994485, - "particle_weight": 5.756530048087129e+18 - }, - "tritium_1": { - "particle_momentum_x": 0.0, - "particle_momentum_y": 0.0, - "particle_momentum_z": 2.8875978729147693e-13, - "particle_position_x": 40958301.591654316, - "particle_position_y": 40961136.14476712, - "particle_position_z": 81920546.19181262, - "particle_weight": 1024.000000000021 - }, - "tritium_2": { - "particle_momentum_x": 0.0, - "particle_momentum_y": 0.0, - "particle_momentum_z": 0.0, - "particle_position_x": 409798.0158217681, - "particle_position_y": 409670.9858143465, - "particle_position_z": 819255.8152412223, - "particle_weight": 1.0239999999424347e+29 - } -} diff --git a/Regression/Checksum/benchmarks_json/Deuterium_Tritium_Fusion_RZ.json b/Regression/Checksum/benchmarks_json/Deuterium_Tritium_Fusion_RZ.json deleted file mode 100644 index 3fb0db8d8..000000000 --- a/Regression/Checksum/benchmarks_json/Deuterium_Tritium_Fusion_RZ.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "deuterium_1": { - "particle_momentum_x": 1.8388106511899905e-13, - "particle_momentum_y": 1.837868790009435e-13, - "particle_momentum_z": 0.0, - "particle_position_x": 40959919.499819286, - "particle_position_y": 81919224.48541151, - "particle_theta": 32166860.23003994, - "particle_weight": 3216.984554806547 - }, - "deuterium_2": { - "particle_momentum_x": 0.0, - "particle_momentum_y": 0.0, - "particle_momentum_z": 3.336364094249911e-14, - "particle_position_x": 4095908.9083809257, - "particle_position_y": 8192069.080030457, - "particle_theta": 3216444.348910214, - "particle_weight": 3.1898417901971444e+29 - }, - "helium4_1": { - "particle_momentum_x": 1.858124399143442e-15, - "particle_momentum_y": 1.876715110797694e-15, - "particle_momentum_z": 1.7098432207359157e-15, - "particle_position_x": 152920.23233108618, - "particle_position_y": 323733.9138644398, - "particle_theta": 120064.13771707338, - "particle_weight": 1.603083276067953e-27 - }, - "helium4_2": { - "particle_momentum_x": 1.5195006688950936e-15, - "particle_momentum_y": 1.52430083815551e-15, - "particle_momentum_z": 1.7654865863613367e-15, - "particle_position_x": 136867.63803188328, - "particle_position_y": 286903.30393175944, - "particle_theta": 107912.20520382549, - "particle_weight": 2.0862696876352987e+19 - }, - "lev=0": { - "rho": 0.0 - }, - "neutron_1": { - "particle_momentum_x": 1.7160671487712845e-15, - "particle_momentum_y": 1.7154753069055672e-15, - "particle_momentum_z": 1.7098432207359157e-15, - "particle_position_x": 152920.23233108618, - "particle_position_y": 323733.9138644398, - "particle_theta": 120064.13771707338, - "particle_weight": 1.603083276067953e-27 - }, - "neutron_2": { - "particle_momentum_x": 1.5195006688950936e-15, - "particle_momentum_y": 1.52430083815551e-15, - "particle_momentum_z": 1.5463311225724366e-15, - "particle_position_x": 136867.63803188328, - "particle_position_y": 286903.30393175944, - "particle_theta": 107912.20520382549, - "particle_weight": 2.0862696876352987e+19 - }, - "tritium_1": { - "particle_momentum_x": 1.8384658063720362e-13, - "particle_momentum_y": 1.8381593257898129e-13, - "particle_momentum_z": 0.0, - "particle_position_x": 40961278.052658774, - "particle_position_y": 81919046.8061561, - "particle_theta": 32163925.891884565, - "particle_weight": 3217.0912552970394 - }, - "tritium_2": { - "particle_momentum_x": 0.0, - "particle_momentum_y": 0.0, - "particle_momentum_z": 0.0, - "particle_position_x": 409793.9651940968, - "particle_position_y": 819237.3558155322, - "particle_theta": 321974.4557387621, - "particle_weight": 3.218514276139388e+29 - } -} diff --git a/Regression/Checksum/benchmarks_json/ElectrostaticSphereEB.json b/Regression/Checksum/benchmarks_json/ElectrostaticSphereEB.json deleted file mode 100644 index b10780ce3..000000000 --- a/Regression/Checksum/benchmarks_json/ElectrostaticSphereEB.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "lev=0": { - "Ex": 93202.36016254006, - "Ey": 93202.36016254005, - "Ez": 93202.36016254005, - "phi": 21758.890981358934, - "rho": 0.0 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/ElectrostaticSphereEB_RZ.json b/Regression/Checksum/benchmarks_json/ElectrostaticSphereEB_RZ.json deleted file mode 100644 index ac137cb37..000000000 --- a/Regression/Checksum/benchmarks_json/ElectrostaticSphereEB_RZ.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "lev=0": { - "Er": 8497.669853722688, - "phi": 2035.6618484435153 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/ElectrostaticSphereEB_RZ_MR.json b/Regression/Checksum/benchmarks_json/ElectrostaticSphereEB_RZ_MR.json deleted file mode 100644 index 74996f211..000000000 --- a/Regression/Checksum/benchmarks_json/ElectrostaticSphereEB_RZ_MR.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "lev=0": { - "Er": 8497.669853733625, - "phi": 2035.6618484451055 - }, - "lev=1": { - "Er": 19546.08010855407, - "phi": 3290.7266050322164 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/ElectrostaticSphereEB_mixedBCs.json b/Regression/Checksum/benchmarks_json/ElectrostaticSphereEB_mixedBCs.json deleted file mode 100644 index 2f0bce356..000000000 --- a/Regression/Checksum/benchmarks_json/ElectrostaticSphereEB_mixedBCs.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "lev=0": { - "Ex": 377516.27292092174, - "Ey": 226043.3936206682, - "Ez": 135194.57567110562, - "phi": 121392.21822320674, - "rho": 0.0 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/ElectrostaticSphereLabFrame.json b/Regression/Checksum/benchmarks_json/ElectrostaticSphereLabFrame.json deleted file mode 100644 index 15d9c0401..000000000 --- a/Regression/Checksum/benchmarks_json/ElectrostaticSphereLabFrame.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "electron": { - "particle_momentum_x": 1.0475215560938395e-23, - "particle_momentum_y": 1.0475215560942127e-23, - "particle_momentum_z": 1.0475215560950524e-23, - "particle_position_x": 524.906527421018, - "particle_position_y": 524.9065274210888, - "particle_position_z": 524.9065274212362, - "particle_weight": 6212.501525878906 - }, - "lev=0": { - "Ex": 6.525895284178821, - "Ey": 6.525895284179916, - "Ez": 6.5258952841836555, - "rho": 2.6092568008333797e-10 - }, - "nbody": { - "particle_momentum_x": 1.0475215560938395e-23, - "particle_momentum_y": 1.0475215560942127e-23, - "particle_momentum_z": 1.0475215560950524e-23, - "particle_position_x": 524.906527421018, - "particle_position_y": 524.9065274210888, - "particle_position_z": 524.9065274212362, - "particle_weight": 6212.501525878906 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/FluxInjection.json b/Regression/Checksum/benchmarks_json/FluxInjection.json deleted file mode 100644 index 5a8059089..000000000 --- a/Regression/Checksum/benchmarks_json/FluxInjection.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "electron": { - "particle_momentum_x": 7.168456345337534e-18, - "particle_momentum_y": 7.02290351254873e-18, - "particle_momentum_z": 9.565641373942318e-42, - "particle_position_x": 6962.988311042427, - "particle_position_y": 2034.5301680154264, - "particle_theta": 6397.068924320389, - "particle_weight": 3.215011942598676e-08 - }, - "lev=0": { - "Bz": 9.526664429810971e-24 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/FluxInjection3D.json b/Regression/Checksum/benchmarks_json/FluxInjection3D.json deleted file mode 100644 index b2b373373..000000000 --- a/Regression/Checksum/benchmarks_json/FluxInjection3D.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "electron": { - "particle_momentum_x": 1.1192116199394354e-18, - "particle_momentum_y": 2.238114590066897e-18, - "particle_momentum_z": 1.1156457989239732e-18, - "particle_position_x": 102495.14197173176, - "particle_position_y": 188132.22608016344, - "particle_position_z": 102423.13701045913, - "particle_weight": 8.959999999999998e-07 - }, - "lev=0": {}, - "proton": { - "particle_momentum_x": 3.835423016604918e-15, - "particle_momentum_y": 2.0468371931479925e-15, - "particle_momentum_z": 2.055186547721331e-15, - "particle_position_x": 189256.1546041931, - "particle_position_y": 102293.00576740496, - "particle_position_z": 102314.93877691089, - "particle_weight": 8.959999999999998e-07 - } -} diff --git a/Regression/Checksum/benchmarks_json/Langmuir_multi.json b/Regression/Checksum/benchmarks_json/Langmuir_multi.json deleted file mode 100644 index 9b8749794..000000000 --- a/Regression/Checksum/benchmarks_json/Langmuir_multi.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 9.638052135794968e-20, - "particle_position_x": 2.6214400000000015, - "particle_position_y": 2.621440000000001, - "particle_position_z": 2.621439999999999, - "particle_weight": 128000000000.00002 - }, - "lev=0": { - "Bx": 12.117994126642934, - "By": 12.117994123978939, - "Bz": 12.117994123975555, - "Ex": 84779179085495.8, - "Ey": 84779179085494.25, - "Ez": 84779179085494.25, - "jx": 6.0874674711604136e+16, - "jy": 6.087467471160617e+16, - "jz": 6.087467471160617e+16, - "part_per_cell": 524288.0, - "rho": 702984842.8211379 - }, - "positrons": { - "particle_momentum_z": 9.638052135795131e-20, - "particle_position_x": 2.6214400000000015, - "particle_position_y": 2.621440000000001, - "particle_position_z": 2.621439999999999 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/Langmuir_multi_1d.json b/Regression/Checksum/benchmarks_json/Langmuir_multi_1d.json deleted file mode 100644 index d3d85c68c..000000000 --- a/Regression/Checksum/benchmarks_json/Langmuir_multi_1d.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 0.0, - "particle_momentum_y": 0.0, - "particle_momentum_z": 1.186531831468082e-22, - "particle_position_x": 2.560000000000000e-03, - "particle_weight": 8.000000000000000e+19 - }, - "lev=0": { - "Bx": 0.0, - "By": 0.0, - "Bz": 0.0, - "Ex": 0.0, - "Ey": 0.0, - "Ez": 1.241536718934408e+11, - "jx": 0.0, - "jy": 0.0, - "jz": 4.745867308790159e+13 - }, - "positrons": { - "particle_momentum_x": 0.0, - "particle_momentum_y": 0.0, - "particle_momentum_z": 1.186531831468082e-22, - "particle_position_x": 2.560000000000001e-03, - "particle_weight": 8.000000000000000e+19 - } -} diff --git a/Regression/Checksum/benchmarks_json/Langmuir_multi_2d_MR.json b/Regression/Checksum/benchmarks_json/Langmuir_multi_2d_MR.json deleted file mode 100644 index 095d64004..000000000 --- a/Regression/Checksum/benchmarks_json/Langmuir_multi_2d_MR.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 4.2444161670627625e-20, - "particle_momentum_y": 0.0, - "particle_momentum_z": 4.2444161670627534e-20, - "particle_position_x": 0.6553600939548604, - "particle_position_y": 0.6553600939548603, - "particle_weight": 3200000000000000.5 - }, - "lev=0": { - "Bx": 0.0, - "By": 29.737451538726013, - "Bz": 0.0, - "Ex": 7573333612867.881, - "Ey": 0.0, - "Ez": 7573333612867.912, - "jx": 7302034873723846.0, - "jy": 0.0, - "jz": 7302034873723940.0 - }, - "lev=1": { - "Bx": 0.0, - "By": 446.4305912221662, - "Bz": 0.0, - "Ex": 7598120399546.991, - "Ey": 0.0, - "Ez": 7598120399547.014, - "jx": 7112353090930550.0, - "jy": 0.0, - "jz": 7112353090930540.0 - }, - "positrons": { - "particle_momentum_x": 4.2442478859032927e-20, - "particle_momentum_y": 0.0, - "particle_momentum_z": 4.2442478859032854e-20, - "particle_position_x": 0.6553594719127074, - "particle_position_y": 0.6553594719127074, - "particle_weight": 3200000000000000.5 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/Langmuir_multi_2d_MR_anisotropic.json b/Regression/Checksum/benchmarks_json/Langmuir_multi_2d_MR_anisotropic.json deleted file mode 100644 index 73dd91057..000000000 --- a/Regression/Checksum/benchmarks_json/Langmuir_multi_2d_MR_anisotropic.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 4.2405874432036894e-20, - "particle_momentum_y": 0.0, - "particle_momentum_z": 4.244580453138521e-20, - "particle_position_x": 0.6553598605721321, - "particle_position_y": 0.6553603207806843, - "particle_weight": 3200000000000000.5 - }, - "lev=0": { - "Bx": 0.0, - "By": 23.062372881797263, - "Bz": 0.0, - "Ex": 7577963733795.349, - "Ey": 0.0, - "Ez": 7570635848192.088, - "jx": 7295313940906670.0, - "jy": 0.0, - "jz": 7305416311341798.0 - }, - "lev=1": { - "Bx": 0.0, - "By": 56.70499647861526, - "Bz": 0.0, - "Ex": 4604568214719.308, - "Ey": 0.0, - "Ez": 7016601565205.127, - "jx": 4490296323381386.5, - "jy": 0.0, - "jz": 6836265054152690.0 - }, - "positrons": { - "particle_momentum_x": 4.240270916979087e-20, - "particle_momentum_y": 0.0, - "particle_momentum_z": 4.244576791252681e-20, - "particle_position_x": 0.6553596773141027, - "particle_position_y": 0.6553596834187275, - "particle_weight": 3200000000000000.5 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/Langmuir_multi_2d_MR_psatd.json b/Regression/Checksum/benchmarks_json/Langmuir_multi_2d_MR_psatd.json deleted file mode 100644 index c8efb55f6..000000000 --- a/Regression/Checksum/benchmarks_json/Langmuir_multi_2d_MR_psatd.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 4.238116934276727e-20, - "particle_momentum_y": 0.0, - "particle_momentum_z": 4.238116918188906e-20, - "particle_position_x": 0.6553600150461454, - "particle_position_y": 0.6553600150453582, - "particle_weight": 3200000000000000.5 - }, - "lev=0": { - "Bx": 0.0, - "By": 48.481624783762086, - "Bz": 0.0, - "Ex": 7589841440058.995, - "Ey": 0.0, - "Ez": 7589841451955.45, - "jx": 7282092285786011.0, - "jy": 0.0, - "jz": 7282092252988784.0 - }, - "lev=1": { - "Bx": 0.0, - "By": 376.07845874193026, - "Bz": 0.0, - "Ex": 7595314624325.873, - "Ey": 0.0, - "Ez": 7595314408918.084, - "jx": 6594445628310054.0, - "jy": 0.0, - "jz": 6594445442498818.0 - }, - "positrons": { - "particle_momentum_x": 4.2380886359427404e-20, - "particle_momentum_y": 0.0, - "particle_momentum_z": 4.2380886149634417e-20, - "particle_position_x": 0.6553596427220252, - "particle_position_y": 0.6553596427227213, - "particle_weight": 3200000000000000.5 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/Langmuir_multi_2d_nodal.json b/Regression/Checksum/benchmarks_json/Langmuir_multi_2d_nodal.json deleted file mode 100644 index dd5981451..000000000 --- a/Regression/Checksum/benchmarks_json/Langmuir_multi_2d_nodal.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 5.668407421680403e-20, - "particle_momentum_y": 0.0, - "particle_momentum_z": 5.668407421680403e-20, - "particle_position_x": 0.65536, - "particle_position_y": 0.65536, - "particle_weight": 3200000000000000.5 - }, - "lev=0": { - "Bx": 0.0, - "By": 5.7247150652267145, - "Bz": 0.0, - "Ex": 3747060680620.4976, - "Ey": 0.0, - "Ez": 3747060680620.5044, - "jx": 1.0088447948876688e+16, - "jy": 0.0, - "jz": 1.0088447948876688e+16 - }, - "positrons": { - "particle_momentum_x": 5.668407421680403e-20, - "particle_momentum_y": 0.0, - "particle_momentum_z": 5.668407421680403e-20, - "particle_position_x": 0.65536, - "particle_position_y": 0.65536, - "particle_weight": 3200000000000000.5 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/Langmuir_multi_2d_psatd.json b/Regression/Checksum/benchmarks_json/Langmuir_multi_2d_psatd.json deleted file mode 100644 index 85a09296e..000000000 --- a/Regression/Checksum/benchmarks_json/Langmuir_multi_2d_psatd.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 5.663705661977914e-20, - "particle_momentum_y": 0.0, - "particle_momentum_z": 5.663705661977915e-20, - "particle_position_x": 0.65536, - "particle_position_y": 0.6553599999999999, - "particle_weight": 3200000000000000.5 - }, - "lev=0": { - "Ex": 3771082811318.298, - "Ey": 0.0, - "Ez": 3771082811318.301, - "jx": 1.009365330460902e+16, - "jy": 0.0, - "jz": 1.009365330460902e+16, - "part_per_cell": 131072.0 - }, - "positrons": { - "particle_momentum_x": 5.663705661977916e-20, - "particle_momentum_y": 0.0, - "particle_momentum_z": 5.663705661977916e-20, - "particle_position_x": 0.65536, - "particle_position_y": 0.65536, - "particle_weight": 3200000000000000.5 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/Langmuir_multi_2d_psatd_Vay_deposition.json b/Regression/Checksum/benchmarks_json/Langmuir_multi_2d_psatd_Vay_deposition.json deleted file mode 100644 index 8432749d4..000000000 --- a/Regression/Checksum/benchmarks_json/Langmuir_multi_2d_psatd_Vay_deposition.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 5.658186803930172e-20, - "particle_momentum_y": 0.0, - "particle_momentum_z": 5.658186803930155e-20, - "particle_position_x": 0.6553599999788609, - "particle_position_y": 0.6553599999788607, - "particle_weight": 3200000000000000.5 - }, - "lev=0": { - "Ex": 3797035574560.914, - "Ey": 0.0, - "Ez": 3797035574560.8794, - "divE": 2.3832824143938806e+18, - "jx": 1.0086760139864004e+16, - "jy": 0.0, - "jz": 1.0086760139863968e+16, - "part_per_cell": 131072.0, - "rho": 21102030.143033154 - }, - "positrons": { - "particle_momentum_x": 5.658186803929877e-20, - "particle_momentum_y": 0.0, - "particle_momentum_z": 5.658186803929859e-20, - "particle_position_x": 0.6553599999788606, - "particle_position_y": 0.6553599999788606, - "particle_weight": 3200000000000000.5 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/Langmuir_multi_2d_psatd_Vay_deposition_nodal.json b/Regression/Checksum/benchmarks_json/Langmuir_multi_2d_psatd_Vay_deposition_nodal.json deleted file mode 100644 index e64a89c82..000000000 --- a/Regression/Checksum/benchmarks_json/Langmuir_multi_2d_psatd_Vay_deposition_nodal.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 5.666970898482199e-20, - "particle_momentum_y": 0.0, - "particle_momentum_z": 5.66697089848221e-20, - "particle_position_x": 0.6553599999237205, - "particle_position_y": 0.6553599999237206, - "particle_weight": 3200000000000000.5 - }, - "lev=0": { - "Ex": 3754853575643.574, - "Ey": 0.0, - "Ez": 3754853575643.567, - "divE": 2.3596319335712364e+18, - "jx": 1.0088299037724636e+16, - "jy": 0.0, - "jz": 1.0088299037724648e+16, - "part_per_cell": 131072.0, - "rho": 20892624.354944542 - }, - "positrons": { - "particle_momentum_x": 5.666970898481952e-20, - "particle_momentum_y": 0.0, - "particle_momentum_z": 5.666970898481963e-20, - "particle_position_x": 0.6553599999237211, - "particle_position_y": 0.6553599999237212, - "particle_weight": 3200000000000000.5 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/Langmuir_multi_2d_psatd_current_correction.json b/Regression/Checksum/benchmarks_json/Langmuir_multi_2d_psatd_current_correction.json deleted file mode 100644 index a18e0398b..000000000 --- a/Regression/Checksum/benchmarks_json/Langmuir_multi_2d_psatd_current_correction.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 5.658193607299875e-20, - "particle_momentum_y": 0.0, - "particle_momentum_z": 5.658193607299919e-20, - "particle_position_x": 0.65536, - "particle_position_y": 0.65536, - "particle_weight": 3200000000000000.5 - }, - "lev=0": { - "Ex": 3797003259305.1904, - "Ey": 0.0, - "Ez": 3797003259305.2344, - "divE": 2.383282496736726e+18, - "jx": 1.0086760816184212e+16, - "jy": 0.0, - "jz": 1.0086760816184312e+16, - "part_per_cell": 131072.0, - "rho": 21102030.83706584 - }, - "positrons": { - "particle_momentum_x": 5.658193607299875e-20, - "particle_momentum_y": 0.0, - "particle_momentum_z": 5.658193607299919e-20, - "particle_position_x": 0.65536, - "particle_position_y": 0.65536, - "particle_weight": 3200000000000000.5 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/Langmuir_multi_2d_psatd_current_correction_nodal.json b/Regression/Checksum/benchmarks_json/Langmuir_multi_2d_psatd_current_correction_nodal.json deleted file mode 100644 index 36af7de92..000000000 --- a/Regression/Checksum/benchmarks_json/Langmuir_multi_2d_psatd_current_correction_nodal.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 5.666933339402305e-20, - "particle_momentum_y": 0.0, - "particle_momentum_z": 5.66693333940231e-20, - "particle_position_x": 0.65536, - "particle_position_y": 0.65536, - "particle_weight": 3200000000000000.5 - }, - "lev=0": { - "Ex": 3754823063509.187, - "Ey": 0.0, - "Ez": 3754823063509.1787, - "divE": 2.3596320673507973e+18, - "jx": 1.0088801837356758e+16, - "jy": 0.0, - "jz": 1.008880183735675e+16, - "part_per_cell": 131072.0, - "rho": 20892625.49342951 - }, - "positrons": { - "particle_momentum_x": 5.666933339402305e-20, - "particle_momentum_y": 0.0, - "particle_momentum_z": 5.66693333940231e-20, - "particle_position_x": 0.6553599999999999, - "particle_position_y": 0.65536, - "particle_weight": 3200000000000000.5 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/Langmuir_multi_2d_psatd_momentum_conserving.json b/Regression/Checksum/benchmarks_json/Langmuir_multi_2d_psatd_momentum_conserving.json deleted file mode 100644 index 5c9ac8b98..000000000 --- a/Regression/Checksum/benchmarks_json/Langmuir_multi_2d_psatd_momentum_conserving.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 5.67689426271667e-20, - "particle_momentum_y": 0.0, - "particle_momentum_z": 5.67689426271667e-20, - "particle_position_x": 0.6553599999999999, - "particle_position_y": 0.65536, - "particle_weight": 3200000000000000.5 - }, - "lev=0": { - "Ex": 3704881857285.2974, - "Ey": 0.0, - "Ez": 3704881857285.295, - "jx": 1.0113762708404172e+16, - "jy": 0.0, - "jz": 1.0113762708404174e+16, - "part_per_cell": 131072.0 - }, - "positrons": { - "particle_momentum_x": 5.676894262716672e-20, - "particle_momentum_y": 0.0, - "particle_momentum_z": 5.676894262716671e-20, - "particle_position_x": 0.65536, - "particle_position_y": 0.65536, - "particle_weight": 3200000000000000.5 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/Langmuir_multi_2d_psatd_multiJ.json b/Regression/Checksum/benchmarks_json/Langmuir_multi_2d_psatd_multiJ.json deleted file mode 100644 index c342d9dca..000000000 --- a/Regression/Checksum/benchmarks_json/Langmuir_multi_2d_psatd_multiJ.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 5.663705657675969e-20, - "particle_momentum_y": 0.0, - "particle_momentum_z": 5.663705657675969e-20, - "particle_position_x": 0.65536, - "particle_position_y": 0.65536, - "particle_weight": 3200000000000000.5 - }, - "lev=0": { - "Bx": 0.0, - "By": 3.4892704618136277, - "Bz": 0.0, - "Ex": 3771082786646.7104, - "Ey": 0.0, - "Ez": 3771082786646.702, - "jx": 1.0093631772735916e+16, - "jy": 0.0, - "jz": 1.0093631772735912e+16 - }, - "positrons": { - "particle_momentum_x": 5.663705657675971e-20, - "particle_momentum_y": 0.0, - "particle_momentum_z": 5.663705657675969e-20, - "particle_position_x": 0.65536, - "particle_position_y": 0.65536, - "particle_weight": 3200000000000000.5 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/Langmuir_multi_2d_psatd_multiJ_nodal.json b/Regression/Checksum/benchmarks_json/Langmuir_multi_2d_psatd_multiJ_nodal.json deleted file mode 100644 index 2aaa9e0f2..000000000 --- a/Regression/Checksum/benchmarks_json/Langmuir_multi_2d_psatd_multiJ_nodal.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 5.668409581183492e-20, - "particle_momentum_y": 0.0, - "particle_momentum_z": 5.668409581183495e-20, - "particle_position_x": 0.6553600000004717, - "particle_position_y": 0.6553600000004718, - "particle_weight": 3200000000000000.5 - }, - "lev=0": { - "Bx": 0.0, - "By": 5.634624433795568, - "Bz": 0.0, - "Ex": 3747068321640.6587, - "Ey": 0.0, - "Ez": 3747068321640.659, - "jx": 1.0088430505673088e+16, - "jy": 0.0, - "jz": 1.0088430505673096e+16 - }, - "positrons": { - "particle_momentum_x": 5.668409581183492e-20, - "particle_momentum_y": 0.0, - "particle_momentum_z": 5.668409581183495e-20, - "particle_position_x": 0.6553600000004718, - "particle_position_y": 0.6553600000004717, - "particle_weight": 3200000000000000.5 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/Langmuir_multi_2d_psatd_nodal.json b/Regression/Checksum/benchmarks_json/Langmuir_multi_2d_psatd_nodal.json deleted file mode 100644 index f8280a5af..000000000 --- a/Regression/Checksum/benchmarks_json/Langmuir_multi_2d_psatd_nodal.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 0.0000000000000000000566840960132865884291, - "particle_momentum_y": 0.0, - "particle_momentum_z": 0.0000000000000000000566840960132866125032, - "particle_position_x": 0.6553600000000067, - "particle_position_y": 0.65536, - "particle_weight": 3200000000000000.5 - }, - "lev=0": { - "Ex": 3747068267079.476562500000000000000000000000000000000, - "Ey": 0.0, - "Ez": 3747068267079.4794921875000000000000000000000000000000, - "jx": 10088452031730032.0, - "jy": 0.0, - "jz": 10088452031730036.0, - "part_per_cell": 131072.0 - }, - "positrons": { - "particle_momentum_x": 0.0000000000000000000566840960132865884291, - "particle_momentum_y": 0.0, - "particle_momentum_z": 0.0000000000000000000566840960132866125032, - "particle_position_x": 0.6553599999999925, - "particle_position_y": 0.65536, - "particle_weight": 3200000000000000.5 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/Langmuir_multi_nodal.json b/Regression/Checksum/benchmarks_json/Langmuir_multi_nodal.json deleted file mode 100644 index c238fe323..000000000 --- a/Regression/Checksum/benchmarks_json/Langmuir_multi_nodal.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 9.320505021180255e-20, - "particle_position_x": 2.6214400000000015, - "particle_position_y": 2.621440000000001, - "particle_position_z": 2.62144, - "particle_weight": 128000000000.00002 - }, - "lev=0": { - "Bx": 17.676894813109854, - "By": 17.676894813153126, - "Bz": 17.676894813151755, - "Ex": 86079763484213.75, - "Ey": 86079763484213.8, - "Ez": 86079763484213.8, - "jx": 5.8033819010902744e+16, - "jy": 5.803381901090282e+16, - "jz": 5.80338190109028e+16, - "part_per_cell": 524288.0, - "rho": 720713352.0721645 - }, - "positrons": { - "particle_momentum_z": 9.320505021180262e-20, - "particle_position_x": 2.6214400000000015, - "particle_position_y": 2.621440000000001, - "particle_position_z": 2.62144 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/Langmuir_multi_psatd.json b/Regression/Checksum/benchmarks_json/Langmuir_multi_psatd.json deleted file mode 100644 index 16cf17ccf..000000000 --- a/Regression/Checksum/benchmarks_json/Langmuir_multi_psatd.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 9.638052089521077e-20, - "particle_position_x": 2.621440000001177, - "particle_position_y": 2.6214400000011775, - "particle_position_z": 2.6214399999999993, - "particle_weight": 128000000000.00002 - }, - "lev=0": { - "Bx": 11.927039845227213, - "By": 11.927039844199939, - "Bz": 11.929384159260351, - "Ex": 84779189324213.69, - "Ey": 84779189324214.39, - "Ez": 84779185898697.1, - "jx": 6.087467486148589e+16, - "jy": 6.0874674861486456e+16, - "jz": 6.087467417357445e+16, - "part_per_cell": 524288.0, - "rho": 702985675.035942 - }, - "positrons": { - "particle_momentum_z": 9.638051954986328e-20, - "particle_position_x": 2.621440000001177, - "particle_position_y": 2.6214400000011775, - "particle_position_z": 2.6214399999999993 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/Langmuir_multi_psatd_Vay_deposition.json b/Regression/Checksum/benchmarks_json/Langmuir_multi_psatd_Vay_deposition.json deleted file mode 100644 index 572de8a92..000000000 --- a/Regression/Checksum/benchmarks_json/Langmuir_multi_psatd_Vay_deposition.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 9.585539139113931e-20, - "particle_position_x": 2.6214399997952404, - "particle_position_y": 2.621439999795239, - "particle_position_z": 2.621439999795239, - "particle_weight": 128000000000.00002 - }, - "lev=0": { - "Ex": 85001114888425.12, - "Ey": 85001114888425.75, - "Ez": 85001114888425.73, - "divE": 7.973210305462547e+19, - "jx": 6.040069098010597e+16, - "jy": 6.040069098010587e+16, - "jz": 6.0400690980105864e+16, - "part_per_cell": 524288.0, - "rho": 705963001.725649 - }, - "positrons": { - "particle_momentum_z": 9.585539139113883e-20, - "particle_position_x": 2.62143999979524, - "particle_position_y": 2.621439999795239, - "particle_position_z": 2.62143999979524 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/Langmuir_multi_psatd_Vay_deposition_nodal.json b/Regression/Checksum/benchmarks_json/Langmuir_multi_psatd_Vay_deposition_nodal.json deleted file mode 100644 index ad31874e5..000000000 --- a/Regression/Checksum/benchmarks_json/Langmuir_multi_psatd_Vay_deposition_nodal.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 9.427713066308164e-20, - "particle_position_x": 2.6214399995477025, - "particle_position_y": 2.6214399995477025, - "particle_position_z": 2.6214399995477042, - "particle_weight": 128000000000.00002 - }, - "lev=0": { - "Ex": 85655005045127.23, - "Ey": 85655005045128.14, - "Ez": 85655005045128.12, - "divE": 8.073511037713592e+19, - "jx": 5.89843869458137e+16, - "jy": 5.898438694581414e+16, - "jz": 5.8984386945814104e+16, - "part_per_cell": 524288.0, - "rho": 714843772.0666525 - }, - "positrons": { - "particle_momentum_z": 9.427713066308154e-20, - "particle_position_x": 2.621439999547702, - "particle_position_y": 2.621439999547702, - "particle_position_z": 2.621439999547704 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/Langmuir_multi_psatd_current_correction.json b/Regression/Checksum/benchmarks_json/Langmuir_multi_psatd_current_correction.json deleted file mode 100644 index 507310876..000000000 --- a/Regression/Checksum/benchmarks_json/Langmuir_multi_psatd_current_correction.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 9.585443561416955e-20, - "particle_position_x": 2.6214400000000015, - "particle_position_y": 2.621440000000001, - "particle_position_z": 2.6214400000000007, - "particle_weight": 128000000000.00002 - }, - "lev=0": { - "Bx": 11.867039021156515, - "By": 11.867039023030747, - "Bz": 11.86703902301321, - "Ex": 85001549445049.31, - "Ey": 85001549445049.1, - "Ez": 85001549445049.03, - "divE": 7.973211894673711e+19, - "jx": 6.039975327566508e+16, - "jy": 6.0399753275670344e+16, - "jz": 6.0399753275670344e+16, - "part_per_cell": 524288.0, - "rho": 705963155.8669195 - }, - "positrons": { - "particle_momentum_z": 9.585443561417127e-20, - "particle_position_x": 2.6214400000000015, - "particle_position_y": 2.621440000000001, - "particle_position_z": 2.6214400000000007 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/Langmuir_multi_psatd_current_correction_nodal.json b/Regression/Checksum/benchmarks_json/Langmuir_multi_psatd_current_correction_nodal.json deleted file mode 100644 index 963e3584d..000000000 --- a/Regression/Checksum/benchmarks_json/Langmuir_multi_psatd_current_correction_nodal.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 9.427560628857219e-20, - "particle_position_x": 2.6214400000000015, - "particle_position_y": 2.621440000000001, - "particle_position_z": 2.6214400000000007, - "particle_weight": 128000000000.00002 - }, - "lev=0": { - "Bx": 17.499962450597717, - "By": 17.49996245066815, - "Bz": 17.49996245067805, - "Ex": 85654801282823.56, - "Ey": 85654801282823.42, - "Ez": 85654801282823.39, - "divE": 8.073511503598928e+19, - "jx": 5.898369386936786e+16, - "jy": 5.898369386936582e+16, - "jz": 5.898369386936586e+16, - "part_per_cell": 524288.0, - "rho": 714843871.6166623 - }, - "positrons": { - "particle_momentum_z": 9.4275606288572e-20, - "particle_position_x": 2.6214400000000015, - "particle_position_y": 2.621440000000001, - "particle_position_z": 2.6214400000000007 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/Langmuir_multi_psatd_div_cleaning.json b/Regression/Checksum/benchmarks_json/Langmuir_multi_psatd_div_cleaning.json deleted file mode 100644 index c9339aeb1..000000000 --- a/Regression/Checksum/benchmarks_json/Langmuir_multi_psatd_div_cleaning.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 9.520485222844096e-20, - "particle_position_x": 2.6214400000233367, - "particle_position_y": 2.6214400000233367, - "particle_position_z": 2.6214400000000007, - "particle_weight": 128000000000.00002 - }, - "lev=0": { - "Bx": 78.90261993791012, - "By": 78.90261993794903, - "Bz": 78.9041393998435, - "Ex": 84580428018688.97, - "Ey": 84580428018688.73, - "Ez": 84580441923246.2, - "F": 685.6927382678912, - "divE": 7.94184911020468e+19, - "jx": 6.007457695701311e+16, - "jy": 6.007457695701312e+16, - "jz": 6.007453636158103e+16, - "part_per_cell": 524288.0, - "rho": 705198439.2596256 - }, - "positrons": { - "particle_momentum_z": 9.520479438980041e-20, - "particle_position_x": 2.6214400000233367, - "particle_position_y": 2.6214400000233358, - "particle_position_z": 2.62144 - } -} diff --git a/Regression/Checksum/benchmarks_json/Langmuir_multi_psatd_momentum_conserving.json b/Regression/Checksum/benchmarks_json/Langmuir_multi_psatd_momentum_conserving.json deleted file mode 100644 index 7c3125c10..000000000 --- a/Regression/Checksum/benchmarks_json/Langmuir_multi_psatd_momentum_conserving.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 9.320946069540143e-20, - "particle_position_x": 2.621440000001092, - "particle_position_y": 2.621440000001092, - "particle_position_z": 2.6214400000000007, - "particle_weight": 128000000000.00002 - }, - "lev=0": { - "Bx": 15.086832321576074, - "By": 15.086832322078731, - "Bz": 15.088654326228205, - "Ex": 86081132505207.28, - "Ey": 86081132505207.11, - "Ez": 86081129726414.66, - "jx": 5.859963704786842e+16, - "jy": 5.859963704786908e+16, - "jz": 5.85996371714085e+16, - "part_per_cell": 524288.0, - "rho": 720713531.8440464 - }, - "positrons": { - "particle_momentum_z": 9.320946058879026e-20, - "particle_position_x": 2.621440000001092, - "particle_position_y": 2.621440000001092, - "particle_position_z": 2.6214400000000007 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/Langmuir_multi_psatd_multiJ.json b/Regression/Checksum/benchmarks_json/Langmuir_multi_psatd_multiJ.json deleted file mode 100644 index 487d4a898..000000000 --- a/Regression/Checksum/benchmarks_json/Langmuir_multi_psatd_multiJ.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 9.633869745818886e-20, - "particle_position_x": 2.621440000001177, - "particle_position_y": 2.6214400000011784, - "particle_position_z": 2.6214400000000007, - "particle_weight": 128000000000.00002 - }, - "lev=0": { - "Bx": 80.96035538655111, - "By": 80.96035538657691, - "Bz": 80.96271445263956, - "Ex": 84777489275096.88, - "Ey": 84777489275096.88, - "Ez": 84777485856239.4, - "jx": 6.08447015360442e+16, - "jy": 6.084470153604425e+16, - "jz": 6.084470085554113e+16, - "part_per_cell": 524288.0, - "rho": 703546536.8089281 - }, - "positrons": { - "particle_momentum_z": 9.63386961193585e-20, - "particle_position_x": 2.621440000001177, - "particle_position_y": 2.621440000001179, - "particle_position_z": 2.6214400000000007 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/Langmuir_multi_psatd_multiJ_nodal.json b/Regression/Checksum/benchmarks_json/Langmuir_multi_psatd_multiJ_nodal.json deleted file mode 100644 index e97556e55..000000000 --- a/Regression/Checksum/benchmarks_json/Langmuir_multi_psatd_multiJ_nodal.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 9.320515980761094e-20, - "particle_position_x": 2.6214400000000015, - "particle_position_y": 2.621440000000001, - "particle_position_z": 2.6214400000000007, - "particle_weight": 128000000000.00002 - }, - "lev=0": { - "Bx": 17.319790986722108, - "By": 17.319790986747606, - "Bz": 17.319790986759728, - "Ex": 86079985956930.31, - "Ey": 86079985956930.3, - "Ez": 86079985956930.31, - "jx": 5.8033630197761816e+16, - "jy": 5.803363019776185e+16, - "jz": 5.803363019776182e+16, - "part_per_cell": 524288.0, - "rho": 720717041.7116292 - }, - "positrons": { - "particle_momentum_z": 9.320515980761093e-20, - "particle_position_x": 2.6214400000000015, - "particle_position_y": 2.621440000000001, - "particle_position_z": 2.6214400000000007 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/Langmuir_multi_psatd_nodal.json b/Regression/Checksum/benchmarks_json/Langmuir_multi_psatd_nodal.json deleted file mode 100644 index 3241cbb01..000000000 --- a/Regression/Checksum/benchmarks_json/Langmuir_multi_psatd_nodal.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 9.320515824756692e-20, - "particle_position_x": 2.6214400000000015, - "particle_position_y": 2.621440000000001, - "particle_position_z": 2.6214400000000007, - "particle_weight": 128000000000.00002 - }, - "lev=0": { - "Bx": 17.318873635475775, - "By": 17.31887363546676, - "Bz": 17.31887363550675, - "Ex": 86079988542491.8, - "Ey": 86079988542491.78, - "Ez": 86079988542491.77, - "jx": 5.8033877721263256e+16, - "jy": 5.803387772126333e+16, - "jz": 5.803387772126333e+16, - "part_per_cell": 524288.0, - "rho": 720717032.8077942 - }, - "positrons": { - "particle_momentum_z": 9.320515824756704e-20, - "particle_position_x": 2.6214400000000015, - "particle_position_y": 2.621440000000001, - "particle_position_z": 2.62144 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/Langmuir_multi_psatd_single_precision.json b/Regression/Checksum/benchmarks_json/Langmuir_multi_psatd_single_precision.json deleted file mode 100644 index dcc093ed7..000000000 --- a/Regression/Checksum/benchmarks_json/Langmuir_multi_psatd_single_precision.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 9.638045709465868e-20, - "particle_position_x": 2.62143994388461, - "particle_position_y": 2.621439958560387, - "particle_position_z": 2.6214399584409023, - "particle_weight": 127999991808.0 - }, - "lev=0": { - "Bx": 11.95347876738498, - "By": 11.956506397748562, - "Bz": 11.952493572239355, - "Ex": 84779212317896.12, - "Ey": 84779216019354.88, - "Ez": 84779165259258.0, - "jx": 6.087463260557299e+16, - "jy": 6.087464639979942e+16, - "jz": 6.087466379301542e+16, - "part_per_cell": 524288.0, - "rho": 702976367.7089844 - }, - "positrons": { - "particle_momentum_z": 9.638049808110674e-20, - "particle_position_x": 2.6214399436821623, - "particle_position_y": 2.621439958363709, - "particle_position_z": 2.6214399583751913 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/Langmuir_multi_rz.json b/Regression/Checksum/benchmarks_json/Langmuir_multi_rz.json deleted file mode 100644 index ee9116ddc..000000000 --- a/Regression/Checksum/benchmarks_json/Langmuir_multi_rz.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 3.3349650061056196e-21, - "particle_momentum_y": 3.2990576328124603e-21, - "particle_momentum_z": 7.085667540713606e-21, - "particle_position_x": 0.5290008445390881, - "particle_position_y": 0.5888000000000001, - "particle_theta": 92567.14922134153, - "particle_weight": 81147583679.15044 - }, - "ions": { - "particle_momentum_x": 1.6890660557011582e-20, - "particle_momentum_y": 1.7009184228847044e-20, - "particle_momentum_z": 3.6847066231377934e-20, - "particle_position_x": 0.5290000037284651, - "particle_position_y": 0.5888, - "particle_theta": 92226.7032984177, - "particle_weight": 81147583679.15044 - }, - "lev=0": { - "Bt": 11.642563224192484, - "Er": 1290320281608.1401, - "Ez": 1798383207925.8538, - "jr": 252864052683984.7, - "jz": 347280901370211.1 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/Langmuir_multi_rz_psatd.json b/Regression/Checksum/benchmarks_json/Langmuir_multi_rz_psatd.json deleted file mode 100644 index 820d27469..000000000 --- a/Regression/Checksum/benchmarks_json/Langmuir_multi_rz_psatd.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 3.502576717735575e-36, - "particle_momentum_y": 1.995710600103566e-20, - "particle_momentum_z": 2.781227135136397e-20, - "particle_position_x": 0.5289997910724913, - "particle_position_y": 0.5888, - "particle_theta": 92488.48772168353, - "particle_weight": 81147583679.15044 - }, - "ions": { - "particle_momentum_x": 2.4000043922654972e-36, - "particle_momentum_y": 1.5421720860618713e-21, - "particle_momentum_z": 1.9917112673345277e-21, - "particle_position_x": 0.529000009838682, - "particle_position_y": 0.5888000000000001, - "particle_theta": 92488.48772168353, - "particle_weight": 81147583679.15044 - }, - "lev=0": { - "Bt": 6.6384663612246975, - "Er": 482850037231.6161, - "Ez": 665616861726.1179, - "jr": 894824890894164.5, - "jz": 1250754371134109.2 - } -} diff --git a/Regression/Checksum/benchmarks_json/Langmuir_multi_rz_psatd_current_correction.json b/Regression/Checksum/benchmarks_json/Langmuir_multi_rz_psatd_current_correction.json deleted file mode 100644 index efda7d7c8..000000000 --- a/Regression/Checksum/benchmarks_json/Langmuir_multi_rz_psatd_current_correction.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 2.934317758193371e-36, - "particle_momentum_y": 2.0033716426653923e-20, - "particle_momentum_z": 2.785324114261674e-20, - "particle_position_x": 0.5290000114309512, - "particle_position_y": 0.5888000690527484, - "particle_theta": 92488.48772168353, - "particle_weight": 81147583679.15044 - }, - "ions": { - "particle_momentum_x": 1.2283647867389811e-36, - "particle_momentum_y": 1.4765381278751517e-21, - "particle_momentum_z": 1.950552694046359e-21, - "particle_position_x": 0.5290000097195765, - "particle_position_y": 0.5887999999975628, - "particle_theta": 92488.48772168353, - "particle_weight": 81147583679.15044 - }, - "lev=0": { - "Bt": 6.632261581204185, - "Er": 478937338832.8667, - "Ez": 662607529111.85, - "divE": 4.3558084351631194e+17, - "jr": 893968704248381.0, - "jz": 1251505252231324.5, - "rho": 3856714.5961512723 - } -} diff --git a/Regression/Checksum/benchmarks_json/Langmuir_multi_rz_psatd_multiJ.json b/Regression/Checksum/benchmarks_json/Langmuir_multi_rz_psatd_multiJ.json deleted file mode 100644 index 6ba182814..000000000 --- a/Regression/Checksum/benchmarks_json/Langmuir_multi_rz_psatd_multiJ.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 2.8457118087033763e-20, - "particle_momentum_y": 2.8457118087033763e-20, - "particle_momentum_z": 5.593444724391368e-20, - "particle_position_x": 1.0579996345238136, - "particle_position_y": 1.1776000000000002, - "particle_theta": 184976.97544336706, - "particle_weight": 81147583679.15044 - }, - "ions": { - "particle_momentum_x": 1.96023307304804e-21, - "particle_momentum_y": 1.9602330730480405e-21, - "particle_momentum_z": 3.672982426891405e-21, - "particle_position_x": 1.0580000196075106, - "particle_position_y": 1.1776, - "particle_theta": 184976.97544336706, - "particle_weight": 81147583679.15044 - }, - "lev=0": { - "Bt": 5.367231023016254, - "Er": 456121788659.2861, - "Ez": 639548611111.296, - "jr": 901414924550968.9, - "jz": 1256864596867525.0 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/Langmuir_multi_single_precision.json b/Regression/Checksum/benchmarks_json/Langmuir_multi_single_precision.json deleted file mode 100644 index bb70d174d..000000000 --- a/Regression/Checksum/benchmarks_json/Langmuir_multi_single_precision.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 9.638051562769613e-20, - "particle_position_x": 2.6214399438150053, - "particle_position_y": 2.6214399584161185, - "particle_position_z": 2.6214399583989803, - "particle_weight": 127999991808.0 - }, - "lev=0": { - "Bx": 12.109887875147276, - "By": 12.125715573616775, - "Bz": 12.125948326727316, - "Ex": 84779167876743.25, - "Ey": 84779165339836.62, - "Ez": 84779165393686.75, - "jx": 6.087466771904205e+16, - "jy": 6.087467618257216e+16, - "jz": 6.087467619117261e+16, - "part_per_cell": 524288.0, - "rho": 702979960.0039062 - }, - "positrons": { - "particle_momentum_z": 9.638052792830909e-20, - "particle_position_x": 2.621439943478805, - "particle_position_y": 2.621439958297998, - "particle_position_z": 2.621439958286288 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/Larmor.json b/Regression/Checksum/benchmarks_json/Larmor.json deleted file mode 100644 index c20340345..000000000 --- a/Regression/Checksum/benchmarks_json/Larmor.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "electron": { - "particle_momentum_x": 1.2084126370460285e-22, - "particle_momentum_y": 0.0, - "particle_momentum_z": 1.1345273207159581e-23, - "particle_position_x": 0.09074573887778206, - "particle_position_y": 1.2457901521211143, - "particle_weight": 1000000000000.0 - }, - "lev=0": { - "Bx": 0.0, - "By": 0.0025058756660113393, - "Bz": 0.0, - "Ex": 940940.2906508234, - "Ey": 0.0, - "Ez": 675442.3304865547, - "divB": 0.0, - "divE": 9010500.601059087, - "jx": 9956.26936533879, - "jy": 0.0, - "jz": 850.7063264963904, - "part_per_cell": 2.0 - }, - "lev=1": { - "Bx": 0.0, - "By": 0.00022915573780371822, - "Bz": 0.0, - "Ex": 65748.08304808202, - "Ey": 0.0, - "Ez": 20968.793596496947, - "divB": 0.0, - "divE": 3.318742179700654e-08, - "jx": 0.0, - "jy": 0.0, - "jz": 0.0, - "part_per_cell": 0.0 - }, - "positron": { - "particle_momentum_x": 1.2084126370460285e-22, - "particle_momentum_y": 0.0, - "particle_momentum_z": 1.1345273207159581e-23, - "particle_position_x": 0.09074573887778206, - "particle_position_y": 1.2457901521211143, - "particle_weight": 1000000000000.0 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/LaserAcceleration.json b/Regression/Checksum/benchmarks_json/LaserAcceleration.json deleted file mode 100644 index d82785279..000000000 --- a/Regression/Checksum/benchmarks_json/LaserAcceleration.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "electrons": { - "particle_initialenergy": 0.0, - "particle_momentum_x": 1.7921231650151805e-20, - "particle_momentum_y": 7.225819832716737e-20, - "particle_momentum_z": 4.2317254605197793e-20, - "particle_position_x": 0.7139122621161638, - "particle_position_y": 0.7150340887578206, - "particle_position_z": 1.3175770600690941, - "particle_regionofinterest": 1936.0, - "particle_weight": 12926557617.187498 - }, - "lev=0": { - "Bx": 5863879.027613791, - "By": 2411.49823974812, - "Bz": 116025.43679238218, - "Ex": 6267728226590.701, - "Ey": 1670763224821434.2, - "Ez": 104345981838458.77, - "jx": 555687757148559.1, - "jy": 1595895515963762.2, - "jz": 1045266123023547.6, - "rho": 2205684400.553117 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/LaserAccelerationBoost.json b/Regression/Checksum/benchmarks_json/LaserAccelerationBoost.json deleted file mode 100644 index ee19b84c7..000000000 --- a/Regression/Checksum/benchmarks_json/LaserAccelerationBoost.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "beam": { - "particle_momentum_x": 3.535284585563231e-19, - "particle_momentum_y": 4.403094613346061e-19, - "particle_momentum_z": 5.658013779496569e-17, - "particle_position_x": 0.008317876520240174, - "particle_position_y": 1.1704335094514386, - "particle_weight": 62415090744.60765 - }, - "electrons": { - "particle_momentum_x": 2.2135959939611405e-23, - "particle_momentum_y": 2.822519730011994e-22, - "particle_momentum_z": 5.260625039372931e-22, - "particle_position_x": 0.010800577787577741, - "particle_position_y": 0.21115060628258137, - "particle_weight": 4.121554826246186e+16 - }, - "ions": { - "particle_momentum_x": 6.248472008953412e-23, - "particle_momentum_y": 4.449200926395666e-22, - "particle_momentum_z": 5.768167708374496e-22, - "particle_position_x": 0.010800001678510793, - "particle_position_y": 0.21114947608115497, - "particle_weight": 4.121554826246186e+16 - }, - "lev=0": { - "Bx": 4818965.813977506, - "By": 1752.781451346485, - "Bz": 14516.29947347909, - "Ex": 2366115950699.717, - "Ey": 1446115205306590.0, - "Ez": 21864183756771.12, - "jx": 1996366451911408.0, - "jy": 5.312642483130767e+16, - "jz": 2.049134468340688e+16, - "rho": 68443935.06252655 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/LaserAccelerationMR.json b/Regression/Checksum/benchmarks_json/LaserAccelerationMR.json deleted file mode 100644 index 9b1abaf32..000000000 --- a/Regression/Checksum/benchmarks_json/LaserAccelerationMR.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "beam": { - "particle_momentum_x": 4.5610191313831193e-20, - "particle_momentum_y": 4.1498429191345516e-20, - "particle_momentum_z": 1.3647084767509034e-17, - "particle_position_x": 4.6527700821181575e-05, - "particle_position_y": 0.001484501913502292, - "particle_weight": 12483018148921.525 - }, - "electrons": { - "particle_momentum_x": 4.275117840757316e-20, - "particle_momentum_y": 1.9580305087552577e-19, - "particle_momentum_z": 8.913655221012749e-20, - "particle_position_x": 0.04741929968294935, - "particle_position_y": 0.08483137297620594, - "particle_weight": 119232421875000.25 - }, - "lev=0": { - "Bx": 24121595.024715852, - "By": 78232.13397859206, - "Bz": 601058.5314543134, - "Ex": 22865766698494.816, - "Ey": 6508549201873332.0, - "Ez": 32072534017950.547, - "jx": 1130516319665756.2, - "jy": 2.325136305137274e+18, - "jz": 6769519391624705.0, - "rho": 152898720.2638083 - }, - "lev=1": { - "Bx": 53303280.77277007, - "By": 213836.7648067578, - "Bz": 1321618.9792460166, - "Ex": 47846162009894.625, - "Ey": 1.4551014101478356e+16, - "Ez": 65304501716354.97, - "jx": 46169274324016.0, - "jy": 9.274837523569297e+18, - "jz": 1.9262772355054252e+16, - "rho": 67304284.98422328 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/LaserAccelerationRZ.json b/Regression/Checksum/benchmarks_json/LaserAccelerationRZ.json deleted file mode 100644 index 976a3bdee..000000000 --- a/Regression/Checksum/benchmarks_json/LaserAccelerationRZ.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "beam": { - "particle_momentum_x": 3.880115499392648e-20, - "particle_momentum_y": 5.07820548292446e-20, - "particle_momentum_z": 1.3503614921828295e-17, - "particle_position_x": 6.242131246165356e-05, - "particle_position_y": 0.0026764363296957524, - "particle_theta": 151.40798444325364, - "particle_weight": 6241509.074460764 - }, - "electrons": { - "particle_momentum_x": 1.886388623495423e-24, - "particle_momentum_y": 3.989021920324841e-22, - "particle_momentum_z": 1.2499427438675522e-23, - "particle_orig_x": 0.026508328457558912, - "particle_orig_z": 0.04789125000000001, - "particle_position_x": 0.041602500066712574, - "particle_position_y": 0.047891250456211995, - "particle_theta": 7325.121562757762, - "particle_weight": 813672305.532158 - }, - "lev=0": { - "Br_0_real": 0.27473108145012964, - "Br_1_imag": 104.10424416504374, - "Br_1_real": 104965.62622212195, - "Btheta_0_real": 1297.3299824026299, - "Btheta_1_imag": 105725.25637121125, - "Btheta_1_real": 141.25524413452112, - "Br": 104965.6138283532, - "Bt": 1296.2727613183374, - "Bz": 5076.743764997268, - "Bz_0_real": 0.46038147543152824, - "Bz_1_imag": 1.007452397747621, - "Bz_1_real": 5076.631353934757, - "Er_0_real": 271974182110.8858, - "Er_1_imag": 39530787290253.98, - "Er_1_real": 42616765306.284, - "Etheta_0_real": 112249661.08828562, - "Etheta_1_imag": 33602739100.133934, - "Etheta_1_real": 39016517445019.95, - "Er": 273570655229.63535, - "Et": 39016542452492.57, - "Ez": 511653044133.8529, - "Ez_0_real": 496845145101.94775, - "Ez_1_imag": 1245709559726.1033, - "Ez_1_real": 24849961919.57713, - "Jr_0_real": 1264766566288.467, - "Jr_1_imag": 2.335663089152921e+17, - "Jr_1_real": 2273346021690.177, - "Jtheta_0_real": 475301266327.4687, - "Jtheta_1_imag": 1028946515774.2778, - "Jtheta_1_real": 2.176637922654668e+17, - "Jz_0_real": 1832469154489130.8, - "Jz_1_imag": 556484676782123.3, - "Jz_1_real": 602703174081284.9, - "jr": 1750423139263.8418, - "jt": 2.176637920803457e+17, - "jz": 1954078914516329.2, - "rho": 39314213.383921936, - "rho_0_real": 38889619.16177814, - "rho_1_imag": 21546507.958223887, - "rho_1_real": 2012888.0198535046 - } -} diff --git a/Regression/Checksum/benchmarks_json/LaserAcceleration_1d.json b/Regression/Checksum/benchmarks_json/LaserAcceleration_1d.json deleted file mode 100644 index 93bc640f9..000000000 --- a/Regression/Checksum/benchmarks_json/LaserAcceleration_1d.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 0.0, - "particle_momentum_y": 1.2957667581353911e-20, - "particle_momentum_z": 3.314669116074607e-21, - "particle_orig_z": 0.02238310546875004, - "particle_position_x": 0.02235662928400318, - "particle_regionofinterest": 38.0, - "particle_weight": 5.1796875e+18 - }, - "lev=0": { - "Bx": 178016.89264546678, - "By": 0.0, - "Bz": 0.0, - "Ex": 0.0, - "Ey": 40878300517906.74, - "Ez": 12662514703.092445, - "jx": 0.0, - "jy": 30370448611224.453, - "jz": 5611270121187.104, - "rho": 3098219.079601462 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/LaserAcceleration_BTD.json b/Regression/Checksum/benchmarks_json/LaserAcceleration_BTD.json deleted file mode 100644 index 48a50214e..000000000 --- a/Regression/Checksum/benchmarks_json/LaserAcceleration_BTD.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "beam": { - "particle_momentum_x": 1.200972020818253e-17, - "particle_momentum_y": 2.585032191294136e-17, - "particle_momentum_z": 5.156440999710004e-14, - "particle_position_x": 0.0005594903971592459, - "particle_position_y": 0.0009455111024922463, - "particle_position_z": 2.980004837838842, - "particle_weight": 62415.090744607616 - }, - "electrons": { - "particle_momentum_x": 1.092865198302936e-18, - "particle_momentum_y": 7.520148301701908e-19, - "particle_momentum_z": 3.203226158352252e-18, - "particle_position_x": 0.008770116115438011, - "particle_position_y": 0.006616713237302155, - "particle_position_z": 0.403197005263315, - "particle_weight": 3798456080251.016 - }, - "lev=0": { - "Bx": 639777218.3927623, - "By": 391573860.4006858, - "Bz": 18781107.62495377, - "Ex": 1.148280195665633e+17, - "Ey": 1.886968890387197e+17, - "Ez": 2.602820737277261e+16, - "jx": 1.198269687436249e+18, - "jy": 2.501340790586224e+18, - "jz": 3.20629429984621e+19, - "rho": 104074943190.7625 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/LaserAcceleration_single_precision_comms.json b/Regression/Checksum/benchmarks_json/LaserAcceleration_single_precision_comms.json deleted file mode 100644 index 793d8c11c..000000000 --- a/Regression/Checksum/benchmarks_json/LaserAcceleration_single_precision_comms.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "electrons": { - "particle_initialenergy": 0.0, - "particle_momentum_x": 1.7921229236407606e-20, - "particle_momentum_y": 7.225825184653885e-20, - "particle_momentum_z": 4.231731488281653e-20, - "particle_position_x": 0.7139122621535502, - "particle_position_y": 0.7150340889556129, - "particle_position_z": 1.3175770602802896, - "particle_regionofinterest": 1936.0, - "particle_weight": 12926557617.187498 - }, - "lev=0": { - "Bx": 5863879.02030842, - "By": 2411.501904737579, - "Bz": 116025.42462998998, - "Ex": 6267728094111.663, - "Ey": 1670763233105822.0, - "Ez": 104345989831222.4, - "jx": 555687912108453.8, - "jy": 1595896363359136.0, - "jz": 1045267552192496.5, - "rho": 2205684400.307701 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/LaserInjection.json b/Regression/Checksum/benchmarks_json/LaserInjection.json deleted file mode 100644 index 359e1d782..000000000 --- a/Regression/Checksum/benchmarks_json/LaserInjection.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "lev=0": { - "Bx": 1063691.2596777605, - "Bz": 28800.57072658718, - "Ex": 644507862125.0421, - "Ey": 318419078738839.2, - "Ez": 9793313204958.16, - "jx": 0.0, - "jy": 9.025649743704675e+17, - "jz": 0.0 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/LaserInjection_1d.json b/Regression/Checksum/benchmarks_json/LaserInjection_1d.json deleted file mode 100644 index b36584ead..000000000 --- a/Regression/Checksum/benchmarks_json/LaserInjection_1d.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "lev=0": { - "Bx": 374663.2330698118, - "By": 374663.2330698118, - "Bz": 0.0, - "Ex": 111523937757159.5, - "Ey": 111523937757159.5, - "Ez": 0.0, - "jx": 116159381829.31923, - "jy": 116159381829.31923, - "jz": 0.0 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/LaserInjection_2d.json b/Regression/Checksum/benchmarks_json/LaserInjection_2d.json deleted file mode 100644 index 5639aea23..000000000 --- a/Regression/Checksum/benchmarks_json/LaserInjection_2d.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "lev=0": { - "Bx": 19699663.44037336, - "By": 101299939.0791143, - "Bz": 39796240.63982911, - "Ex": 1.388065758946779e+16, - "Ey": 1.322086684955721e+16, - "Ez": 2.68335317689213e+16, - "jx": 4.144286985968038e+16, - "jy": 4.144286947644162e+16, - "jz": 8.288574281440642e+16 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/LaserIonAcc2d.json b/Regression/Checksum/benchmarks_json/LaserIonAcc2d.json deleted file mode 100644 index 15b0a8dbe..000000000 --- a/Regression/Checksum/benchmarks_json/LaserIonAcc2d.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 3.924978793639722e-19, - "particle_momentum_y": 0.0, - "particle_momentum_z": 1.6531781161630182e-18, - "particle_position_x": 0.008174406825176781, - "particle_position_y": 0.030854054377836164, - "particle_weight": 2.6494574815747686e+17 - }, - "hydrogen": { - "particle_momentum_x": 2.2282828780834146e-18, - "particle_momentum_z": 1.0851862321717955e-18, - "particle_orig_x": 0.008197167968750002, - "particle_orig_z": 0.036522314453125, - "particle_position_x": 0.008196791928459133, - "particle_position_y": 0.03652051811944703, - "particle_weight": 2.7152730477070458e+17 - }, - "lev=0": { - "Bx": 0.0, - "By": 11404616.733041402, - "Bz": 0.0, - "Ex": 2032977227921656.0, - "Ey": 0.0, - "Ez": 317987205247174.75, - "jx": 1.6377970880819999e+19, - "jy": 0.0, - "jz": 8.817456212655565e+18, - "rho": 60944064977.941765, - "rho_electrons": 17448235212566.305, - "rho_hydrogen": 17441805684524.002 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/LaserIonAcc2d_no_field_diag.json b/Regression/Checksum/benchmarks_json/LaserIonAcc2d_no_field_diag.json deleted file mode 100644 index 034cb1983..000000000 --- a/Regression/Checksum/benchmarks_json/LaserIonAcc2d_no_field_diag.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 3.819006669880345e-19, - "particle_momentum_y": 0.0, - "particle_momentum_z": 1.6442919544438796e-18, - "particle_position_x": 0.008132686129387588, - "particle_position_y": 0.030529759891592873, - "particle_weight": 2.641331189632942e+17 - }, - "hydrogen": { - "particle_momentum_x": 2.2442931423587623e-18, - "particle_momentum_y": 0.0, - "particle_momentum_z": 1.0841108905602765e-18, - "particle_position_x": 0.008258183385250792, - "particle_position_y": 0.03668783554832863, - "particle_weight": 2.701906737218416e+17 - }, - "lev=0": { - } -} diff --git a/Regression/Checksum/benchmarks_json/LaserIonAcc3d.json b/Regression/Checksum/benchmarks_json/LaserIonAcc3d.json deleted file mode 100644 index de5472105..000000000 --- a/Regression/Checksum/benchmarks_json/LaserIonAcc3d.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 1.6966182372218133e-16, - "particle_momentum_y": 2.6850066145197374e-17, - "particle_momentum_z": 2.0052710316284176e-16, - "particle_position_x": 0.3393352015355679, - "particle_position_y": 1.1078675395554147, - "particle_position_z": 0.3419438867441836, - "particle_weight": 26433181926540.81 - }, - "hydrogen": { - "particle_momentum_x": 1.7161831722699107e-16, - "particle_momentum_y": 4.9196233343263506e-17, - "particle_momentum_z": 2.1370961936359413e-16, - "particle_position_x": 0.3375134789944616, - "particle_position_y": 1.1080021730384098, - "particle_position_z": 0.33939049172256086, - "particle_weight": 26441597005520.95 - }, - "lev=0": { - "Bx": 41555976.87146437, - "By": 175750876.1712573, - "Bz": 35156983.723599546, - "Ex": 3.872657491899755e+17, - "Ey": 3.3815796095277564e+16, - "Ez": 3.937276394651024e+17, - "jx": 3.5072653955241413e+21, - "jy": 4.011484251839508e+20, - "jz": 3.787151010057889e+21, - "rho": 7429502184315.598 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/LaserOnFine.json b/Regression/Checksum/benchmarks_json/LaserOnFine.json deleted file mode 100644 index b29614c3d..000000000 --- a/Regression/Checksum/benchmarks_json/LaserOnFine.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "lev=0": { - "Bx": 0.0, - "By": 427936.3341615332, - "Bz": 0.0, - "Ex": 127078291135506.95, - "Ey": 0.0, - "Ez": 5664108686871.884, - "divB": 0.0, - "jx": 6.137404955467743e+17, - "jy": 0.0, - "jz": 0.0, - "part_per_cell": 0.0 - }, - "lev=1": { - "Bx": 0.0, - "By": 1234533.4970403123, - "Bz": 0.0, - "Ex": 369306810438894.4, - "Ey": 0.0, - "Ez": 17592200791219.773, - "divB": 0.0, - "jx": 2.454961982187098e+18, - "jy": 0.0, - "jz": 0.0, - "part_per_cell": 102.0 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/LoadExternalField3D.json b/Regression/Checksum/benchmarks_json/LoadExternalField3D.json deleted file mode 100644 index a34b2f136..000000000 --- a/Regression/Checksum/benchmarks_json/LoadExternalField3D.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "lev=0": { - "Bx": 29.8448958859583, - "By": 29.844895885958305, - "Bz": 197.55124310523018, - "Ex": 0.0, - "Ey": 0.0, - "Ez": 0.0, - "jx": 0.0, - "jy": 0.0, - "jz": 0.0 - }, - "proton": { - "particle_momentum_x": 1.2118953253556959e-23, - "particle_momentum_y": 7.822512598009088e-23, - "particle_momentum_z": 2.2761898274347412e-23, - "particle_position_x": 0.12238072371983327, - "particle_position_y": 0.009653941154598592, - "particle_position_z": 4.317544769595657, - "particle_weight": 1.0 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/LoadExternalFieldRZ.json b/Regression/Checksum/benchmarks_json/LoadExternalFieldRZ.json deleted file mode 100644 index dc4ffa3be..000000000 --- a/Regression/Checksum/benchmarks_json/LoadExternalFieldRZ.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "lev=0": { - "Br": 0.6380326770459374, - "Bt": 0.0, - "Bz": 4.850698699951099, - "Er": 0.0, - "Et": 0.0, - "Ez": 0.0, - "jr": 0.0, - "jt": 0.0, - "jz": 0.0 - }, - "proton": { - "particle_momentum_x": 1.2945379007125463e-23, - "particle_momentum_y": 7.901629565307941e-23, - "particle_momentum_z": 2.0004592432172922e-23, - "particle_position_x": 0.12402004585603355, - "particle_position_y": 4.363249204658946, - "particle_theta": 0.22200801011337173, - "particle_weight": 1.0 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/Maxwell_Hybrid_QED_solver.json b/Regression/Checksum/benchmarks_json/Maxwell_Hybrid_QED_solver.json deleted file mode 100644 index 9f7b7f64d..000000000 --- a/Regression/Checksum/benchmarks_json/Maxwell_Hybrid_QED_solver.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "lev=0": { - "Bx": 3.543966469013954e-05, - "By": 0.0, - "Bz": 5.103535813972088e-12, - "Ex": 0.0, - "Ey": 6553600000.005218, - "Ez": 0.0, - "jx": 0.0, - "jy": 0.0, - "jz": 0.0 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/PEC_field.json b/Regression/Checksum/benchmarks_json/PEC_field.json deleted file mode 100644 index c85a451c2..000000000 --- a/Regression/Checksum/benchmarks_json/PEC_field.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "lev=0": { - "Bx": 7.325639113482142, - "Ey": 8374867179.431679 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/PEC_field_mr.json b/Regression/Checksum/benchmarks_json/PEC_field_mr.json deleted file mode 100644 index 059ac1833..000000000 --- a/Regression/Checksum/benchmarks_json/PEC_field_mr.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "lev=0": { - "Bx": 1.3137691514770886, - "Ey": 1052208601.720587 - }, - "lev=1": { - "Bx": 0.038732896603981076, - "Ey": 9503300.083366634 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/PEC_particle.json b/Regression/Checksum/benchmarks_json/PEC_particle.json deleted file mode 100644 index 37e2c7a2b..000000000 --- a/Regression/Checksum/benchmarks_json/PEC_particle.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "electron": { - "particle_momentum_x": 9.118316987337303e-31, - "particle_momentum_y": 1.994232603103909e-33, - "particle_momentum_z": 2.071049171405733e-48, - "particle_position_x": 3.199800000000243e-05, - "particle_position_y": 1.337483120403189e-20, - "particle_position_z": 3.525711263115143e-36, - "particle_weight": 1.0 - }, - "lev=0": { - "Bx": 2.236598426753777e-05, - "By": 5.626492069787838e-16, - "Bz": 4.888428704531722e-05, - "Ex": 9861.669126353598, - "Ey": 19397.76483514244, - "Ez": 4686.58948832918, - "jx": 0.0001709159771051197, - "jy": 1198753.999773322, - "jz": 0.0 - }, - "proton": { - "particle_momentum_x": 2.65726950908245e-32, - "particle_momentum_y": 1.002878875615426e-18, - "particle_momentum_z": 4.1182431708325955e-49, - "particle_position_x": 3.199799999999955e-05, - "particle_position_y": 6.5726706900619935e-06, - "particle_position_z": 2.572813598999478e-36, - "particle_weight": 1.0 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/PlasmaAccelerationBoost2d.json b/Regression/Checksum/benchmarks_json/PlasmaAccelerationBoost2d.json deleted file mode 100644 index 2860e26ac..000000000 --- a/Regression/Checksum/benchmarks_json/PlasmaAccelerationBoost2d.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "beam": { - "particle_momentum_x": 4.3319528267672493e-19, - "particle_momentum_y": 4.501000169972693e-19, - "particle_momentum_z": 2.730833780425186e-17, - "particle_position_x": 0.0003765650634942415, - "particle_position_y": 2.017924300869033, - "particle_weight": 3744905444676.4585 - }, - "driver": { - "particle_momentum_x": 4.404628898485127e-19, - "particle_momentum_y": 4.375137239499453e-19, - "particle_momentum_z": 2.7424245305788556e-15, - "particle_position_x": 0.0016253419519751734, - "particle_position_y": 0.31953805221039305, - "particle_weight": 93622636116911.45 - }, - "lev=0": { - "Bx": 0.3939499531816364, - "By": 9563.615022656964, - "Bz": 0.3591030695780125, - "Ex": 1057402535431.6746, - "Ey": 144244335.46922195, - "Ez": 3010491709181.3467, - "jx": 3227914369.7171793, - "jy": 5068791609.12788, - "jz": 102420312561226.17 - }, - "plasma_e": { - "particle_momentum_x": 1.2615128163589931e-23, - "particle_momentum_y": 1.5392234051130659e-27, - "particle_momentum_z": 1.3694904132251956e-18, - "particle_position_x": 0.01771877489382093, - "particle_position_y": 0.020620065534187347, - "particle_weight": 727797380314273.1 - }, - "plasma_p": { - "particle_momentum_x": 1.2615099272124483e-23, - "particle_momentum_y": 1.53924926768808e-27, - "particle_momentum_z": 2.51631809113383e-15, - "particle_position_x": 0.017718749986451513, - "particle_position_y": 0.020620065463180168, - "particle_weight": 727797380314273.1 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/PlasmaAccelerationBoost3d.json b/Regression/Checksum/benchmarks_json/PlasmaAccelerationBoost3d.json deleted file mode 100644 index f26534c6c..000000000 --- a/Regression/Checksum/benchmarks_json/PlasmaAccelerationBoost3d.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "beam": { - "particle_momentum_x": 4.1784825059093756e-19, - "particle_momentum_y": 4.56492260137707e-19, - "particle_momentum_z": 2.733972888170628e-17, - "particle_position_x": 0.0003995213395426269, - "particle_position_y": 0.0004148795632360405, - "particle_position_z": 1.971520197241896, - "particle_weight": 3120754537.230381 - }, - "driver": { - "particle_momentum_x": 4.7004364050785617e+21, - "particle_momentum_y": 4.6785862113093076e+21, - "particle_momentum_z": 2.999596093018443e+25, - "particle_position_x": 0.0015811715645607214, - "particle_position_y": 0.0016212416120016558, - "particle_position_z": 0.3737871668388371, - "particle_weight": 6241509074.460762 - }, - "driverback": { - "particle_momentum_x": 4.813131349021333e+21, - "particle_momentum_y": 5.165480740901231e+21, - "particle_momentum_z": 3.005830430844926e+25, - "particle_position_x": 0.0016489932623583448, - "particle_position_y": 0.0016186267675597135, - "particle_position_z": 0.42037151381228377, - "particle_weight": 6241509074.460762 - }, - "lev=0": { - "Bx": 44900.36241701639, - "By": 44925.14975609915, - "Bz": 6.522149557732535, - "Ex": 1740395711918.398, - "Ey": 1739383965652.072, - "Ez": 15904996412605.766, - "jx": 181761783700.78683, - "jy": 211922069601.8713, - "jz": 1808517835456823.8 - }, - "plasma_e": { - "particle_momentum_x": 1.2522307177726677e-25, - "particle_momentum_y": 1.255266202984791e-25, - "particle_momentum_z": 9.78204821543727e-18, - "particle_position_x": 0.12656250028461832, - "particle_position_y": 0.12656250028543425, - "particle_position_z": 0.06789191622060947, - "particle_weight": 4834401345.035692 - }, - "plasma_p": { - "particle_momentum_x": 1.2522307202410732e-25, - "particle_momentum_y": 1.2552662045089724e-25, - "particle_momentum_z": 1.7961333879129066e-14, - "particle_position_x": 0.12656249999984498, - "particle_position_y": 0.12656249999984454, - "particle_position_z": 0.06789191621903365, - "particle_weight": 4834401345.035692 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/PlasmaAccelerationBoost3d_hybrid.json b/Regression/Checksum/benchmarks_json/PlasmaAccelerationBoost3d_hybrid.json deleted file mode 100644 index 19f75f744..000000000 --- a/Regression/Checksum/benchmarks_json/PlasmaAccelerationBoost3d_hybrid.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "beam": { - "particle_momentum_x": 4.1784825059093756e-19, - "particle_momentum_y": 4.56492260137707e-19, - "particle_momentum_z": 2.733972888170628e-17, - "particle_position_x": 0.0003995213395426269, - "particle_position_y": 0.00041487956323604043, - "particle_position_z": 1.8787501933086599, - "particle_weight": 3120754537.230381 - }, - "driver": { - "particle_momentum_x": 4.700436405078562e+21, - "particle_momentum_y": 4.6785862113093076e+21, - "particle_momentum_z": 2.9995960930184427e+25, - "particle_position_x": 0.0015811766888229445, - "particle_position_y": 0.001621233705923834, - "particle_position_z": 0.28097467103387264, - "particle_weight": 6241509074.460762 - }, - "driverback": { - "particle_momentum_x": 4.813131349021332e+21, - "particle_momentum_y": 5.16548074090123e+21, - "particle_momentum_z": 3.005830430844926e+25, - "particle_position_x": 0.0016497061518136965, - "particle_position_y": 0.0016167804490428818, - "particle_position_z": 0.5131840092633663, - "particle_weight": 6241509074.460762 - }, - "lev=0": { - "Bx": 254740.25256197058, - "By": 254761.47204868746, - "Bz": 36.599570847466225, - "Ex": 40281016743227.555, - "Ey": 40277541672525.516, - "Ez": 83344393705917.66, - "jx": 375044756268.98486, - "jy": 404045214551.0391, - "jz": 1808630950792409.5 - }, - "plasma_e": { - "particle_momentum_x": 5.358964077056521e-21, - "particle_momentum_y": 5.349030609230336e-21, - "particle_momentum_z": 3.4238483930416167e-17, - "particle_position_x": 0.4429948751670466, - "particle_position_y": 0.44299482954008035, - "particle_position_z": 0.8316760176044319, - "particle_weight": 361785049075.76086 - }, - "plasma_p": { - "particle_momentum_x": 5.361226298232144e-21, - "particle_momentum_y": 5.351299635701116e-21, - "particle_momentum_z": 6.28646672574414e-14, - "particle_position_x": 0.442968735767095, - "particle_position_y": 0.44296873579195095, - "particle_position_z": 0.8316759736464954, - "particle_weight": 361785049075.76086 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/PlasmaAccelerationMR.json b/Regression/Checksum/benchmarks_json/PlasmaAccelerationMR.json deleted file mode 100644 index fe89e574b..000000000 --- a/Regression/Checksum/benchmarks_json/PlasmaAccelerationMR.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "beam": { - "particle_momentum_x": 4.4048565073304965e-19, - "particle_momentum_y": 4.375126262046929e-19, - "particle_momentum_z": 5.469376279001583e-16, - "particle_position_x": 0.00040755779584035885, - "particle_position_y": 0.04696574193015579, - "particle_weight": 12483018148921.53 - }, - "driver": { - "particle_momentum_x": 4.347833600751912e-19, - "particle_momentum_y": 4.500996286271091e-19, - "particle_momentum_z": 5.442203664759936e-16, - "particle_position_x": 0.001505310630145018, - "particle_position_y": 0.03781050095046222, - "particle_weight": 93622636116911.45 - }, - "lev=0": { - "Bx": 11.074738349609067, - "By": 129344.86907067802, - "Bz": 3.3908505304411856, - "Ex": 36239739851948.6, - "Ey": 3402737313.4041243, - "Ez": 41205015682562.31, - "jx": 2250406166745934.8, - "jy": 265599978778.614, - "jz": 4235811839297305.0 - }, - "lev=1": { - "Bx": 4.151262829933845, - "By": 142717.89942647063, - "Bz": 2.5355324397388976, - "Ex": 49269965518089.47, - "Ey": 1422005013.428047, - "Ez": 52702006133407.96, - "jx": 3029834073056217.0, - "jy": 92336643744.90013, - "jz": 4286789604963785.5 - }, - "plasma_e": { - "particle_momentum_x": 1.604694564847229e-19, - "particle_momentum_y": 4.35828725994675e-24, - "particle_momentum_z": 1.6528799232693297e-19, - "particle_position_x": 0.1340722964651594, - "particle_position_y": 0.10350593040826062, - "particle_weight": 823974609375002.8 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/PlasmaMirror.json b/Regression/Checksum/benchmarks_json/PlasmaMirror.json deleted file mode 100644 index 9a686e78d..000000000 --- a/Regression/Checksum/benchmarks_json/PlasmaMirror.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 2.000457748960032e-17, - "particle_momentum_y": 0.0, - "particle_momentum_z": 2.446670640741138e-17, - "particle_position_x": 0.37688793289418476, - "particle_position_y": 0.1714047288635171, - "particle_weight": 2.904173860599889e+18 - }, - "ions": { - "particle_momentum_x": 2.805690782833416e-17, - "particle_momentum_y": 0.0, - "particle_momentum_z": 9.605283484426823e-17, - "particle_position_x": 0.3828171295926821, - "particle_position_y": 0.17237242725257168, - "particle_weight": 2.9212132379167017e+18 - }, - "lev=0": { - "Bx": 0.0, - "By": 75294856.83091721, - "Bz": 0.0, - "Ex": 2.081697252453305e+16, - "Ey": 0.0, - "Ez": 2.350511387513211e+16, - "jx": 5.496779405360711e+19, - "jy": 0.0, - "jz": 7.159348923050661e+19 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/Plasma_lens.json b/Regression/Checksum/benchmarks_json/Plasma_lens.json deleted file mode 100644 index f97828038..000000000 --- a/Regression/Checksum/benchmarks_json/Plasma_lens.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 7.424668333879405e-24, - "particle_momentum_y": 5.93963893779683e-24, - "particle_momentum_z": 2.7309245307375727e-22, - "particle_position_x": 0.0360838943897417, - "particle_position_y": 0.028872102262743393, - "particle_position_z": 3.894799963324205 - }, - "lev=0": { - "Bx": 7.799008261493657e-14, - "By": 7.78607679904626e-14, - "Bz": 5.284937703285724e-16, - "Ex": 1.238070346518611e-05, - "Ey": 1.24483203221731e-05, - "Ez": 2.174385166221258e-05, - "jx": 4.589424517378515e-10, - "jy": 3.66282354675919e-10, - "jz": 4.398157565896823e-08 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/Plasma_lens_boosted.json b/Regression/Checksum/benchmarks_json/Plasma_lens_boosted.json deleted file mode 100644 index 0be8565e3..000000000 --- a/Regression/Checksum/benchmarks_json/Plasma_lens_boosted.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 7.437088723330809e-24, - "particle_momentum_y": 5.949505661531207e-24, - "particle_momentum_z": 5.117548636687948e-22, - "particle_position_x": 0.0364899692620149, - "particle_position_y": 0.02920120023126197, - "particle_position_z": 6.968108528569411 - }, - "lev=0": { - "Bx": 1.924115937161737e-14, - "By": 1.918204686809447e-14, - "Bz": 8.619137912314215e-17, - "Ex": 4.513326174177381e-06, - "Ey": 4.524665860438128e-06, - "Ez": 5.039174965547142e-06, - "jx": 5.03114325998232e-11, - "jy": 4.027436848088097e-11, - "jz": 1.201262998412809e-08 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/Plasma_lens_short.json b/Regression/Checksum/benchmarks_json/Plasma_lens_short.json deleted file mode 100644 index e64082ae4..000000000 --- a/Regression/Checksum/benchmarks_json/Plasma_lens_short.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 7.536513520138313e-24, - "particle_momentum_y": 6.031954713799037e-24, - "particle_momentum_z": 2.7309245307375703e-22, - "particle_position_x": 0.04004540036766861, - "particle_position_y": 0.0320391685094304, - "particle_position_z": 3.89474872968395 - }, - "lev=0": { - "Bx": 7.793467388058752e-14, - "By": 7.77921647623258e-14, - "Bz": 5.266778010708902e-16, - "Ex": 1.2378098494447e-05, - "Ey": 1.244663405023207e-05, - "Ez": 2.174395892032434e-05, - "jx": 4.660786277970919e-10, - "jy": 3.720891072770551e-10, - "jz": 4.398124812034121e-08 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/Proton_Boron_Fusion_2D.json b/Regression/Checksum/benchmarks_json/Proton_Boron_Fusion_2D.json deleted file mode 100644 index 979cffc0a..000000000 --- a/Regression/Checksum/benchmarks_json/Proton_Boron_Fusion_2D.json +++ /dev/null @@ -1,117 +0,0 @@ -{ - "alpha1": { - "particle_momentum_x": 4.714227948839551e-15, - "particle_momentum_y": 4.676078701959904e-15, - "particle_momentum_z": 4.676142266462326e-15, - "particle_position_x": 463834.9497057527, - "particle_position_y": 977592.6452214213, - "particle_weight": 2.940000093807323e-28 - }, - "alpha2": { - "particle_momentum_x": 4.081538674143691e-15, - "particle_momentum_y": 4.122349693618236e-15, - "particle_momentum_z": 4.201699189448955e-15, - "particle_position_x": 410664.0477768091, - "particle_position_y": 868193.1483606595, - "particle_weight": 2.959852107088932e+18 - }, - "alpha3": { - "particle_momentum_x": 4.934249084589244e-16, - "particle_momentum_y": 4.791039564460439e-16, - "particle_momentum_z": 4.698462130524534e-16, - "particle_position_x": 52309.63968324501, - "particle_position_y": 104322.0547863817, - "particle_weight": 1.491736282762796e+27 - }, - "alpha4": { - "particle_momentum_x": 2.342240913445794e-14, - "particle_momentum_y": 2.34177318709557e-14, - "particle_momentum_z": 2.353174771675334e-14, - "particle_position_x": 2457367.458278153, - "particle_position_y": 4915112.044373058, - "particle_weight": 384.0000000000002 - }, - "alpha5": { - "particle_momentum_x": 2.330088308142745e-14, - "particle_momentum_y": 2.344976927616691e-14, - "particle_momentum_z": 2.361827647381584e-14, - "particle_position_x": 2457556.857163842, - "particle_position_y": 4914659.635379327, - "particle_weight": 3.839999999999998e-19 - }, - "boron1": { - "particle_momentum_x": 0.0, - "particle_momentum_y": 0.0, - "particle_momentum_z": 2.524242836246531e-13, - "particle_position_x": 40958301.591654316, - "particle_position_y": 81921136.14476715, - "particle_weight": 128.00000000000261 - }, - "boron2": { - "particle_momentum_x": 0.0, - "particle_momentum_y": 0.0, - "particle_momentum_z": 0.0, - "particle_position_x": 409798.015821768, - "particle_position_y": 819270.9858143466, - "particle_weight": 1.2799999999016446e+28 - }, - "boron3": { - "particle_momentum_x": 9.277692671587846e-15, - "particle_momentum_y": 9.268409636965691e-15, - "particle_momentum_z": 9.279446607709548e-15, - "particle_position_x": 4096178.166422465, - "particle_position_y": 8192499.706038672, - "particle_weight": 6.399502754572407e+30 - }, - "boron5": { - "particle_momentum_x": 0.0, - "particle_momentum_y": 0.0, - "particle_momentum_z": 0.0, - "particle_position_x": 409547.3312927569, - "particle_position_y": 819118.5558814355, - "particle_weight": 127.99999999999999 - }, - "lev=0": { - "rho": 0.0 - }, - "proton1": { - "particle_momentum_x": 0.0, - "particle_momentum_y": 0.0, - "particle_momentum_z": 2.524242836246531e-13, - "particle_position_x": 40960140.72983792, - "particle_position_y": 81919772.69310114, - "particle_weight": 128.00000000000261 - }, - "proton2": { - "particle_momentum_x": 0.0, - "particle_momentum_y": 0.0, - "particle_momentum_z": 2.371679089706304e-14, - "particle_position_x": 4095630.6981353555, - "particle_position_y": 8192073.551798361, - "particle_weight": 1.2885512789516445e+28 - }, - "proton3": { - "particle_momentum_x": 1.684214433067055e-15, - "particle_momentum_y": 1.682290595962152e-15, - "particle_momentum_z": 1.679806121802876e-15, - "particle_position_x": 2457258.407562205, - "particle_position_y": 4914234.891662369, - "particle_weight": 1.279502754572413e+30 - }, - "proton4": { - "particle_momentum_x": 0.0, - "particle_momentum_y": 0.0, - "particle_momentum_z": 1.7581275870306353e-15, - "particle_position_x": 409630.8789482905, - "particle_position_y": 819198.7077771134, - "particle_weight": 1.2800000000000004e+37 - }, - "proton5": { - "particle_momentum_x": 0.0, - "particle_momentum_y": 0.0, - "particle_momentum_z": 1.7581275870306353e-15, - "particle_position_x": 409638.2877618571, - "particle_position_y": 819101.3225783394, - "particle_weight": 1.2800000000000004e+37 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/Proton_Boron_Fusion_3D.json b/Regression/Checksum/benchmarks_json/Proton_Boron_Fusion_3D.json deleted file mode 100644 index b510fb10f..000000000 --- a/Regression/Checksum/benchmarks_json/Proton_Boron_Fusion_3D.json +++ /dev/null @@ -1,131 +0,0 @@ -{ - "alpha1": { - "particle_momentum_x": 4.659631949650719e-15, - "particle_momentum_y": 4.617308377231923e-15, - "particle_momentum_z": 4.617389330519975e-15, - "particle_position_x": 453219.3436004627, - "particle_position_y": 457393.42114332493, - "particle_position_z": 970481.0580153911, - "particle_weight": 1.9043802455895325e-27 - }, - "alpha2": { - "particle_momentum_x": 4.071678402460901e-15, - "particle_momentum_y": 4.1196410276880726e-15, - "particle_momentum_z": 4.181784710058622e-15, - "particle_position_x": 405848.1200755021, - "particle_position_y": 408011.53191288817, - "particle_position_z": 866330.5923068221, - "particle_weight": 1.9261737121655108e+19 - }, - "alpha3": { - "particle_momentum_x": 4.853582081563116e-16, - "particle_momentum_y": 4.797297548379446e-16, - "particle_momentum_z": 4.759501504671248e-16, - "particle_position_x": 51342.57223394147, - "particle_position_y": 50913.6612890173, - "particle_position_z": 101306.34059008301, - "particle_weight": 1.0360147595748265e+28 - }, - "alpha4": { - "particle_momentum_x": 2.3373908106523292e-14, - "particle_momentum_y": 2.3439419725501755e-14, - "particle_momentum_z": 2.3559411845892612e-14, - "particle_position_x": 2457367.4582781526, - "particle_position_y": 2457512.044373058, - "particle_position_z": 4914475.776513073, - "particle_weight": 3072.000000000002 - }, - "alpha5": { - "particle_momentum_x": 2.333624251961068e-14, - "particle_momentum_y": 2.3455939695798916e-14, - "particle_momentum_z": 2.3574526216382372e-14, - "particle_position_x": 2457556.857163842, - "particle_position_y": 2457059.6353793237, - "particle_position_z": 4915847.043341331, - "particle_weight": 3.0719999999999984e-18 - }, - "boron1": { - "particle_momentum_x": 0.0, - "particle_momentum_y": 0.0, - "particle_momentum_z": 2.524242836246531e-13, - "particle_position_x": 40958301.591654316, - "particle_position_y": 40961136.14476712, - "particle_position_z": 81920546.19181262, - "particle_weight": 1024.000000000021 - }, - "boron2": { - "particle_momentum_x": 0.0, - "particle_momentum_y": 0.0, - "particle_momentum_z": 0.0, - "particle_position_x": 409798.0158217681, - "particle_position_y": 409670.9858143465, - "particle_position_z": 819255.8152412223, - "particle_weight": 1.0239999999357942e+29 - }, - "boron3": { - "particle_momentum_x": 9.277692671587846e-15, - "particle_momentum_y": 9.268409636965691e-15, - "particle_momentum_z": 9.279446607709548e-15, - "particle_position_x": 4096178.1664224654, - "particle_position_y": 4096499.7060386725, - "particle_position_z": 8191465.586938233, - "particle_weight": 5.119654661746806e+31 - }, - "boron5": { - "particle_momentum_x": 0.0, - "particle_momentum_y": 0.0, - "particle_momentum_z": 0.0, - "particle_position_x": 409547.33129275695, - "particle_position_y": 409518.5558814353, - "particle_position_z": 819306.5006950963, - "particle_weight": 1023.9999999999999 - }, - "lev=0": { - "rho": 0.0 - }, - "proton1": { - "particle_momentum_x": 0.0, - "particle_momentum_y": 0.0, - "particle_momentum_z": 2.524242836246531e-13, - "particle_position_x": 40960140.72983793, - "particle_position_y": 40959772.69310104, - "particle_position_z": 81919021.52308556, - "particle_weight": 1024.000000000021 - }, - "proton2": { - "particle_momentum_x": 0.0, - "particle_momentum_y": 0.0, - "particle_momentum_z": 2.3738870507189214e-14, - "particle_position_x": 4095630.698135355, - "particle_position_y": 4096073.5517983637, - "particle_position_z": 8191737.5566503005, - "particle_weight": 1.0227810240713489e+29 - }, - "proton3": { - "particle_momentum_x": 1.6843510515198723e-15, - "particle_momentum_y": 1.6823818968683368e-15, - "particle_momentum_z": 1.6799961456539653e-15, - "particle_position_x": 2457338.899376694, - "particle_position_y": 2457069.647393952, - "particle_position_z": 4914642.288898885, - "particle_weight": 1.0236546617468092e+31 - }, - "proton4": { - "particle_momentum_x": 0.0, - "particle_momentum_y": 0.0, - "particle_momentum_z": 1.7581275870306353e-15, - "particle_position_x": 409630.8789482905, - "particle_position_y": 409598.7077771135, - "particle_position_z": 818958.0399127571, - "particle_weight": 1.0240000000000003e+38 - }, - "proton5": { - "particle_momentum_x": 0.0, - "particle_momentum_y": 0.0, - "particle_momentum_z": 1.7581275870306353e-15, - "particle_position_x": 409638.28776185703, - "particle_position_y": 409501.32257833943, - "particle_position_z": 819309.1804186807, - "particle_weight": 1.0240000000000003e+38 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/Python_ElectrostaticSphereEB.json b/Regression/Checksum/benchmarks_json/Python_ElectrostaticSphereEB.json deleted file mode 100644 index cd30b3885..000000000 --- a/Regression/Checksum/benchmarks_json/Python_ElectrostaticSphereEB.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "lev=0": { - "Ex": 186404.72510792234, - "Ey": 186404.72510792228, - "Ez": 186404.72510792228, - "phi": 43517.784751440566, - "rho": 0.0 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/Python_Langmuir.json b/Regression/Checksum/benchmarks_json/Python_Langmuir.json deleted file mode 100644 index 950d7f919..000000000 --- a/Regression/Checksum/benchmarks_json/Python_Langmuir.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 1.7507165884671642e-17, - "particle_position_x": 10.350911572498216, - "particle_position_y": 10.485760000000003, - "particle_position_z": 10.485760000000003, - "particle_weight": 320000000000.00006 - }, - "lev=0": { - "Ex": 3091324128949712.5, - "jx": 3.3015975627803766e+18 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/Python_Langmuir_2d.json b/Regression/Checksum/benchmarks_json/Python_Langmuir_2d.json deleted file mode 100644 index 2d1ca2f23..000000000 --- a/Regression/Checksum/benchmarks_json/Python_Langmuir_2d.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 1.0449418710231497e-19, - "particle_position_x": 0.0831205701527011, - "particle_position_y": 0.08192, - "particle_weight": 8000000000000001.0 - }, - "lev=0": { - "Ex": 54311177004701.516, - "jx": 5.639670983525456e+16 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/Python_Langmuir_rz_multimode.json b/Regression/Checksum/benchmarks_json/Python_Langmuir_rz_multimode.json deleted file mode 100644 index c926cc19a..000000000 --- a/Regression/Checksum/benchmarks_json/Python_Langmuir_rz_multimode.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 2.102411225112119e-20, - "particle_momentum_y": 2.345711646254576e-20, - "particle_momentum_z": 3.100966756414775e-20, - "particle_position_x": 6.61250119096399, - "particle_position_y": 14.719999999999999, - "particle_theta": 1156106.366967281, - "particle_weight": 81147583679.15047 - }, - "lev=0": { - "Bt": 2.496097613843332, - "Er": 879037494036.5272, - "Ez": 1707659987719.488, - "jr": 210208682137002.0, - "jz": 407196102143353.38, - "part_per_cell": 1472000.0 - } -} diff --git a/Regression/Checksum/benchmarks_json/Python_LaserAcceleration.json b/Regression/Checksum/benchmarks_json/Python_LaserAcceleration.json deleted file mode 100644 index 0b0355b7c..000000000 --- a/Regression/Checksum/benchmarks_json/Python_LaserAcceleration.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "beam": { - "particle_momentum_x": 4.707586336874016e-20, - "particle_momentum_y": 4.4850722108112576e-20, - "particle_momentum_z": 1.36054441043288e-17, - "particle_position_x": 4.058764306495361e-05, - "particle_position_y": 3.7888695722549883e-05, - "particle_position_z": 0.00019656701118308398, - "particle_weight": 6241509.074460764 - }, - "electrons": { - "particle_momentum_x": 1.7921232203945004e-20, - "particle_momentum_y": 7.225819894813053e-20, - "particle_momentum_z": 4.231725460173154e-20, - "particle_position_x": 0.7139122621161993, - "particle_position_y": 0.7150340887578637, - "particle_position_z": 1.3175770600690966, - "particle_weight": 12926557617.187498 - }, - "lev=0": { - "Bx": 5866866.85492377, - "By": 11177.920546471447, - "Bz": 116026.93444649166, - "Ex": 8178548880638.266, - "Ey": 1671614207789070.8, - "Ez": 106548168484665.61, - "jx": 555903247963958.4, - "jy": 1595974150308405.2, - "jz": 1366292284444382.5, - "rho": 2206755250.226321 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/Python_LaserAccelerationMR.json b/Regression/Checksum/benchmarks_json/Python_LaserAccelerationMR.json deleted file mode 100644 index 9b1abaf32..000000000 --- a/Regression/Checksum/benchmarks_json/Python_LaserAccelerationMR.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "beam": { - "particle_momentum_x": 4.5610191313831193e-20, - "particle_momentum_y": 4.1498429191345516e-20, - "particle_momentum_z": 1.3647084767509034e-17, - "particle_position_x": 4.6527700821181575e-05, - "particle_position_y": 0.001484501913502292, - "particle_weight": 12483018148921.525 - }, - "electrons": { - "particle_momentum_x": 4.275117840757316e-20, - "particle_momentum_y": 1.9580305087552577e-19, - "particle_momentum_z": 8.913655221012749e-20, - "particle_position_x": 0.04741929968294935, - "particle_position_y": 0.08483137297620594, - "particle_weight": 119232421875000.25 - }, - "lev=0": { - "Bx": 24121595.024715852, - "By": 78232.13397859206, - "Bz": 601058.5314543134, - "Ex": 22865766698494.816, - "Ey": 6508549201873332.0, - "Ez": 32072534017950.547, - "jx": 1130516319665756.2, - "jy": 2.325136305137274e+18, - "jz": 6769519391624705.0, - "rho": 152898720.2638083 - }, - "lev=1": { - "Bx": 53303280.77277007, - "By": 213836.7648067578, - "Bz": 1321618.9792460166, - "Ex": 47846162009894.625, - "Ey": 1.4551014101478356e+16, - "Ez": 65304501716354.97, - "jx": 46169274324016.0, - "jy": 9.274837523569297e+18, - "jz": 1.9262772355054252e+16, - "rho": 67304284.98422328 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/Python_LaserAccelerationRZ.json b/Regression/Checksum/benchmarks_json/Python_LaserAccelerationRZ.json deleted file mode 100644 index 1c75b69dc..000000000 --- a/Regression/Checksum/benchmarks_json/Python_LaserAccelerationRZ.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "beam": { - "particle_momentum_x": 3.880109055649298e-20, - "particle_momentum_y": 5.0781930103830196e-20, - "particle_momentum_z": 1.3503608494680855e-17, - "particle_position_x": 6.242131236443886e-05, - "particle_position_y": 0.0026764363296979446, - "particle_theta": 151.4079870868123, - "particle_weight": 6241509.074460764 - }, - "electrons": { - "particle_momentum_x": 1.787201778017949e-24, - "particle_momentum_y": 3.9234822345143987e-22, - "particle_momentum_z": 1.0100062552925791e-23, - "particle_position_x": 0.041602500069929174, - "particle_position_y": 0.047891250477036906, - "particle_theta": 7325.1193688944695, - "particle_weight": 813672305.532158 - }, - "lev=0": { - "Br_0_real": 0.36356649135193925, - "Br_1_imag": 115.41886748920795, - "Br_1_real": 142258.01965536995, - "Btheta_0_real": 1299.8816721733124, - "Btheta_1_imag": 143318.04456658955, - "Btheta_1_real": 155.37774833024366, - "Br": 142258.01319076555, - "Bt": 1301.5695263567557, - "Bz": 5993.640969075834, - "Bz_0_real": 0.4737412745527051, - "Bz_1_imag": 1.1409956493384725, - "Bz_1_real": 5993.528898267216, - "Er_0_real": 276179575540.0639, - "Er_1_imag": 47911367858371.875, - "Er_1_real": 46900598536.03668, - "Etheta_0_real": 135868121.7945822, - "Etheta_1_imag": 36802874200.20133, - "Etheta_1_real": 47328835452079.97, - "Er": 278531658643.55005, - "Et": 47328876227481.125, - "Ez": 514006664374.9789, - "Ez_0_real": 499008075334.7451, - "Ez_1_imag": 1565161989236.6174, - "Ez_1_real": 28898922272.75169, - "Jr_0_real": 1459118139844.9216, - "Jr_1_imag": 2.3356630589200717e+17, - "Jr_1_real": 2726204346551.3022, - "Jtheta_0_real": 499384029970.2145, - "Jtheta_1_imag": 1179215927404.282, - "Jtheta_1_real": 2.17663715880068e+17, - "Jz_0_real": 1832470462501306.8, - "Jz_1_imag": 621924149855721.0, - "Jz_1_real": 660909646259030.1, - "jr": 2109207014985.481, - "jt": 2.1766370884715638e+17, - "jz": 1954236712029783.0, - "rho": 39480730.556067616, - "rho_0_real": 39055926.50167212, - "rho_1_imag": 21660770.34248945, - "rho_1_real": 2131498.060778751 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/Python_LaserAcceleration_1d.json b/Regression/Checksum/benchmarks_json/Python_LaserAcceleration_1d.json deleted file mode 100644 index 935453f71..000000000 --- a/Regression/Checksum/benchmarks_json/Python_LaserAcceleration_1d.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 0.0, - "particle_momentum_y": 1.295766758135391e-20, - "particle_momentum_z": 3.314669116074607e-21, - "particle_position_x": 0.02235662928400318, - "particle_weight": 5.1796875e+18 - }, - "lev=0": { - "Bx": 178016.8926454668, - "By": 0.0, - "Bz": 0.0, - "Ex": 0.0, - "Ey": 40878300517906.74, - "Ez": 12662514703.09245, - "jx": 0.0, - "jy": 30370448611224.45, - "jz": 5611270121187.104, - "rho": 3098219.079601462 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/Python_PlasmaAcceleration.json b/Regression/Checksum/benchmarks_json/Python_PlasmaAcceleration.json deleted file mode 100644 index 5cad819a7..000000000 --- a/Regression/Checksum/benchmarks_json/Python_PlasmaAcceleration.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "beam": { - "particle_momentum_x": 5.708397145757236e-20, - "particle_momentum_y": 5.708397145757229e-20, - "particle_momentum_z": 7.574215683313995e-19, - "particle_position_x": 0.009793902444696388, - "particle_position_y": 0.00979390244469639, - "particle_position_z": 0.1047802881481609, - "particle_weight": 7031249999.999999 - }, - "lev=0": { - "Ex": 7074528555636.087, - "Ey": 7074528078305.145, - "Ez": 19091561484766.926, - "jx": 92775315721769.97, - "jy": 92775315721769.94, - "jz": 1267816446833707.5, - "part_per_cell": 590976.0 - }, - "plasma": { - "particle_momentum_x": 0.0, - "particle_momentum_y": 0.0, - "particle_momentum_z": 0.0, - "particle_position_x": 58.98240000000005, - "particle_position_y": 58.98239999999999, - "particle_position_z": 66.35520000000001, - "particle_weight": 360000000000.0 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/Python_PlasmaAcceleration1d.json b/Regression/Checksum/benchmarks_json/Python_PlasmaAcceleration1d.json deleted file mode 100644 index 1dc134fd2..000000000 --- a/Regression/Checksum/benchmarks_json/Python_PlasmaAcceleration1d.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "lev=0": { - "Ex": 0.0, - "Ey": 0.0, - "Ez": 0.0, - "jx": 0.0, - "jy": 0.0, - "jz": 0.0, - "part_per_cell": 640.0 - }, - "plasma": { - "particle_momentum_x": 0.0, - "particle_momentum_y": 0.0, - "particle_momentum_z": 0.0, - "particle_position_x": 3.9920000000000724, - "particle_weight": 4.0000000000000456e+18 - } -} diff --git a/Regression/Checksum/benchmarks_json/Python_PlasmaAccelerationMR.json b/Regression/Checksum/benchmarks_json/Python_PlasmaAccelerationMR.json deleted file mode 100644 index 9e53989cf..000000000 --- a/Regression/Checksum/benchmarks_json/Python_PlasmaAccelerationMR.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "beam": { - "particle_momentum_x": 3.8119259477932654e-21, - "particle_momentum_y": 3.811925947793233e-21, - "particle_momentum_z": 1.9589051047404492e-17, - "particle_position_x": 0.21969753065693753, - "particle_position_y": 0.21969753065693748, - "particle_position_z": 2.6292392322539397, - "particle_weight": 8251953124.999998 - }, - "lev=0": { - "Ex": 6818198913.113014, - "Ey": 6818198913.112965, - "Ez": 2113758867468.3706, - "jx": 102717196714.27661, - "jy": 102717196714.16138, - "jz": 1554717960263530.8, - "part_per_cell": 7864320.0 - }, - "lev=1": { - "Ex": 54688854466.86934, - "Ey": 54688854466.8683, - "Ez": 16910070939746.969, - "jx": 821737573714.2129, - "jy": 821737573713.291, - "jz": 1.2437743682108246e+16, - "part_per_cell": 21632.0 - }, - "plasma": { - "particle_momentum_x": 0.0, - "particle_momentum_y": 0.0, - "particle_momentum_z": 0.0, - "particle_position_x": 838.8608000000077, - "particle_position_y": 838.8608, - "particle_position_z": 838.8608000000019, - "particle_weight": 320000000000.0 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/Python_gaussian_beam.json b/Regression/Checksum/benchmarks_json/Python_gaussian_beam.json deleted file mode 100644 index 2129e8af5..000000000 --- a/Regression/Checksum/benchmarks_json/Python_gaussian_beam.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 6.808479576836945e-20, - "particle_momentum_y": 6.876934757849776e-20, - "particle_momentum_z": 6.802215755177324e-20, - "particle_position_x": 6339.279719574188, - "particle_position_y": 6400.519522256783, - "particle_position_z": 6332.552838182088, - "particle_weight": 4999999954710.04 - }, - "lev=0": { - "Bx": 2.18760546171463e-05, - "By": 1.777427672926153e-05, - "Bz": 1.798431779205324e-05, - "Ex": 262735.3418998487, - "Ey": 264285.9081716973, - "Ez": 262283.0576561827, - "jx": 930.8363498458478, - "jy": 940.577756171662, - "jz": 929.9701516370898, - "part_per_cell": 65536.0 - }, - "protons": { - "particle_momentum_x": 3.177356695273816e-21, - "particle_momentum_y": 3.165603704977051e-21, - "particle_momentum_z": 3.157786057110636e-21, - "particle_position_x": 6550.923797287247, - "particle_position_y": 6537.195882086984, - "particle_position_z": 6523.379262220709, - "particle_weight": 4999999954710.04 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/Python_magnetostatic_eb_3d.json b/Regression/Checksum/benchmarks_json/Python_magnetostatic_eb_3d.json deleted file mode 100644 index abe91ac9e..000000000 --- a/Regression/Checksum/benchmarks_json/Python_magnetostatic_eb_3d.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "beam": { - "particle_momentum_x": 1.3878812158350944e-21, - "particle_momentum_y": 1.387881215835094e-21, - "particle_momentum_z": 7.150872953138685e-16, - "particle_position_x": 11163.999973134894, - "particle_position_y": 11163.999973134896, - "particle_position_z": 131662.5003103311, - "particle_weight": 20895107655113.465 - }, - "lev=0": { - "Ax": 1.408892468360627e-05, - "Ay": 1.4088924683606269e-05, - "Az": 11.423480469161868, - "Bx": 112.23826555908032, - "By": 112.2382655590803, - "Bz": 0.00019186770330025167, - "Ex": 31418238386.183773, - "Ey": 31418238386.183773, - "Ez": 3461330433.5026026, - "jx": 1961.0003914783667, - "jy": 1961.0003914783663, - "jz": 1038931606.7573991, - "phi": 3157908107.1102533, - "rho": 3.46977258905983 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/Python_magnetostatic_eb_rz.json b/Regression/Checksum/benchmarks_json/Python_magnetostatic_eb_rz.json deleted file mode 100644 index 6cdbea79f..000000000 --- a/Regression/Checksum/benchmarks_json/Python_magnetostatic_eb_rz.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "lev=0": { - "Az": 1.730556994029862, - "Bt": 15.521137246668234, - "Er": 4333723928.147758, - "jz": 207219729.96381122, - "phi": 479458089.21137255, - "rho": 0.6946928324123767 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/Python_plasma_lens.json b/Regression/Checksum/benchmarks_json/Python_plasma_lens.json deleted file mode 100644 index f97828038..000000000 --- a/Regression/Checksum/benchmarks_json/Python_plasma_lens.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 7.424668333879405e-24, - "particle_momentum_y": 5.93963893779683e-24, - "particle_momentum_z": 2.7309245307375727e-22, - "particle_position_x": 0.0360838943897417, - "particle_position_y": 0.028872102262743393, - "particle_position_z": 3.894799963324205 - }, - "lev=0": { - "Bx": 7.799008261493657e-14, - "By": 7.78607679904626e-14, - "Bz": 5.284937703285724e-16, - "Ex": 1.238070346518611e-05, - "Ey": 1.24483203221731e-05, - "Ez": 2.174385166221258e-05, - "jx": 4.589424517378515e-10, - "jy": 3.66282354675919e-10, - "jz": 4.398157565896823e-08 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/Python_prev_positions.json b/Regression/Checksum/benchmarks_json/Python_prev_positions.json deleted file mode 100644 index 44f959cb7..000000000 --- a/Regression/Checksum/benchmarks_json/Python_prev_positions.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 8.78764082600202e-23, - "particle_momentum_y": 3.78128494181519e-24, - "particle_momentum_z": 5.396907550474659e-24, - "particle_position_x": 0.6227948811898449, - "particle_position_y": 0.5553787034074176, - "particle_prev_x": 0.6152547961491118, - "particle_prev_z": 0.5559363018627721, - "particle_weight": 8569335937.5 - }, - "lev=0": { - "Bx": 0.0, - "By": 0.0, - "Bz": 0.0, - "Ex": 3710588.849989976, - "Ey": 0.0, - "Ez": 646727.8074440088, - "jx": 0.0, - "jy": 0.0, - "jz": 0.0 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/Python_restart_eb.json b/Regression/Checksum/benchmarks_json/Python_restart_eb.json deleted file mode 100644 index 25087c575..000000000 --- a/Regression/Checksum/benchmarks_json/Python_restart_eb.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "lev=0": { - "Bx": 148618.63186220315, - "By": 148618.63186220315, - "Bz": 3385.851454453729, - "Ex": 55362729623335.9, - "Ey": 55362729623335.89, - "Ez": 68396725892689.86 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/Python_wrappers.json b/Regression/Checksum/benchmarks_json/Python_wrappers.json deleted file mode 100644 index 3ea791373..000000000 --- a/Regression/Checksum/benchmarks_json/Python_wrappers.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "lev=0": { - "Bx": 1.3641435093370002, - "By": 2.064187020248739, - "Bz": 1.364143507950999, - "Ex": 424983257.0782249, - "Ey": 159848274.5435922, - "Ez": 321466525.1840332 - } -} diff --git a/Regression/Checksum/benchmarks_json/RefinedInjection.json b/Regression/Checksum/benchmarks_json/RefinedInjection.json deleted file mode 100644 index 8be545f38..000000000 --- a/Regression/Checksum/benchmarks_json/RefinedInjection.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "beam": { - "particle_momentum_x": 4.5603842543853726e-20, - "particle_momentum_y": 4.191542263916011e-20, - "particle_momentum_z": 1.363947302075425e-17, - "particle_position_x": 4.672031050423284e-05, - "particle_position_y": 0.00024387147640533396, - "particle_weight": 12483018148921.525 - }, - "electrons": { - "particle_momentum_x": 4.599605609558194e-19, - "particle_momentum_y": 5.498912551464532e-19, - "particle_momentum_z": 2.142770005689478e-19, - "particle_position_x": 0.14677470680495958, - "particle_position_y": 0.3695766840020302, - "particle_weight": 216500976562500.75 - }, - "lev=0": { - "Bx": 26338374.3731115, - "By": 160257.72168459874, - "Bz": 694868.2285976049, - "Ex": 56513906233209.63, - "Ey": 7806074074131210.0, - "Ez": 65816739650512.98, - "jx": 6873283793354275.0, - "jy": 4287548168426209.0, - "jz": 7506499988368183.0, - "rho": 278060758.9118884 - }, - "lev=1": { - "Bx": 41971136.54330983, - "By": 347834.7278931723, - "Bz": 1093489.2683699469, - "Ex": 136247072743280.97, - "Ey": 1.2435931966910504e+16, - "Ez": 92449079327862.72, - "jx": 1.6499002357270928e+16, - "jy": 1571736982354559.0, - "jz": 2.219065825081704e+16, - "rho": 298322648.1883917 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/RepellingParticles.json b/Regression/Checksum/benchmarks_json/RepellingParticles.json deleted file mode 100644 index 57b36cdc9..000000000 --- a/Regression/Checksum/benchmarks_json/RepellingParticles.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "electron1": { - "particle_momentum_x": 7.303686586478214e-23, - "particle_momentum_y": 0.0, - "particle_momentum_z": 1.556862195127266e-36, - "particle_position_x": 1.293487226551532e-05, - "particle_position_y": 1.777889117487881e-19, - "particle_weight": 5000000000000.0 - }, - "electron2": { - "particle_momentum_x": 7.303686586477884e-23, - "particle_momentum_y": 0.0, - "particle_momentum_z": 1.567350238825104e-36, - "particle_position_x": 1.293487226551495e-05, - "particle_position_y": 1.797289839952283e-19, - "particle_weight": 5000000000000.0 - }, - "lev=0": { - "Bx": 0.0, - "By": 10603.68142196111, - "Bz": 0.0, - "Ex": 12084698236273.04, - "Ey": 0.0, - "Ez": 16282812598779.53, - "F": 21124.39775810061, - "divE": 1.495787831639981e+18, - "jx": 496020344341011.4, - "jy": 0.0, - "jz": 10.93513947024536, - "rho": 6408706.535999998 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/RigidInjection_BTD.json b/Regression/Checksum/benchmarks_json/RigidInjection_BTD.json deleted file mode 100644 index 90cf13420..000000000 --- a/Regression/Checksum/benchmarks_json/RigidInjection_BTD.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "beam": { - "particle_momentum_x": 2.2080215038948936e-16, - "particle_momentum_y": 2.18711072170811e-16, - "particle_momentum_z": 2.730924530737497e-15, - "particle_position_x": 0.0260823588888081, - "particle_position_y": 0.5049438607316916, - "particle_weight": 62415.090744607645 - }, - "lev=0": { - "Bx": 3.721807007218884e-05, - "By": 0.004860056238272468, - "Bz": 5.5335765596325185e-06, - "Ex": 1466447.517373168, - "Ey": 11214.10223280318, - "Ez": 283216.0961218869, - "jx": 16437877.898892513, - "jy": 2492340.3149980404, - "jz": 215102423.57036877, - "rho": 0.7246235591902177 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/RigidInjection_lab.json b/Regression/Checksum/benchmarks_json/RigidInjection_lab.json deleted file mode 100644 index b1ed4f4ae..000000000 --- a/Regression/Checksum/benchmarks_json/RigidInjection_lab.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "beam": { - "particle_center": 776.0, - "particle_momentum_x": 4.368290868012154e-17, - "particle_momentum_y": 4.438068704747877e-17, - "particle_momentum_z": 5.461849061470348e-16, - "particle_orig_z": 0.010011399181766063, - "particle_position_x": 0.003457868696205348, - "particle_position_y": 0.07921343233374142, - "particle_weight": 62415.090744607616 - }, - "lev=0": { - "Bx": 1.415260455438867e-06, - "By": 8.841786780353841e-05, - "Bz": 3.169710341533189e-07, - "Ex": 25405.83939696101, - "Ey": 426.9119798254813, - "Ez": 10655.86706911259, - "jx": 427197.6655283216, - "jy": 44736.93485717982, - "jz": 6079452.082858892 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/TwoParticle_electrostatic.json b/Regression/Checksum/benchmarks_json/TwoParticle_electrostatic.json deleted file mode 100644 index aaf04f8a7..000000000 --- a/Regression/Checksum/benchmarks_json/TwoParticle_electrostatic.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "electron1": { - "particle_momentum_x": 3.346088201352191e-29, - "particle_momentum_y": 3.346088199932699e-29, - "particle_momentum_z": 3.3460881978884573e-29, - "particle_position_x": 0.1545496421786394, - "particle_position_y": 0.15454964213891717, - "particle_position_z": 0.15454964208395047, - "particle_weight": 1.0 - }, - "electron2": { - "particle_momentum_x": 3.346088199424244e-29, - "particle_momentum_y": 3.346088202432085e-29, - "particle_momentum_z": 3.346088202108714e-29, - "particle_position_x": 0.15454964215048347, - "particle_position_y": 0.15454964222866666, - "particle_position_z": 0.15454964222208387, - "particle_weight": 1.0 - }, - "lev=0": { - "Ex": 7.101527209952963e-05, - "Ey": 7.10152721046017e-05, - "Ez": 7.101527211163835e-05, - "rho": 1.3125030985727997e-15 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/Uniform_2d.json b/Regression/Checksum/benchmarks_json/Uniform_2d.json deleted file mode 100644 index 37259fab1..000000000 --- a/Regression/Checksum/benchmarks_json/Uniform_2d.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 1.351015959339252e-19, - "particle_momentum_y": 1.4247897414482528e-19, - "particle_momentum_z": 1.358343918790746e-19, - "particle_position_x": 0.6553599081141356, - "particle_position_y": 0.6553620079552859, - "particle_weight": 1.6000000000000002e+16 - }, - "lev=0": { - "Bx": 6362.562365105747, - "By": 9622.626616045134, - "Bz": 6417.953753398021, - "Ex": 10607778038019.984, - "Ey": 1627265270356.6423, - "Ez": 10450213691298.174, - "jx": 1.2606677884787384e+16, - "jy": 1.219056667096164e+16, - "jz": 1.2408942160248124e+16 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/VayDeposition2D.json b/Regression/Checksum/benchmarks_json/VayDeposition2D.json deleted file mode 100644 index 002b7dbe7..000000000 --- a/Regression/Checksum/benchmarks_json/VayDeposition2D.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "electron": { - "particle_momentum_x": 1.349066061e-13, - "particle_momentum_y": 0.0, - "particle_momentum_z": 1.349066061e-13, - "particle_position_x": 14.351043713724023, - "particle_position_y": 14.351043713724023, - "particle_weight": 1.0 - }, - "ion": { - "particle_momentum_x": 1.349066061e-13, - "particle_momentum_y": 0.0, - "particle_momentum_z": 1.349066061e-13, - "particle_position_x": 14.351043713724023, - "particle_position_y": 14.351043713724023, - "particle_weight": 1.0 - }, - "lev=0": { - "By": 4.8850423335524976e-15, - "Ex": 1.5748554237210878e-06, - "Ez": 1.5745640654762762e-06, - "divE": 7.364434433257197e-08, - "jx": 7.96477185276095e-11, - "jz": 7.971109000864354e-11, - "rho": 6.481496783075554e-19 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/VayDeposition3D.json b/Regression/Checksum/benchmarks_json/VayDeposition3D.json deleted file mode 100644 index d99c9f0af..000000000 --- a/Regression/Checksum/benchmarks_json/VayDeposition3D.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "electron": { - "particle_momentum_x": 1.349066061e-13, - "particle_momentum_y": 1.349066061e-13, - "particle_momentum_z": 1.349066061e-13, - "particle_position_x": 13.286484722880228, - "particle_position_y": 13.286484722880228, - "particle_position_z": 13.286484722880228, - "particle_weight": 1.0 - }, - "ion": { - "particle_momentum_x": 1.349066061e-13, - "particle_momentum_y": 1.349066061e-13, - "particle_momentum_z": 1.349066061e-13, - "particle_position_x": 13.286484722880228, - "particle_position_y": 13.286484722880228, - "particle_position_z": 13.286484722880228, - "particle_weight": 1.0 - }, - "lev=0": { - "Bx": 8.481813081143231e-16, - "By": 8.481813081143229e-16, - "Bz": 8.481813081143229e-16, - "Ex": 3.0819459288113856e-07, - "Ey": 3.0819459288113856e-07, - "Ez": 3.0819459288113856e-07, - "divE": 1.317737929174611e-08, - "jx": 1.3111027684847054e-11, - "jy": 1.311102768484716e-11, - "jz": 1.3111027684847218e-11, - "rho": 1.1522660947689872e-19 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/averaged_galilean_2d_psatd.json b/Regression/Checksum/benchmarks_json/averaged_galilean_2d_psatd.json deleted file mode 100644 index 2fae8df91..000000000 --- a/Regression/Checksum/benchmarks_json/averaged_galilean_2d_psatd.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 2.532370425299364e-21, - "particle_momentum_y": 2.699959945265511e-21, - "particle_momentum_z": 1.7807676308672323e-16, - "particle_position_x": 405588.5890661151, - "particle_position_y": 20127109.119097948, - "particle_weight": 6.917460794691972e+17 - }, - "ions": { - "particle_momentum_x": 2.6093747608241028e-18, - "particle_momentum_y": 2.617947710713471e-18, - "particle_momentum_z": 3.269760999095121e-13, - "particle_position_x": 405588.4386175681, - "particle_position_y": 20127109.117484942, - "particle_weight": 6.917460794691972e+17 - }, - "lev=0": { - "Bx": 0.002836797963533812, - "By": 0.0015871101422500937, - "Bz": 0.007993802082802991, - "Ex": 483043.6110477062, - "Ey": 2565122.7016415303, - "Ez": 44625.54901861734, - "jx": 219.64580002836755, - "jy": 985.4589204209067, - "jz": 4147.941958882783 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/averaged_galilean_2d_psatd_hybrid.json b/Regression/Checksum/benchmarks_json/averaged_galilean_2d_psatd_hybrid.json deleted file mode 100644 index 1b2f657ba..000000000 --- a/Regression/Checksum/benchmarks_json/averaged_galilean_2d_psatd_hybrid.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 2.698796676582727e-21, - "particle_momentum_y": 2.358317699793830e-21, - "particle_momentum_z": 1.7807675042654014e-16, - "particle_position_x": 405588.6263336367, - "particle_position_y": 20127109.123049334, - "particle_weight": 6.917460794691972e+17 - }, - "ions": { - "particle_momentum_x": 2.6368707637661792e-18, - "particle_momentum_y": 2.6255383353049537e-18, - "particle_momentum_z": 3.2697610879044984e-13, - "particle_position_x": 405588.6872874654, - "particle_position_y": 20127109.122936208, - "particle_weight": 6.917460794691972e+17 - }, - "lev=0": { - "Bx": 2.232325678078911e-03, - "By": 4.459932871524489e-03, - "Bz": 6.374578981274600e-03, - "Ex": 1.416337670753960e+06, - "Ey": 2097441.857526919, - "Ez": 3.226592528925644e+05, - "jx": 434.8052109005167, - "jy": 844.9945365202007, - "jz": 5016.6719265439715 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/averaged_galilean_3d_psatd.json b/Regression/Checksum/benchmarks_json/averaged_galilean_3d_psatd.json deleted file mode 100644 index 1689a1332..000000000 --- a/Regression/Checksum/benchmarks_json/averaged_galilean_3d_psatd.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 7.68203189224468e-22, - "particle_momentum_y": 7.790694236545759e-22, - "particle_momentum_z": 8.903825726864705e-17, - "particle_position_x": 81920.22060630744, - "particle_position_y": 81919.5862141829, - "particle_position_z": 4859842.2500584535, - "particle_weight": 8.465938144469544e+17 - }, - "ions": { - "particle_momentum_x": 1.315100711300618e-18, - "particle_momentum_y": 1.3043486939872222e-18, - "particle_momentum_z": 1.6348805701080172e-13, - "particle_position_x": 81920.24863538152, - "particle_position_y": 81919.60417276036, - "particle_position_z": 4859842.251721316, - "particle_weight": 8.465938144469544e+17 - }, - "lev=0": { - "Bx": 0.003065529663856482, - "By": 0.003128474422296177, - "Bz": 0.0020318868508058304, - "Ex": 1015051.2393758895, - "Ey": 962257.7318234849, - "Ez": 85850.49908322783, - "jx": 868.49711435885, - "jy": 934.4643389319831, - "jz": 13927.302944911089 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/averaged_galilean_3d_psatd_hybrid.json b/Regression/Checksum/benchmarks_json/averaged_galilean_3d_psatd_hybrid.json deleted file mode 100644 index 469d7c7d4..000000000 --- a/Regression/Checksum/benchmarks_json/averaged_galilean_3d_psatd_hybrid.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 7.541293474047602e-22, - "particle_momentum_y": 7.659237311038949e-22, - "particle_momentum_z": 8.903837825813545e-17, - "particle_position_x": 81920.19983311385, - "particle_position_y": 81919.57574159632, - "particle_position_z": 4859842.25173892, - "particle_weight": 8.465938144469544e+17 - }, - "ions": { - "particle_momentum_x": 1.3150661471416006e-18, - "particle_momentum_y": 1.3043086023289102e-18, - "particle_momentum_z": 1.6348805688929498e-13, - "particle_position_x": 81920.24864627604, - "particle_position_y": 81919.60417848203, - "particle_position_z": 4859842.251720389, - "particle_weight": 8.465938144469544e+17 - }, - "lev=0": { - "Bx": 0.0013098871638097358, - "By": 0.0013022560350337753, - "Bz": 0.0011362439560486531, - "Ex": 484163.6732625635, - "Ey": 477718.00481193175, - "Ez": 59111.02620595385, - "jx": 518.3761051018562, - "jy": 518.2049269419615, - "jz": 12510.503007892248 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/background_mcc.json b/Regression/Checksum/benchmarks_json/background_mcc.json deleted file mode 100644 index 579f46d33..000000000 --- a/Regression/Checksum/benchmarks_json/background_mcc.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 1.011638818664759e-18, - "particle_momentum_y": 2.81974298744432e-19, - "particle_momentum_z": 2.809194032519318e-19, - "particle_position_x": 17136.01865460215, - "particle_position_y": 936.3651769897449, - "particle_weight": 61113170379.63868 - }, - "he_ions": { - "particle_momentum_x": 2.883076633513297e-18, - "particle_momentum_y": 2.195704870583595e-18, - "particle_momentum_z": 2.198216553980008e-18, - "particle_position_x": 17607.42545752183, - "particle_position_y": 1100.024786059151, - "particle_weight": 71976747650.1465 - }, - "lev=0": { - "rho_electrons": 0.03558889419586454, - "rho_he_ions": 0.04176234095111594 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/background_mcc_dp_psp.json b/Regression/Checksum/benchmarks_json/background_mcc_dp_psp.json deleted file mode 100644 index 293d13bca..000000000 --- a/Regression/Checksum/benchmarks_json/background_mcc_dp_psp.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 1.0114377816709915e-18, - "particle_momentum_y": 2.818489864690527e-19, - "particle_momentum_z": 2.8100058425346876e-19, - "particle_position_x": 17134.123449898325, - "particle_position_y": 935.6698666088197, - "particle_weight": 61112621534.71875 - }, - "he_ions": { - "particle_momentum_x": 2.8825928801339863e-18, - "particle_momentum_y": 2.1960207749405925e-18, - "particle_momentum_z": 2.1982341417154103e-18, - "particle_position_x": 17605.832952560857, - "particle_position_y": 1099.9805176648345, - "particle_weight": 71973184795.40625 - }, - "lev=0": { - "rho_electrons": 0.03558546795888026, - "rho_he_ions": 0.04176038296311556 - } -} diff --git a/Regression/Checksum/benchmarks_json/bilinear_filter.json b/Regression/Checksum/benchmarks_json/bilinear_filter.json deleted file mode 100644 index 48ef51187..000000000 --- a/Regression/Checksum/benchmarks_json/bilinear_filter.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "electron": { - "particle_momentum_x": 0.027309245307378237, - "particle_momentum_y": 0.0, - "particle_momentum_z": 1.2693369400596442e-38, - "particle_position_x": 0.8320502943378437, - "particle_position_y": 0.0, - "particle_weight": 1.0 - }, - "lev=0": { - "Bx": 0.0, - "By": 4.570441811324637e-18, - "Bz": 0.0, - "Ex": 1.0037371152015263e-08, - "Ey": 0.0, - "Ez": 0.0, - "jx": 3.202136475046842e-11, - "jy": 0.0, - "jz": 0.0 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/collisionISO.json b/Regression/Checksum/benchmarks_json/collisionISO.json deleted file mode 100644 index 742cb7752..000000000 --- a/Regression/Checksum/benchmarks_json/collisionISO.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "electron": { - "particle_momentum_x": 3.5796522874263304e-19, - "particle_momentum_y": 3.580087349086981e-19, - "particle_momentum_z": 3.5805012694309815e-19, - "particle_position_x": 1.024116253197213, - "particle_position_y": 1.0238635904620974, - "particle_position_z": 1.0240133505121767, - "particle_weight": 714240000000.0 - }, - "lev=0": { - "Bx": 0.0, - "By": 0.0, - "Bz": 0.0, - "Ex": 0.0, - "Ey": 0.0, - "Ez": 0.0, - "jx": 0.0, - "jy": 0.0, - "jz": 0.0 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/collisionRZ.json b/Regression/Checksum/benchmarks_json/collisionRZ.json deleted file mode 100644 index d0dee71a4..000000000 --- a/Regression/Checksum/benchmarks_json/collisionRZ.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "lev=0": { - "Br": 0.0, - "Bt": 0.0, - "Bz": 0.0, - "Er": 0.0, - "Et": 0.0, - "Ez": 0.0, - "jr": 0.0, - "jt": 0.0, - "jz": 0.0 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/collisionXYZ.json b/Regression/Checksum/benchmarks_json/collisionXYZ.json deleted file mode 100644 index 148bb80c1..000000000 --- a/Regression/Checksum/benchmarks_json/collisionXYZ.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "lev=0": { - "Bx": 0.0, - "By": 0.0, - "Bz": 0.0, - "Ex": 0.0, - "Ey": 0.0, - "Ez": 0.0, - "jx": 0.0, - "jy": 0.0, - "jz": 0.0 - } -} diff --git a/Regression/Checksum/benchmarks_json/collisionXZ.json b/Regression/Checksum/benchmarks_json/collisionXZ.json deleted file mode 100644 index d24938471..000000000 --- a/Regression/Checksum/benchmarks_json/collisionXZ.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "lev=0": { - "Bx": 0.0, - "By": 0.0, - "Bz": 0.0, - "Ex": 0.0, - "Ey": 0.0, - "Ez": 0.0, - "jx": 0.0, - "jy": 0.0, - "jz": 0.0 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/comoving_2d_psatd_hybrid.json b/Regression/Checksum/benchmarks_json/comoving_2d_psatd_hybrid.json deleted file mode 100644 index d62cd0086..000000000 --- a/Regression/Checksum/benchmarks_json/comoving_2d_psatd_hybrid.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "beam": { - "particle_momentum_x": 6.875024052604206e-19, - "particle_momentum_y": 4.375444487966637e-19, - "particle_momentum_z": 6.432593176909762e-18, - "particle_position_x": 0.0012933598223665212, - "particle_position_y": 0.35872101659459354, - "particle_weight": 3120754537230.3823 - }, - "electrons": { - "particle_momentum_x": 7.058217306102507e-19, - "particle_momentum_y": 2.2042314720139012e-18, - "particle_momentum_z": 2.5305214299582585e-16, - "particle_position_x": 1.5006580327952221, - "particle_position_y": 16.454388306646475, - "particle_weight": 1.234867020725368e+18 - }, - "ions": { - "particle_momentum_x": 1.6150569264030943e-18, - "particle_momentum_y": 2.2334239793537862e-18, - "particle_momentum_z": 4.279249530683602e-13, - "particle_position_x": 1.4883816864868449, - "particle_position_y": 16.452386504130835, - "particle_weight": 1.234867369440658e+18 - }, - "lev=0": { - "Bx": 1118823.5061574595, - "By": 3248957.084212374, - "Bz": 280624.78102759377, - "Ex": 975532719061463.4, - "Ey": 402851207946673.1, - "Ez": 159049601047523.06, - "jx": 2.9997052529118484e+16, - "jy": 8.866616130905646e+16, - "jz": 3.163974567840701e+17, - "rho": 1059977703.1166165 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/divb_cleaning_3d.json b/Regression/Checksum/benchmarks_json/divb_cleaning_3d.json deleted file mode 100644 index cbb43a810..000000000 --- a/Regression/Checksum/benchmarks_json/divb_cleaning_3d.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "lev=0": { - "Bx": 30128649.582633037, - "By": 30128649.58263304, - "Bz": 30128649.582633033, - "Ex": 137776481658696.53, - "Ey": 137776481658695.72, - "Ez": 137776481658736.47, - "G": 7382627392167406.0, - "divB": 6914882882637.787, - "divE": 60880563.38401385 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/dive_cleaning_2d.json b/Regression/Checksum/benchmarks_json/dive_cleaning_2d.json deleted file mode 100644 index 71e147cb1..000000000 --- a/Regression/Checksum/benchmarks_json/dive_cleaning_2d.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "beam": { - "particle_Bx": 0.0, - "particle_By": 1.4229748768905527e-19, - "particle_Bz": 0.0, - "particle_Ex": 210305.84591470752, - "particle_Ey": 0.0, - "particle_Ez": 210741.1714121227, - "particle_momentum_x": 1.111019933689776e-26, - "particle_momentum_y": 0.0, - "particle_momentum_z": 1.113270980745195e-26, - "particle_position_x": 0.03183627816789909, - "particle_position_y": 0.03171922054171794, - "particle_weight": 31207.545372303823 - }, - "lev=0": { - "Bx": 0.0, - "By": 1.5468538800972258e-20, - "Bz": 0.0, - "Ex": 8533.638650013556, - "Ey": 0.0, - "Ez": 8534.98921988922, - "jx": 0.0, - "jy": 0.0, - "jz": 0.0 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/dive_cleaning_3d.json b/Regression/Checksum/benchmarks_json/dive_cleaning_3d.json deleted file mode 100644 index db23c26f9..000000000 --- a/Regression/Checksum/benchmarks_json/dive_cleaning_3d.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "beam": { - "particle_Bx": 1.6547943661629038e-20, - "particle_By": 1.7166945226626064e-20, - "particle_Bz": 1.851357799836734e-20, - "particle_Ex": 39363.91309372786, - "particle_Ey": 39331.17437154593, - "particle_Ez": 39396.18209787599, - "particle_momentum_x": 1.700384472207379e-27, - "particle_momentum_y": 1.69889110346099e-27, - "particle_momentum_z": 1.7017928140329036e-27, - "particle_position_x": 0.031880969779242374, - "particle_position_y": 0.03175704658379704, - "particle_position_z": 0.03183674192208247, - "particle_weight": 0.06241509074460764 - }, - "lev=0": { - "Bx": 2.2090009624207165e-20, - "By": 2.2307246822783936e-20, - "Bz": 2.1967888687392684e-20, - "Ex": 8888.956516621029, - "Ey": 8838.45337149105, - "Ez": 8837.421045658291, - "jx": 0.0, - "jy": 0.0, - "jz": 0.0 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/embedded_boundary_cube.json b/Regression/Checksum/benchmarks_json/embedded_boundary_cube.json deleted file mode 100644 index 69fffed2c..000000000 --- a/Regression/Checksum/benchmarks_json/embedded_boundary_cube.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "lev=0": { - "Bx": 0.0, - "By": 0.0066283741197868335, - "Bz": 0.006628374119786833, - "Ex": 5102618.47115243, - "Ey": 0.0, - "Ez": 0.0 - } -} - diff --git a/Regression/Checksum/benchmarks_json/embedded_boundary_cube_2d.json b/Regression/Checksum/benchmarks_json/embedded_boundary_cube_2d.json deleted file mode 100644 index 37a82967a..000000000 --- a/Regression/Checksum/benchmarks_json/embedded_boundary_cube_2d.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "lev=0": { - "Bx": 9.263694545408502e-05, - "By": 0.00031905198933489135, - "Bz": 7.328424783762596e-05, - "Ex": 8553.90669805307, - "Ey": 60867.04830538045, - "Ez": 0.0 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/embedded_boundary_cube_macroscopic.json b/Regression/Checksum/benchmarks_json/embedded_boundary_cube_macroscopic.json deleted file mode 100644 index 453b83f5e..000000000 --- a/Regression/Checksum/benchmarks_json/embedded_boundary_cube_macroscopic.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "lev=0": { - "Bx": 0.0, - "By": 0.005101824310293575, - "Bz": 0.005101824310293573, - "Ex": 4414725.184731115, - "Ey": 0.0, - "Ez": 0.0 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/embedded_boundary_rotated_cube.json b/Regression/Checksum/benchmarks_json/embedded_boundary_rotated_cube.json deleted file mode 100644 index b2b4aa569..000000000 --- a/Regression/Checksum/benchmarks_json/embedded_boundary_rotated_cube.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "lev=0": { - "Bx": 1.280747509243305e-05, - "By": 2.473900144296397e-02, - "Bz": 2.473890786894079e-02, - "Ex": 1.025322901921306e+07, - "Ey": 1.042254197269831e+04, - "Ez": 1.040011664019071e+04 - } -} - diff --git a/Regression/Checksum/benchmarks_json/embedded_boundary_rotated_cube_2d.json b/Regression/Checksum/benchmarks_json/embedded_boundary_rotated_cube_2d.json deleted file mode 100644 index a1db21899..000000000 --- a/Regression/Checksum/benchmarks_json/embedded_boundary_rotated_cube_2d.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "lev=0": { - "Bx": 0.0, - "By": 0.0002722100736459592, - "Bz": 0.0, - "Ex": 78275.78138124556, - "Ey": 0.0, - "Ez": 31681.635842293996 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/embedded_circle.json b/Regression/Checksum/benchmarks_json/embedded_circle.json deleted file mode 100644 index ace7d30f0..000000000 --- a/Regression/Checksum/benchmarks_json/embedded_circle.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "ar_ions": { - "particle_momentum_x": 2.6571830401121494e-18, - "particle_momentum_y": 2.646539615146913e-18, - "particle_momentum_z": 2.653185496755454e-18, - "particle_position_x": 3.1741954177767076, - "particle_position_y": 3.1742863708239244, - "particle_weight": 988093872.0703125 - }, - "electrons": { - "particle_momentum_x": 3.0229127320784506e-20, - "particle_momentum_y": 3.0092955344922534e-20, - "particle_momentum_z": 3.0309328048709314e-20, - "particle_position_x": 3.0780941230460233, - "particle_position_y": 3.0770045014981156, - "particle_weight": 957744140.625 - }, - "lev=0": { - "phi": 61982.03832581357, - "rho_ar_ions": 257.80622322208114, - "rho_electrons": 250.4644844217117 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/galilean_2d_psatd.json b/Regression/Checksum/benchmarks_json/galilean_2d_psatd.json deleted file mode 100644 index 904d2d1cf..000000000 --- a/Regression/Checksum/benchmarks_json/galilean_2d_psatd.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 0.0000000000000000000015301234911049641144, - "particle_momentum_y": 0.0, - "particle_momentum_z": 1.780767547480371e-16, - "particle_position_x": 1267465.6993027364, - "particle_position_y": 15724303.998543631, - "particle_weight": 1.6888332018290936e+18 - }, - "ions": { - "particle_momentum_x": 0.0000000000000000026093895728920787299904, - "particle_momentum_y": 0.0, - "particle_momentum_z": 3.2697609991276653e-13, - "particle_position_x": 1267465.6476895714, - "particle_position_y": 15724303.998823564, - "particle_weight": 1.6888332018290936e+18 - }, - "lev=0": { - "Bx": 0.0, - "By": 0.0024729008745806588601134912153156619752, - "Bz": 0.0, - "Ex": 747630.302621401962824165821075439453125, - "Ey": 0.0, - "Ez": 58621.659708293169387616217136383056640625, - "jx": 197.6085925003294505586382001638412475585938, - "jy": 0.0, - "jz": 3899.3719924457673187134787440299987792968750 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/galilean_2d_psatd_current_correction.json b/Regression/Checksum/benchmarks_json/galilean_2d_psatd_current_correction.json deleted file mode 100644 index 8d43e0b51..000000000 --- a/Regression/Checksum/benchmarks_json/galilean_2d_psatd_current_correction.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 1.5536145943675821e-21, - "particle_momentum_y": 0.0, - "particle_momentum_z": 1.7807674983977113e-16, - "particle_position_x": 1267465.7449785147, - "particle_position_y": 15724304.003312223, - "particle_weight": 1.6888332018290936e+18 - }, - "ions": { - "particle_momentum_x": 2.6369229634007033e-18, - "particle_momentum_y": 0.0, - "particle_momentum_z": 3.2697610879105043e-13, - "particle_position_x": 1267465.8546859026, - "particle_position_y": 15724304.003084136, - "particle_weight": 1.6888332018290936e+18 - }, - "lev=0": { - "Bx": 0.0, - "By": 0.0030245915907163154, - "Bz": 0.0, - "Ex": 914579.058236283, - "Ey": 0.0, - "Ez": 69297.0731582175, - "divE": 1695716.5213981706, - "jx": 211.85815442883973, - "jy": 0.0, - "jz": 4474.2194399497175, - "rho": 1.5014190692786408e-05 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/galilean_2d_psatd_current_correction_psb.json b/Regression/Checksum/benchmarks_json/galilean_2d_psatd_current_correction_psb.json deleted file mode 100644 index ce7e37dd1..000000000 --- a/Regression/Checksum/benchmarks_json/galilean_2d_psatd_current_correction_psb.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 1.5446768224262931e-21, - "particle_momentum_y": 0.0, - "particle_momentum_z": 1.7807675479103523e-16, - "particle_position_x": 1267465.6959779875, - "particle_position_y": 15724303.998550693, - "particle_weight": 1.6888332018290936e+18 - }, - "ions": { - "particle_momentum_x": 2.609389259207186e-18, - "particle_momentum_y": 0.0, - "particle_momentum_z": 3.269760999127174e-13, - "particle_position_x": 1267465.6476913819, - "particle_position_y": 15724303.99882355, - "particle_weight": 1.6888332018290936e+18 - }, - "lev=0": { - "Bx": 0.0, - "By": 0.002955847949540036, - "Bz": 0.0, - "Ex": 893534.7419589404, - "Ey": 0.0, - "Ez": 65657.88089087335, - "divE": 1689738.9457807848, - "jx": 219.89616041000212, - "jy": 0.0, - "jz": 4459.160944658457, - "rho": 1.4961265980553603e-05 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/galilean_2d_psatd_hybrid.json b/Regression/Checksum/benchmarks_json/galilean_2d_psatd_hybrid.json deleted file mode 100644 index cfd4bc83a..000000000 --- a/Regression/Checksum/benchmarks_json/galilean_2d_psatd_hybrid.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "beam": { - "particle_momentum_x": 7.005046981277183e-19, - "particle_momentum_y": 4.375209352729912e-19, - "particle_momentum_z": 6.175459223479959e-18, - "particle_position_x": 0.001602571749982411, - "particle_position_y": 0.35897924403061005, - "particle_weight": 3120754537230.3823 - }, - "electrons": { - "particle_momentum_x": 6.240989852249656e-19, - "particle_momentum_y": 1.5790301798509742e-18, - "particle_momentum_z": 2.5064352637575283e-16, - "particle_position_x": 1.501413662801212, - "particle_position_y": 16.523781706919216, - "particle_weight": 1.2372401466086835e+18 - }, - "ions": { - "particle_momentum_x": 1.4394968631660078e-18, - "particle_momentum_y": 1.5967458174525868e-18, - "particle_momentum_z": 4.2873406586841774e-13, - "particle_position_x": 1.4911814217840753, - "particle_position_y": 16.52196497877435, - "particle_weight": 1.2372405194129536e+18 - }, - "lev=0": { - "Bx": 1086731.2285090145, - "By": 2886537.258822082, - "Bz": 264280.80501631316, - "Ex": 867382744066315.0, - "Ey": 392669698675093.25, - "Ez": 146897949570681.72, - "jx": 2.7028852724044516e+16, - "jy": 8.615686606708202e+16, - "jz": 2.7328720244417827e+17, - "rho": 915931431.8889401 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/galilean_3d_psatd.json b/Regression/Checksum/benchmarks_json/galilean_3d_psatd.json deleted file mode 100644 index e812df2bf..000000000 --- a/Regression/Checksum/benchmarks_json/galilean_3d_psatd.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 7.8224474453759e-22, - "particle_momentum_y": 7.881551991186718e-22, - "particle_momentum_z": 8.903837962240334e-17, - "particle_position_x": 158433.4748739359, - "particle_position_y": 158432.72331317188, - "particle_position_z": 5891662.962208379, - "particle_weight": 2.041377132710917e+18 - }, - "ions": { - "particle_momentum_x": 1.3150840705006872e-18, - "particle_momentum_y": 1.3043326369180308e-18, - "particle_momentum_z": 1.6348805688701685e-13, - "particle_position_x": 158433.58057662577, - "particle_position_y": 158432.80157455913, - "particle_position_z": 5891662.961766554, - "particle_weight": 2.041377132710917e+18 - }, - "lev=0": { - "Bx": 0.006709341515495925, - "By": 0.006512861312146984, - "Bz": 0.0005748642906155977, - "Ex": 1963014.2177237389, - "Ey": 2023635.4855849762, - "Ez": 137784.96865855978, - "jx": 487.10745207420564, - "jy": 489.93324482137865, - "jz": 17815.16304064486 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/galilean_3d_psatd_current_correction.json b/Regression/Checksum/benchmarks_json/galilean_3d_psatd_current_correction.json deleted file mode 100644 index 16814f47b..000000000 --- a/Regression/Checksum/benchmarks_json/galilean_3d_psatd_current_correction.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 7.799828234013091e-22, - "particle_momentum_y": 7.853620523635122e-22, - "particle_momentum_z": 8.903838009194013e-17, - "particle_position_x": 158433.52653925028, - "particle_position_y": 158432.74997779692, - "particle_position_z": 5891662.962223673, - "particle_weight": 2.041377132710917e+18 - }, - "ions": { - "particle_momentum_x": 1.3150842145882957e-18, - "particle_momentum_y": 1.3043330137743231e-18, - "particle_momentum_z": 1.634880568866417e-13, - "particle_position_x": 158433.58054870443, - "particle_position_y": 158432.80156002127, - "particle_position_z": 5891662.961766562, - "particle_weight": 2.041377132710917e+18 - }, - "lev=0": { - "Bx": 0.0068073634628550315, - "By": 0.006697549542915319, - "Bz": 0.0005743262065396818, - "Ex": 2018478.8211576312, - "Ey": 2052642.246798101, - "Ez": 149912.8262920749, - "divE": 6615408.753505244, - "jx": 490.81504811208214, - "jy": 497.1861446484984, - "jz": 17469.798807376228, - "rho": 5.862037378889882e-05 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/galilean_3d_psatd_current_correction_psb.json b/Regression/Checksum/benchmarks_json/galilean_3d_psatd_current_correction_psb.json deleted file mode 100644 index 47f4e9c2f..000000000 --- a/Regression/Checksum/benchmarks_json/galilean_3d_psatd_current_correction_psb.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 7.768538631989314e-22, - "particle_momentum_y": 7.844994340141792e-22, - "particle_momentum_z": 8.903837510927089e-17, - "particle_position_x": 158433.32170594894, - "particle_position_y": 158432.8515695265, - "particle_position_z": 5891662.9548929185, - "particle_weight": 2.041377132710917e+18 - }, - "ions": { - "particle_momentum_x": 1.3137653484757431e-18, - "particle_momentum_y": 1.3110225003256574e-18, - "particle_momentum_z": 1.6348803844352492e-13, - "particle_position_x": 158433.312978349, - "particle_position_y": 158432.84896819026, - "particle_position_z": 5891662.955099393, - "particle_weight": 2.041377132710917e+18 - }, - "lev=0": { - "Bx": 0.006449275564525033, - "By": 0.0064783778061885235, - "Bz": 0.0006158841538190647, - "Ex": 1950801.24799352, - "Ey": 1945623.9590479229, - "Ez": 150385.8857169562, - "divE": 6191274.556649665, - "jx": 505.8903778073368, - "jy": 510.11178001328403, - "jz": 16346.473505698516, - "rho": 5.481870772518483e-05 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/galilean_rz_psatd.json b/Regression/Checksum/benchmarks_json/galilean_rz_psatd.json deleted file mode 100644 index 0fb51eb30..000000000 --- a/Regression/Checksum/benchmarks_json/galilean_rz_psatd.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 7.188262495831869e-22, - "particle_momentum_y": 9.366670272998972e-24, - "particle_momentum_z": 8.903838605112867e-17, - "particle_position_x": 633733.1377069331, - "particle_position_y": 7862152.008302979, - "particle_theta": 51471.82060096203, - "particle_weight": 1.0261080645329302e+20 - }, - "ions": { - "particle_momentum_x": 1.3139399113084718e-18, - "particle_momentum_y": 9.36530169181897e-24, - "particle_momentum_z": 1.6348806629857118e-13, - "particle_position_x": 633733.1365353089, - "particle_position_y": 7862152.007285856, - "particle_theta": 51471.6099169301, - "particle_weight": 1.0261080645329302e+20 - }, - "lev=0": { - "Bt": 0.00014277516113528766, - "Er": 42705.928351478186, - "Et": 198517.8121599189, - "Ez": 4124.588451444761, - "divE": 50681.52326965637, - "jr": 7.0768855187909985, - "jz": 469.9328176825038, - "rho": 4.488636594800136e-07 - } -} diff --git a/Regression/Checksum/benchmarks_json/galilean_rz_psatd_current_correction.json b/Regression/Checksum/benchmarks_json/galilean_rz_psatd_current_correction.json deleted file mode 100644 index 04c194769..000000000 --- a/Regression/Checksum/benchmarks_json/galilean_rz_psatd_current_correction.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 7.191153611209754e-22, - "particle_momentum_y": 1.0257805623228552e-23, - "particle_momentum_z": 8.903837290860274e-17, - "particle_position_x": 633733.1370495192, - "particle_position_y": 7862151.998806793, - "particle_theta": 51471.87947250268, - "particle_weight": 1.0261080645329302e+20 - }, - "ions": { - "particle_momentum_x": 1.315262005404354e-18, - "particle_momentum_y": 1.0257793710794356e-23, - "particle_momentum_z": 1.6348804786358645e-13, - "particle_position_x": 633733.1373065955, - "particle_position_y": 7862151.998394713, - "particle_theta": 51471.996328257424, - "particle_weight": 1.0261080645329302e+20 - }, - "lev=0": { - "Bt": 0.00015775640393745277, - "Er": 47251.732211463604, - "Et": 192391.59569913964, - "Ez": 4116.656968926056, - "divE": 56549.62552530929, - "jr": 8.162734379256568, - "jz": 474.568947819517, - "rho": 5.007025175304352e-07 - } -} diff --git a/Regression/Checksum/benchmarks_json/galilean_rz_psatd_current_correction_psb.json b/Regression/Checksum/benchmarks_json/galilean_rz_psatd_current_correction_psb.json deleted file mode 100644 index eddc22348..000000000 --- a/Regression/Checksum/benchmarks_json/galilean_rz_psatd_current_correction_psb.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 7.188314912300234e-22, - "particle_momentum_y": 1.0394436737288987e-23, - "particle_momentum_z": 8.903837852634527e-17, - "particle_position_x": 633733.136187464, - "particle_position_y": 7862152.0078902915, - "particle_theta": 51471.82060104632, - "particle_weight": 1.0261080645329302e+20 - }, - "ions": { - "particle_momentum_x": 1.3139399186198985e-18, - "particle_momentum_y": 1.0393368162404926e-23, - "particle_momentum_z": 1.6348806630609593e-13, - "particle_position_x": 633733.1365361367, - "particle_position_y": 7862152.007286081, - "particle_theta": 51471.609916929985, - "particle_weight": 1.0261080645329302e+20 - }, - "lev=0": { - "Bt": 0.00015467138145729178, - "Er": 46302.55104771345, - "Et": 198512.61435989104, - "Ez": 4269.500411629442, - "divE": 56473.85900924703, - "jr": 5.550691097640847, - "jz": 149.74203244538995, - "rho": 5.000301541815611e-07 - } -} diff --git a/Regression/Checksum/benchmarks_json/hard_edged_plasma_lens.json b/Regression/Checksum/benchmarks_json/hard_edged_plasma_lens.json deleted file mode 100644 index f97828038..000000000 --- a/Regression/Checksum/benchmarks_json/hard_edged_plasma_lens.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 7.424668333879405e-24, - "particle_momentum_y": 5.93963893779683e-24, - "particle_momentum_z": 2.7309245307375727e-22, - "particle_position_x": 0.0360838943897417, - "particle_position_y": 0.028872102262743393, - "particle_position_z": 3.894799963324205 - }, - "lev=0": { - "Bx": 7.799008261493657e-14, - "By": 7.78607679904626e-14, - "Bz": 5.284937703285724e-16, - "Ex": 1.238070346518611e-05, - "Ey": 1.24483203221731e-05, - "Ez": 2.174385166221258e-05, - "jx": 4.589424517378515e-10, - "jy": 3.66282354675919e-10, - "jz": 4.398157565896823e-08 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/hard_edged_quadrupoles.json b/Regression/Checksum/benchmarks_json/hard_edged_quadrupoles.json deleted file mode 100644 index 644642fab..000000000 --- a/Regression/Checksum/benchmarks_json/hard_edged_quadrupoles.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "electron": { - "particle_momentum_x": 2.081939298256737e-25, - "particle_momentum_y": 6.1883543638832e-34, - "particle_momentum_z": 2.730924530728755e-23, - "particle_position_x": 0.03492328774453408, - "particle_position_y": 2.336103219889021e-11, - "particle_position_z": 1.4915217664609877, - "particle_weight": 1.0 - }, - "lev=0": { - "Bx": 0.0, - "By": 0.0, - "Bz": 0.0, - "Ex": 9.882421146541765e-06, - "Ey": 1.044026104671521e-05, - "Ez": 1.003739697325251e-05, - "jx": 0.0, - "jy": 0.0, - "jz": 0.0 - } -} diff --git a/Regression/Checksum/benchmarks_json/hard_edged_quadrupoles_boosted.json b/Regression/Checksum/benchmarks_json/hard_edged_quadrupoles_boosted.json deleted file mode 100644 index acec34286..000000000 --- a/Regression/Checksum/benchmarks_json/hard_edged_quadrupoles_boosted.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "electron": { - "particle_momentum_x": 5.955475926588059e-26, - "particle_momentum_y": 1.4612764777454504e-35, - "particle_momentum_z": 3.4687284535374423e-23, - "particle_position_x": 0.049960237123814574, - "particle_position_y": 8.397636119991403e-15, - "particle_position_z": 0.10931687737912647, - "particle_weight": 1.0 - }, - "lev=0": { - "Bx": 3.254531465641299e-14, - "By": 3.2768092409497234e-14, - "Bz": 1.0615286316115558e-16, - "Ex": 2.30845657253269e-05, - "Ey": 2.2656898931877975e-05, - "Ez": 1.997747654112569e-05, - "jx": 1.7819477343635878e-10, - "jy": 4.2163030523377745e-20, - "jz": 1.0378839382497739e-07 - } -} diff --git a/Regression/Checksum/benchmarks_json/hard_edged_quadrupoles_moving.json b/Regression/Checksum/benchmarks_json/hard_edged_quadrupoles_moving.json deleted file mode 100644 index f00caa736..000000000 --- a/Regression/Checksum/benchmarks_json/hard_edged_quadrupoles_moving.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "electron": { - "particle_momentum_x": 2.0819392998019253e-25, - "particle_momentum_y": 2.3316091155621773e-33, - "particle_momentum_z": 2.730924530757351e-23, - "particle_position_x": 0.034923287741880055, - "particle_position_y": 9.300626840674331e-11, - "particle_position_z": 1.491521766472402, - "particle_weight": 1.0 - }, - "lev=0": { - "Bx": 0.0, - "By": 0.0, - "Bz": 0.0, - "Ex": 6.028256519009052e-05, - "Ey": 6.384796595673982e-05, - "Ez": 7.88045921306518e-05, - "jx": 0.0, - "jy": 0.0, - "jz": 0.0 - } -} diff --git a/Regression/Checksum/benchmarks_json/initial_distribution.json b/Regression/Checksum/benchmarks_json/initial_distribution.json deleted file mode 100644 index 5257c2de2..000000000 --- a/Regression/Checksum/benchmarks_json/initial_distribution.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "beam": { - "particle_momentum_x": 1.065668650866494e-16, - "particle_momentum_y": 1.065290456129874e-16, - "particle_momentum_z": 1.064668914438635e-16, - "particle_position_x": 97438.20096731099, - "particle_position_y": 97358.839485784, - "particle_position_z": 88428.30909066088, - "particle_weight": 0.05958446885576042 - }, - "gaussian": { - "particle_momentum_x": 1.1148694854418736e-18, - "particle_momentum_y": 1.1139504847073219e-18, - "particle_momentum_z": 1.11450954619821e-18, - "particle_position_x": 256080.8791703085, - "particle_position_y": 255990.74838430836, - "particle_position_z": 255985.3138786131, - "particle_weight": 8e+21 - }, - "lev=0": { - "Bx": 1.416173579179818e-11, - "By": 2.285774163476767e-12, - "Bz": 2.259533196304383e-12, - "Ex": 102404.5179282011, - "Ey": 2721625.6922874, - "Ez": 105251.0632959, - "jx": 188325517264.4187, - "jy": 5005165559780.496, - "jz": 193560414509.5226 - }, - "maxwell_boltzmann": { - "particle_momentum_x": 1.115726254239343e-18, - "particle_momentum_y": 1.115862732826254e-18, - "particle_momentum_z": 1.116611006199691e-18, - "particle_position_x": 255961.1556903974, - "particle_position_y": 255863.7685374788, - "particle_position_z": 255905.3931023837, - "particle_weight": 8e+21 - }, - "maxwell_juttner": { - "particle_momentum_x": 2.21345187770139e-16, - "particle_momentum_y": 2.216103639626306e-16, - "particle_momentum_z": 2.212898013900304e-16, - "particle_position_x": 256016.2534041072, - "particle_position_y": 255955.2756722792, - "particle_position_z": 255979.3536929577, - "particle_weight": 8e+21 - }, - "maxwell_juttner_parser": { - "particle_momentum_x": 3.244003577912501e-16, - "particle_momentum_y": 3.250401412760131e-16, - "particle_momentum_z": 3.245149232761166e-16, - "particle_position_x": 255982.1948847503, - "particle_position_y": 255914.1205479481, - "particle_position_z": 255998.1087893797, - "particle_weight": 8e+21 - }, - "velocity_constant": { - "particle_momentum_x": 3.525652955878835e-21, - "particle_momentum_y": 2.854131883579881e-17, - "particle_momentum_z": 3.529207116503112e-21, - "particle_position_x": 256041.594025335, - "particle_position_y": 255990.8024381017, - "particle_position_z": 256058.6711995684, - "particle_weight": 8e+21 - }, - "velocity_parser": { - "particle_momentum_x": 3.527571570541855e-21, - "particle_momentum_y": 2.85413213756175e-17, - "particle_momentum_z": 3.524858765083303e-21, - "particle_position_x": 256005.3295733187, - "particle_position_y": 256024.073334694, - "particle_position_z": 255884.2303468903, - "particle_weight": 8e+21 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/ion_stopping.json b/Regression/Checksum/benchmarks_json/ion_stopping.json deleted file mode 100644 index f780e3140..000000000 --- a/Regression/Checksum/benchmarks_json/ion_stopping.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "ions1": { - "particle_momentum_x": 3.4560250353184555e-22, - "particle_momentum_y": 3.4560250353184555e-22, - "particle_momentum_z": 3.4560250353184555e-22, - "particle_position_x": 0.0006978687369019061, - "particle_position_y": 0.0006978687369019061, - "particle_position_z": 0.0006978687369019061, - "particle_weight": 4.0 - }, - "ions2": { - "particle_momentum_x": 9.111625188610108e-22, - "particle_momentum_y": 0.0, - "particle_momentum_z": 0.0, - "particle_position_x": 0.4000131356596105, - "particle_position_y": 0.4, - "particle_position_z": 0.0, - "particle_weight": 4.0 - }, - "ions3": { - "particle_momentum_x": 6.943047764036734e-22, - "particle_momentum_y": 6.943047764036734e-22, - "particle_momentum_z": 6.943047764036734e-22, - "particle_position_x": 0.000349793860769889, - "particle_position_y": 0.000349793860769889, - "particle_position_z": 0.000349793860769889, - "particle_weight": 4.0 - }, - "ions4": { - "particle_momentum_x": 1.8496124473858214e-21, - "particle_momentum_y": 0.0, - "particle_momentum_z": 0.0, - "particle_position_x": 0.4000005258500433, - "particle_position_y": 0.4, - "particle_position_z": 0.0, - "particle_weight": 4.0 - }, - "lev=0": { - "Bx": 0.0, - "By": 0.0, - "Bz": 0.0, - "Ex": 0.0, - "Ey": 0.0, - "Ez": 0.0, - "jx": 0.0, - "jy": 0.0, - "jz": 0.0 - } -} diff --git a/Regression/Checksum/benchmarks_json/ionization_boost.json b/Regression/Checksum/benchmarks_json/ionization_boost.json deleted file mode 100644 index cb02eeba5..000000000 --- a/Regression/Checksum/benchmarks_json/ionization_boost.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 2.137334032699983e-17, - "particle_momentum_y": 0.0, - "particle_momentum_z": 1.729179869336611e-17, - "particle_position_x": 0.11036860836114047, - "particle_position_y": 1.7121959960266107, - "particle_weight": 3.075501431906104e-09 - }, - "ions": { - "particle_ionizationLevel": 52741.0, - "particle_momentum_x": 3.63061972838759e-18, - "particle_momentum_y": 0.0, - "particle_momentum_z": 1.0432995297946715e-13, - "particle_position_x": 0.021440031727258925, - "particle_position_y": 0.4742770090248555, - "particle_weight": 5.000948082142308e-10 - }, - "lev=0": { - "Bx": 0.0, - "By": 18263123.342890996, - "Bz": 0.0, - "Ex": 5472992180428804.0, - "Ey": 0.0, - "Ez": 922.6036749671132, - "jx": 12440856508004.96, - "jy": 0.0, - "jz": 78616.00000110848 - } -} diff --git a/Regression/Checksum/benchmarks_json/ionization_lab.json b/Regression/Checksum/benchmarks_json/ionization_lab.json deleted file mode 100644 index 3fafb968f..000000000 --- a/Regression/Checksum/benchmarks_json/ionization_lab.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 4.407898469197755e-18, - "particle_momentum_y": 0.0, - "particle_momentum_z": 2.642991174223682e-18, - "particle_position_x": 0.1095015206652257, - "particle_position_y": 0.6413864600981052, - "particle_weight": 3.443203125e-10 - }, - "ions": { - "particle_ionizationLevel": 72897.0, - "particle_momentum_x": 1.761324005206226e-18, - "particle_momentum_y": 0.0, - "particle_momentum_z": 3.618696690270335e-23, - "particle_position_x": 0.03199998819289686, - "particle_position_y": 0.12800000462171646, - "particle_weight": 9.999999999999999e-11 - }, - "lev=0": { - "Bx": 0.0, - "By": 26296568.43487075, - "Bz": 0.0, - "Ex": 7878103122973058.0, - "Ey": 0.0, - "Ez": 3027.995293554496, - "jx": 1.2111358333819302e+16, - "jy": 0.0, - "jz": 1.346772722412443e-07 - } -} diff --git a/Regression/Checksum/benchmarks_json/leveling_thinning.json b/Regression/Checksum/benchmarks_json/leveling_thinning.json deleted file mode 100644 index f0ebdf513..000000000 --- a/Regression/Checksum/benchmarks_json/leveling_thinning.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "lev=0": { - "Bx": 0.0, - "By": 0.0, - "Bz": 0.0, - "Ex": 0.0, - "Ey": 0.0, - "Ez": 0.0, - "jx": 0.0, - "jy": 0.0, - "jz": 0.0 - }, - "resampled_part1": { - "particle_momentum_x": 0.0, - "particle_momentum_y": 0.0, - "particle_momentum_z": 0.0, - "particle_position_x": 485879.18021793937, - "particle_position_y": 484466.34922379535, - "particle_weight": 256.2546999999979 - }, - "resampled_part2": { - "particle_momentum_x": 0.0, - "particle_momentum_y": 0.0, - "particle_momentum_z": 0.0, - "particle_position_x": 38089.14806219578, - "particle_position_y": 37818.512934148945, - "particle_weight": 2.8175309517949136 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/magnetostatic_eb_3d.json b/Regression/Checksum/benchmarks_json/magnetostatic_eb_3d.json deleted file mode 100644 index 801611f74..000000000 --- a/Regression/Checksum/benchmarks_json/magnetostatic_eb_3d.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "beam": { - "particle_momentum_x": 1.356321653466651e-21, - "particle_momentum_y": 1.356321653466648e-21, - "particle_momentum_z": 7.150873477755126e-16, - "particle_position_x": 11163.999973966627, - "particle_position_y": 11163.999973966625, - "particle_position_z": 131662.5003103599, - "particle_weight": 20895107655113.465 - }, - "lev=0": { - "Az": 11.35866332708226, - "Bx": 111.55929404955174, - "By": 111.55929404955177, - "Ex": 31268316751.31371, - "Ey": 31268316751.31371, - "jz": 1034841326.0482643, - "phi": 3144575598.841474, - "rho": 3.449203918900721 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/momentum-conserving-gather.json b/Regression/Checksum/benchmarks_json/momentum-conserving-gather.json deleted file mode 100644 index 0aa5ef149..000000000 --- a/Regression/Checksum/benchmarks_json/momentum-conserving-gather.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "beam": { - "particle_momentum_x": 4.404470535877806e-19, - "particle_momentum_y": 4.375113608680153e-19, - "particle_momentum_z": 5.46937872675255e-16, - "particle_position_x": 0.0004076066943782624, - "particle_position_y": 0.046965741927223595, - "particle_weight": 12483018148921.53 - }, - "driver": { - "particle_momentum_x": 4.342853660130086e-19, - "particle_momentum_y": 4.5009918891855e-19, - "particle_momentum_z": 5.442221658422687e-16, - "particle_position_x": 0.0015056681592417371, - "particle_position_y": 0.03781050097559857, - "particle_weight": 93622636116911.45 - }, - "lev=0": { - "Bx": 10.766779726510975, - "By": 123893.54556888313, - "Bz": 3.0439159767939765, - "Ex": 32751630600967.164, - "Ey": 3410088033.494454, - "Ez": 40721144525621.31, - "jx": 2139710646590208.0, - "jy": 266459197999.15717, - "jz": 4304296344908232.0 - }, - "lev=1": { - "Bx": 4.066233386167275, - "By": 137914.0920350435, - "Bz": 2.398664210322969, - "Ex": 44268789869454.29, - "Ey": 1433858315.947112, - "Ez": 51835208819539.50, - "jx": 2880554704671068.0, - "jy": 93913414121.91959, - "jz": 4418516923648772.0 - }, - "plasma_e": { - "particle_momentum_x": 1.5125615382769122e-19, - "particle_momentum_y": 4.432378548653885e-24, - "particle_momentum_z": 1.7178139606876683e-19, - "particle_position_x": 0.13364721784875755, - "particle_position_y": 0.1035024179589788, - "particle_weight": 823974609375002.8 - } -} diff --git a/Regression/Checksum/benchmarks_json/multi_J_rz_psatd.json b/Regression/Checksum/benchmarks_json/multi_J_rz_psatd.json deleted file mode 100644 index 5ea6881b5..000000000 --- a/Regression/Checksum/benchmarks_json/multi_J_rz_psatd.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "lev=0": { - "Bt": 24080.41671546337, - "Er": 4536303784778.673, - "Ez": 4298815071343.0728, - "jr": 361182004529074.8, - "jz": 1802215706551553.8, - "rho": 4884623.9573680265, - "rho_driver": 6288266.101815153, - "rho_plasma_e": 49568366.405371524, - "rho_plasma_p": 50769182.21072973 - }, - "driver": { - "particle_momentum_x": 8.723405122353729e-16, - "particle_momentum_y": 8.719285567351437e-16, - "particle_momentum_z": 5.461771334692466e-13, - "particle_position_x": 6.269566322411488, - "particle_position_y": 17.934200805964075, - "particle_theta": 1570790.0436095877, - "particle_weight": 6241484108.424456 - }, - "plasma_p": { - "particle_momentum_x": 6.650539058831456e-20, - "particle_momentum_y": 6.776260514923786e-20, - "particle_momentum_z": 5.470216831432835e-20, - "particle_position_x": 1.1365201443471713, - "particle_position_y": 0.6152066517828133, - "particle_theta": 20286.92798337582, - "particle_weight": 1002457942911.3788 - }, - "plasma_e": { - "particle_momentum_x": 6.655027717314839e-20, - "particle_momentum_y": 6.730480164464723e-20, - "particle_momentum_z": 2.807381166958142e-20, - "particle_position_x": 1.1423427658689635, - "particle_position_y": 0.6140113094028803, - "particle_theta": 20188.939948727297, - "particle_weight": 1002457942911.3788 - } -} diff --git a/Regression/Checksum/benchmarks_json/nci_corrector.json b/Regression/Checksum/benchmarks_json/nci_corrector.json deleted file mode 100644 index c6560cd93..000000000 --- a/Regression/Checksum/benchmarks_json/nci_corrector.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 3.991979611698487e-23, - "particle_momentum_y": 1.6772791844850194e-23, - "particle_momentum_z": 2.2371733897589452e-15, - "particle_position_x": 0.04096000000160954, - "particle_position_y": 0.08192000000000049, - "particle_weight": 8e+19 - }, - "ions": { - "particle_momentum_x": 3.517378693438017e-23, - "particle_momentum_y": 1.3188981537832866e-23, - "particle_momentum_z": 4.107791874506787e-12, - "particle_position_x": 0.04095999999995128, - "particle_position_y": 0.08191999999999994, - "particle_weight": 8e+19 - }, - "lev=0": { - "Bx": 132.90120298854487, - "By": 29951.25413382292, - "Bz": 55.86286229804523, - "Ex": 7446677814368.766, - "Ey": 40733254651.08371, - "Ez": 2495598568000.827, - "jx": 224508034417764.3, - "jy": 58977923517200.664, - "jz": 3.4398515666715744e+16 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/nci_correctorMR.json b/Regression/Checksum/benchmarks_json/nci_correctorMR.json deleted file mode 100644 index 114271a55..000000000 --- a/Regression/Checksum/benchmarks_json/nci_correctorMR.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 5.153966216052706e-22, - "particle_momentum_y": 3.296122748303013e-24, - "particle_momentum_z": 5.592933539664134e-16, - "particle_position_x": 0.010239999985156744, - "particle_position_y": 0.020479999999998985, - "particle_weight": 8e+19 - }, - "ions": { - "particle_momentum_x": 5.153840768943853e-22, - "particle_momentum_y": 4.310806557567533e-24, - "particle_momentum_z": 1.0269479686192384e-12, - "particle_position_x": 0.010239999999972996, - "particle_position_y": 0.020479999999999998, - "particle_weight": 8e+19 - }, - "lev=0": { - "Bx": 81.24109299523752, - "By": 65262.29130160169, - "Bz": 23.398621614698882, - "Ex": 11488110796255.766, - "Ey": 21609945108.23542, - "Ez": 10278696121340.258, - "jx": 229570713299222.88, - "jy": 13422303579214.39, - "jz": 3.827274444464578e+16 - }, - "lev=1": { - "Bx": 62.27058655254749, - "By": 350716.56832399766, - "Bz": 25.70488624404379, - "Ex": 78385498011625.31, - "Ey": 19209810918.48542, - "Ez": 40391720894465.53, - "jx": 1787711547069326.5, - "jy": 27938659499985.89, - "jz": 2.5158044745335216e+17 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/parabolic_channel_initialization_2d_single_precision.json b/Regression/Checksum/benchmarks_json/parabolic_channel_initialization_2d_single_precision.json deleted file mode 100644 index cea654242..000000000 --- a/Regression/Checksum/benchmarks_json/parabolic_channel_initialization_2d_single_precision.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "lev=0": { - "rho": 0.002682245383766713 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/particle_boundaries_3d.json b/Regression/Checksum/benchmarks_json/particle_boundaries_3d.json deleted file mode 100644 index 084b14308..000000000 --- a/Regression/Checksum/benchmarks_json/particle_boundaries_3d.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "absorbing_particles": { - "particle_momentum_x": 0.0, - "particle_momentum_y": 0.0, - "particle_momentum_z": 0.0, - "particle_position_x": 0.0, - "particle_position_y": 0.0, - "particle_position_z": 0.0, - "particle_weight": 1.0 - }, - "lev=0": { - "Ex": 0.0 - }, - "periodic_particles": { - "particle_momentum_x": 0.0, - "particle_momentum_y": 0.0, - "particle_momentum_z": 5.161447363094486e-22, - "particle_position_x": 0.0, - "particle_position_y": 0.0, - "particle_position_z": 1.3169173348265344, - "particle_weight": 2.0 - }, - "reflecting_particles": { - "particle_momentum_x": 4.94297340063546e-22, - "particle_momentum_y": 0.0, - "particle_momentum_z": 0.0, - "particle_position_x": 1.415192721917265, - "particle_position_y": 0.0, - "particle_position_z": 0.0, - "particle_weight": 2.0 - } -} diff --git a/Regression/Checksum/benchmarks_json/particle_fields_diags.json b/Regression/Checksum/benchmarks_json/particle_fields_diags.json deleted file mode 100644 index 35649a307..000000000 --- a/Regression/Checksum/benchmarks_json/particle_fields_diags.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 2.4335130953142086e-19, - "particle_momentum_y": 2.463314849025226e-19, - "particle_momentum_z": 2.4452967447264526e-19, - "particle_position_x": 16386.79272675649, - "particle_position_y": 16383.137717233834, - "particle_position_z": 16385.771013436024, - "particle_weight": 800000000000000.0 - }, - "lev=0": { - "Bx": 0.08405082842287068, - "By": 0.08395442339587296, - "Bz": 0.08318206628870235, - "Ex": 102195850.94145432, - "Ey": 106377257.8660376, - "Ez": 102627869.95880052, - "jx": 714393.4493262022, - "jy": 739611.1829573747, - "jz": 719566.2651192, - "rho": 0.02721945765330138, - "rho_electrons": 0.5250012394291199, - "rho_protons": 0.5250012394291199, - "uz_electrons": 502.0697557311614, - "uz_filt_electrons": 359.0867553137462, - "uz_filt_photons": 2044.7889809067315, - "uz_filt_protons": 0.1368662262266184, - "uz_photons": 2868.9771458584096, - "uz_protons": 0.27498556151402315, - "z_electrons": 10620.91075174126, - "z_photons": 10315.870910754074, - "z_protons": 16383.994708420258, - "zuz_electrons": 251.42139943815852, - "zuz_photons": 1423.0530482617983, - "zuz_protons": 0.13812948570246372, - "jz_electrons": 2.751814344253878e-06, - "jz_photons": 1.600491407314479e-05, - "jz_protons": 1.075623636096527e-09 - }, - "photons": { - "particle_momentum_x": 1.43264587339745e-18, - "particle_momentum_y": 1.420927243614407e-18, - "particle_momentum_z": 1.4314382225453842e-18, - "particle_position_x": 16274.031402786917, - "particle_position_y": 16374.776556959983, - "particle_position_z": 16308.352100156182, - "particle_weight": 800000000000000.0 - }, - "protons": { - "particle_momentum_x": 1.4305311394194743e-19, - "particle_momentum_y": 1.4342178041433115e-19, - "particle_momentum_z": 1.378886053708302e-19, - "particle_position_x": 16384.020927263282, - "particle_position_y": 16384.01049132875, - "particle_position_z": 16383.994708420258, - "particle_weight": 800000000000000.0 - } -} diff --git a/Regression/Checksum/benchmarks_json/particle_fields_diags_single_precision.json b/Regression/Checksum/benchmarks_json/particle_fields_diags_single_precision.json deleted file mode 100644 index bd09249dc..000000000 --- a/Regression/Checksum/benchmarks_json/particle_fields_diags_single_precision.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 2.4417217461617055e-19, - "particle_momentum_y": 2.456487024410591e-19, - "particle_momentum_z": 2.4341567172814324e-19, - "particle_position_x": 16379.248046696943, - "particle_position_y": 16382.835500829227, - "particle_position_z": 16382.833794253384, - "particle_weight": 800000003014656.0 - }, - "lev=0": { - "Bx": 0.08424422969746104, - "By": 0.0847521579734618, - "Bz": 0.08796577839074615, - "Ex": 106872777.3124218, - "Ey": 107806715.81814194, - "Ez": 107783400.11776733, - "jx": 728218.2570924312, - "jy": 736398.9069750309, - "jz": 734815.0968018174, - "rho": 0.027751033272203962, - "rho_electrons": 0.5250012280412193, - "rho_protons": 0.525001227397297, - "uz_electrons": 499.556321477731, - "uz_filt_electrons": 359.37413863157053, - "uz_filt_photons": 2055.1046537984157, - "uz_filt_protons": 0.13872373855120101, - "uz_photons": 2823.3769228117535, - "uz_protons": 0.2772653990775121, - "z_electrons": 10663.295605413849, - "z_photons": 10320.570093881193, - "z_protons": 16384.033099655062, - "zuz_electrons": 249.21866257663567, - "zuz_photons": 1421.2299499750397, - "zuz_protons": 0.1413707636804275, - "jz_electrons": 2.727187061636408e-06, - "jz_photons": 1.575251344184201e-05, - "jz_protons": 1.084534315089607e-09 - }, - "photons": { - "particle_momentum_x": 1.4282916047494202e-18, - "particle_momentum_y": 1.422217416715187e-18, - "particle_momentum_z": 1.4246585349159742e-18, - "particle_position_x": 16376.414835368516, - "particle_position_y": 16409.713841014716, - "particle_position_z": 16378.40753345855, - "particle_weight": 800000003014656.0 - }, - "protons": { - "particle_momentum_x": 1.4104820314107834e-19, - "particle_momentum_y": 1.4120346356351655e-19, - "particle_momentum_z": 1.390318082357134e-19, - "particle_position_x": 16383.951008835807, - "particle_position_y": 16383.991230644286, - "particle_position_z": 16384.03309633769, - "particle_weight": 800000003014656.0 - } -} diff --git a/Regression/Checksum/benchmarks_json/particle_pusher.json b/Regression/Checksum/benchmarks_json/particle_pusher.json deleted file mode 100644 index bda1d8d5f..000000000 --- a/Regression/Checksum/benchmarks_json/particle_pusher.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "lev=0": { - "Bx": 0.0, - "By": 0.0, - "Bz": 0.0, - "Ex": 0.0, - "Ey": 0.0, - "Ez": 0.0, - "jx": 0.0, - "jy": 0.0, - "jz": 0.0 - }, - "positron": { - "particle_momentum_x": 6.55085314065218e-05, - "particle_momentum_y": 5988349658.41882, - "particle_momentum_z": 0.0, - "particle_position_x": 0.0001140309395269903, - "particle_position_y": 8924462.737653334, - "particle_position_z": 0.0, - "particle_weight": 0.0 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/particles_in_pml.json b/Regression/Checksum/benchmarks_json/particles_in_pml.json deleted file mode 100644 index a969cc211..000000000 --- a/Regression/Checksum/benchmarks_json/particles_in_pml.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "lev=0": { - "Bx": 1.1947924377692525e-05, - "By": 0.00016861109137939818, - "Bz": 0.0001686110913793982, - "Ex": 63840.50647017823, - "Ey": 29667.12019832412, - "Ez": 29667.12019832411, - "jx": 0.0, - "jy": 0.0, - "jz": 0.0 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/particles_in_pml_2d.json b/Regression/Checksum/benchmarks_json/particles_in_pml_2d.json deleted file mode 100644 index 5f6d3581d..000000000 --- a/Regression/Checksum/benchmarks_json/particles_in_pml_2d.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "lev=0": { - "Bx": 0.0, - "By": 7.212778582469244e-09, - "Bz": 0.0, - "Ex": 5.948879207343574, - "Ey": 0.0, - "Ez": 0.8235881825331195, - "jx": 0.0, - "jy": 0.0, - "jz": 0.0 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/particles_in_pml_2d_MR.json b/Regression/Checksum/benchmarks_json/particles_in_pml_2d_MR.json deleted file mode 100644 index 11c0a2a61..000000000 --- a/Regression/Checksum/benchmarks_json/particles_in_pml_2d_MR.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "lev=0": { - "Bx": 0.0, - "By": 3.578051588629885e-09, - "Bz": 0.0, - "Ex": 1.9699822913484977, - "Ey": 0.0, - "Ez": 0.5356004212513483, - "jx": 0.0, - "jy": 0.0, - "jz": 0.0 - }, - "lev=1": { - "Bx": 0.0, - "By": 2.7629151306453947e-09, - "Bz": 0.0, - "Ex": 2.4597363065789337, - "Ey": 0.0, - "Ez": 0.45901250290130735, - "jx": 0.0, - "jy": 0.0, - "jz": 0.0 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/particles_in_pml_3d_MR.json b/Regression/Checksum/benchmarks_json/particles_in_pml_3d_MR.json deleted file mode 100644 index 9c650dfbf..000000000 --- a/Regression/Checksum/benchmarks_json/particles_in_pml_3d_MR.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "lev=0": { - "Bx": 8.432558628859037e-05, - "By": 0.026892609333797828, - "Bz": 0.02689260933379782, - "Ex": 9112221.408377409, - "Ey": 4342060.778351774, - "Ez": 4342060.7783517735, - "jx": 0.0, - "jy": 0.0, - "jz": 0.0 - }, - "lev=1": { - "Bx": 0.00011953434461756967, - "By": 0.03435787417429792, - "Bz": 0.03435787417429792, - "Ex": 12412968.176894076, - "Ey": 6537546.007186841, - "Ez": 6537546.0071868375, - "jx": 0.0, - "jy": 0.0, - "jz": 0.0 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/photon_pusher.json b/Regression/Checksum/benchmarks_json/photon_pusher.json deleted file mode 100644 index 694335265..000000000 --- a/Regression/Checksum/benchmarks_json/photon_pusher.json +++ /dev/null @@ -1,141 +0,0 @@ -{ - "lev=0": { - "Bx": 0.0, - "By": 0.0, - "Bz": 0.0, - "Ex": 0.0, - "Ey": 0.0, - "Ez": 0.0, - "jx": 0.0, - "jy": 0.0, - "jz": 0.0 - }, - "p_dn_1": { - "particle_momentum_x": 2.7309245307378233e-22, - "particle_momentum_y": 2.7309245307378233e-22, - "particle_momentum_z": 2.7309245307378233e-22, - "particle_position_x": 2.6041666666666684e-07, - "particle_position_y": 2.6041666666666684e-07, - "particle_position_z": 2.6041666666666684e-07 - }, - "p_dn_10": { - "particle_momentum_x": 2.7309245307378235e-21, - "particle_momentum_y": 2.7309245307378235e-21, - "particle_momentum_z": 2.7309245307378235e-21, - "particle_position_x": 2.6041666666666684e-07, - "particle_position_y": 2.6041666666666684e-07, - "particle_position_z": 2.6041666666666684e-07 - }, - "p_dp_1": { - "particle_momentum_x": 2.7309245307378233e-22, - "particle_momentum_y": 2.7309245307378233e-22, - "particle_momentum_z": 2.7309245307378233e-22, - "particle_position_x": 2.6041666666666684e-07, - "particle_position_y": 2.6041666666666684e-07, - "particle_position_z": 2.6041666666666684e-07 - }, - "p_dp_10": { - "particle_momentum_x": 2.7309245307378235e-21, - "particle_momentum_y": 2.7309245307378235e-21, - "particle_momentum_z": 2.7309245307378235e-21, - "particle_position_x": 2.6041666666666684e-07, - "particle_position_y": 2.6041666666666684e-07, - "particle_position_z": 2.6041666666666684e-07 - }, - "p_xn_1": { - "particle_momentum_x": 2.7309245307378233e-22, - "particle_momentum_y": 0.0, - "particle_momentum_z": 0.0, - "particle_position_x": 4.510548978043957e-07, - "particle_position_y": 0.0, - "particle_position_z": 0.0 - }, - "p_xn_10": { - "particle_momentum_x": 2.7309245307378235e-21, - "particle_momentum_y": 0.0, - "particle_momentum_z": 0.0, - "particle_position_x": 4.510548978043957e-07, - "particle_position_y": 0.0, - "particle_position_z": 0.0 - }, - "p_xp_1": { - "particle_momentum_x": 2.7309245307378233e-22, - "particle_momentum_y": 0.0, - "particle_momentum_z": 0.0, - "particle_position_x": 4.510548978043957e-07, - "particle_position_y": 0.0, - "particle_position_z": 0.0 - }, - "p_xp_10": { - "particle_momentum_x": 2.7309245307378235e-21, - "particle_momentum_y": 0.0, - "particle_momentum_z": 0.0, - "particle_position_x": 4.510548978043957e-07, - "particle_position_y": 0.0, - "particle_position_z": 0.0 - }, - "p_yn_1": { - "particle_momentum_x": 0.0, - "particle_momentum_y": 2.7309245307378233e-22, - "particle_momentum_z": 0.0, - "particle_position_x": 0.0, - "particle_position_y": 4.510548978043957e-07, - "particle_position_z": 0.0 - }, - "p_yn_10": { - "particle_momentum_x": 0.0, - "particle_momentum_y": 2.7309245307378235e-21, - "particle_momentum_z": 0.0, - "particle_position_x": 0.0, - "particle_position_y": 4.510548978043957e-07, - "particle_position_z": 0.0 - }, - "p_yp_1": { - "particle_momentum_x": 0.0, - "particle_momentum_y": 2.7309245307378233e-22, - "particle_momentum_z": 0.0, - "particle_position_x": 0.0, - "particle_position_y": 4.510548978043957e-07, - "particle_position_z": 0.0 - }, - "p_yp_10": { - "particle_momentum_x": 0.0, - "particle_momentum_y": 2.7309245307378235e-21, - "particle_momentum_z": 0.0, - "particle_position_x": 0.0, - "particle_position_y": 4.510548978043957e-07, - "particle_position_z": 0.0 - }, - "p_zn_1": { - "particle_momentum_x": 0.0, - "particle_momentum_y": 0.0, - "particle_momentum_z": 2.7309245307378233e-22, - "particle_position_x": 0.0, - "particle_position_y": 0.0, - "particle_position_z": 4.510548978043957e-07 - }, - "p_zn_10": { - "particle_momentum_x": 0.0, - "particle_momentum_y": 0.0, - "particle_momentum_z": 2.7309245307378235e-21, - "particle_position_x": 0.0, - "particle_position_y": 0.0, - "particle_position_z": 4.510548978043957e-07 - }, - "p_zp_1": { - "particle_momentum_x": 0.0, - "particle_momentum_y": 0.0, - "particle_momentum_z": 2.7309245307378233e-22, - "particle_position_x": 0.0, - "particle_position_y": 0.0, - "particle_position_z": 4.510548978043957e-07 - }, - "p_zp_10": { - "particle_momentum_x": 0.0, - "particle_momentum_y": 0.0, - "particle_momentum_z": 2.7309245307378235e-21, - "particle_position_x": 0.0, - "particle_position_y": 0.0, - "particle_position_z": 4.510548978043957e-07 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/pml_psatd_dive_divb_cleaning.json b/Regression/Checksum/benchmarks_json/pml_psatd_dive_divb_cleaning.json deleted file mode 100644 index f4a96d2d8..000000000 --- a/Regression/Checksum/benchmarks_json/pml_psatd_dive_divb_cleaning.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "lev=0": { - "Bx": 1.240175732139287e-06, - "By": 1.2193087760500872e-06, - "Bz": 1.2294021258059171e-06, - "Ex": 614.260964622694, - "Ey": 622.4773198394323, - "Ez": 613.5902829786862, - "rho": 4.903696525896805e-05 - } -} diff --git a/Regression/Checksum/benchmarks_json/pml_psatd_rz.json b/Regression/Checksum/benchmarks_json/pml_psatd_rz.json deleted file mode 100644 index 6772ed0ba..000000000 --- a/Regression/Checksum/benchmarks_json/pml_psatd_rz.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "lev=0": { - "Bt": 3.268846294905577e-06, - "Er": 1317.2337418101645, - "Ez": 1156.1377910176307, - "jr": 0.0, - "jt": 0.0, - "jz": 0.0, - "rho": 0.0 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/pml_x_ckc.json b/Regression/Checksum/benchmarks_json/pml_x_ckc.json deleted file mode 100644 index 894266acc..000000000 --- a/Regression/Checksum/benchmarks_json/pml_x_ckc.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "lev=0": { - "Bx": 4.00150689382335e-09, - "By": 1.406668425991829e-08, - "Bz": 3.447740214210282e-09, - "Ex": 13.67178782345087, - "Ey": 2.230553776212748, - "Ez": 14.11472401822265, - "jx": 0.0, - "jy": 0.0, - "jz": 0.0 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/pml_x_psatd.json b/Regression/Checksum/benchmarks_json/pml_x_psatd.json deleted file mode 100644 index a9cf4abde..000000000 --- a/Regression/Checksum/benchmarks_json/pml_x_psatd.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "lev=0": { - "Bx": 1.1599355635528331e-08, - "By": 1.5158011001988313e-08, - "Bz": 8.995705405879026e-09, - "Ex": 3.9363155460110746, - "Ey": 4.134482727292589, - "Ez": 3.3070827418135487, - "divE": 189105.46307809104, - "rho": 1.6734952000013346e-06 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/pml_x_yee.json b/Regression/Checksum/benchmarks_json/pml_x_yee.json deleted file mode 100644 index d4890773e..000000000 --- a/Regression/Checksum/benchmarks_json/pml_x_yee.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "lev=0": { - "Bx": 6.598168513669639e-09, - "By": 1.325367782856018e-08, - "Bz": 4.124248587258615e-09, - "Ex": 4.275153150272437, - "Ey": 2.500921454160279, - "Ez": 3.618579508348751, - "jx": 0.0, - "jy": 4.725970147774612e-169, - "jz": 0.0 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/pml_x_yee_eb.json b/Regression/Checksum/benchmarks_json/pml_x_yee_eb.json deleted file mode 100644 index 9afdea711..000000000 --- a/Regression/Checksum/benchmarks_json/pml_x_yee_eb.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "lev=0": { - "Bx": 6.598168513669639e-09, - "By": 1.3253677828560178e-08, - "Bz": 4.124248587258615e-09, - "Ex": 4.275153150272437, - "Ey": 2.5009214541602787, - "Ez": 3.618579508348751, - "jx": 0.0, - "jy": 4.725925051340115e-169, - "jz": 0.0 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/qed_breit_wheeler_2d.json b/Regression/Checksum/benchmarks_json/qed_breit_wheeler_2d.json deleted file mode 100644 index 7f0c80681..000000000 --- a/Regression/Checksum/benchmarks_json/qed_breit_wheeler_2d.json +++ /dev/null @@ -1,113 +0,0 @@ -{ - "ele1": { - "particle_momentum_x": 2.601742834496299e-14, - "particle_momentum_y": 0.0, - "particle_momentum_z": 0.0, - "particle_opticalDepthQSR": 94805.7653371546, - "particle_position_x": 0.02366929620831116, - "particle_position_y": 0.02372940283203125, - "particle_weight": 904932.0220947266 - }, - "ele2": { - "particle_momentum_x": 0.0, - "particle_momentum_y": 8.023686137822937e-15, - "particle_momentum_z": 0.0, - "particle_opticalDepthQSR": 11848.41171565135, - "particle_position_x": 0.00294089697265625, - "particle_position_y": 0.00291261572265625, - "particle_weight": 112028.1219482422 - }, - "ele3": { - "particle_momentum_x": 0.0, - "particle_momentum_y": 0.0, - "particle_momentum_z": 1.727920430764487e-13, - "particle_opticalDepthQSR": 126169.8283679367, - "particle_position_x": 0.03160814697265625, - "particle_position_y": 0.03157382483413338, - "particle_weight": 1203489.303588867 - }, - "ele4": { - "particle_momentum_x": 3.86289566432756e-13, - "particle_momentum_y": 3.86289566432756e-13, - "particle_momentum_z": 3.86289566432756e-13, - "particle_opticalDepthQSR": 49124.07007571301, - "particle_position_x": 0.0122495325998657, - "particle_position_y": 0.01229632807845828, - "particle_weight": 467967.9870605469 - }, - "lev=0": { - "Ex": 0.0 - }, - "p1": { - "particle_momentum_x": 5.208894445891535e-13, - "particle_momentum_y": 0.0, - "particle_momentum_z": 0.0, - "particle_opticalDepthBW": 871455.4785435478, - "particle_position_x": 0.2384708675227609, - "particle_position_y": 0.2384145971679688, - "particle_weight": 9095067.977905273 - }, - "p2": { - "particle_momentum_x": 0.0, - "particle_momentum_y": 1.415750875140187e-12, - "particle_momentum_z": 0.0, - "particle_opticalDepthBW": 1026305.835915281, - "particle_position_x": 0.2592031030273437, - "particle_position_y": 0.2592313842773439, - "particle_weight": 9887971.878051758 - }, - "p3": { - "particle_momentum_x": 0.0, - "particle_momentum_y": 0.0, - "particle_momentum_z": 2.518952899586491e-12, - "particle_opticalDepthBW": 819556.3040882011, - "particle_position_x": 0.2305358530273438, - "particle_position_y": 0.230565112772128, - "particle_weight": 8796510.696411133 - }, - "p4": { - "particle_momentum_x": 1.575921123151564e-11, - "particle_momentum_y": 1.575921123151564e-11, - "particle_momentum_z": 1.575921123151564e-11, - "particle_opticalDepthBW": 953481.8671852223, - "particle_position_x": 0.2498922148690852, - "particle_position_y": 0.2498457533403056, - "particle_weight": 9532032.012939453 - }, - "pos1": { - "particle_momentum_x": 2.580947118885758e-14, - "particle_momentum_y": 0.0, - "particle_momentum_z": 0.0, - "particle_opticalDepthQSR": 95351.53381764909, - "particle_position_x": 0.02366929620831116, - "particle_position_y": 0.02372940283203125, - "particle_weight": 904932.0220947266 - }, - "pos2": { - "particle_momentum_x": 0.0, - "particle_momentum_y": 8.016397398195943e-15, - "particle_momentum_z": 0.0, - "particle_opticalDepthQSR": 11715.61469518178, - "particle_position_x": 0.00294089697265625, - "particle_position_y": 0.00291261572265625, - "particle_weight": 112028.1219482422 - }, - "pos3": { - "particle_momentum_x": 0.0, - "particle_momentum_y": 0.0, - "particle_momentum_z": 1.718369575300312e-13, - "particle_opticalDepthQSR": 126049.551252123, - "particle_position_x": 0.03160814697265625, - "particle_position_y": 0.03157382483413338, - "particle_weight": 1203489.303588867 - }, - "pos4": { - "particle_momentum_x": 3.873971285219934e-13, - "particle_momentum_y": 3.873971285219934e-13, - "particle_momentum_z": 3.873971285219934e-13, - "particle_opticalDepthQSR": 48953.57811425708, - "particle_position_x": 0.0122495325998657, - "particle_position_y": 0.01229632807845828, - "particle_weight": 467967.9870605469 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/qed_breit_wheeler_3d.json b/Regression/Checksum/benchmarks_json/qed_breit_wheeler_3d.json deleted file mode 100644 index ddfd14279..000000000 --- a/Regression/Checksum/benchmarks_json/qed_breit_wheeler_3d.json +++ /dev/null @@ -1,125 +0,0 @@ -{ - "ele1": { - "particle_momentum_x": 4.111367826819435e-14, - "particle_momentum_y": 0.0, - "particle_momentum_z": 0.0, - "particle_opticalDepthQSR": 1.500847618686847e+05, - "particle_position_x": 3.752281413000500e-02, - "particle_position_y": 3.753643750000000e-02, - "particle_position_z": 3.754731250000000e-02, - "particle_weight": 1.430339813232422e+00 - }, - "ele2": { - "particle_momentum_x": 0.0, - "particle_momentum_y": 1.312081564104811e-14, - "particle_momentum_z": 0.0, - "particle_opticalDepthQSR": 1.916668554224755e+04, - "particle_position_x": 4.723398437500000e-03, - "particle_position_y": 4.773031169456623e-03, - "particle_position_z": 4.769421875000000e-03, - "particle_weight": 1.819992065429687e-01 - }, - "ele3": { - "particle_momentum_x": 0.0, - "particle_momentum_y": 0.0, - "particle_momentum_z": 2.703275178685535e-13, - "particle_opticalDepthQSR": 1.979969508638462e+05, - "particle_position_x": 4.960360156250000e-02, - "particle_position_y": 4.950395312500000e-02, - "particle_position_z": 4.948470042879365e-02, - "particle_weight": 1.889324188232422e+00 - }, - "ele4": { - "particle_momentum_x": 6.270940742446365e-13, - "particle_momentum_y": 6.270940742446365e-13, - "particle_momentum_z": 6.270940742446365e-13, - "particle_opticalDepthQSR": 7.927754339646622e+04, - "particle_position_x": 1.983232682291667e-02, - "particle_position_y": 1.987547526041667e-02, - "particle_position_z": 1.979189843750000e-02, - "particle_weight": 7.561206817626952e-01 - }, - "lev=0": { - "Ex": 0.0 - }, - "p1": { - "particle_momentum_x": 4.907984795547657e-13, - "particle_momentum_y": 0.0, - "particle_momentum_z": 0.0, - "particle_opticalDepthBW": 7.797536899265796e+05, - "particle_position_x": 2.246257074205084e-01, - "particle_position_y": 2.246075625000000e-01, - "particle_position_z": 2.245966875000000e-01, - "particle_weight": 8.569660186767576e+00 - }, - "p2": { - "particle_momentum_x": 0.0, - "particle_momentum_y": 1.405732478499176e-12, - "particle_momentum_z": 0.0, - "particle_opticalDepthBW": 1.011632507209970e+06, - "particle_position_x": 2.574206015625001e-01, - "particle_position_y": 2.573683204083949e-01, - "particle_position_z": 2.573745781250001e-01, - "particle_weight": 9.818000793457029e+00 - }, - "p3": { - "particle_momentum_x": 0.0, - "particle_momentum_y": 0.0, - "particle_momentum_z": 2.322558461958479e-12, - "particle_opticalDepthBW": 7.079437338077008e+05, - "particle_position_x": 2.125403984375000e-01, - "particle_position_y": 2.126400468750000e-01, - "particle_position_z": 2.126591975715005e-01, - "particle_weight": 8.110675811767576e+00 - }, - "p4": { - "particle_momentum_x": 1.528281132260040e-11, - "particle_momentum_y": 1.528281132260040e-11, - "particle_momentum_z": 1.528281132260040e-11, - "particle_opticalDepthBW": 8.991168515237333e+05, - "particle_position_x": 2.423218372395833e-01, - "particle_position_y": 2.422665742187501e-01, - "particle_position_z": 2.423502578125001e-01, - "particle_weight": 9.243879318237303e+00 - }, - "pos1": { - "particle_momentum_x": 4.080416298396327e-14, - "particle_momentum_y": 0.0, - "particle_momentum_z": 0.0, - "particle_opticalDepthQSR": 1.504112911918669e+05, - "particle_position_x": 3.752281413000500e-02, - "particle_position_y": 3.753643750000000e-02, - "particle_position_z": 3.754731250000000e-02, - "particle_weight": 1.430339813232422e+00 - }, - "pos2": { - "particle_momentum_x": 0.0, - "particle_momentum_y": 1.293766348114934e-14, - "particle_momentum_z": 0.0, - "particle_opticalDepthQSR": 1.907169561484562e+04, - "particle_position_x": 4.723398437500000e-03, - "particle_position_y": 4.773031169456623e-03, - "particle_position_z": 4.769421875000000e-03, - "particle_weight": 1.819992065429687e-01 - }, - "pos3": { - "particle_momentum_x": 0.0, - "particle_momentum_y": 0.0, - "particle_momentum_z": 2.706959091094172e-13, - "particle_opticalDepthQSR": 1.976820402897762e+05, - "particle_position_x": 4.960360156250000e-02, - "particle_position_y": 4.950395312500000e-02, - "particle_position_z": 4.948470042879365e-02, - "particle_weight": 1.889324188232422e+00 - }, - "pos4": { - "particle_momentum_x": 6.229925285542024e-13, - "particle_momentum_y": 6.229925285542024e-13, - "particle_momentum_z": 6.229925285542024e-13, - "particle_opticalDepthQSR": 7.981778242989839e+04, - "particle_position_x": 1.983232682291667e-02, - "particle_position_y": 1.987547526041667e-02, - "particle_position_z": 1.979189843750000e-02, - "particle_weight": 7.561206817626952e-01 - } -} diff --git a/Regression/Checksum/benchmarks_json/qed_quantum_sync_2d.json b/Regression/Checksum/benchmarks_json/qed_quantum_sync_2d.json deleted file mode 100644 index 82e3ea074..000000000 --- a/Regression/Checksum/benchmarks_json/qed_quantum_sync_2d.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "lev=0": { - "Ex": 2.310258933500955e-13 - }, - "p1": { - "particle_momentum_x": 1.140349326924761e-14, - "particle_momentum_y": 9.372095344830678e-15, - "particle_momentum_z": 2.158962498101315e-14, - "particle_opticalDepthQSR": 9.333182432220418e+05, - "particle_position_x": 1.310720008141928e-01, - "particle_position_y": 1.310719974888995e-01, - "particle_weight": 2.4999999999999954e-12 - }, - "p2": { - "particle_momentum_x": 2.071086117348156e-15, - "particle_momentum_y": 1.744627077708913e-14, - "particle_momentum_z": 7.805182958521335e-15, - "particle_opticalDepthQSR": 8.805495864219903e+05, - "particle_position_x": 1.310720023432016e-01, - "particle_position_y": 1.310720059795483e-01, - "particle_weight": 2.4999999999999954e-12 - }, - "p3": { - "particle_momentum_x": 4.366193500793744e-14, - "particle_momentum_y": 2.478003988253161e-14, - "particle_momentum_z": 2.825737765838384e-13, - "particle_opticalDepthQSR": 7.452775211308162e+05, - "particle_position_x": 1.310728081652575e-01, - "particle_position_y": 1.310720737282286e-01, - "particle_weight": 2.4999999999999954e-12 - }, - "p4": { - "particle_momentum_x": 1.568669274190894e-12, - "particle_momentum_y": 1.589459198209781e-12, - "particle_momentum_z": 1.610340083236557e-12, - "particle_opticalDepthQSR": 8.780354512724415e+05, - "particle_position_x": 1.310721188263106e-01, - "particle_position_y": 1.310720166746625e-01, - "particle_weight": 2.4999999999999954e-12 - }, - "qsp_1": { - "particle_momentum_x": 7.964566923387586e-18, - "particle_momentum_y": 2.882983074374163e-18, - "particle_momentum_z": 8.630849787613317e-18, - "particle_opticalDepthBW": 2.271398807009545e+05, - "particle_position_x": 2.837973728703766e-02, - "particle_position_y": 2.840287320106940e-02, - "particle_weight": 5.416774749755860e-13 - }, - "qsp_2": { - "particle_momentum_x": 1.252837926937528e-19, - "particle_momentum_y": 6.871713184911745e-17, - "particle_momentum_z": 5.473011528118156e-18, - "particle_opticalDepthBW": 1.516194359232640e+05, - "particle_position_x": 1.897872632154887e-02, - "particle_position_y": 1.892998689440130e-02, - "particle_weight": 3.611183166503906e-13 - }, - "qsp_3": { - "particle_momentum_x": 7.886304091455133e-16, - "particle_momentum_y": 4.019288136519303e-16, - "particle_momentum_z": 2.007176097643083e-14, - "particle_opticalDepthBW": 4.278771235635406e+05, - "particle_position_x": 5.368744125014824e-02, - "particle_position_y": 5.366905634505176e-02, - "particle_weight": 1.023793220520020e-12 - }, - "qsp_4": { - "particle_momentum_x": 6.361545282178759e-14, - "particle_momentum_y": 6.381622393410309e-14, - "particle_momentum_z": 6.402159959673725e-14, - "particle_opticalDepthBW": 1.834280871942040e+05, - "particle_position_x": 2.335495696160912e-02, - "particle_position_y": 2.334315437183354e-02, - "particle_weight": 4.456758499145506e-13 - } -} diff --git a/Regression/Checksum/benchmarks_json/qed_quantum_sync_3d.json b/Regression/Checksum/benchmarks_json/qed_quantum_sync_3d.json deleted file mode 100644 index a0d4e7192..000000000 --- a/Regression/Checksum/benchmarks_json/qed_quantum_sync_3d.json +++ /dev/null @@ -1,85 +0,0 @@ -{ - "lev=0": { - "Ex": 2.786753684989306e-12 - }, - "p1": { - "particle_momentum_x": 1.741631048990957e-14, - "particle_momentum_y": 1.407382568220122e-14, - "particle_momentum_z": 3.483802056536476e-14, - "particle_opticalDepthQSR": 8.933779081978328e+05, - "particle_position_x": 1.310720004885732e-01, - "particle_position_y": 1.310720093340796e-01, - "particle_position_z": 1.310719997586510e-01, - "particle_weight": 1.2499999999999974e-18 - }, - "p2": { - "particle_momentum_x": 7.361130113499369e-16, - "particle_momentum_y": 1.518077832724208e-14, - "particle_momentum_z": 1.603495173491284e-14, - "particle_opticalDepthQSR": 7.969064947837949e+05, - "particle_position_x": 1.310720358386720e-01, - "particle_position_y": 1.310719229542310e-01, - "particle_position_z": 1.310718889165358e-01, - "particle_weight": 1.2499999999999974e-18 - }, - "p3": { - "particle_momentum_x": 6.887270621502783e-14, - "particle_momentum_y": 4.244572662732333e-14, - "particle_momentum_z": 2.829302046630217e-13, - "particle_opticalDepthQSR": 7.343210555187558e+05, - "particle_position_x": 1.310693933297537e-01, - "particle_position_y": 1.310735808915076e-01, - "particle_position_z": 1.310720598309606e-01, - "particle_weight": 1.2499999999999974e-18 - }, - "p4": { - "particle_momentum_x": 1.520397879526353e-12, - "particle_momentum_y": 1.554435446902422e-12, - "particle_momentum_z": 1.588048115040964e-12, - "particle_opticalDepthQSR": 8.060087388515751e+05, - "particle_position_x": 1.310719895430874e-01, - "particle_position_y": 1.310721330096115e-01, - "particle_position_z": 1.310722194126596e-01, - "particle_weight": 1.2499999999999974e-18 - }, - "qsp_1": { - "particle_momentum_x": 1.488735151304356e-17, - "particle_momentum_y": 5.924036687872583e-18, - "particle_momentum_z": 2.001829024164515e-17, - "particle_opticalDepthBW": 2.801119479594263e+05, - "particle_position_x": 3.501229062079142e-02, - "particle_position_y": 3.501347365076974e-02, - "particle_position_z": 3.500777875885852e-02, - "particle_weight": 3.338909149169922e-19 - }, - "qsp_2": { - "particle_momentum_x": 3.578117929640622e-18, - "particle_momentum_y": 1.223998299528126e-16, - "particle_momentum_z": 1.923837611883339e-17, - "particle_opticalDepthBW": 2.635552834158868e+05, - "particle_position_x": 3.294367458762226e-02, - "particle_position_y": 3.295198666244772e-02, - "particle_position_z": 3.295825016292063e-02, - "particle_weight": 3.142297267913819e-19 - }, - "qsp_3": { - "particle_momentum_x": 1.786622846697726e-15, - "particle_momentum_y": 9.308159337722657e-16, - "particle_momentum_z": 2.825511784056859e-14, - "particle_opticalDepthBW": 5.964674808548936e+05, - "particle_position_x": 7.505588453131683e-02, - "particle_position_y": 7.505738223085265e-02, - "particle_position_z": 7.508592403870636e-02, - "particle_weight": 7.158422470092766e-19 - }, - "qsp_4": { - "particle_momentum_x": 9.853699228774894e-14, - "particle_momentum_y": 9.904668082148487e-14, - "particle_momentum_z": 9.956637922920388e-14, - "particle_opticalDepthBW": 2.808992369177763e+05, - "particle_position_x": 3.589732929058465e-02, - "particle_position_y": 3.591690864961460e-02, - "particle_position_z": 3.593357485971770e-02, - "particle_weight": 3.426551818847657e-19 - } -} diff --git a/Regression/Checksum/benchmarks_json/qed_schwinger1.json b/Regression/Checksum/benchmarks_json/qed_schwinger1.json deleted file mode 100644 index 76450c2fe..000000000 --- a/Regression/Checksum/benchmarks_json/qed_schwinger1.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "lev=0": { - "Bx": 34391835792.41821, - "By": 10765619489.90973, - "Bz": 37608511077.50268, - "Ex": 2.048e+19, - "Ey": 0.0, - "Ez": 0.0, - "jx": 0.0, - "jy": 0.0, - "jz": 0.0 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/qed_schwinger2.json b/Regression/Checksum/benchmarks_json/qed_schwinger2.json deleted file mode 100644 index d93f70587..000000000 --- a/Regression/Checksum/benchmarks_json/qed_schwinger2.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "ele_schwinger": { - "particle_momentum_x": 5.389220349308058e-10, - "particle_momentum_y": 3.802325665885952e-11, - "particle_momentum_z": 1.304165048547374e-10, - "particle_position_x": 0.0001414301708416780501906262479394627007, - "particle_position_y": 0.0002559999999999999342054080031516605231, - "particle_position_z": 0.0002559999999999999884155166274268822235, - "particle_weight": 41504873569658028032.0 - }, - "lev=0": { - "Bx": 3439183579241.8213, - "By": 3467279530258676.5, - "Bz": 1160277379606216.0, - "Ex": 80690799093154680420696064.0, - "Ey": 5505248329779462566576128.0, - "Ez": 17842195088929589557198848.0, - "jx": 7269891943075730389116072755200.0, - "jy": 495989618234384662296063377408.0, - "jz": 1607473995814483300569405456384.0 - }, - "pos_schwinger": { - "particle_momentum_x": 5.389212418869713e-10, - "particle_momentum_y": 3.652400862149359e-11, - "particle_momentum_z": 1.311928986068885e-10, - "particle_position_x": 0.0001280000000000000213128126258510519619, - "particle_position_y": 0.0002559999999999999884155166274268822235, - "particle_position_z": 0.0002559999999999999884155166274268822235, - "particle_weight": 41504873569658028032.0 - } -} diff --git a/Regression/Checksum/benchmarks_json/qed_schwinger3.json b/Regression/Checksum/benchmarks_json/qed_schwinger3.json deleted file mode 100644 index 0ff5ce7fd..000000000 --- a/Regression/Checksum/benchmarks_json/qed_schwinger3.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "ele_schwinger": { - "particle_momentum_x": 7.939037050234352e-28, - "particle_momentum_y": 3.285213368501547e-15, - "particle_momentum_z": 3.152771050884970e-27, - "particle_position_x": 0.000317125, - "particle_position_y": 0.0003152062394752397, - "particle_position_z": 0.00031790625000000005, - "particle_weight": 2020.0 - }, - "lev=0": { - "Bx": 1.0702562838306027, - "By": 0.0, - "Bz": 0.26606180627210546, - "Ex": 0.0, - "Ey": 2.234233908078503e+20, - "Ez": 0.0, - "jx": 0.0, - "jy": 397413310331937.25, - "jz": 0.0 - }, - "pos_schwinger": { - "particle_momentum_x": 8.089055188895933e-28, - "particle_momentum_y": 3.285213368501216e-15, - "particle_momentum_z": 3.162350330679359e-27, - "particle_position_x": 0.000317125, - "particle_position_y": 0.0003147937605247603, - "particle_position_z": 0.00031790625000000005, - "particle_weight": 2020.0 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/qed_schwinger4.json b/Regression/Checksum/benchmarks_json/qed_schwinger4.json deleted file mode 100644 index 29c6db0b1..000000000 --- a/Regression/Checksum/benchmarks_json/qed_schwinger4.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "ele_schwinger": { - "particle_momentum_x": 0.0000000000036953013356618679404339996551, - "particle_momentum_y": 1.071898752739813e-26, - "particle_momentum_z": 0.0000000000028810249733308377960296374853, - "particle_position_x": 0.0002880000000000000615063555642336723395, - "particle_position_y": 0.0002159999999999999919196580489000325542, - "particle_position_z": 0.0002540000004700523764458730546778042481, - "particle_weight": 63968.7024717521271668374538421630859375000000 - }, - "lev=0": { - "Bx": 10.2823324587886126835201139329001307487488, - "By": 1707847966720000.0, - "Bz": 0.5093466537801442095556581080018077045679, - "Ex": 3460290775.8437714576721191406250000000000000000000, - "Ey": 0.0, - "Ez": 5.119999999998239e+23, - "jx": 354749214244724.1250000000000000000000000000000000000000, - "jy": 0.0, - "jz": 8899049325589567.0000000000000000000000000000000000000000 - }, - "pos_schwinger": { - "particle_momentum_x": 0.0000000000036953013356618671326404327088, - "particle_momentum_y": 1.087938891529572e-26, - "particle_momentum_z": 0.0000000000028810249733308252752293498174, - "particle_position_x": 0.0002880000000000000072962469399584506391, - "particle_position_y": 0.0002159999999999999919196580489000325542, - "particle_position_z": 0.0002379999995299475479271222866373136640, - "particle_weight": 63968.7024717521271668374538421630859375000000 - } -} diff --git a/Regression/Checksum/benchmarks_json/radiation_reaction.json b/Regression/Checksum/benchmarks_json/radiation_reaction.json deleted file mode 100644 index 23cbaff50..000000000 --- a/Regression/Checksum/benchmarks_json/radiation_reaction.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "ele_para0": { - "particle_momentum_x": 7.802641516393779e-20, - "particle_momentum_y": 1.170396227459067e-19, - "particle_momentum_z": 2.340792454918134e-19, - "particle_position_x": 2.6393141966386665e-07, - "particle_position_y": 3.958971294957991e-07, - "particle_position_z": 7.917942589915982e-07, - "particle_weight": 1e-08 - }, - "ele_perp0": { - "particle_momentum_x": 8.11389431708072e-21, - "particle_momentum_y": 4.844504297489887e-21, - "particle_momentum_z": 5.126883587771859e-21, - "particle_position_x": 1.3145530641644856e-08, - "particle_position_y": 7.098082465552722e-09, - "particle_position_z": 7.930884779991915e-09, - "particle_weight": 1e-08 - }, - "ele_perp1": { - "particle_momentum_x": 2.3334382603801444e-20, - "particle_momentum_y": 5.8105622999913844e-21, - "particle_momentum_z": 4.872846384604778e-21, - "particle_position_x": 9.060777202177868e-08, - "particle_position_y": 6.588428427365879e-08, - "particle_position_z": 2.739551462903448e-09, - "particle_weight": 1e-08 - }, - "ele_perp2": { - "particle_momentum_x": 1.81896887291916e-20, - "particle_momentum_y": 2.623053574283056e-20, - "particle_momentum_z": 1.9178497447812487e-20, - "particle_position_x": 1.8108611345349183e-07, - "particle_position_y": 1.37104849310495e-07, - "particle_position_z": 1.289144624730785e-07, - "particle_weight": 1e-08 - }, - "lev=0": { - "rho": 0.00051269652288 - }, - "pos_perp2": { - "particle_momentum_x": 1.818968872919164e-20, - "particle_momentum_y": 3.108111940394833e-20, - "particle_momentum_z": 9.477330125576942e-21, - "particle_position_x": 1.8108611345349178e-07, - "particle_position_y": 1.853944795647598e-07, - "particle_position_z": 3.233520196454891e-08, - "particle_weight": 1e-08 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/reduced_diags.json b/Regression/Checksum/benchmarks_json/reduced_diags.json deleted file mode 100644 index 31be7353e..000000000 --- a/Regression/Checksum/benchmarks_json/reduced_diags.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 2.433513095314209e-19, - "particle_momentum_y": 2.463314849025226e-19, - "particle_momentum_z": 2.445296743879953e-19, - "particle_position_x": 16386.79272675649, - "particle_position_y": 16383.137717233834, - "particle_position_z": 16385.771013436024, - "particle_weight": 800000000000000.0 - }, - "lev=0": { - "Bx": 0.08405082842287043, - "By": 0.0839544233958724, - "Bz": 0.08318206628870212, - "Ex": 102195850.9414543, - "Ey": 106377257.86603768, - "Ez": 102627869.95880055, - "jx": 714393.4493262022, - "jy": 739611.1829573747, - "jz": 719566.2651192012, - "rho": 0.0272194576533013668506733040430844994262, - "rho_electrons": 0.5250012394291199147033921690308488905430, - "rho_protons": 0.5250012394291199147033921690308488905430 - }, - "photons": { - "particle_momentum_x": 1.432645873397450e-18, - "particle_momentum_y": 1.420927243614407e-18, - "particle_momentum_z": 1.431438222545384e-18, - "particle_position_x": 1.627403140278692e+04, - "particle_position_y": 1.637477655695998e+04, - "particle_position_z": 1.630835210015618e+04, - "particle_weight": 800000000000000.0 - }, - "protons": { - "particle_momentum_x": 1.4305311394194743e-19, - "particle_momentum_y": 1.4342178041433108e-19, - "particle_momentum_z": 1.378886053708302e-19, - "particle_position_x": 16384.020927263282, - "particle_position_y": 16384.01049132875, - "particle_position_z": 16383.994708420258, - "particle_weight": 800000000000000.0 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/reduced_diags_loadbalancecosts_heuristic.json b/Regression/Checksum/benchmarks_json/reduced_diags_loadbalancecosts_heuristic.json deleted file mode 100644 index a77d93b96..000000000 --- a/Regression/Checksum/benchmarks_json/reduced_diags_loadbalancecosts_heuristic.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 0.0, - "particle_momentum_y": 0.0, - "particle_momentum_z": 0.0, - "particle_position_x": 262144.0, - "particle_position_y": 262144.0, - "particle_position_z": 65536.0, - "particle_weight": 1600000000000000.0 - }, - "lev=0": { - "Bx": 0.0, - "By": 0.0, - "Bz": 0.0, - "Ex": 0.0, - "Ey": 0.0, - "Ez": 0.0, - "jx": 0.0, - "jy": 0.0, - "jz": 0.0 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/reduced_diags_loadbalancecosts_timers.json b/Regression/Checksum/benchmarks_json/reduced_diags_loadbalancecosts_timers.json deleted file mode 100644 index a77d93b96..000000000 --- a/Regression/Checksum/benchmarks_json/reduced_diags_loadbalancecosts_timers.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 0.0, - "particle_momentum_y": 0.0, - "particle_momentum_z": 0.0, - "particle_position_x": 262144.0, - "particle_position_y": 262144.0, - "particle_position_z": 65536.0, - "particle_weight": 1600000000000000.0 - }, - "lev=0": { - "Bx": 0.0, - "By": 0.0, - "Bz": 0.0, - "Ex": 0.0, - "Ey": 0.0, - "Ez": 0.0, - "jx": 0.0, - "jy": 0.0, - "jz": 0.0 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/reduced_diags_loadbalancecosts_timers_psatd.json b/Regression/Checksum/benchmarks_json/reduced_diags_loadbalancecosts_timers_psatd.json deleted file mode 100644 index a77d93b96..000000000 --- a/Regression/Checksum/benchmarks_json/reduced_diags_loadbalancecosts_timers_psatd.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 0.0, - "particle_momentum_y": 0.0, - "particle_momentum_z": 0.0, - "particle_position_x": 262144.0, - "particle_position_y": 262144.0, - "particle_position_z": 65536.0, - "particle_weight": 1600000000000000.0 - }, - "lev=0": { - "Bx": 0.0, - "By": 0.0, - "Bz": 0.0, - "Ex": 0.0, - "Ey": 0.0, - "Ez": 0.0, - "jx": 0.0, - "jy": 0.0, - "jz": 0.0 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/reduced_diags_single_precision.json b/Regression/Checksum/benchmarks_json/reduced_diags_single_precision.json deleted file mode 100644 index 2944a6ae6..000000000 --- a/Regression/Checksum/benchmarks_json/reduced_diags_single_precision.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 2.4417210113801336e-19, - "particle_momentum_y": 2.4564851493412593e-19, - "particle_momentum_z": 2.4341594564719795e-19, - "particle_position_x": 16379.247754118871, - "particle_position_y": 16382.836191849463, - "particle_position_z": 16382.833818260406, - "particle_weight": 800000003014656.0 - }, - "lev=0": { - "Bx": 0.084241235376183, - "By": 0.084751961809296, - "Bz": 0.08796431812220362, - "Ex": 106872513.1172905, - "Ey": 107805221.85876846, - "Ez": 107782819.9927826, - "jx": 728219.9166720062, - "jy": 736402.6373479366, - "jz": 734813.3440347463, - "rho": 0.0277508111536644, - "rho_electrons": 0.52500122784204, - "rho_protons": 0.5250012273481843 - }, - "photons": { - "particle_momentum_x": 1.428291590249666e-18, - "particle_momentum_y": 1.4222174024686332e-18, - "particle_momentum_z": 1.4246585206989104e-18, - "particle_position_x": 16376.414786216803, - "particle_position_y": 16409.713810583897, - "particle_position_z": 16378.407601130079, - "particle_weight": 800000003014656.0 - }, - "protons": { - "particle_momentum_x": 1.4104799077996007e-19, - "particle_momentum_y": 1.4120357666424943e-19, - "particle_momentum_z": 1.3903168923764969e-19, - "particle_position_x": 16383.951009266078, - "particle_position_y": 16383.991230053827, - "particle_position_z": 16384.033095981926, - "particle_weight": 800000003014656.0 - } -} diff --git a/Regression/Checksum/benchmarks_json/relativistic_space_charge_initialization.json b/Regression/Checksum/benchmarks_json/relativistic_space_charge_initialization.json deleted file mode 100644 index d97f8b580..000000000 --- a/Regression/Checksum/benchmarks_json/relativistic_space_charge_initialization.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "lev=0": { - "By": 3.176136185686860e-05, - "Ex": 9.522292819119155e+03, - "Ey": 9.516582886012895e+03, - "Ez": 8.118976924626002, - "jx": 0.0, - "jy": 0.0, - "jz": 785848.6496458045 - } -} diff --git a/Regression/Checksum/benchmarks_json/restart.json b/Regression/Checksum/benchmarks_json/restart.json deleted file mode 100644 index 9ed02d0fa..000000000 --- a/Regression/Checksum/benchmarks_json/restart.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "beam": { - "particle_momentum_x": 4.178482505909375e-19, - "particle_momentum_y": 4.56492260137707e-19, - "particle_momentum_z": 2.733972888170628e-17, - "particle_position_x": 0.0003995213395426269, - "particle_position_y": 0.0004148795632360405, - "particle_position_z": 1.9019426942919677, - "particle_weight": 3120754537.230381 - }, - "driver": { - "particle_momentum_x": 4.700436405078562e+21, - "particle_momentum_y": 4.6785862113093076e+21, - "particle_momentum_z": 2.9995960930184427e+25, - "particle_position_x": 0.0015811730311771888, - "particle_position_y": 0.0016212373149699414, - "particle_position_z": 0.3041777949865338, - "particle_weight": 6241509074.460762 - }, - "driverback": { - "particle_momentum_x": 4.813131349021332e+21, - "particle_momentum_y": 5.16548074090123e+21, - "particle_momentum_z": 3.005830430844926e+25, - "particle_position_x": 0.001649481123084974, - "particle_position_y": 0.001617221874542843, - "particle_position_z": 0.4899808854005956, - "particle_weight": 6241509074.460762 - }, - "lev=0": { - "Bx": 115361.85363382133, - "By": 242516.41036288123, - "Bz": 62078.12299476949, - "Ex": 119701563770527.33, - "Ey": 20420746160110.2, - "Ez": 53561518084714.88, - "jx": 2.155094272131813e+16, - "jy": 328438528912277.4, - "jz": 4525204093100645.0, - "rho": 22113102.212642767 - }, - "plasma_e": { - "particle_momentum_x": 2.6421618201433585e-19, - "particle_momentum_y": 1.3141433018232061e-20, - "particle_momentum_z": 2.6326692402728787e-17, - "particle_position_x": 0.49916042906025937, - "particle_position_y": 0.4991834641855549, - "particle_position_z": 0.45626372602154797, - "particle_weight": 33067341227104.594 - }, - "plasma_p": { - "particle_momentum_x": 2.639231047445633e-19, - "particle_momentum_y": 5.302522423284582e-21, - "particle_momentum_z": 4.829600619851657e-14, - "particle_position_x": 0.4991250033821394, - "particle_position_y": 0.49912499879083844, - "particle_position_z": 0.45638454727260425, - "particle_weight": 33067341227104.594 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/restart_psatd.json b/Regression/Checksum/benchmarks_json/restart_psatd.json deleted file mode 100644 index 81df3c64c..000000000 --- a/Regression/Checksum/benchmarks_json/restart_psatd.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "beam": { - "particle_momentum_x": 4.178482505909375e-19, - "particle_momentum_y": 4.56492260137707e-19, - "particle_momentum_z": 2.733972888170628e-17, - "particle_position_x": 0.0003995213395426269, - "particle_position_y": 0.0004148795632360405, - "particle_position_z": 1.901942694291968, - "particle_weight": 3120754537.230381 - }, - "driver": { - "particle_momentum_x": 4.700436405078562e+21, - "particle_momentum_y": 4.6785862113093076e+21, - "particle_momentum_z": 2.9995960930184427e+25, - "particle_position_x": 0.0015811730311771888, - "particle_position_y": 0.0016212373149699414, - "particle_position_z": 0.30417779498653386, - "particle_weight": 6241509074.460762 - }, - "driverback": { - "particle_momentum_x": 4.813131349021332e+21, - "particle_momentum_y": 5.16548074090123e+21, - "particle_momentum_z": 3.005830430844926e+25, - "particle_position_x": 0.001649481123084974, - "particle_position_y": 0.0016172218745428432, - "particle_position_z": 0.4899808854005956, - "particle_weight": 6241509074.460762 - }, - "lev=0": { - "Bx": 116102.28415732287, - "By": 245468.57438100342, - "Bz": 65305.38781838063, - "Ex": 118565257880521.4, - "Ey": 18640027127418.004, - "Ez": 51777964618631.914, - "jx": 2.1177240176169996e+16, - "jy": 351529204246424.9, - "jz": 4573419547907262.0, - "rho": 22294773.912022192 - }, - "plasma_e": { - "particle_momentum_x": 2.0912370354448323e-19, - "particle_momentum_y": 1.3510736736168866e-20, - "particle_momentum_z": 2.633607024821822e-17, - "particle_position_x": 0.4991733347875822, - "particle_position_y": 0.49919828067421096, - "particle_position_z": 0.4562416755755165, - "particle_weight": 33067341227104.625 - }, - "plasma_p": { - "particle_momentum_x": 2.105303160755537e-19, - "particle_momentum_y": 3.3281768098792752e-21, - "particle_momentum_z": 4.829599953650214e-14, - "particle_position_x": 0.4991250029759827, - "particle_position_y": 0.49912499825258744, - "particle_position_z": 0.4563845470979585, - "particle_weight": 33067341227104.625 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/restart_psatd_time_avg.json b/Regression/Checksum/benchmarks_json/restart_psatd_time_avg.json deleted file mode 100644 index 344495f81..000000000 --- a/Regression/Checksum/benchmarks_json/restart_psatd_time_avg.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "beam": { - "particle_momentum_x": 4.178482505909375e-19, - "particle_momentum_y": 4.56492260137707e-19, - "particle_momentum_z": 2.733972888170628e-17, - "particle_position_x": 0.0003995213395426269, - "particle_position_y": 0.0004148795632360405, - "particle_position_z": 1.901942694291968, - "particle_weight": 3120754537.230381 - }, - "driver": { - "particle_momentum_x": 4.700436405078562e+21, - "particle_momentum_y": 4.6785862113093076e+21, - "particle_momentum_z": 2.9995960930184427e+25, - "particle_position_x": 0.0015811730311771888, - "particle_position_y": 0.0016212373149699414, - "particle_position_z": 0.30417779498653386, - "particle_weight": 6241509074.460762 - }, - "driverback": { - "particle_momentum_x": 4.813131349021332e+21, - "particle_momentum_y": 5.16548074090123e+21, - "particle_momentum_z": 3.005830430844926e+25, - "particle_position_x": 0.001649481123084974, - "particle_position_y": 0.0016172218745428432, - "particle_position_z": 0.4899808854005956, - "particle_weight": 6241509074.460762 - }, - "lev=0": { - "Bx": 115622.38124168929, - "By": 243405.25199746038, - "Bz": 63602.713209078014, - "Ex": 117118723119070.72, - "Ey": 18448325716024.688, - "Ez": 50821980097172.29, - "jx": 2.104451599585796e+16, - "jy": 329301545706958.4, - "jz": 4524740919108259.0, - "rho": 22129124.901803844 - }, - "plasma_e": { - "particle_momentum_x": 1.9905296213155052e-19, - "particle_momentum_y": 1.2685326003720766e-20, - "particle_momentum_z": 2.6334746549552728e-17, - "particle_position_x": 0.4991702881158205, - "particle_position_y": 0.4991949977965001, - "particle_position_z": 0.45624916139143146, - "particle_weight": 33067341227104.625 - }, - "plasma_p": { - "particle_momentum_x": 2.0028987523417718e-19, - "particle_momentum_y": 2.875037979316222e-21, - "particle_momentum_z": 4.8296000849162443e-14, - "particle_position_x": 0.49912500259844994, - "particle_position_y": 0.4991249979476608, - "particle_position_z": 0.4563845471286154, - "particle_weight": 33067341227104.625 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/scraping.json b/Regression/Checksum/benchmarks_json/scraping.json deleted file mode 100644 index 8f85b956b..000000000 --- a/Regression/Checksum/benchmarks_json/scraping.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "lev=0": { - "Er": 0.0 - }, - "lev=1": { - "Er": 0.0 - } -} diff --git a/Regression/Checksum/benchmarks_json/silver_mueller_1d.json b/Regression/Checksum/benchmarks_json/silver_mueller_1d.json deleted file mode 100644 index 7da9b02d9..000000000 --- a/Regression/Checksum/benchmarks_json/silver_mueller_1d.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "lev=0": { - "Bx": 8.745514819610906e-16, - "By": 8.745514819610906e-16, - "Bz": 0.0, - "Ex": 2.6218388163301576e-07, - "Ey": 2.6218388163301576e-07, - "Ez": 0.0, - "jx": 1.246187625728227e-47, - "jy": 1.246187625728227e-47, - "jz": 0.0 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/silver_mueller_2d_x.json b/Regression/Checksum/benchmarks_json/silver_mueller_2d_x.json deleted file mode 100644 index 3a2b20c03..000000000 --- a/Regression/Checksum/benchmarks_json/silver_mueller_2d_x.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "lev=0": { - "Bx": 5.317312609305897e-09, - "By": 2.717191496720115e-08, - "Bz": 2.795221621874797e-08, - "Ex": 4.152946121094125, - "Ey": 7.867835967181568, - "Ez": 7.817791336283674, - "jx": 0.0, - "jy": 2.9697038995489428e-46, - "jz": 0.0 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/silver_mueller_2d_z.json b/Regression/Checksum/benchmarks_json/silver_mueller_2d_z.json deleted file mode 100644 index dc56f7159..000000000 --- a/Regression/Checksum/benchmarks_json/silver_mueller_2d_z.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "lev=0": { - "Bx": 2.690805904263046e-08, - "By": 2.67901440544351e-08, - "Bz": 6.131245514836944e-09, - "Ex": 7.670630107132959, - "Ey": 7.171047170462589, - "Ez": 4.470310276166253, - "jx": 0.0, - "jy": 2.96970387975164e-46, - "jz": 0.0 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/silver_mueller_rz_z.json b/Regression/Checksum/benchmarks_json/silver_mueller_rz_z.json deleted file mode 100644 index 7515ac7e3..000000000 --- a/Regression/Checksum/benchmarks_json/silver_mueller_rz_z.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "lev=0": { - "Br": 1.477460729891479e-08, - "Bt": 1.510559316787155e-08, - "Bz": 5.811173045189853e-09, - "Er": 4.115800746189268, - "Et": 3.996703230466946, - "Ez": 1.535198100311953, - "jr": 0.0, - "jt": 3.872879366838377e-62, - "jz": 0.0 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/space_charge_initialization.json b/Regression/Checksum/benchmarks_json/space_charge_initialization.json deleted file mode 100644 index e0a157f2a..000000000 --- a/Regression/Checksum/benchmarks_json/space_charge_initialization.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "lev=0": { - "Ex": 7869.6596181638515, - "Ey": 7863.981043503829, - "Ez": 7869.780361756294, - "jx": 0.0, - "jy": 0.0, - "jz": 0.0 - } -} diff --git a/Regression/Checksum/benchmarks_json/space_charge_initialization_2d.json b/Regression/Checksum/benchmarks_json/space_charge_initialization_2d.json deleted file mode 100644 index f37add389..000000000 --- a/Regression/Checksum/benchmarks_json/space_charge_initialization_2d.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "lev=0": { - "Ex": 7438.125125466449, - "Ey": 0.0, - "Ez": 7438.329203373256, - "jx": 0.0, - "jy": 0.0, - "jz": 0.0 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/subcyclingMR.json b/Regression/Checksum/benchmarks_json/subcyclingMR.json deleted file mode 100644 index 232507932..000000000 --- a/Regression/Checksum/benchmarks_json/subcyclingMR.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "beam": { - "particle_momentum_x": 4.387311767094113e-19, - "particle_momentum_y": 0.0, - "particle_momentum_z": 4.8517704675491335e-17, - "particle_position_x": 0.0006657033783750815, - "particle_position_y": 0.0849140891423501, - "particle_weight": 62415090744607.65 - }, - "driver": { - "particle_momentum_x": 3.7542838320569383e-19, - "particle_momentum_y": 0.0, - "particle_momentum_z": 2.7309079886894665e-12, - "particle_position_x": 0.024301436190284513, - "particle_position_y": 0.16525755884764823, - "particle_weight": 208050302482025.38 - }, - "lev=0": { - "Bx": 0.0, - "By": 1003061.0884665609, - "Bz": 0.0, - "Ex": 392507850324287.3, - "Ey": 0.0, - "Ez": 474756663379922.6, - "jx": 3.88537943199684e+17, - "jy": 0.0, - "jz": 6.354163086053307e+17 - }, - "lev=1": { - "Bx": 0.0, - "By": 1852424.496345662, - "Bz": 0.0, - "Ex": 869799620435717.6, - "Ey": 0.0, - "Ez": 917784231212460.1, - "jx": 1.5425231891252467e+17, - "jy": 0.0, - "jz": 4.132752674206236e+17 - }, - "plasma_e": { - "particle_momentum_x": 1.1104588339830376e-18, - "particle_momentum_y": 0.0, - "particle_momentum_z": 1.430771356992691e-18, - "particle_position_x": 0.2360890298892107, - "particle_position_y": 0.29029221403997085, - "particle_weight": 5532897949218750.0 - }, - "plasma_p": { - "particle_momentum_x": 1.8415768930713125e-18, - "particle_momentum_y": 0.0, - "particle_momentum_z": 2.4177122400240747e-18, - "particle_position_x": 0.23904653079854968, - "particle_position_y": 0.31004660311791954, - "particle_weight": 5835937500000001.0 - } -} \ No newline at end of file diff --git a/Regression/Checksum/benchmarks_json/uniform_plasma_multiJ.json b/Regression/Checksum/benchmarks_json/uniform_plasma_multiJ.json deleted file mode 100644 index e215428fe..000000000 --- a/Regression/Checksum/benchmarks_json/uniform_plasma_multiJ.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 2.4258140600451355e-21, - "particle_momentum_y": 2.4115944515722047e-21, - "particle_momentum_z": 8.903860561145549e-17, - "particle_position_x": 158433.52093622342, - "particle_position_y": 158432.7590925775, - "particle_position_z": 158433.27723231513, - "particle_weight": 2.041377132710917e+18 - }, - "ions": { - "particle_momentum_x": 1.3150385606388975e-18, - "particle_momentum_y": 1.3042988334363742e-18, - "particle_momentum_z": 1.6348805659682514e-13, - "particle_position_x": 158433.5805512471, - "particle_position_y": 158432.80155515939, - "particle_position_z": 158433.27779468897, - "particle_weight": 2.041377132710917e+18 - }, - "lev=0": { - "Bx": 0.054117593911342535, - "By": 0.053964421360199535, - "Bz": 0.0005552030959216721, - "divE": 18542936.02490211, - "Ex": 16260950.356941158, - "Ey": 16306834.079553638, - "Ez": 5784750.2181154955, - "F": 2.003020981926516e-02, - "G": 1.349588434641251e+03, - "jx": 984.2101557440694, - "jy": 1030.1973073214422, - "jz": 20803.708075753144, - "rho": 8.4139043087009e-05 - } -} diff --git a/Regression/Checksum/benchmarks_json/uniform_plasma_restart.json b/Regression/Checksum/benchmarks_json/uniform_plasma_restart.json deleted file mode 100644 index 9ce72088e..000000000 --- a/Regression/Checksum/benchmarks_json/uniform_plasma_restart.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "electrons": { - "particle_momentum_x": 2.7516595357013116e-19, - "particle_momentum_y": 2.800047416977248e-19, - "particle_momentum_z": 2.806640757461264e-19, - "particle_position_x": 1.3107178154236696, - "particle_position_y": 1.3107217288877115, - "particle_position_z": 1.3107252280878405, - "particle_weight": 640000000000.0001 - }, - "lev=0": { - "Bx": 24033.816183126673, - "By": 26073.70179692275, - "Bz": 26368.743925150877, - "Ex": 19071548908194.086, - "Ey": 13964737275990.637, - "Ez": 14183197019682.756, - "jx": 2.133950217949798e+16, - "jy": 2.4009322702647948e+16, - "jz": 2.381280948141096e+16, - "rho": 105000247885.82397 - } -} \ No newline at end of file diff --git a/Regression/Checksum/checksum.py b/Regression/Checksum/checksum.py deleted file mode 100644 index cc3c53a24..000000000 --- a/Regression/Checksum/checksum.py +++ /dev/null @@ -1,190 +0,0 @@ -""" - Copyright 2020 - - This file is part of WarpX. - - License: BSD-3-Clause-LBNL - """ - -import json -import sys - -from benchmark import Benchmark -import numpy as np -import yt - -yt.funcs.mylog.setLevel(50) - - -class Checksum: - """Class for checksum comparison of one test. - """ - - def __init__(self, test_name, plotfile, do_fields=True, do_particles=True): - """ - Checksum constructor. - Store test_name and plotfile name, and compute checksum - from plotfile and store it in self.data. - - Parameters - ---------- - test_name: string - Name of test, as found between [] in .ini file. - - plotfile: string - Plotfile from which the checksum is computed. - - do_fields: bool, default=True - Whether to compare fields in the checksum. - - do_particles: bool, default=True - Whether to compare particles in the checksum. - """ - - self.test_name = test_name - self.plotfile = plotfile - self.data = self.read_plotfile(do_fields=do_fields, - do_particles=do_particles) - - def read_plotfile(self, do_fields=True, do_particles=True): - """ - Get checksum from plotfile. - Read an AMReX plotfile with yt, compute 1 checksum per field and return - all checksums in a dictionary. - The checksum of quantity Q is max(abs(Q)). - - Parameters - ---------- - do_fields: bool, default=True - Whether to read fields from the plotfile. - - do_particles: bool, default=True - Whether to read particles from the plotfile. - """ - - ds = yt.load(self.plotfile) - # yt 4.0+ has rounding issues with our domain data: - # RuntimeError: yt attempted to read outside the boundaries - # of a non-periodic domain along dimension 0. - if 'force_periodicity' in dir(ds): ds.force_periodicity() - grid_fields = [item for item in ds.field_list if item[0] == 'boxlib'] - - # "fields"/"species" we remove: - # - nbody: added by yt by default, unused by us - species_list = set([item[0] for item in ds.field_list if - item[1][:9] == 'particle_' and - item[0] != 'all' and - item[0] != 'nbody']) - - data = {} - - # Compute checksum for field quantities - if do_fields: - for lev in range(ds.max_level+1): - data_lev = {} - lev_grids = [grid for grid in ds.index.grids - if grid.Level == lev] - # Warning: For now, we assume all levels are rectangular - LeftEdge = np.min( - np.array([grid.LeftEdge.v for grid in lev_grids]), axis=0) - all_data_level = ds.covering_grid( - level=lev, left_edge=LeftEdge, dims=ds.domain_dimensions) - for field in grid_fields: - Q = all_data_level[field].v.squeeze() - data_lev[field[1]] = np.sum(np.abs(Q)) - data['lev=' + str(lev)] = data_lev - - # Compute checksum for particle quantities - if do_particles: - ad = ds.all_data() - for species in species_list: - # properties we remove: - # - particle_cpu/id: they depend on the parallelism: MPI-ranks and - # on-node acceleration scheme, thus not portable - # and irrelevant for physics benchmarking - part_fields = [item[1] for item in ds.field_list - if item[0] == species and - item[1] != 'particle_cpu' and - item[1] != 'particle_id' - ] - data_species = {} - for field in part_fields: - Q = ad[(species, field)].v - data_species[field] = np.sum(np.abs(Q)) - data[species] = data_species - - return data - - def evaluate(self, rtol=1.e-9, atol=1.e-40): - """ - Compare plotfile checksum with benchmark. - Read checksum from input plotfile, read benchmark - corresponding to test_name, and assert that they are equal. - Almost all the body of this functions is for - user-readable print statements. - - Parameters - ---------- - rtol: float, default=1.e-9 - Relative tolerance on the benchmark - - atol: float, default=1.e-40 - Absolute tolerance on the benchmark - """ - - ref_benchmark = Benchmark(self.test_name) - - # Dictionaries have same outer keys (levels, species)? - if (self.data.keys() != ref_benchmark.data.keys()): - print("ERROR: Benchmark and plotfile checksum " - "have different outer keys:") - print("Benchmark: %s" % ref_benchmark.data.keys()) - print("Plotfile : %s" % self.data.keys()) - print("\n----------------\nNew file for " + self.test_name + ":") - print(json.dumps(self.data, indent=2)) - print("----------------") - sys.exit(1) - - # Dictionaries have same inner keys (field and particle quantities)? - for key1 in ref_benchmark.data.keys(): - if (self.data[key1].keys() != ref_benchmark.data[key1].keys()): - print("ERROR: Benchmark and plotfile checksum have " - "different inner keys:") - print("Common outer keys: %s" % ref_benchmark.data.keys()) - print("Benchmark inner keys in %s: %s" - % (key1, ref_benchmark.data[key1].keys())) - print("Plotfile inner keys in %s: %s" - % (key1, self.data[key1].keys())) - print("\n----------------\nNew file for " + self.test_name + ":") - print(json.dumps(self.data, indent=2)) - print("----------------") - sys.exit(1) - - # Dictionaries have same values? - checksums_differ = False - for key1 in ref_benchmark.data.keys(): - for key2 in ref_benchmark.data[key1].keys(): - passed = np.isclose(self.data[key1][key2], - ref_benchmark.data[key1][key2], - rtol=rtol, atol=atol) - if not passed: - print("ERROR: Benchmark and plotfile checksum have " - "different value for key [%s,%s]" % (key1, key2)) - print("Benchmark: [%s,%s] %.15e" - % (key1, key2, ref_benchmark.data[key1][key2])) - print("Plotfile : [%s,%s] %.15e" - % (key1, key2, self.data[key1][key2])) - checksums_differ = True - # Print absolute and relative error for each failing key - x = ref_benchmark.data[key1][key2] - y = self.data[key1][key2] - abs_err = np.abs(x - y) - print("Absolute error: {:.2e}".format(abs_err)) - if (np.abs(x) != 0.): - rel_err = abs_err / np.abs(x) - print("Relative error: {:.2e}".format(rel_err)) - if checksums_differ: - print("\n----------------\nNew file for " + self.test_name + ":") - print(json.dumps(self.data, indent=2)) - print("----------------") - sys.exit(1) diff --git a/Regression/Checksum/checksumAPI.py b/Regression/Checksum/checksumAPI.py deleted file mode 100755 index c45b6e233..000000000 --- a/Regression/Checksum/checksumAPI.py +++ /dev/null @@ -1,180 +0,0 @@ -#! /usr/bin/env python3 - -""" - Copyright 2020 - - This file is part of WarpX. - - License: BSD-3-Clause-LBNL - """ - -import argparse -import glob -import os -import sys - -from benchmark import Benchmark -from checksum import Checksum - -""" -API for WarpX checksum tests. It can be used in two ways: - -- Directly use functions below to make a checksum test from a python script. - Example: add these lines to a WarpX CI Python analysis script to run the - checksum test. - > import checksumAPI - > checksumAPI.evaluate_checksum(test_name, plotfile) - -- As a script, to evaluate or to reset a benchmark: - * Evaluate a benchmark. From a bash terminal: - $ ./checksumAPI.py --evaluate --plotfile \ - --test-name - * Reset a benchmark. From a bash terminal: - $ ./checksumAPI.py --reset-benchmark --plotfile \ - --test-name -""" - - -def evaluate_checksum(test_name, plotfile, rtol=1.e-9, atol=1.e-40, - do_fields=True, do_particles=True): - """ - Compare plotfile checksum with benchmark. - Read checksum from input plotfile, read benchmark - corresponding to test_name, and assert their equality. - - Parameters - ---------- - test_name: string - Name of test, as found between [] in .ini file. - - plotfile : string - Plotfile from which the checksum is computed. - - rtol: float, default=1.e-9 - Relative tolerance for the comparison. - - atol: float, default=1.e-40 - Absolute tolerance for the comparison. - - do_fields: bool, default=True - Whether to compare fields in the checksum. - - do_particles: bool, default=True - Whether to compare particles in the checksum. - """ - test_checksum = Checksum(test_name, plotfile, do_fields=do_fields, - do_particles=do_particles) - test_checksum.evaluate(rtol=rtol, atol=atol) - - -def reset_benchmark(test_name, plotfile, do_fields=True, do_particles=True): - """ - Update the benchmark (overwrites reference json file). - Overwrite value of benchmark corresponding to - test_name with checksum read from input plotfile. - - Parameters - ---------- - test_name: string - Name of test, as found between [] in .ini file. - - plotfile: string - Plotfile from which the checksum is computed. - - do_fields: bool, default=True - Whether to write field checksums in the benchmark. - - do_particles: bool, default=True - Whether to write particles checksums in the benchmark. - """ - ref_checksum = Checksum(test_name, plotfile, do_fields=do_fields, - do_particles=do_particles) - ref_benchmark = Benchmark(test_name, ref_checksum.data) - ref_benchmark.reset() - - -def reset_all_benchmarks(path_to_all_plotfiles): - """ - Update all benchmarks (overwrites reference json files) - found in path_to_all_plotfiles - - Parameters - ---------- - path_to_all_plotfiles: string - Path to all plotfiles for which the benchmarks - are to be reset. The plotfiles should be named _plt, which is - what regression_testing.regtests.py does, provided we're careful enough. - """ - - # Get list of plotfiles in path_to_all_plotfiles - plotfile_list = glob.glob(path_to_all_plotfiles + '*_plt*[0-9]', - recursive=True) - plotfile_list.sort() - - # Loop over plotfiles and reset the corresponding benchmark - for plotfile in plotfile_list: - test_name = os.path.split(plotfile)[1][:-9] - reset_benchmark(test_name, plotfile) - - -if __name__ == '__main__': - - parser = argparse.ArgumentParser() - - # Options relevant to evaluate a checksum or reset a benchmark - parser.add_argument('--evaluate', dest='evaluate', action='store_true', - default=False, help='Evaluate a checksum.') - parser.add_argument('--reset-benchmark', dest='reset_benchmark', - default=False, - action='store_true', help='Reset a benchmark.') - parser.add_argument('--test-name', dest='test_name', type=str, default='', - required='--evaluate' in sys.argv or - '--reset-benchmark' in sys.argv, - help='Name of the test (as in WarpX-tests.ini)') - parser.add_argument('--plotfile', dest='plotfile', type=str, default='', - required='--evaluate' in sys.argv or - '--reset-benchmark' in sys.argv, - help='Name of WarpX plotfile') - - parser.add_argument('--skip-fields', dest='do_fields', - default=True, action='store_false', - help='If used, do not read/write field checksums') - parser.add_argument('--skip-particles', dest='do_particles', - default=True, action='store_false', - help='If used, do not read/write particle checksums') - - # Fields and/or particles are read from plotfile/written to benchmark? - parser.add_argument('--rtol', dest='rtol', - type=float, default=1.e-9, - help='relative tolerance for comparison') - parser.add_argument('--atol', dest='atol', - type=float, default=1.e-40, - help='absolute tolerance for comparison') - - # Option to reset all benchmarks present in a folder. - parser.add_argument('--reset-all-benchmarks', dest='reset_all_benchmarks', - action='store_true', default=False, - help='Reset all benchmarks.') - parser.add_argument('--path-to-all-plotfiles', - dest='path_to_all_plotfiles', type=str, default='', - required='--reset-all-benchmarks' in sys.argv, - help='Directory containing all benchmark plotfiles, \ - typically WarpX-benchmarks generated by \ - regression_testing/regtest.py') - - args = parser.parse_args() - - if args.reset_benchmark: - reset_benchmark(args.test_name, args.plotfile, - do_fields=args.do_fields, - do_particles=args.do_particles) - - if args.evaluate: - evaluate_checksum(args.test_name, args.plotfile, rtol=args.rtol, - atol=args.atol, do_fields=args.do_fields, - do_particles=args.do_particles) - - if args.reset_all_benchmarks: - # WARNING: this mode does not support skip-fields/particles - # and tolerances - reset_all_benchmarks(args.path_to_all_plotfiles) diff --git a/Regression/Checksum/config.py b/Regression/Checksum/config.py deleted file mode 100644 index fb9dbb223..000000000 --- a/Regression/Checksum/config.py +++ /dev/null @@ -1,11 +0,0 @@ -""" - Copyright 2020 - - This file is part of WarpX. - - License: BSD-3-Clause-LBNL - """ - -import os - -benchmark_location = os.path.split(__file__)[0] + '/benchmarks_json' diff --git a/Regression/PostProcessingUtils/post_processing_utils.py b/Regression/PostProcessingUtils/post_processing_utils.py deleted file mode 100644 index 50026ca10..000000000 --- a/Regression/PostProcessingUtils/post_processing_utils.py +++ /dev/null @@ -1,130 +0,0 @@ -# Copyright 2021-2021 Neil Zaim -# -# This file is part of WarpX. -# -# License: BSD-3-Clause-LBNL - -## This file contains functions that are used in multiple CI analysis scripts. - -import numpy as np -import yt - - -## This is a generic function to test a particle filter. We reproduce the filter in python and -## verify that the results are the same as with the WarpX filtered diagnostic. -def check_particle_filter(fn, filtered_fn, filter_expression, dim, species_name): - ds = yt.load( fn ) - ds_filtered = yt.load( filtered_fn ) - ad = ds.all_data() - ad_filtered = ds_filtered.all_data() - - ## Load arrays from the unfiltered diagnostic - ids = ad[species_name, 'particle_id'].to_ndarray() - cpus = ad[species_name, 'particle_cpu'].to_ndarray() - px = ad[species_name, 'particle_momentum_x'].to_ndarray() - pz = ad[species_name, 'particle_momentum_z'].to_ndarray() - py = ad[species_name, 'particle_momentum_y'].to_ndarray() - w = ad[species_name, 'particle_weight'].to_ndarray() - if (dim == "2d"): - x = ad[species_name, 'particle_position_x'].to_ndarray() - z = ad[species_name, 'particle_position_y'].to_ndarray() - elif (dim == "3d"): - x = ad[species_name, 'particle_position_x'].to_ndarray() - y = ad[species_name, 'particle_position_y'].to_ndarray() - z = ad[species_name, 'particle_position_z'].to_ndarray() - elif (dim == "rz"): - r = ad[species_name, 'particle_position_x'].to_ndarray() - z = ad[species_name, 'particle_position_y'].to_ndarray() - theta = ad[species_name, 'particle_theta'].to_ndarray() - - ## Load arrays from the filtered diagnostic - ids_filtered_warpx = ad_filtered[species_name, 'particle_id'].to_ndarray() - cpus_filtered_warpx = ad_filtered[species_name, 'particle_cpu'].to_ndarray() - px_filtered_warpx = ad_filtered[species_name, 'particle_momentum_x'].to_ndarray() - pz_filtered_warpx = ad_filtered[species_name, 'particle_momentum_z'].to_ndarray() - py_filtered_warpx = ad_filtered[species_name, 'particle_momentum_y'].to_ndarray() - w_filtered_warpx = ad_filtered[species_name, 'particle_weight'].to_ndarray() - if (dim == "2d"): - x_filtered_warpx = ad_filtered[species_name, 'particle_position_x'].to_ndarray() - z_filtered_warpx = ad_filtered[species_name, 'particle_position_y'].to_ndarray() - elif (dim == "3d"): - x_filtered_warpx = ad_filtered[species_name, 'particle_position_x'].to_ndarray() - y_filtered_warpx = ad_filtered[species_name, 'particle_position_y'].to_ndarray() - z_filtered_warpx = ad_filtered[species_name, 'particle_position_z'].to_ndarray() - elif (dim == "rz"): - r_filtered_warpx = ad_filtered[species_name, 'particle_position_x'].to_ndarray() - z_filtered_warpx = ad_filtered[species_name, 'particle_position_y'].to_ndarray() - theta_filtered_warpx = ad_filtered[species_name, 'particle_theta'].to_ndarray() - - ## Reproduce the filter in python: this returns the indices of the filtered particles in the - ## unfiltered arrays. - ind_filtered_python, = np.where(eval(filter_expression)) - - ## Sort the indices of the filtered arrays by particle id. - sorted_ind_filtered_python = ind_filtered_python[np.argsort(ids[ind_filtered_python])] - sorted_ind_filtered_warpx = np.argsort(ids_filtered_warpx) - - ## Check that the sorted ids are exactly the same with the warpx filter and the filter - ## reproduced in python - assert(np.array_equal(ids[sorted_ind_filtered_python], - ids_filtered_warpx[sorted_ind_filtered_warpx])) - assert(np.array_equal(cpus[sorted_ind_filtered_python], - cpus_filtered_warpx[sorted_ind_filtered_warpx])) - - ## Finally, we check that the sum of the particles quantities are the same to machine precision - tolerance_checksum = 1.e-12 - check_array_sum(px[sorted_ind_filtered_python], - px_filtered_warpx[sorted_ind_filtered_warpx], tolerance_checksum) - check_array_sum(pz[sorted_ind_filtered_python], - pz_filtered_warpx[sorted_ind_filtered_warpx], tolerance_checksum) - check_array_sum(py[sorted_ind_filtered_python], - py_filtered_warpx[sorted_ind_filtered_warpx], tolerance_checksum) - check_array_sum(w[sorted_ind_filtered_python], - w_filtered_warpx[sorted_ind_filtered_warpx], tolerance_checksum) - check_array_sum(z[sorted_ind_filtered_python], - z_filtered_warpx[sorted_ind_filtered_warpx], tolerance_checksum) - if (dim == "2d"): - check_array_sum(x[sorted_ind_filtered_python], - x_filtered_warpx[sorted_ind_filtered_warpx], tolerance_checksum) - elif (dim == "3d"): - check_array_sum(x[sorted_ind_filtered_python], - x_filtered_warpx[sorted_ind_filtered_warpx], tolerance_checksum) - check_array_sum(y[sorted_ind_filtered_python], - y_filtered_warpx[sorted_ind_filtered_warpx], tolerance_checksum) - elif (dim == "rz"): - check_array_sum(r[sorted_ind_filtered_python], - r_filtered_warpx[sorted_ind_filtered_warpx], tolerance_checksum) - check_array_sum(theta[sorted_ind_filtered_python], - theta_filtered_warpx[sorted_ind_filtered_warpx], tolerance_checksum) - -## This function checks that the absolute sums of two arrays are the same to a required precision -def check_array_sum(array1, array2, tolerance_checksum): - sum1 = np.sum(np.abs(array1)) - sum2 = np.sum(np.abs(array2)) - assert(abs(sum2-sum1)/sum1 < tolerance_checksum) - -## This function is specifically used to test the random filter. First, we check that the number of -## dumped particles is as expected. Next, we call the generic check_particle_filter function. -def check_random_filter(fn, filtered_fn, random_fraction, dim, species_name): - ds = yt.load( fn ) - ds_filtered = yt.load( filtered_fn ) - ad = ds.all_data() - ad_filtered = ds_filtered.all_data() - - ## Check that the number of particles is as expected - numparts = ad[species_name, 'particle_id'].to_ndarray().shape[0] - numparts_filtered = ad_filtered['particle_id'].to_ndarray().shape[0] - expected_numparts_filtered = random_fraction*numparts - # 5 sigma test that has an intrinsic probability to fail of 1 over ~2 millions - std_numparts_filtered = np.sqrt(expected_numparts_filtered) - error = abs(numparts_filtered-expected_numparts_filtered) - print("Random filter: difference between expected and actual number of dumped particles: " \ - + str(error)) - print("tolerance: " + str(5*std_numparts_filtered)) - assert(error<5*std_numparts_filtered) - - ## Dirty trick to find particles with the same ID + same CPU (does not work with more than 10 - ## MPI ranks) - random_filter_expression = 'np.isin(ids + 0.1*cpus,' \ - 'ids_filtered_warpx + 0.1*cpus_filtered_warpx)' - check_particle_filter(fn, filtered_fn, random_filter_expression, dim, species_name) diff --git a/Regression/TestFillBoundary/compare_guard_cells.sh b/Regression/TestFillBoundary/compare_guard_cells.sh deleted file mode 100755 index 11c174eff..000000000 --- a/Regression/TestFillBoundary/compare_guard_cells.sh +++ /dev/null @@ -1,197 +0,0 @@ -#!/bin/bash - -# Copyright 2020 Maxence Thevenet -# -# This file is part of WarpX. -# -# License: BSD-3-Clause-LBNL - - -# This script compares runs WarpX with (i) default guard cell exchanges and -# (ii) exchanging all guard cells, and check that they match to a certain -# tolerance level (typically 2.e-15). For a large number of configurations -# (PML, moving window, nox=2 etc.) it runs both versions and applies the -# AMReX fcompare utility to check if they match. -# -# This script can run in three modes: -# - Specify commit -# ./compare_guard_cells.sh commit -# - specify branch -# ./compare_guard_cells.sh branch https://github.com/ECP-WarpX/WarpX.git dev -# - Just use the current git head. Typically if you want -# to explore a few commits manually. -# ./compare_guard_cells.sh manual -# -# In both cases, it does the following: -# - git clone WarpX, AMReX and PICSAR (optional) -# - Compile (optional) -# - Compile fcompare (optional) -# - Loop over many configurations and compare the results -# -# The list of all simulations is stored in ran.txt -# The list of all comparisons that failed (and the fcompare output) is stored in failed.txt -# -# To use this script, create an empty directory, copy both this script and the -# inputs.2d file in an EMPTY directory (or it may mess up with your WarpX repo and other config) -# and execute it as shown above - -# exit if error -set -e - -# Choose your options -DO_GIT_CLONE=true -COMPILE=true -COMPILE_fcompare=true -CLEAN=true -DIM=2d -REL_TOL=2e-15 -plotfile=plt00010 -OMP_NUM_THREADS=1 - -# Some general variables -CURR_DIR=$(pwd) -WRPX_DIR=$CURR_DIR/WarpX -FCOMPARE=$CURR_DIR/fcompare.ex -EXECUTABLE=$CURR_DIR/main2d.gnu.TPROF.MPI.OMP.ex - -# Read input options -MODE=$1 # "branch" or "commit" or "manual" -if [ $MODE == "commit" ]; then - COMMIT=$2 -elif [ $MODE == "branch" ]; then - FORK=$2 - BRANCH=$3 -elif [ $MODE == "manual" ]; then - echo "manual mode: this script does not do any git checkout" -else - echo "ERROR: MODE must be branch or commit or manual" - exit -fi - -if [ $DO_GIT_CLONE == true ]; then - # Clone all three repos - rm -rf WarpX picsar amrex - git clone https://github.com/ECP-WarpX/WarpX.git - git clone https://github.com/ECP-WarpX/picsar.git - git clone --branch development https://github.com/AMReX-Codes/amrex.git -fi - -# compile fcompare -if [ $COMPILE_fcompare == true ]; then - # compile fcompare, and copy executable - cd $CURR_DIR/amrex/Tools/Plotfile - make -j 4 DIM=2 - mv $CURR_DIR/amrex/Tools/Plotfile/fcompare.gnu.ex $FCOMPARE -fi - -# Compile executable to test -if [ $COMPILE == true ]; then - cd $WRPX_DIR - # Compile test, and copy executable - if [ $MODE == "commit" ]; then - git checkout $COMMIT - fi - if [ $MODE == "branch" ]; then - git remote add tst $FORK - git fetch tst - git checkout $BRANCH - git pull tst $BRANCH - fi - echo "git status for the test before compiling:" - echo "-----------------------------------------" - git status - if [ $CLEAN == true ]; then - make realclean - fi - make -j 4 DIM=2 - mv $WRPX_DIR/Bin/main2d.gnu.TPROF.MPI.OMP.ex $EXECUTABLE -fi - -cd $CURR_DIR -if [ $CLEAN == true ]; then - # Clean previous runs and create result directories - rm -f Backtrace* - rm -rf ref tst - rm -rf OUTPUT ERROR - rm -f ran.txt failed.txt -fi -mkdir -p OUTPUT/ref OUTPUT/tst ERROR/ref ERROR/tst - -# From now on, do not exit if error (fcompare errors) -set +e - -# Loop over many configurations possible -for NCI_CORR in 0 1; do - for FILTER in 0 1; do - for MOVING_WINDOW in 0 1; do - for NOX in 1 3; do - for SOLVER in yee ckc; do - for PML in 0 1; do - for MAXLEV in 0 1; do - for DIVE in 0 1; do - for SUBCYCLING in 0 1; do - for NODAL in 0 1; do - for GATHER in energy-conserving momentum-conserving; do - # Exception: no-MR + subcycling (meaningless) - if [ $MAXLEV == 0 ] && [ $SUBCYCLING == 1 ]; then continue; fi - # Exception: PML + nodal (not implemented) - if [ $PML == 1 ] && [ $NODAL == 1 ]; then continue; fi - # Exception: divE cleaning + nodal (not implemented) - if [ $DIVE == 1 ] && [ $NODAL == 1 ]; then continue; fi - # Exception: NCI corrector + momentum-conserving gather - if [ $NCI_CORR == 1 ] && [ $GATHER == momentum-conserving ]; then continue; fi - # Exceptions: PSATD does not work with NCI corrector, subcycling, - if [[ $EXECUTABLE == *"PSATD"* ]]; then - if [ $NCI_CORR == 1 ] || [ $SOLVER == ckc ] || [ $SUBCYCLING == 1 ] || \ - [ $NODAL == 0 ] || [ $GATHER == momentum-conserving ] || \ - [ $CURDEPO == esirkepov ]; then continue - fi - fi - RUNNAME=NCI_CORR.$NCI_CORR.FILTER.$FILTER.MOVING_WINDOW.$MOVING_WINDOW.NOX.$NOX.SOLVER.$SOLVER.PML.$PML.MAXLEV.$MAXLEV.DIVE.$DIVE.SUBCYCLING.$SUBCYCLING.NODAL.$NODAL.GATHER.$GATHER - echo $RUNNAME >> ran.txt - for WHICH in ref tst; do - rm -rf $WHICH - SAFE_GUARD_CELLS=0 - if [ $WHICH == ref ]; then SAFE_GUARD_CELLS=1; fi - # Run simulation - sleep .01 - echo $SAFE_GUARD_CELLS - mpirun -np 2 $EXECUTABLE inputs.$DIM \ - particles.use_fdtd_nci_corr=$NCI_CORR \ - warpx.use_filter=$FILTER \ - warpx.do_moving_window=$MOVING_WINDOW \ - algo.particle_shape=$NOX \ - algo.maxwell_solver=$SOLVER \ - amr.plot_file=$WHICH/plt \ - warpx.do_pml=$PML \ - amr.max_level=$MAXLEV \ - warpx.do_dive_cleaning=$DIVE \ - warpx.do_subcycling=$SUBCYCLING \ - warpx.do_nodal=$NODAL \ - algo.field_gathering=$GATHER \ - warpx.safe_guard_cells=$SAFE_GUARD_CELLS \ - > ./OUTPUT/$WHICH/$RUNNAME.txt \ - 2> ./ERROR/$WHICH/$RUNNAME.txt - # MPI is sometimes unhappy without this pause (??) - sleep .01 - done - # variable plot_agree is empty if and only if plotfiles disagree - plot_agree=`$FCOMPARE -r $REL_TOL ./ref/$plotfile ./tst/$plotfile | grep AGREE` - # if plotfiles disagree, print different and exit - if [[ -z $plot_agree ]] ; then - echo "!! ^ COMPARISON failed !!" >> ran.txt - echo $RUNNAME >> failed.txt - $FCOMPARE -r $REL_TOL ./ref/$plotfile ./tst/$plotfile >> failed.txt - fi - rm -rf ref/* tst/* - done - done - done - done - done - done - done - done - done - done -done diff --git a/Regression/TestFillBoundary/inputs.2d b/Regression/TestFillBoundary/inputs.2d deleted file mode 100644 index 5e929a5ce..000000000 --- a/Regression/TestFillBoundary/inputs.2d +++ /dev/null @@ -1,68 +0,0 @@ -################################# -####### GENERAL PARAMETERS ###### -################################# -max_step = 10 -amr.n_cell = 32 32 # 128 128 # 32 32 -amr.max_grid_size = 16 # 64 # 16 -amr.blocking_factor = 16 # 64 # 16 -geometry.dims = 2 -geometry.is_periodic = 1 0 # Is periodic? -geometry.prob_lo = -20.e-6 -20.e-6 # physical domain -geometry.prob_hi = 20.e-6 20.e-6 - -################################# -############ NUMERICS ########### -################################# -warpx.serialize_initial_conditions = 1 -warpx.verbose = 1 -warpx.cfl = .9999 -amr.plot_int = 1000 - -warpx.do_dive_cleaning = 1 -particles.use_fdtd_nci_corr = 0 -warpx.use_filter=0 -warpx.filter_npass_each_dir=1 4 -warpx.do_moving_window = 0 -warpx.moving_window_dir = z -warpx.moving_window_v = 1.0 # units of speed of light -algo.particle_shape = 1 -algo.maxwell_solver = yee -algo.current_deposition = esirkepov -amr.plot_file = "plotfiles/plt" -# warpx.plot_raw_fields = 1 -# warpx.plot_raw_fields_guards = 1 -warpx.do_pml = 0 -amr.max_level = 0 -warpx.boost_direction = z -warpx.fine_tag_lo = -2.e-6 -8.e-6 -warpx.fine_tag_hi = 2.e-6 0.e-6 -warpx.pml_ncell=6 - -################################# -############ PLASMA ############# -################################# -particles.species_names = electrons ions - -electrons.charge = -q_e -electrons.mass = m_e -electrons.injection_style = "NUniformPerCell" -electrons.num_particles_per_cell_each_dim = 1 1 1 -electrons.profile = constant -electrons.density = 1.e20 # number of electrons per m^3 -electrons.momentum_distribution_type = "gaussian" -electrons.uz_m = 0. -electrons.ux_th = 1. # uth the std of the (unitless) momentum -electrons.uy_th = 1. # uth the std of the (unitless) momentum -electrons.uz_th = 1. # uth the std of the (unitless) momentum - -ions.charge = q_e -ions.mass = m_p -ions.injection_style = "NUniformPerCell" -ions.num_particles_per_cell_each_dim = 1 1 1 -ions.profile = constant -ions.density = 1.e20 # number of electrons per m^3 -ions.momentum_distribution_type = "gaussian" -ions.uz_m = 0. -ions.ux_th = .1 # uth the std of the (unitless) momentum -ions.uy_th = .1 # uth the std of the (unitless) momentum -ions.uz_th = .1 # uth the std of the (unitless) momentum diff --git a/Regression/WarpX-GPU-tests.ini b/Regression/WarpX-GPU-tests.ini deleted file mode 100644 index c6b52d898..000000000 --- a/Regression/WarpX-GPU-tests.ini +++ /dev/null @@ -1,678 +0,0 @@ -# This file is used both for the nightly regression tests -# on the garunda server, and for CI tests. -# In the case of CI, some of the parameters entered -# below are overwritten, see prepare_file_ci.py -[main] -# repeat captured errors to stderr, e.g., for CI runs -verbose = 1 - -testTopDir = /home/regtester/RegTesting/rt-WarpX/ -webTopDir = /home/regtester/RegTesting/rt-WarpX/web - -sourceTree = C_Src - -# suiteName is the name prepended to all output directories -suiteName = WarpX-GPU - -COMP = g++ -add_to_c_make_command = TEST=TRUE USE_ASSERTION=TRUE WarpxBinDir= - -archive_output = 0 -purge_output = 1 - -MAKE = make -numMakeJobs = 8 - -# We build by default a few tools for output comparison. -# The build time for those can be skipped if they are not needed. -ftools = - -# Control the build of the particle_compare tool. -# Needed for test particle_tolerance option. -use_ctools = 0 - -# MPIcommand should use the placeholders: -# @host@ to indicate where to put the hostname to run on -# @nprocs@ to indicate where to put the number of processors -# @command@ to indicate where to put the command to run -# -# only tests with useMPI = 1 will run in parallel -# nprocs is problem dependent and specified in the individual problem -# sections. - -#MPIcommand = mpiexec -host @host@ -n @nprocs@ @command@ -MPIcommand = mpiexec -n @nprocs@ @command@ -MPIhost = - -reportActiveTestsOnly = 1 - -# Add "GO UP" link at the top of the web page? -goUpLink = 1 - -# string queried to change plotfiles and checkpoint files -plot_file_name = diag1.file_prefix -check_file_name = none - -# email -sendEmailWhenFail = 1 -emailTo = weiqunzhang@lbl.gov, jlvay@lbl.gov, rlehe@lbl.gov, atmyers@lbl.gov, mthevenet@lbl.gov, oshapoval@lbl.gov, ldianaamorim@lbl.gov, rjambunathan@lbl.gov, axelhuebl@lbl.gov, ezoni@lbl.gov -emailBody = Check https://ccse.lbl.gov/pub/GpuRegressionTesting/WarpX/ for more details. - -[AMReX] -dir = /home/regtester/git/amrex/ -branch = 9d2f762f4897b5f585544baf87a19edd0f0c9560 - -[source] -dir = /home/regtester/git/WarpX -branch = development - -[extra-PICSAR] -dir = /home/regtester/git/picsar/ -branch = 7b5449f92a4b30a095cc4a67f0a8b1fc69680e15 - -# individual problems follow - -[pml_x_yee] -buildDir = . -inputFile = Examples/Tests/pml/inputs_2d -runtime_params = warpx.do_dynamic_scheduling=0 algo.maxwell_solver=yee -dim = 2 -addToCompileString = USE_GPU=TRUE -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 0 -numthreads = 1 -compileTest = 0 -doVis = 0 -analysisRoutine = Examples/Tests/pml/analysis_pml_yee.py - -[pml_x_ckc] -buildDir = . -inputFile = Examples/Tests/pml/inputs_2d -runtime_params = warpx.do_dynamic_scheduling=0 algo.maxwell_solver=ckc -dim = 2 -addToCompileString = USE_GPU=TRUE -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 0 -numthreads = 1 -compileTest = 0 -doVis = 0 -analysisRoutine = Examples/Tests/pml/analysis_pml_ckc.py - -#[pml_x_psatd] -#buildDir = . -#inputFile = Examples/Tests/pml/inputs_2d -#runtime_params = algo.maxwell_solver=psatd warpx.do_dynamic_scheduling=0 -#dim = 2 -#addToCompileString = USE_PSATD=TRUE USE_GPU=TRUE -#restartTest = 0 -#useMPI = 1 -#numprocs = 2 -#useOMP = 0 -#numthreads = 1 -#compileTest = 0 -#doVis = 0 -#analysisRoutine = Examples/Tests/pml/analysis_pml_psatd.py -# -[RigidInjection_lab] -buildDir = . -inputFile = Examples/Tests/RigidInjection/inputs_2d_LabFrame -runtime_params = -dim = 2 -addToCompileString = USE_GPU=TRUE -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 0 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -analysisRoutine = Examples/Tests/RigidInjection/analysis_rigid_injection_LabFrame.py - -[RigidInjection_boost_backtransformed] -buildDir = . -inputFile = Examples/Tests/RigidInjection/inputs_2d_BoostedFrame -runtime_params = -dim = 2 -addToCompileString = USE_GPU=TRUE -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 0 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -doComparison = 0 -aux1File = Tools/PostProcessing/read_raw_data.py -analysisRoutine = Examples/Tests/RigidInjection/analysis_rigid_injection_BoostedFrame.py - -[nci_corrector] -buildDir = . -inputFile = Examples/Tests/nci_fdtd_stability/inputs_2d -runtime_params = amr.max_level=0 particles.use_fdtd_nci_corr=1 -dim = 2 -addToCompileString = USE_GPU=TRUE -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 0 -numthreads = 1 -compileTest = 0 -doVis = 0 -doComparison = 0 -analysisRoutine = Examples/Tests/nci_fdtd_stability/analysis_ncicorr.py - -# [nci_correctorMR] -# buildDir = . -# inputFile = Examples/Tests/nci_fdtd_stability/inputs_2d -# runtime_params = amr.max_level=1 particles.use_fdtd_nci_corr=1 -# dim = 2 -# addToCompileString = USE_GPU=TRUE -# restartTest = 0 -# useMPI = 1 -# numprocs = 2 -# useOMP = 0 -# numthreads = 1 -# compileTest = 0 -# doVis = 0 -# doComparison = 0 -# analysisRoutine = Examples/Tests/nci_fdtd_stability/analysis_ncicorr.py -# -# [ionization_lab] -# buildDir = . -# inputFile = Examples/Tests/ionization/inputs_2d_rt -# runtime_params = -# dim = 2 -# addToCompileString = USE_GPU=TRUE -# restartTest = 0 -# useMPI = 1 -# numprocs = 2 -# useOMP = 0 -# numthreads = 1 -# compileTest = 0 -# doVis = 0 -# analysisRoutine = Examples/Tests/ionization/analysis_ionization.py -# -# [ionization_boost] -# buildDir = . -# inputFile = Examples/Tests/ionization/inputs_2d_bf_rt -# runtime_params = -# dim = 2 -# addToCompileString = USE_GPU=TRUE -# restartTest = 0 -# useMPI = 1 -# numprocs = 2 -# useOMP = 0 -# numthreads = 1 -# compileTest = 0 -# doVis = 0 -# analysisRoutine = Examples/Tests/ionization/analysis_ionization.py -# -[bilinear_filter] -buildDir = . -inputFile = Examples/Tests/single_particle/inputs_2d -runtime_params = warpx.use_filter=1 warpx.filter_npass_each_dir=1 5 -dim = 2 -addToCompileString = USE_GPU=TRUE -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 0 -numthreads = 1 -compileTest = 0 -doVis = 0 -analysisRoutine = Examples/Tests/single_particle/analysis_bilinear_filter.py - -[Langmuir_2d] -buildDir = . -inputFile = Examples/Tests/langmuir/inputs_3d_rt -dim = 2 -addToCompileString = USE_GPU=TRUE -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 0 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -particleTypes = electrons -runtime_params = electrons.ux=0.01 electrons.xmax=0.e-6 diag1.fields_to_plot=Ex jx diag1.electrons.variables=w ux -analysisRoutine = Examples/Tests/langmuir/analysis_langmuir2d.py -analysisOutputImage = langmuir2d_analysis.png - -[Langmuir_2d_single_precision] -buildDir = . -inputFile = Examples/Tests/langmuir/inputs_3d_rt -runtime_params = electrons.ux=0.01 electrons.xmax=0.e-6 diag1.fields_to_plot=Ex jx diag1.electrons.variables=w ux -dim = 2 -addToCompileString = USE_GPU=TRUE PRECISION=FLOAT USE_SINGLE_PRECISION_PARTICLES=TRUE -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 0 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -particleTypes = electrons -analysisRoutine = Examples/Tests/langmuir/analysis_langmuir2d.py -analysisOutputImage = langmuir2d_analysis.png - -[Langmuir_2d_nompi] -buildDir = . -inputFile = Examples/Tests/langmuir/inputs_3d_rt -dim = 2 -addToCompileString = USE_GPU=TRUE -restartTest = 0 -useMPI = 0 -numprocs = 1 -useOMP = 0 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -particleTypes = electrons -runtime_params = electrons.ux=0.01 electrons.xmax=0.e-6 diag1.fields_to_plot=Ex jx diag1.electrons.variables=w ux -analysisRoutine = Examples/Tests/langmuir/analysis_langmuir2d.py -analysisOutputImage = langmuir2d_analysis.png - -[Langmuir_x] -buildDir = . -inputFile = Examples/Tests/langmuir/inputs_3d_rt -dim = 3 -addToCompileString = USE_GPU=TRUE -restartTest = 0 -useMPI = 1 -numprocs = 4 -useOMP = 0 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -particleTypes = electrons -runtime_params = electrons.ux=0.01 electrons.xmax=0.e-6 warpx.do_dynamic_scheduling=0 diag1.fields_to_plot = Ex jx diag1.electrons.variables=w ux -analysisRoutine = Examples/Tests/langmuir/analysis_langmuir.py -analysisOutputImage = langmuir_x_analysis.png - -[Langmuir_y] -buildDir = . -inputFile = Examples/Tests/langmuir/inputs_3d_rt -dim = 3 -addToCompileString = USE_GPU=TRUE -restartTest = 0 -useMPI = 1 -numprocs = 4 -useOMP = 0 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -particleTypes = electrons -runtime_params = electrons.uy=0.01 electrons.ymax=0.e-6 warpx.do_dynamic_scheduling=0 diag1.fields_to_plot = Ey jy diag1.electrons.variables=w uy -analysisRoutine = Examples/Tests/langmuir/analysis_langmuir.py -analysisOutputImage = langmuir_y_analysis.png - -[Langmuir_z] -buildDir = . -inputFile = Examples/Tests/langmuir/inputs_3d_rt -dim = 3 -addToCompileString = USE_GPU=TRUE -restartTest = 0 -useMPI = 1 -numprocs = 4 -useOMP = 0 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -particleTypes = electrons -runtime_params = electrons.uz=0.01 electrons.zmax=0.e-6 warpx.do_dynamic_scheduling=0 diag1.fields_to_plot = Ez jz diag1.electrons.variables=w uz -analysisRoutine = Examples/Tests/langmuir/analysis_langmuir.py -analysisOutputImage = langmuir_z_analysis.png - -[Langmuir_multi] -buildDir = . -inputFile = Examples/Tests/langmuir/inputs_3d_multi_rt -dim = 3 -addToCompileString = USE_GPU=TRUE -restartTest = 0 -useMPI = 1 -numprocs = 4 -useOMP = 0 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -runtime_params = warpx.do_dynamic_scheduling=0 -particleTypes = electrons positrons -analysisRoutine = Examples/Tests/langmuir/analysis_langmuir_multi.py -analysisOutputImage = langmuir_multi_analysis.png - -[Langmuir_multi_nodal] -buildDir = . -inputFile = Examples/Tests/langmuir/inputs_3d_multi_rt -dim = 3 -addToCompileString = USE_GPU=TRUE -restartTest = 0 -useMPI = 1 -numprocs = 4 -useOMP = 0 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -runtime_params = warpx.do_dynamic_scheduling=0 warpx.grid_type=collocated algo.current_deposition=direct -particleTypes = electrons positrons -analysisRoutine = Examples/Tests/langmuir/analysis_langmuir_multi.py -analysisOutputImage = langmuir_multi_analysis.png - -[Langmuir_multi_psatd] -buildDir = . -inputFile = Examples/Tests/langmuir/inputs_3d_multi_rt -runtime_params = algo.maxwell_solver=psatd warpx.cfl = 0.5773502691896258 -dim = 3 -addToCompileString = USE_PSATD=TRUE USE_GPU=TRUE -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 0 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -particleTypes = electrons positrons -analysisRoutine = Examples/Tests/langmuir/analysis_langmuir_multi.py -analysisOutputImage = langmuir_multi_analysis.png - -[Langmuir_multi_psatd_nodal] -buildDir = . -inputFile = Examples/Tests/langmuir/inputs_3d_multi_rt -runtime_params = algo.maxwell_solver=psatd warpx.do_dynamic_scheduling=0 warpx.grid_type=collocated algo.current_deposition=direct warpx.cfl = 0.5773502691896258 -dim = 3 -addToCompileString = USE_PSATD=TRUE USE_GPU=TRUE -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 0 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -particleTypes = electrons positrons -analysisRoutine = Examples/Tests/langmuir/analysis_langmuir_multi.py -analysisOutputImage = langmuir_multi_analysis.png - -[Langmuir_multi_2d_nodal] -buildDir = . -inputFile = Examples/Tests/langmuir/inputs_2d_multi_rt -dim = 2 -addToCompileString = USE_GPU=TRUE -restartTest = 0 -useMPI = 1 -numprocs = 4 -useOMP = 0 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -runtime_params = warpx.grid_type=collocated algo.current_deposition=direct diag1.electrons.variables=w ux uy uz diag1.positrons.variables=w ux uy uz -particleTypes = electrons positrons -analysisRoutine = Examples/Tests/langmuir/analysis_langmuir_multi_2d.py -analysisOutputImage = langmuir_multi_2d_analysis.png - -[Langmuir_multi_2d_psatd] -buildDir = . -inputFile = Examples/Tests/langmuir/inputs_2d_multi_rt -runtime_params = algo.maxwell_solver=psatd diag1.electrons.variables=w ux uy uz diag1.positrons.variables=w ux uy uz diag1.fields_to_plot=Ex Ey Ez jx jy jz part_per_cell warpx.cfl = 0.7071067811865475 -dim = 2 -addToCompileString = USE_PSATD=TRUE USE_GPU=TRUE -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 0 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -particleTypes = electrons positrons -analysisRoutine = Examples/Tests/langmuir/analysis_langmuir_multi_2d.py -analysisOutputImage = langmuir_multi_2d_analysis.png - -# [Langmuir_multi_2d_psatd_nodal] -# buildDir = . -# inputFile = Examples/Tests/langmuir/inputs_2d_multi_rt -# runtime_params = algo.maxwell_solver=psatd warpx.grid_type=collocated algo.current_deposition=direct diag1.electrons.variables=w ux uy uz diag1.positrons.variables=w ux uy uz diag1.fields_to_plot=Ex Ey Ez jx jy jz part_per_cell -# dim = 2 -# addToCompileString = USE_PSATD=TRUE USE_GPU=TRUE -# restartTest = 0 -# useMPI = 1 -# numprocs = 4 -# useOMP = 0 -# numthreads = 1 -# compileTest = 0 -# doVis = 0 -# compareParticles = 0 -# particleTypes = electrons positrons -# analysisRoutine = Examples/Tests/langmuir/analysis_langmuir_multi_2d.py -# analysisOutputImage = langmuir_multi_2d_analysis.png -# -# [Langmuir_multi_rz] -# buildDir = . -# inputFile = Examples/Tests/langmuir/inputs_2d_multi_rz_rt -# dim = 2 -# addToCompileString = USE_RZ=TRUE USE_GPU=TRUE -# restartTest = 0 -# useMPI = 1 -# numprocs = 4 -# useOMP = 0 -# numthreads = 1 -# compileTest = 0 -# doVis = 0 -# runtime_params = diag1.electrons.variables=w ux uy uz diag1.ions.variables=w ux uy uz -# compareParticles = 0 -# particleTypes = electrons ions -# analysisRoutine = Examples/Tests/langmuir/analysis_langmuir_multi_rz.py -# analysisOutputImage = langmuir_multi_rz_analysis.png -# -# [Langmuir_rz_multimode] -# buildDir = . -# inputFile = Examples/Tests/langmuir/PICMI_inputs_langmuir_rz_multimode_analyze.py -# customRunCmd = python PICMI_inputs_langmuir_rz_multimode_analyze.py -# runtime_params = -# dim = 2 -# addToCompileString = USE_PYTHON_MAIN=TRUE USE_RZ=TRUE USE_GPU=TRUE PYINSTALLOPTIONS="--user --prefix=" -# restartTest = 0 -# useMPI = 1 -# numprocs = 4 -# useOMP = 0 -# numthreads = 1 -# compileTest = 0 -# doVis = 0 -# compareParticles = 0 -# particleTypes = electrons protons -# outputFile = diags/plotfiles/plt00040 -# -[LaserInjection] -buildDir = . -inputFile = Examples/Tests/laser_injection/inputs_3d_rt -dim = 3 -runtime_params = max_step=20 -addToCompileString = USE_GPU=TRUE -restartTest = 0 -useMPI = 1 -numprocs = 4 -useOMP = 0 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -analysisRoutine = Examples/Tests/laser_injection/analysis_laser.py -analysisOutputImage = laser_analysis.png - -[LaserInjection_2d] -buildDir = . -inputFile = Examples/Tests/laser_injection/inputs_2d_rt -dim = 2 -addToCompileString = USE_GPU=TRUE -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 0 -numthreads = 1 -compileTest = 0 -doVis = 0 -runtime_params = warpx.do_dynamic_scheduling=0 warpx.serialize_initial_conditions=1 -compareParticles = 0 - -#xxxxx -#[LaserAcceleration] -#buildDir = . -#inputFile = Examples/Physics_applications/laser_acceleration/inputs_3d -#runtime_params = warpx.do_dynamic_scheduling=0 amr.n_cell=32 32 256 max_step=100 electrons.zmin=0.e-6 warpx.serialize_initial_conditions=1 -#dim = 3 -#addToCompileString = USE_GPU=TRUE -#restartTest = 0 -#useMPI = 1 -#numprocs = 2 -#useOMP = 0 -#numthreads = 1 -#compileTest = 0 -#doVis = 0 -#compareParticles = 0 -#particleTypes = electrons -# -[subcyclingMR] -buildDir = . -inputFile = Examples/Tests/subcycling/inputs_2d -runtime_params = warpx.serialize_initial_conditions=1 warpx.do_dynamic_scheduling=0 -dim = 2 -addToCompileString = USE_GPU=TRUE -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 0 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 - -[LaserAccelerationMR] -buildDir = . -inputFile = Examples/Physics_applications/laser_acceleration/inputs_2d -runtime_params = amr.max_level=1 max_step=200 warpx.serialize_initial_conditions=1 warpx.fine_tag_lo=-5.e-6 -35.e-6 warpx.fine_tag_hi=5.e-6 -25.e-6 -dim = 2 -addToCompileString = USE_GPU=TRUE -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 0 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -particleTypes = electrons beam - -[PlasmaAccelerationMR] -buildDir = . -inputFile = Examples/Physics_applications/plasma_acceleration/inputs_2d -runtime_params = amr.max_level=1 amr.n_cell=32 512 max_step=400 warpx.serialize_initial_conditions=1 warpx.do_dynamic_scheduling=0 -dim = 2 -addToCompileString = USE_GPU=TRUE -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 0 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -particleTypes = beam driver plasma_e - -[Python_Langmuir] -buildDir = . -inputFile = Examples/Tests/langmuir/PICMI_inputs_langmuir_rt.py -customRunCmd = python PICMI_inputs_langmuir_rt.py -runtime_params = -dim = 3 -addToCompileString = USE_PYTHON_MAIN=TRUE USE_GPU=TRUE PYINSTALLOPTIONS="--user --prefix=" -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 0 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -particleTypes = electrons -outputFile = diags/diag200040 - -[uniform_plasma_restart] -buildDir = . -inputFile = Examples/Physics_applications/uniform_plasma/inputs_3d -runtime_params = chk.file_prefix=uniform_plasma_restart_chk -dim = 3 -addToCompileString = USE_GPU=TRUE -restartTest = 1 -restartFileNum = 6 -useMPI = 1 -numprocs = 2 -useOMP = 0 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -particleTypes = electrons - -[particles_in_pml_2d] -buildDir = . -inputFile = Examples/Tests/particles_in_pml/inputs_2d -runtime_params = -dim = 2 -addToCompileString = USE_GPU=TRUE -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 0 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -analysisRoutine = Examples/Tests/particles_in_pml/analysis_particles_in_pml.py - -[particles_in_pml] -buildDir = . -inputFile = Examples/Tests/particles_in_pml/inputs_3d -runtime_params = -dim = 3 -addToCompileString = USE_GPU=TRUE -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 0 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -analysisRoutine = Examples/Tests/particles_in_pml/analysis_particles_in_pml.py - -[photon_pusher] -buildDir = . -inputFile = Examples/Tests/photon_pusher/inputs_3d -runtime_params = -dim = 3 -addToCompileString = USE_GPU=TRUE -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 0 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -analysisRoutine = Examples/Tests/photon_pusher/analysis_photon_pusher.py diff --git a/Regression/WarpX-tests.ini b/Regression/WarpX-tests.ini deleted file mode 100644 index fd18b8cb1..000000000 --- a/Regression/WarpX-tests.ini +++ /dev/null @@ -1,4019 +0,0 @@ -# This file is used both for the nightly regression tests -# on the battra server, and for CI tests. -# In the case of CI, some of the parameters entered -# below are overwritten, see prepare_file_ci.py -[main] -# repeat captured errors to stderr, e.g., for CI runs -verbose = 1 - -testTopDir = /home/regtester/AMReX_RegTesting/rt-WarpX/ -webTopDir = /home/regtester/AMReX_RegTesting/rt-WarpX/web - -sourceTree = C_Src - -# suiteName is the name prepended to all output directories -suiteName = WarpX - -archive_output = 0 -purge_output = 1 - -useCmake = 1 -isSuperbuild = 1 -MAKE = make -numMakeJobs = 8 - -# We build by default a few tools for output comparison. -# The build time for those can be skipped if they are not needed. -ftools = - -# Control the build of the particle_compare tool. -# Needed for test particle_tolerance option. -use_ctools = 0 - -# MPIcommand should use the placeholders: -# @host@ to indicate where to put the hostname to run on -# @nprocs@ to indicate where to put the number of processors -# @command@ to indicate where to put the command to run -# -# only tests with useMPI = 1 will run in parallel -# nprocs is problem dependent and specified in the individual problem -# sections. - -#MPIcommand = mpiexec -host @host@ -n @nprocs@ @command@ -MPIcommand = mpiexec -n @nprocs@ @command@ -MPIhost = - -reportActiveTestsOnly = 1 - -# Add "GO UP" link at the top of the web page? -goUpLink = 1 - -# string queried to change plotfiles and checkpoint files -plot_file_name = diag1.file_prefix -check_file_name = none - -# email -sendEmailWhenFail = 1 -emailTo = weiqunzhang@lbl.gov, jlvay@lbl.gov, rlehe@lbl.gov, atmyers@lbl.gov, oshapoval@lbl.gov, henri.vincenti@cea.fr, rjambunathan@lbl.gov, yinjianzhao@lbl.gov -emailBody = Check https://ccse.lbl.gov/pub/RegressionTesting/WarpX/ for more details. - -[AMReX] -dir = /home/regtester/AMReX_RegTesting/amrex/ -branch = 9d2f762f4897b5f585544baf87a19edd0f0c9560 - -[source] -dir = /home/regtester/AMReX_RegTesting/warpx -branch = development -cmakeSetupOpts = -DAMReX_ASSERTIONS=ON -DAMReX_TESTING=ON -DWarpX_LIB=ON - -# individual problems follow - -[pml_x_yee] -buildDir = . -inputFile = Examples/Tests/pml/inputs_2d -runtime_params = warpx.do_dynamic_scheduling=0 algo.maxwell_solver=yee chk.file_prefix=pml_x_yee_chk chk.file_min_digits=5 -dim = 2 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=2 -restartTest = 1 -restartFileNum = 150 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -analysisRoutine = Examples/Tests/pml/analysis_pml_yee.py - -[pml_x_yee_eb] -buildDir = . -inputFile = Examples/Tests/pml/inputs_2d -runtime_params = warpx.do_dynamic_scheduling=0 algo.maxwell_solver=yee chk.file_prefix=pml_x_yee_eb_chk chk.file_min_digits=5 -dim = 2 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=2 -DWarpX_EB=ON -restartTest = 1 -restartFileNum = 150 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -analysisRoutine = Examples/Tests/pml/analysis_pml_yee.py - -[pml_x_ckc] -buildDir = . -inputFile = Examples/Tests/pml/inputs_2d -runtime_params = warpx.do_dynamic_scheduling=0 algo.maxwell_solver=ckc -dim = 2 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=2 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -analysisRoutine = Examples/Tests/pml/analysis_pml_ckc.py - -[pml_x_psatd] -buildDir = . -inputFile = Examples/Tests/pml/inputs_2d -runtime_params = algo.maxwell_solver=psatd psatd.update_with_rho=1 warpx.do_dynamic_scheduling=0 diag1.fields_to_plot = Ex Ey Ez Bx By Bz rho divE warpx.cfl = 0.7071067811865475 warpx.do_pml_dive_cleaning=0 warpx.do_pml_divb_cleaning=0 chk.file_prefix=pml_x_psatd_chk chk.file_min_digits=5 psatd.current_correction=0 warpx.abort_on_warning_threshold=medium -dim = 2 -addToCompileString = USE_PSATD=TRUE -cmakeSetupOpts = -DWarpX_DIMS=2 -DWarpX_PSATD=ON -restartTest = 1 -restartFileNum = 150 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -analysisRoutine = Examples/Tests/pml/analysis_pml_psatd.py - -[pml_psatd_dive_divb_cleaning] -buildDir = . -inputFile = Examples/Tests/pml/inputs_3d -runtime_params = warpx.do_similar_dm_pml=0 warpx.abort_on_warning_threshold=medium ablastr.fillboundary_always_sync=1 -dim = 3 -addToCompileString = USE_PSATD=TRUE -cmakeSetupOpts = -DWarpX_DIMS=3 -DWarpX_PSATD=ON -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -analysisRoutine = Examples/analysis_default_regression.py - -[pml_psatd_rz] -buildDir = . -inputFile = Examples/Tests/pml/inputs_rz -runtime_params = warpx.do_dynamic_scheduling=0 warpx.serialize_initial_conditions=1 warpx.cfl=0.7 psatd.current_correction=0 warpx.abort_on_warning_threshold=medium -dim = 2 -addToCompileString = USE_RZ=TRUE USE_PSATD=TRUE -cmakeSetupOpts = -DWarpX_DIMS=RZ -DWarpX_PSATD=ON -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -analysisRoutine = Examples/Tests/pml/analysis_pml_psatd_rz.py - -[silver_mueller_2d_x] -buildDir = . -inputFile = Examples/Tests/silver_mueller/inputs_2d_x -runtime_params = -dim = 2 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=2 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -analysisRoutine = Examples/Tests/silver_mueller/analysis_silver_mueller.py - -[silver_mueller_2d_z] -buildDir = . -inputFile = Examples/Tests/silver_mueller/inputs_2d_z -runtime_params = -dim = 2 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=2 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -analysisRoutine = Examples/Tests/silver_mueller/analysis_silver_mueller.py - -[silver_mueller_1d] -buildDir = . -inputFile = Examples/Tests/silver_mueller/inputs_1d -runtime_params = -dim = 1 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=1 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -analysisRoutine = Examples/Tests/silver_mueller/analysis_silver_mueller.py - -[silver_mueller_rz_z] -buildDir = . -inputFile = Examples/Tests/silver_mueller/inputs_rz_z -runtime_params = -dim = 2 -addToCompileString = USE_RZ=TRUE -cmakeSetupOpts = -DWarpX_DIMS=RZ -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -analysisRoutine = Examples/Tests/silver_mueller/analysis_silver_mueller.py - -[RigidInjection_lab] -buildDir = . -inputFile = Examples/Tests/rigid_injection/inputs_2d_LabFrame -runtime_params = warpx.do_dynamic_scheduling=0 warpx.serialize_initial_conditions=1 -dim = 2 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=2 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -analysisRoutine = Examples/Tests/rigid_injection/analysis_rigid_injection_LabFrame.py - -[RigidInjection_BTD] -buildDir = . -inputFile = Examples/Tests/rigid_injection/inputs_2d_BoostedFrame -runtime_params = warpx.do_dynamic_scheduling=0 warpx.serialize_initial_conditions=1 -dim = 2 -addToCompileString = USE_OPENPMD=TRUE -cmakeSetupOpts = -DWarpX_DIMS=2 -DWarpX_OPENPMD=ON -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -doComparison = 0 -analysisRoutine = Examples/Tests/rigid_injection/analysis_rigid_injection_BoostedFrame.py - -[LaserAcceleration_BTD] -buildDir = . -inputFile = Examples/Tests/boosted_diags/inputs_3d -runtime_params = -dim = 3 -addToCompileString = USE_OPENPMD=TRUE -cmakeSetupOpts = -DWarpX_DIMS=3 -DWarpX_OPENPMD=ON -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -doComparison = 0 -analysisRoutine = Examples/Tests/boosted_diags/analysis.py - -[nci_corrector] -buildDir = . -inputFile = Examples/Tests/nci_fdtd_stability/inputs_2d -runtime_params = amr.max_level=0 particles.use_fdtd_nci_corr=1 -dim = 2 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=2 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -doComparison = 0 -analysisRoutine = Examples/Tests/nci_fdtd_stability/analysis_ncicorr.py - -[nci_correctorMR] -buildDir = . -inputFile = Examples/Tests/nci_fdtd_stability/inputs_2d -runtime_params = amr.max_level=1 particles.use_fdtd_nci_corr=1 amr.n_cell=64 64 warpx.fine_tag_lo=-20.e-6 -20.e-6 warpx.fine_tag_hi=20.e-6 20.e-6 -dim = 2 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=2 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -doComparison = 0 -analysisRoutine = Examples/Tests/nci_fdtd_stability/analysis_ncicorr.py - -[ionization_lab] -buildDir = . -inputFile = Examples/Tests/ionization/inputs_2d_rt -runtime_params = -dim = 2 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=2 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -analysisRoutine = Examples/Tests/ionization/analysis_ionization.py - -[ionization_boost] -buildDir = . -inputFile = Examples/Tests/ionization/inputs_2d_bf_rt -runtime_params = -dim = 2 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=2 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -analysisRoutine = Examples/Tests/ionization/analysis_ionization.py - -[bilinear_filter] -buildDir = . -inputFile = Examples/Tests/single_particle/inputs_2d -runtime_params = warpx.use_filter=1 warpx.filter_npass_each_dir=1 5 -dim = 2 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=2 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -analysisRoutine = Examples/Tests/single_particle/analysis_bilinear_filter.py - -[Langmuir_multi] -buildDir = . -inputFile = Examples/Tests/langmuir/inputs_3d -runtime_params = warpx.do_dynamic_scheduling=0 -dim = 3 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=3 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons positrons -analysisRoutine = Examples/Tests/langmuir/analysis_3d.py -analysisOutputImage = langmuir_multi_analysis.png - -[Langmuir_multi_single_precision] -buildDir = . -inputFile = Examples/Tests/langmuir/inputs_3d -runtime_params = warpx.do_dynamic_scheduling=0 -dim = 3 -addToCompileString = PRECISION=FLOAT USE_SINGLE_PRECISION_PARTICLES=TRUE -cmakeSetupOpts = -DWarpX_DIMS=3 -DWarpX_PRECISION=SINGLE -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons positrons -analysisRoutine = Examples/Tests/langmuir/analysis_3d.py -analysisOutputImage = langmuir_multi_analysis.png - -[Langmuir_multi_nodal] -buildDir = . -inputFile = Examples/Tests/langmuir/inputs_3d -runtime_params = warpx.do_dynamic_scheduling=0 warpx.grid_type=collocated algo.current_deposition=direct -dim = 3 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=3 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons positrons -analysisRoutine = Examples/Tests/langmuir/analysis_3d.py -analysisOutputImage = langmuir_multi_analysis.png - -[Langmuir_multi_psatd] -buildDir = . -inputFile = Examples/Tests/langmuir/inputs_3d -runtime_params = algo.maxwell_solver=psatd warpx.cfl = 0.5773502691896258 -dim = 3 -addToCompileString = USE_PSATD=TRUE -cmakeSetupOpts = -DWarpX_DIMS=3 -DWarpX_PSATD=ON -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons positrons -analysisRoutine = Examples/Tests/langmuir/analysis_3d.py -analysisOutputImage = langmuir_multi_analysis.png - -[Langmuir_multi_psatd_multiJ] -buildDir = . -inputFile = Examples/Tests/langmuir/inputs_3d -runtime_params = algo.maxwell_solver=psatd warpx.cfl=0.5773502691896258 algo.current_deposition=direct psatd.update_with_rho=1 warpx.do_multi_J=1 warpx.do_multi_J_n_depositions=2 psatd.solution_type=first-order psatd.J_in_time=linear warpx.abort_on_warning_threshold=medium -dim = 3 -addToCompileString = USE_PSATD=TRUE -cmakeSetupOpts = -DWarpX_DIMS=3 -DWarpX_PSATD=ON -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons positrons -analysisRoutine = Examples/Tests/langmuir/analysis_3d.py -analysisOutputImage = Langmuir_multi_psatd_multiJ.png - -[Langmuir_multi_psatd_multiJ_nodal] -buildDir = . -inputFile = Examples/Tests/langmuir/inputs_3d -runtime_params = algo.maxwell_solver=psatd warpx.cfl=0.5773502691896258 algo.current_deposition=direct psatd.update_with_rho=1 warpx.do_multi_J=1 warpx.do_multi_J_n_depositions=2 psatd.solution_type=first-order psatd.J_in_time=linear warpx.abort_on_warning_threshold=medium warpx.grid_type=collocated -dim = 3 -addToCompileString = USE_PSATD=TRUE -cmakeSetupOpts = -DWarpX_DIMS=3 -DWarpX_PSATD=ON -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons positrons -analysisRoutine = Examples/Tests/langmuir/analysis_3d.py -analysisOutputImage = Langmuir_multi_psatd_multiJ_nodal.png - -[Langmuir_multi_psatd_div_cleaning] -buildDir = . -inputFile = Examples/Tests/langmuir/inputs_3d -runtime_params = algo.maxwell_solver=psatd warpx.cfl = 0.5773502691896258 psatd.update_with_rho = 1 algo.current_deposition = direct warpx.do_dive_cleaning = 1 warpx.do_divb_cleaning = 1 diag1.intervals = 0, 38:40:1 diag1.fields_to_plot = Ex Ey Ez Bx By Bz jx jy jz part_per_cell rho divE F warpx.abort_on_warning_threshold=medium -dim = 3 -addToCompileString = USE_PSATD=TRUE -cmakeSetupOpts = -DWarpX_DIMS=3 -DWarpX_PSATD=ON -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons positrons -analysisRoutine = Examples/Tests/langmuir/analysis_3d.py -analysisOutputImage = langmuir_multi_analysis.png - -[Langmuir_multi_psatd_current_correction] -buildDir = . -inputFile = Examples/Tests/langmuir/inputs_3d -runtime_params = algo.maxwell_solver=psatd algo.current_deposition=esirkepov psatd.periodic_single_box_fft=1 psatd.current_correction=1 diag1.fields_to_plot = Ex Ey Ez Bx By Bz jx jy jz part_per_cell rho divE warpx.cfl = 0.5773502691896258 -dim = 3 -addToCompileString = USE_PSATD=TRUE -cmakeSetupOpts = -DWarpX_DIMS=3 -DWarpX_PSATD=ON -restartTest = 0 -useMPI = 1 -numprocs = 1 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons positrons -analysisRoutine = Examples/Tests/langmuir/analysis_3d.py -analysisOutputImage = langmuir_multi_analysis.png - -[Langmuir_multi_psatd_current_correction_nodal] -buildDir = . -inputFile = Examples/Tests/langmuir/inputs_3d -runtime_params = algo.maxwell_solver=psatd algo.current_deposition=direct psatd.periodic_single_box_fft=1 psatd.current_correction=1 warpx.grid_type=collocated diag1.fields_to_plot = Ex Ey Ez Bx By Bz jx jy jz part_per_cell rho divE warpx.cfl = 0.5773502691896258 -dim = 3 -addToCompileString = USE_PSATD=TRUE -cmakeSetupOpts = -DWarpX_DIMS=3 -DWarpX_PSATD=ON -restartTest = 0 -useMPI = 1 -numprocs = 1 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons positrons -analysisRoutine = Examples/Tests/langmuir/analysis_3d.py -analysisOutputImage = langmuir_multi_analysis.png - -[Langmuir_multi_psatd_Vay_deposition] -buildDir = . -inputFile = Examples/Tests/langmuir/inputs_3d -runtime_params = algo.maxwell_solver=psatd algo.current_deposition=vay diag1.fields_to_plot = Ex Ey Ez jx jy jz part_per_cell rho divE warpx.cfl = 0.5773502691896258 -dim = 3 -addToCompileString = USE_PSATD=TRUE -cmakeSetupOpts = -DWarpX_DIMS=3 -DWarpX_PSATD=ON -restartTest = 0 -useMPI = 1 -numprocs = 1 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons positrons -analysisRoutine = Examples/Tests/langmuir/analysis_3d.py -analysisOutputImage = langmuir_multi_analysis.png - -[Langmuir_multi_psatd_Vay_deposition_nodal] -buildDir = . -inputFile = Examples/Tests/langmuir/inputs_3d -runtime_params = algo.maxwell_solver=psatd warpx.grid_type=collocated algo.current_deposition=vay diag1.fields_to_plot = Ex Ey Ez jx jy jz part_per_cell rho divE warpx.cfl = 0.5773502691896258 -dim = 3 -addToCompileString = USE_PSATD=TRUE -cmakeSetupOpts = -DWarpX_DIMS=3 -DWarpX_PSATD=ON -restartTest = 0 -useMPI = 1 -numprocs = 1 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons positrons -analysisRoutine = Examples/Tests/langmuir/analysis_3d.py -analysisOutputImage = langmuir_multi_analysis.png - -[Langmuir_multi_psatd_momentum_conserving] -buildDir = . -inputFile = Examples/Tests/langmuir/inputs_3d -runtime_params = algo.maxwell_solver=psatd algo.field_gathering=momentum-conserving warpx.cfl = 0.5773502691896258 -dim = 3 -addToCompileString = USE_PSATD=TRUE -cmakeSetupOpts = -DWarpX_DIMS=3 -DWarpX_PSATD=ON -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons positrons -analysisRoutine = Examples/Tests/langmuir/analysis_3d.py -analysisOutputImage = langmuir_multi_analysis.png - -[Langmuir_multi_psatd_nodal] -buildDir = . -inputFile = Examples/Tests/langmuir/inputs_3d -runtime_params = algo.maxwell_solver=psatd warpx.do_dynamic_scheduling=0 warpx.grid_type=collocated algo.current_deposition=direct warpx.cfl = 0.5773502691896258 psatd.current_correction=0 warpx.abort_on_warning_threshold=medium -dim = 3 -addToCompileString = USE_PSATD=TRUE -cmakeSetupOpts = -DWarpX_DIMS=3 -DWarpX_PSATD=ON -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons positrons -analysisRoutine = Examples/Tests/langmuir/analysis_3d.py -analysisOutputImage = langmuir_multi_analysis.png - -[Langmuir_multi_psatd_single_precision] -buildDir = . -inputFile = Examples/Tests/langmuir/inputs_3d -runtime_params = algo.maxwell_solver=psatd warpx.cfl = 0.5773502691896258 -dim = 3 -addToCompileString = USE_PSATD=TRUE PRECISION=FLOAT USE_SINGLE_PRECISION_PARTICLES=TRUE -cmakeSetupOpts = -DWarpX_DIMS=3 -DWarpX_PSATD=ON -DWarpX_PRECISION=SINGLE -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons positrons -analysisRoutine = Examples/Tests/langmuir/analysis_3d.py -analysisOutputImage = langmuir_multi_analysis.png - -[Langmuir_multi_2d_nodal] -buildDir = . -inputFile = Examples/Tests/langmuir/inputs_2d -runtime_params = warpx.grid_type=collocated algo.current_deposition=direct diag1.electrons.variables=w ux uy uz diag1.positrons.variables=w ux uy uz -dim = 2 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=2 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons positrons -analysisRoutine = Examples/Tests/langmuir/analysis_2d.py -analysisOutputImage = langmuir_multi_2d_analysis.png - -[Langmuir_multi_2d_MR] -buildDir = . -inputFile = Examples/Tests/langmuir/inputs_2d -runtime_params = algo.maxwell_solver = ckc warpx.use_filter = 1 amr.max_level = 1 amr.ref_ratio = 4 warpx.fine_tag_lo = -10.e-6 -10.e-6 warpx.fine_tag_hi = 10.e-6 10.e-6 diag1.electrons.variables = w ux uy uz diag1.positrons.variables = w ux uy uz -dim = 2 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=2 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons positrons -analysisRoutine = Examples/Tests/langmuir/analysis_2d.py -analysisOutputImage = Langmuir_multi_2d_MR.png - -[Langmuir_multi_2d_MR_anisotropic] -buildDir = . -inputFile = Examples/Tests/langmuir/inputs_2d -runtime_params = algo.maxwell_solver = ckc warpx.use_filter = 1 amr.max_level = 1 amr.ref_ratio_vect = 4 2 warpx.fine_tag_lo = -10.e-6 -10.e-6 warpx.fine_tag_hi = 10.e-6 10.e-6 diag1.electrons.variables = w ux uy uz diag1.positrons.variables = w ux uy uz -dim = 2 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=2 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons positrons -analysisRoutine = Examples/Tests/langmuir/analysis_2d.py -analysisOutputImage = Langmuir_multi_2d_MR.png - -[Langmuir_multi_2d_MR_psatd] -buildDir = . -inputFile = Examples/Tests/langmuir/inputs_2d -runtime_params = algo.maxwell_solver = psatd warpx.use_filter = 1 amr.max_level = 1 amr.ref_ratio = 4 warpx.fine_tag_lo = -10.e-6 -10.e-6 warpx.fine_tag_hi = 10.e-6 10.e-6 diag1.electrons.variables = w ux uy uz diag1.positrons.variables = w ux uy uz psatd.current_correction=0 warpx.abort_on_warning_threshold=medium -dim = 2 -addToCompileString = USE_PSATD=TRUE -cmakeSetupOpts = -DWarpX_DIMS=2 -DWarpX_PSATD=ON -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons positrons -analysisRoutine = Examples/Tests/langmuir/analysis_2d.py -analysisOutputImage = Langmuir_multi_2d_MR_psatd.png - -[Langmuir_multi_2d_psatd] -buildDir = . -inputFile = Examples/Tests/langmuir/inputs_2d -runtime_params = algo.maxwell_solver=psatd diag1.electrons.variables=w ux uy uz diag1.positrons.variables=w ux uy uz diag1.fields_to_plot=Ex Ey Ez jx jy jz part_per_cell warpx.cfl = 0.7071067811865475 psatd.current_correction=0 warpx.abort_on_warning_threshold=medium -dim = 2 -addToCompileString = USE_PSATD=TRUE -cmakeSetupOpts = -DWarpX_DIMS=2 -DWarpX_PSATD=ON -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons positrons -analysisRoutine = Examples/Tests/langmuir/analysis_2d.py -analysisOutputImage = langmuir_multi_2d_analysis.png - -[Langmuir_multi_2d_psatd_multiJ] -buildDir = . -inputFile = Examples/Tests/langmuir/inputs_2d -runtime_params = algo.maxwell_solver=psatd warpx.cfl=0.7071067811865475 psatd.update_with_rho=1 warpx.do_multi_J=1 warpx.do_multi_J_n_depositions=2 psatd.solution_type=first-order psatd.J_in_time=linear warpx.abort_on_warning_threshold=medium -dim = 2 -addToCompileString = USE_PSATD=TRUE -cmakeSetupOpts = -DWarpX_DIMS=2 -DWarpX_PSATD=ON -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons positrons -analysisRoutine = Examples/Tests/langmuir/analysis_2d.py -analysisOutputImage = Langmuir_multi_2d_psatd_multiJ.png - -[Langmuir_multi_2d_psatd_multiJ_nodal] -buildDir = . -inputFile = Examples/Tests/langmuir/inputs_2d -runtime_params = algo.maxwell_solver=psatd warpx.cfl=0.7071067811865475 psatd.update_with_rho=1 warpx.do_multi_J=1 warpx.do_multi_J_n_depositions=2 psatd.solution_type=first-order psatd.J_in_time=linear warpx.abort_on_warning_threshold=medium warpx.grid_type=collocated -dim = 2 -addToCompileString = USE_PSATD=TRUE -cmakeSetupOpts = -DWarpX_DIMS=2 -DWarpX_PSATD=ON -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons positrons -analysisRoutine = Examples/Tests/langmuir/analysis_2d.py -analysisOutputImage = Langmuir_multi_2d_psatd_multiJ_nodal.png - -[Langmuir_multi_2d_psatd_momentum_conserving] -buildDir = . -inputFile = Examples/Tests/langmuir/inputs_2d -runtime_params = algo.maxwell_solver=psatd algo.field_gathering=momentum-conserving diag1.electrons.variables=w ux uy uz diag1.positrons.variables=w ux uy uz diag1.fields_to_plot=Ex Ey Ez jx jy jz part_per_cell warpx.cfl = 0.7071067811865475 psatd.current_correction=0 warpx.abort_on_warning_threshold=medium -dim = 2 -addToCompileString = USE_PSATD=TRUE -cmakeSetupOpts = -DWarpX_DIMS=2 -DWarpX_PSATD=ON -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons positrons -analysisRoutine = Examples/Tests/langmuir/analysis_2d.py -analysisOutputImage = langmuir_multi_2d_analysis.png - -[Langmuir_multi_2d_psatd_current_correction] -buildDir = . -inputFile = Examples/Tests/langmuir/inputs_2d -runtime_params = algo.maxwell_solver=psatd amr.max_grid_size=128 algo.current_deposition=esirkepov psatd.periodic_single_box_fft=1 psatd.current_correction=1 diag1.electrons.variables=w ux uy uz diag1.positrons.variables=w ux uy uz diag1.fields_to_plot =Ex Ey Ez jx jy jz part_per_cell rho divE warpx.cfl = 0.7071067811865475 -dim = 2 -addToCompileString = USE_PSATD=TRUE -cmakeSetupOpts = -DWarpX_DIMS=2 -DWarpX_PSATD=ON -restartTest = 0 -useMPI = 1 -numprocs = 1 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons positrons -analysisRoutine = Examples/Tests/langmuir/analysis_2d.py -analysisOutputImage = langmuir_multi_2d_analysis.png - -[Langmuir_multi_2d_psatd_current_correction_nodal] -buildDir = . -inputFile = Examples/Tests/langmuir/inputs_2d -runtime_params = algo.maxwell_solver=psatd amr.max_grid_size=128 algo.current_deposition=direct psatd.periodic_single_box_fft=1 psatd.current_correction=1 warpx.grid_type=collocated diag1.electrons.variables=w ux uy uz diag1.positrons.variables=w ux uy uz diag1.fields_to_plot =Ex Ey Ez jx jy jz part_per_cell rho divE warpx.cfl = 0.7071067811865475 -dim = 2 -addToCompileString = USE_PSATD=TRUE -cmakeSetupOpts = -DWarpX_DIMS=2 -DWarpX_PSATD=ON -restartTest = 0 -useMPI = 1 -numprocs = 1 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons positrons -analysisRoutine = Examples/Tests/langmuir/analysis_2d.py -analysisOutputImage = langmuir_multi_2d_analysis.png - -[Langmuir_multi_2d_psatd_Vay_deposition] -buildDir = . -inputFile = Examples/Tests/langmuir/inputs_2d -runtime_params = algo.maxwell_solver=psatd amr.max_grid_size=128 algo.current_deposition=vay diag1.electrons.variables=w ux uy uz diag1.positrons.variables=w ux uy uz diag1.fields_to_plot = Ex Ey Ez jx jy jz part_per_cell rho divE warpx.cfl = 0.7071067811865475 -dim = 2 -addToCompileString = USE_PSATD=TRUE -cmakeSetupOpts = -DWarpX_DIMS=2 -DWarpX_PSATD=ON -restartTest = 0 -useMPI = 1 -numprocs = 1 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons positrons -analysisRoutine = Examples/Tests/langmuir/analysis_2d.py -analysisOutputImage = langmuir_multi_2d_analysis.png - -[Langmuir_multi_2d_psatd_Vay_deposition_nodal] -buildDir = . -inputFile = Examples/Tests/langmuir/inputs_2d -runtime_params = algo.maxwell_solver=psatd amr.max_grid_size=128 warpx.grid_type=collocated algo.current_deposition=vay diag1.electrons.variables=w ux uy uz diag1.positrons.variables=w ux uy uz diag1.fields_to_plot = Ex Ey Ez jx jy jz part_per_cell rho divE warpx.cfl = 0.7071067811865475 -dim = 2 -addToCompileString = USE_PSATD=TRUE -cmakeSetupOpts = -DWarpX_DIMS=2 -DWarpX_PSATD=ON -restartTest = 0 -useMPI = 1 -numprocs = 1 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons positrons -analysisRoutine = Examples/Tests/langmuir/analysis_2d.py -analysisOutputImage = langmuir_multi_2d_analysis.png - -[Langmuir_multi_2d_psatd_nodal] -buildDir = . -inputFile = Examples/Tests/langmuir/inputs_2d -runtime_params = algo.maxwell_solver=psatd warpx.grid_type=collocated algo.current_deposition=direct diag1.electrons.variables=w ux uy uz diag1.positrons.variables=w ux uy uz diag1.fields_to_plot=Ex Ey Ez jx jy jz part_per_cell warpx.cfl = 0.7071067811865475 psatd.current_correction=0 warpx.abort_on_warning_threshold=medium -dim = 2 -addToCompileString = USE_PSATD=TRUE -cmakeSetupOpts = -DWarpX_DIMS=2 -DWarpX_PSATD=ON -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons positrons -analysisRoutine = Examples/Tests/langmuir/analysis_2d.py -analysisOutputImage = langmuir_multi_2d_analysis.png - -[Langmuir_multi_1d] -buildDir = . -inputFile = Examples/Tests/langmuir/inputs_1d -runtime_params = algo.current_deposition=esirkepov diag1.electrons.variables=w ux uy uz diag1.positrons.variables=w ux uy uz -dim = 1 -addToCompileString = USE_OPENPMD=TRUE QED=FALSE -cmakeSetupOpts = -DWarpX_DIMS=1 -DWarpX_OPENPMD=ON -DWarpX_QED=OFF -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons positrons -analysisRoutine = Examples/Tests/langmuir/analysis_1d.py -analysisOutputImage = langmuir_multi_1d_analysis.png - -[Langmuir_multi_rz] -buildDir = . -inputFile = Examples/Tests/langmuir/inputs_rz -runtime_params = diag1.electrons.variables=w ux uy uz diag1.ions.variables=w ux uy uz diag1.dump_rz_modes=0 -dim = 2 -addToCompileString = USE_RZ=TRUE -cmakeSetupOpts = -DWarpX_DIMS=RZ -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons ions -analysisRoutine = Examples/Tests/langmuir/analysis_rz.py -analysisOutputImage = Langmuir_multi_rz_analysis.png -aux1File = Regression/PostProcessingUtils/post_processing_utils.py - -[FluxInjection] -buildDir = . -inputFile = Examples/Tests/flux_injection/inputs_rz -runtime_params = -dim = 2 -addToCompileString = USE_RZ=TRUE -cmakeSetupOpts = -DWarpX_DIMS=RZ -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electron -analysisRoutine = Examples/Tests/flux_injection/analysis_flux_injection_rz.py - -[FluxInjection3D] -buildDir = . -inputFile = Examples/Tests/flux_injection/inputs_3d -runtime_params = -dim = 3 -addToCompileString = -cmakeSetupOpts = -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -analysisRoutine = Examples/Tests/flux_injection/analysis_flux_injection_3d.py - -[Langmuir_multi_rz_psatd] -buildDir = . -inputFile = Examples/Tests/langmuir/inputs_rz -runtime_params = algo.maxwell_solver=psatd diag1.electrons.variables=w ux uy uz diag1.ions.variables=w ux uy uz diag1.dump_rz_modes=0 algo.current_deposition=direct warpx.do_dive_cleaning=0 psatd.update_with_rho=1 electrons.random_theta=0 ions.random_theta=0 psatd.current_correction=0 warpx.abort_on_warning_threshold=medium -dim = 2 -addToCompileString = USE_RZ=TRUE USE_PSATD=TRUE BLAS_LIB=-lblas LAPACK_LIB=-llapack -cmakeSetupOpts = -DWarpX_DIMS=RZ -DWarpX_PSATD=ON -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons ions -analysisRoutine = Examples/Tests/langmuir/analysis_rz.py -analysisOutputImage = Langmuir_multi_rz_psatd_analysis.png -aux1File = Regression/PostProcessingUtils/post_processing_utils.py - -[Langmuir_multi_rz_psatd_current_correction] -buildDir = . -inputFile = Examples/Tests/langmuir/inputs_rz -runtime_params = algo.maxwell_solver=psatd diag1.electrons.variables=w ux uy uz diag1.ions.variables=w ux uy uz diag1.dump_rz_modes=0 algo.current_deposition=direct warpx.do_dive_cleaning=0 amr.max_grid_size=128 psatd.periodic_single_box_fft=1 psatd.current_correction=1 diag1.fields_to_plot=jr jz Er Ez Bt rho divE electrons.random_theta=0 ions.random_theta=0 -dim = 2 -addToCompileString = USE_RZ=TRUE USE_PSATD=TRUE BLAS_LIB=-lblas LAPACK_LIB=-llapack -cmakeSetupOpts = -DWarpX_DIMS=RZ -DWarpX_PSATD=ON -restartTest = 0 -useMPI = 1 -numprocs = 1 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons ions -analysisRoutine = Examples/Tests/langmuir/analysis_rz.py -analysisOutputImage = Langmuir_multi_rz_psatd_analysis.png -aux1File = Regression/PostProcessingUtils/post_processing_utils.py - -[Langmuir_multi_rz_psatd_multiJ] -buildDir = . -inputFile = Examples/Tests/langmuir/inputs_rz -runtime_params = amr.max_grid_size=32 algo.maxwell_solver=psatd diag1.electrons.variables=w ux uy uz diag1.ions.variables=w ux uy uz diag1.dump_rz_modes=0 algo.current_deposition=direct warpx.do_dive_cleaning=0 psatd.update_with_rho=1 warpx.n_rz_azimuthal_modes=2 electrons.random_theta=0 electrons.num_particles_per_cell_each_dim=2 4 2 ions.random_theta=0 ions.num_particles_per_cell_each_dim=2 4 2 psatd.current_correction=0 warpx.abort_on_warning_threshold=medium warpx.do_multi_J=1 warpx.do_multi_J_n_depositions=4 warpx.use_filter=1 -dim = 2 -addToCompileString = USE_RZ=TRUE USE_PSATD=TRUE BLAS_LIB=-lblas LAPACK_LIB=-llapack -cmakeSetupOpts = -DWarpX_DIMS=RZ -DWarpX_PSATD=ON -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons ions -analysisRoutine = Examples/Tests/langmuir/analysis_rz.py -analysisOutputImage = Langmuir_multi_rz_psatd_multiJ_analysis.png -aux1File = Regression/PostProcessingUtils/post_processing_utils.py - -[Python_Langmuir_rz_multimode] -buildDir = . -inputFile = Examples/Tests/langmuir/PICMI_inputs_rz.py -runtime_params = -customRunCmd = python3 PICMI_inputs_rz.py -dim = 2 -addToCompileString = USE_PYTHON_MAIN=TRUE USE_RZ=TRUE -cmakeSetupOpts = -DWarpX_DIMS=RZ -DWarpX_APP=OFF -target = pip_install -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons protons -analysisRoutine = Examples/analysis_default_regression.py - -[Python_restart_runtime_components] -buildDir = . -inputFile = Examples/Tests/restart/PICMI_inputs_runtime_component_analyze.py -runtime_params = -customRunCmd = python3 PICMI_inputs_runtime_component_analyze.py -dim = 2 -addToCompileString = USE_PYTHON_MAIN=TRUE -cmakeSetupOpts = -DWarpX_DIMS=2 -DWarpX_APP=OFF -target = pip_install -restartTest = 1 -restartFileNum = 5 -useMPI = 1 -numprocs = 1 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -particleTypes = electrons - -[Python_id_cpu_read] -buildDir = . -inputFile = Examples/Tests/restart/PICMI_inputs_id_cpu_read.py -runtime_params = -customRunCmd = python3 PICMI_inputs_id_cpu_read.py -dim = 2 -addToCompileString = USE_PYTHON_MAIN=TRUE -cmakeSetupOpts = -DWarpX_DIMS=2 -DWarpX_APP=OFF -target = pip_install -restartTest = 0 -useMPI = 1 -numprocs = 1 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -particleTypes = electrons - -[Python_restart_eb] -buildDir = . -inputFile = Examples/Tests/restart_eb/PICMI_inputs_restart_eb.py -runtime_params = -customRunCmd = python3 PICMI_inputs_restart_eb.py -dim = 3 -addToCompileString = USE_EB=TRUE USE_PYTHON_MAIN=TRUE -cmakeSetupOpts = -DWarpX_DIMS=3 -DWarpX_EB=ON -DWarpX_APP=OFF -target = pip_install -restartTest = 1 -restartFileNum = 30 -useMPI = 1 -numprocs = 1 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons -analysisRoutine = Examples/Tests/restart/analysis_restart.py - -[LaserInjection] -buildDir = . -inputFile = Examples/Tests/laser_injection/inputs_3d_rt -runtime_params = max_step=20 -dim = 3 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=3 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -analysisRoutine = Examples/Tests/laser_injection/analysis_laser.py -analysisOutputImage = laser_analysis.png - -[LaserInjection_2d] -buildDir = . -inputFile = Examples/Tests/laser_injection/inputs_2d_rt -runtime_params = warpx.do_dynamic_scheduling=0 warpx.serialize_initial_conditions=1 -dim = 2 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=2 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -analysisRoutine = Examples/Tests/laser_injection/analysis_2d.py - -[LaserInjection_1d] -buildDir = . -inputFile = Examples/Tests/laser_injection/inputs_1d_rt -runtime_params = warpx.do_dynamic_scheduling=0 warpx.serialize_initial_conditions=1 -dim = 1 -addToCompileString = USE_OPENPMD=TRUE QED=FALSE -cmakeSetupOpts = -DWarpX_DIMS=1 -DWarpX_OPENPMD=ON -DWarpX_QED=OFF -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 2 -compileTest = 0 -doVis = 0 -compareParticles = 0 -analysisRoutine = Examples/Tests/laser_injection/analysis_1d.py - -[LaserAcceleration] -buildDir = . -inputFile = Examples/Physics_applications/laser_acceleration/inputs_3d -runtime_params = -dim = 3 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=3 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons -analysisRoutine = Examples/analysis_default_regression.py - -[Python_LaserAcceleration] -buildDir = . -inputFile = Examples/Physics_applications/laser_acceleration/PICMI_inputs_3d.py -runtime_params = -customRunCmd = python3 PICMI_inputs_3d.py -dim = 3 -addToCompileString = USE_PYTHON_MAIN=TRUE -cmakeSetupOpts = -DWarpX_DIMS=3 -DWarpX_APP=OFF -target = pip_install -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons -analysisRoutine = Examples/analysis_default_regression.py - -[LaserAcceleration_1d] -buildDir = . -inputFile = Examples/Physics_applications/laser_acceleration/inputs_1d -runtime_params = -dim = 1 -addToCompileString = USE_OPENPMD=TRUE QED=FALSE -cmakeSetupOpts = -DWarpX_DIMS=1 -DWarpX_OPENPMD=ON -DWarpX_QED=OFF -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons -analysisRoutine = Examples/analysis_default_regression.py - -[Python_LaserAcceleration_1d] -buildDir = . -inputFile = Examples/Physics_applications/laser_acceleration/PICMI_inputs_1d.py -runtime_params = -customRunCmd = python3 PICMI_inputs_1d.py -dim = 1 -addToCompileString = USE_PYTHON_MAIN=TRUE USE_OPENPMD=TRUE QED=FALSE -cmakeSetupOpts = -DWarpX_DIMS=1 -DWarpX_APP=OFF -DWarpX_OPENPMD=ON -DWarpX_QED=OFF -target = pip_install -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons -analysisRoutine = Examples/analysis_default_regression.py - -[LaserAcceleration_single_precision_comms] -buildDir = . -inputFile = Examples/Physics_applications/laser_acceleration/inputs_3d -runtime_params = warpx.do_single_precision_comms=1 -dim = 3 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=3 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons -analysisRoutine = Examples/analysis_default_regression.py - -[subcyclingMR] -buildDir = . -inputFile = Examples/Tests/subcycling/inputs_2d -runtime_params = warpx.serialize_initial_conditions=1 warpx.do_dynamic_scheduling=0 -dim = 2 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=2 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -analysisRoutine = Examples/analysis_default_regression.py - -[LaserAccelerationMR] -buildDir = . -inputFile = Examples/Physics_applications/laser_acceleration/inputs_2d -runtime_params = -dim = 2 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=2 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons beam -analysisRoutine = Examples/analysis_default_regression.py - -[Python_LaserAccelerationMR] -buildDir = . -inputFile = Examples/Physics_applications/laser_acceleration/PICMI_inputs_2d.py -runtime_params = -customRunCmd = python3 PICMI_inputs_2d.py -dim = 2 -addToCompileString = USE_PYTHON_MAIN=TRUE -cmakeSetupOpts = -DWarpX_DIMS=2 -DWarpX_APP=OFF -target = pip_install -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons beam -analysisRoutine = Examples/analysis_default_regression.py - -[RefinedInjection] -buildDir = . -inputFile = Examples/Physics_applications/laser_acceleration/inputs_2d -runtime_params = warpx.refine_plasma=1 amr.ref_ratio_vect = 2 1 -dim = 2 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=2 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons beam -analysisRoutine = Examples/Physics_applications/laser_acceleration/analysis_refined_injection.py - -[PlasmaAccelerationMR] -buildDir = . -inputFile = Examples/Physics_applications/plasma_acceleration/inputs_2d -runtime_params = amr.max_level=1 amr.n_cell=32 512 max_step=400 warpx.serialize_initial_conditions=1 warpx.do_dynamic_scheduling=0 -dim = 2 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=2 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = beam driver plasma_e -analysisRoutine = Examples/analysis_default_regression.py - -[Python_Langmuir] -buildDir = . -inputFile = Examples/Tests/langmuir/PICMI_inputs_3d.py -runtime_params = -customRunCmd = python3 PICMI_inputs_3d.py -dim = 3 -addToCompileString = USE_PYTHON_MAIN=TRUE -cmakeSetupOpts = -DWarpX_DIMS=3 -DWarpX_APP=OFF -target = pip_install -restartTest = 0 -useMPI = 1 -numprocs = 1 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons -analysisRoutine = Examples/analysis_default_regression.py - -[uniform_plasma_restart] -buildDir = . -inputFile = Examples/Physics_applications/uniform_plasma/inputs_3d -runtime_params = chk.file_prefix=uniform_plasma_restart_chk chk.file_min_digits=5 -dim = 3 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=3 -restartTest = 1 -restartFileNum = 6 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -particleTypes = electrons -analysisRoutine = Examples/Tests/restart/analysis_restart.py - -[restart] -buildDir = . -inputFile = Examples/Tests/restart/inputs -runtime_params = chk.file_prefix=restart_chk chk.file_min_digits=5 -dim = 3 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=3 -restartTest = 1 -restartFileNum = 5 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -particleTypes = beam -analysisRoutine = Examples/Tests/restart/analysis_restart.py - -[restart_psatd] -buildDir = . -inputFile = Examples/Tests/restart/inputs -runtime_params = algo.maxwell_solver=psatd psatd.use_default_v_galilean=1 particles.use_fdtd_nci_corr=0 chk.file_prefix=restart_psatd_chk chk.file_min_digits=5 boundary.field_lo=periodic periodic damped boundary.field_hi=periodic periodic damped psatd.current_correction=0 warpx.abort_on_warning_threshold=medium -dim = 3 -addToCompileString = USE_PSATD=TRUE -cmakeSetupOpts = -DWarpX_DIMS=3 -DWarpX_PSATD=ON -restartTest = 1 -restartFileNum = 5 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -particleTypes = beam -analysisRoutine = Examples/Tests/restart/analysis_restart.py - -[restart_psatd_time_avg] -buildDir = . -inputFile = Examples/Tests/restart/inputs -runtime_params = algo.maxwell_solver=psatd psatd.use_default_v_galilean=1 particles.use_fdtd_nci_corr=0 chk.file_prefix=restart_psatd_time_avg_chk chk.file_min_digits=5 boundary.field_lo=periodic periodic damped boundary.field_hi=periodic periodic damped psatd.do_time_averaging=1 psatd.current_correction=0 warpx.abort_on_warning_threshold=medium -dim = 3 -addToCompileString = USE_PSATD=TRUE -cmakeSetupOpts = -DWarpX_DIMS=3 -DWarpX_PSATD=ON -restartTest = 1 -restartFileNum = 5 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -particleTypes = beam -analysisRoutine = Examples/Tests/restart/analysis_restart.py - -[space_charge_initialization_2d] -buildDir = . -inputFile = Examples/Tests/space_charge_initialization/inputs_3d -dim = 2 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=2 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -runtime_params = warpx.do_dynamic_scheduling=0 geometry.dims=2 -analysisRoutine = Examples/Tests/space_charge_initialization/analysis.py -analysisOutputImage = Comparison.png - -[space_charge_initialization] -buildDir = . -inputFile = Examples/Tests/space_charge_initialization/inputs_3d -dim = 3 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=3 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -runtime_params = warpx.do_dynamic_scheduling=0 -analysisRoutine = Examples/Tests/space_charge_initialization/analysis.py -analysisOutputImage = Comparison.png - -[relativistic_space_charge_initialization] -buildDir = . -inputFile = Examples/Tests/relativistic_space_charge_initialization/inputs_3d -dim = 3 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=3 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -runtime_params = warpx.do_dynamic_scheduling=0 -analysisRoutine = Examples/Tests/relativistic_space_charge_initialization/analysis.py -analysisOutputImage = Comparison.png - -[parabolic_channel_initialization_2d_single_precision] -buildDir = . -inputFile = Examples/Tests/initial_plasma_profile/inputs -dim = 2 -addToCompileString = PRECISION=FLOAT USE_SINGLE_PRECISION_PARTICLES=TRUE -cmakeSetupOpts = -DWarpX_DIMS=2 -DWarpX_PRECISION=SINGLE -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -runtime_params = warpx.do_dynamic_scheduling=0 -analysisRoutine = Examples/Tests/initial_plasma_profile/analysis.py - -[divb_cleaning_3d] -buildDir = . -inputFile = Examples/Tests/divb_cleaning/inputs_3d -runtime_params = -dim = 3 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=3 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -analysisRoutine = Examples/Tests/divb_cleaning/analysis.py - -[dive_cleaning_2d] -buildDir = . -inputFile = Examples/Tests/dive_cleaning/inputs_3d -dim = 2 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=2 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -runtime_params = warpx.do_dynamic_scheduling=0 geometry.dims=2 -analysisRoutine = Examples/Tests/dive_cleaning/analysis.py -analysisOutputImage = Comparison.png - -[dive_cleaning_3d] -buildDir = . -inputFile = Examples/Tests/dive_cleaning/inputs_3d -dim = 3 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=3 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -runtime_params = warpx.do_dynamic_scheduling=0 -analysisRoutine = Examples/Tests/dive_cleaning/analysis.py -analysisOutputImage = Comparison.png - -[particles_in_pml_2d] -buildDir = . -inputFile = Examples/Tests/particles_in_pml/inputs_2d -runtime_params = -dim = 2 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=2 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -analysisRoutine = Examples/Tests/particles_in_pml/analysis_particles_in_pml.py - - -[particles_in_pml_2d_MR] -buildDir = . -inputFile = Examples/Tests/particles_in_pml/inputs_mr_2d -runtime_params = -dim = 2 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=2 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -analysisRoutine = Examples/Tests/particles_in_pml/analysis_particles_in_pml.py - -[particles_in_pml] -buildDir = . -inputFile = Examples/Tests/particles_in_pml/inputs_3d -runtime_params = -dim = 3 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=3 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -analysisRoutine = Examples/Tests/particles_in_pml/analysis_particles_in_pml.py - - -[particles_in_pml_3d_MR] -buildDir = . -inputFile = Examples/Tests/particles_in_pml/inputs_mr_3d -runtime_params = -dim = 3 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=3 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -analysisRoutine = Examples/Tests/particles_in_pml/analysis_particles_in_pml.py - -[photon_pusher] -buildDir = . -inputFile = Examples/Tests/photon_pusher/inputs_3d -runtime_params = -dim = 3 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=3 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -analysisRoutine = Examples/Tests/photon_pusher/analysis_photon_pusher.py - -[radiation_reaction] -buildDir = . -inputFile = Examples/Tests/radiation_reaction/test_const_B_analytical/inputs_3d -runtime_params = -dim = 3 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=3 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -analysisRoutine = Examples/Tests/radiation_reaction/test_const_B_analytical/analysis_classicalRR.py - -[qed_breit_wheeler_2d] -buildDir = . -inputFile = Examples/Tests/qed/breit_wheeler/inputs_2d -aux1File = Examples/Tests/qed/breit_wheeler/analysis_core.py -runtime_params = warpx.abort_on_warning_threshold = high -dim = 2 -addToCompileString = QED=TRUE -cmakeSetupOpts = -DWarpX_DIMS=2 -DWarpX_QED=ON -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -analysisRoutine = Examples/Tests/qed/breit_wheeler/analysis_yt.py - -[qed_breit_wheeler_3d] -buildDir = . -inputFile = Examples/Tests/qed/breit_wheeler/inputs_3d -aux1File = Examples/Tests/qed/breit_wheeler/analysis_core.py -runtime_params = warpx.abort_on_warning_threshold = high -dim = 3 -addToCompileString = QED=TRUE -cmakeSetupOpts = -DWarpX_DIMS=3 -DWarpX_QED=ON -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -analysisRoutine = Examples/Tests/qed/breit_wheeler/analysis_yt.py - -[qed_breit_wheeler_2d_opmd] -buildDir = . -inputFile = Examples/Tests/qed/breit_wheeler/inputs_2d -aux1File = Examples/Tests/qed/breit_wheeler/analysis_core.py -runtime_params = diag1.format = openpmd diag1.openpmd_backend = h5 warpx.abort_on_warning_threshold = high -dim = 2 -addToCompileString = QED=TRUE USE_OPENPMD=TRUE -cmakeSetupOpts = -DWarpX_DIMS=2 -DWarpX_QED=ON -DWarpX_OPENPMD=ON -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -outputFile = qed_breit_wheeler_2d_opmd_plt -analysisRoutine = Examples/Tests/qed/breit_wheeler/analysis_opmd.py - -[qed_breit_wheeler_3d_opmd] -buildDir = . -inputFile = Examples/Tests/qed/breit_wheeler/inputs_3d -aux1File = Examples/Tests/qed/breit_wheeler/analysis_core.py -runtime_params = diag1.format = openpmd diag1.openpmd_backend = h5 warpx.abort_on_warning_threshold = high -dim = 3 -addToCompileString = QED=TRUE USE_OPENPMD=TRUE -cmakeSetupOpts = -DWarpX_DIMS=3 -DWarpX_QED=ON -DWarpX_OPENPMD=ON -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -outputFile = qed_breit_wheeler_3d_opmd_plt -analysisRoutine = Examples/Tests/qed/breit_wheeler/analysis_opmd.py - -[qed_quantum_sync_2d] -buildDir = . -inputFile = Examples/Tests/qed/quantum_synchrotron/inputs_2d -runtime_params = warpx.abort_on_warning_threshold = high -dim = 2 -addToCompileString = QED=TRUE -cmakeSetupOpts = -DWarpX_DIMS=2 -DWarpX_QED=ON -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -analysisRoutine = Examples/Tests/qed/quantum_synchrotron/analysis.py - -[qed_quantum_sync_3d] -buildDir = . -inputFile = Examples/Tests/qed/quantum_synchrotron/inputs_3d -runtime_params = warpx.abort_on_warning_threshold = high -dim = 3 -addToCompileString = QED=TRUE -cmakeSetupOpts = -DWarpX_DIMS=3 -DWarpX_QED=ON -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -analysisRoutine = Examples/Tests/qed/quantum_synchrotron/analysis.py - -[qed_schwinger1] -buildDir = . -inputFile = Examples/Tests/qed/schwinger/inputs_3d_schwinger -runtime_params = warpx.E_external_grid = 1.e16 0 0 warpx.B_external_grid = 16792888.570516706 5256650.141557486 18363530.799561853 -dim = 3 -addToCompileString = QED=TRUE -cmakeSetupOpts = -DWarpX_DIMS=3 -DWarpX_QED=ON -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -analysisRoutine = Examples/Tests/qed/schwinger/analysis_schwinger.py - -[qed_schwinger2] -buildDir = . -inputFile = Examples/Tests/qed/schwinger/inputs_3d_schwinger -runtime_params = warpx.E_external_grid = 1.e18 0 0 warpx.B_external_grid = 1679288857.0516706 525665014.1557486 1836353079.9561853 qed_schwinger.xmin = -2.5e-7 qed_schwinger.xmax = 2.49e-7 -dim = 3 -addToCompileString = QED=TRUE -cmakeSetupOpts = -DWarpX_DIMS=3 -DWarpX_QED=ON -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -analysisRoutine = Examples/Tests/qed/schwinger/analysis_schwinger.py - -[qed_schwinger3] -buildDir = . -inputFile = Examples/Tests/qed/schwinger/inputs_3d_schwinger -runtime_params = warpx.E_external_grid = 0 1.090934525450495e+17 0 -dim = 3 -addToCompileString = QED=TRUE -cmakeSetupOpts = -DWarpX_DIMS=3 -DWarpX_QED=ON -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -analysisRoutine = Examples/Tests/qed/schwinger/analysis_schwinger.py - -[qed_schwinger4] -buildDir = . -inputFile = Examples/Tests/qed/schwinger/inputs_3d_schwinger -runtime_params = warpx.E_external_grid = 0 0 2.5e+20 warpx.B_external_grid = 0 833910140000. 0 qed_schwinger.ymin = -2.5e-7 qed_schwinger.zmax = 2.49e-7 -dim = 3 -addToCompileString = QED=TRUE -cmakeSetupOpts = -DWarpX_DIMS=3 -DWarpX_QED=ON -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -analysisRoutine = Examples/Tests/qed/schwinger/analysis_schwinger.py - -[particle_pusher] -buildDir = . -inputFile = Examples/Tests/particle_pusher/inputs_3d -runtime_params = -dim = 3 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=3 -restartTest = 0 -useMPI = 1 -numprocs = 1 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -analysisRoutine = Examples/Tests/particle_pusher/analysis_pusher.py - -[Python_gaussian_beam] -buildDir = . -inputFile = Examples/Tests/gaussian_beam/PICMI_inputs_gaussian_beam.py -customRunCmd = python3 PICMI_inputs_gaussian_beam.py -runtime_params = -dim = 3 -addToCompileString = USE_PYTHON_MAIN=TRUE -cmakeSetupOpts = -DWarpX_DIMS=3 -DWarpX_APP=OFF -target = pip_install -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons -analysisRoutine = Examples/analysis_default_regression.py - -[Python_gaussian_beam_opmd] -buildDir = . -inputFile = Examples/Tests/gaussian_beam/PICMI_inputs_gaussian_beam.py -customRunCmd = python3 PICMI_inputs_gaussian_beam.py --diagformat=openpmd -runtime_params = -dim = 3 -addToCompileString = USE_OPENPMD=TRUE USE_PYTHON_MAIN=TRUE -cmakeSetupOpts = -DWarpX_DIMS=3 -DWarpX_OPENPMD=ON -DWarpX_APP=OFF -target = pip_install -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons -analysisRoutine = - -[Python_gaussian_beam_no_field_output] -buildDir = . -inputFile = Examples/Tests/gaussian_beam/PICMI_inputs_gaussian_beam.py -customRunCmd = python3 PICMI_inputs_gaussian_beam.py --fields_to_plot none -runtime_params = -dim = 3 -addToCompileString = USE_PYTHON_MAIN=TRUE -cmakeSetupOpts = -DWarpX_DIMS=3 -DWarpX_APP=OFF -target = pip_install -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons -analysisRoutine = - -[Python_gaussian_beam_opmd_no_field_output] -buildDir = . -inputFile = Examples/Tests/gaussian_beam/PICMI_inputs_gaussian_beam.py -customRunCmd = python PICMI_inputs_gaussian_beam.py --diagformat=openpmd --fields_to_plot none -runtime_params = -dim = 3 -addToCompileString = USE_OPENPMD=TRUE USE_PYTHON_MAIN=TRUE -cmakeSetupOpts = -DWarpX_DIMS=3 -DWarpX_OPENPMD=ON -DWarpX_APP=OFF -target = pip_install -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons -analysisRoutine = - -[PlasmaAccelerationBoost2d] -buildDir = . -inputFile = Examples/Physics_applications/plasma_acceleration/inputs_2d_boost -runtime_params = warpx.do_dynamic_scheduling=0 warpx.serialize_initial_conditions=1 amr.n_cell=64 256 max_step=20 -dim = 2 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=2 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -analysisRoutine = Examples/analysis_default_regression.py - -[Python_PlasmaAcceleration] -buildDir = . -inputFile = Examples/Physics_applications/plasma_acceleration/PICMI_inputs_plasma_acceleration.py -runtime_params = -customRunCmd = python3 PICMI_inputs_plasma_acceleration.py -dim = 3 -addToCompileString = USE_PYTHON_MAIN=TRUE -cmakeSetupOpts = -DWarpX_DIMS=3 -DWarpX_APP=OFF -target = pip_install -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = beam -analysisRoutine = Examples/analysis_default_regression.py - -[Python_PlasmaAccelerationMR] -buildDir = . -inputFile = Examples/Physics_applications/plasma_acceleration/PICMI_inputs_plasma_acceleration_mr.py -runtime_params = -customRunCmd = python3 PICMI_inputs_plasma_acceleration_mr.py -dim = 3 -addToCompileString = USE_PYTHON_MAIN=TRUE -cmakeSetupOpts = -DWarpX_DIMS=3 -DWarpX_APP=OFF -target = pip_install -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = beam -analysisRoutine = Examples/analysis_default_regression.py - -[Python_PlasmaAcceleration1d] -buildDir = . -inputFile = Examples/Physics_applications/plasma_acceleration/PICMI_inputs_plasma_acceleration_1d.py -runtime_params = -customRunCmd = python3 PICMI_inputs_plasma_acceleration_1d.py -dim = 1 -addToCompileString = USE_PYTHON_MAIN=TRUE USE_OPENPMD=TRUE QED=FALSE -cmakeSetupOpts = -DWarpX_DIMS=1 -DWarpX_APP=OFF -DWarpX_OPENPMD=ON -DWarpX_QED=OFF -target = pip_install -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = beam -analysisRoutine = Examples/analysis_default_regression.py - -[PlasmaAccelerationBoost3d] -buildDir = . -inputFile = Examples/Physics_applications/plasma_acceleration/inputs_3d_boost -runtime_params = warpx.do_dynamic_scheduling=0 warpx.serialize_initial_conditions=1 amr.n_cell=64 64 128 max_step=5 -dim = 3 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=3 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -analysisRoutine = Examples/analysis_default_regression.py - -[PlasmaAccelerationBoost3d_hybrid] -buildDir = . -inputFile = Examples/Physics_applications/plasma_acceleration/inputs_3d_boost -runtime_params = warpx.do_dynamic_scheduling=0 warpx.serialize_initial_conditions=1 amr.n_cell=64 64 128 max_step=25 warpx.grid_type=hybrid warpx.do_current_centering=0 -dim = 3 -addToCompileString = -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -analysisRoutine = Examples/analysis_default_regression.py - -[PlasmaMirror] -buildDir = . -inputFile = Examples/Physics_applications/plasma_mirror/inputs_2d -runtime_params = warpx.do_dynamic_scheduling=0 warpx.serialize_initial_conditions=1 amr.n_cell=256 128 max_step=20 -dim = 2 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=2 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -analysisRoutine = Examples/analysis_default_regression.py - -[LaserIonAcc2d] -buildDir = . -inputFile = Examples/Physics_applications/laser_ion/inputs -runtime_params = warpx.do_dynamic_scheduling=0 warpx.serialize_initial_conditions=1 amr.n_cell=384 512 max_step=100 -dim = 2 -addToCompileString = USE_OPENPMD=TRUE -cmakeSetupOpts = -DWarpX_DIMS=2 -DWarpX_OPENPMD=ON -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -analysisRoutine = Examples/analysis_default_regression.py - -[momentum-conserving-gather] -buildDir = . -inputFile = Examples/Physics_applications/plasma_acceleration/inputs_2d -runtime_params = amr.max_level=1 amr.n_cell=32 512 max_step=400 warpx.serialize_initial_conditions=1 warpx.do_dynamic_scheduling=0 algo.field_gathering=momentum-conserving -dim = 2 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=2 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = beam driver plasma_e -analysisRoutine = Examples/analysis_default_regression.py - -[LaserAccelerationRZ] -buildDir = . -inputFile = Examples/Physics_applications/laser_acceleration/inputs_rz -runtime_params = diag1.dump_rz_modes=1 -dim = 2 -addToCompileString = USE_RZ=TRUE -cmakeSetupOpts = -DWarpX_DIMS=RZ -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons beam -analysisRoutine = Examples/analysis_default_regression.py - -[LaserAccelerationRZ_opmd] -buildDir = . -inputFile = Examples/Physics_applications/laser_acceleration/inputs_rz -runtime_params = diag1.format=openpmd diag1.openpmd_backend=h5 max_step=20 diag1.fields_to_plot=Er Bt Bz jr jt jz rho part_per_cell part_per_grid rho_beam rho_electrons -dim = 2 -addToCompileString = USE_RZ=TRUE USE_OPENPMD=TRUE -cmakeSetupOpts = -DWarpX_DIMS=RZ -DWarpX_OPENPMD=ON -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -particleTypes = electrons beam -outputFile = LaserAccelerationRZ_opmd_plt -analysisRoutine = Examples/Tests/openpmd_rz/analysis_openpmd_rz.py - -[Python_LaserAccelerationRZ] -buildDir = . -inputFile = Examples/Physics_applications/laser_acceleration/PICMI_inputs_rz.py -runtime_params = -customRunCmd = python3 PICMI_inputs_rz.py -dim = 2 -addToCompileString = USE_RZ=TRUE USE_PYTHON_MAIN=TRUE -cmakeSetupOpts = -DWarpX_DIMS=RZ -DWarpX_APP=OFF -target = pip_install -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons beam -analysisRoutine = Examples/analysis_default_regression.py - -[Python_Langmuir_2d] -buildDir = . -inputFile = Examples/Tests/langmuir/PICMI_inputs_2d.py -runtime_params = -customRunCmd = python3 PICMI_inputs_2d.py -dim = 2 -addToCompileString = USE_PYTHON_MAIN=TRUE -cmakeSetupOpts = -DWarpX_DIMS=2 -DWarpX_APP=OFF -target = pip_install -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons -analysisRoutine = Examples/analysis_default_regression.py - -[LaserOnFine] -buildDir = . -inputFile = Examples/Tests/laser_on_fine/inputs_2d -runtime_params = max_step=50 -dim = 2 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=2 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -analysisRoutine = Examples/analysis_default_regression.py - -[RepellingParticles] -buildDir = . -inputFile = Examples/Tests/repelling_particles/inputs_2d -runtime_params = -dim = 2 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=2 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -analysisRoutine = Examples/Tests/repelling_particles/analysis_repelling.py - -[Larmor] -buildDir = . -inputFile = Examples/Tests/larmor/inputs_2d_mr -runtime_params = max_step=10 -dim = 2 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=2 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -analysisRoutine = Examples/analysis_default_regression.py - -[Uniform_2d] -buildDir = . -inputFile = Examples/Physics_applications/uniform_plasma/inputs_2d -runtime_params = -dim = 2 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=2 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -analysisRoutine = Examples/analysis_default_regression.py - -[LaserAccelerationBoost] -buildDir = . -inputFile = Examples/Physics_applications/laser_acceleration/inputs_2d_boost -runtime_params = warpx.do_dynamic_scheduling=0 warpx.serialize_initial_conditions=1 amr.n_cell=64 512 max_step=300 -dim = 2 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=2 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -analysisRoutine = Examples/analysis_default_regression.py - -[LaserInjectionFromTXYEFile] -buildDir = . -inputFile = Examples/Tests/laser_injection_from_file/analysis.py -aux1File = Examples/Tests/laser_injection_from_file/inputs.2d_test_txye -customRunCmd = ./analysis.py -runtime_params = warpx.do_dynamic_scheduling=0 -dim = 2 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=2 -restartTest = 0 -useMPI = 1 -numprocs = 1 -useOMP = 1 -numthreads = 1 -compileTest = 0 -selfTest = 1 -stSuccessString = Passed -doVis = 0 - -[collisionXYZ] -buildDir = . -inputFile = Examples/Tests/collision/inputs_3d -runtime_params = -dim = 3 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=3 -restartTest = 0 -useMPI = 1 -numprocs = 1 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -analysisRoutine = Examples/Tests/collision/analysis_collision_3d.py -aux1File = Regression/PostProcessingUtils/post_processing_utils.py - -[collisionISO] -buildDir = . -inputFile = Examples/Tests/collision/inputs_3d_isotropization -runtime_params = -dim = 3 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=3 -restartTest = 0 -useMPI = 1 -numprocs = 1 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -analysisRoutine = Examples/Tests/collision/analysis_collision_3d_isotropization.py -aux1File = Regression/PostProcessingUtils/post_processing_utils.py - -[collisionXZ] -buildDir = . -inputFile = Examples/Tests/collision/inputs_2d -runtime_params = -dim = 2 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=2 -restartTest = 0 -useMPI = 1 -numprocs = 1 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -analysisRoutine = Examples/Tests/collision/analysis_collision_2d.py -aux1File = Regression/PostProcessingUtils/post_processing_utils.py - -[Python_collisionXZ] -buildDir = . -inputFile = Examples/Tests/collision/PICMI_inputs_2d.py -runtime_params = -customRunCmd = python3 PICMI_inputs_2d.py -dim = 2 -addToCompileString = USE_PYTHON_MAIN=TRUE -cmakeSetupOpts = -DWarpX_DIMS=2 -DWarpX_APP=OFF -target = pip_install -restartTest = 0 -useMPI = 1 -numprocs = 1 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -analysisRoutine = Examples/Tests/collision/analysis_collision_2d.py -aux1File = Regression/PostProcessingUtils/post_processing_utils.py - -[collisionRZ] -buildDir = . -inputFile = Examples/Tests/collision/inputs_rz -runtime_params = -dim = 2 -addToCompileString = USE_RZ=TRUE USE_PSATD=FALSE -cmakeSetupOpts = -DWarpX_DIMS=RZ -DWarpX_PSATD=OFF -restartTest = 0 -useMPI = 1 -numprocs = 1 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -analysisRoutine = Examples/Tests/collision/analysis_collision_rz.py -aux1File = Regression/PostProcessingUtils/post_processing_utils.py - -[Proton_Boron_Fusion_3D] -buildDir = . -inputFile = Examples/Tests/nuclear_fusion/inputs_proton_boron_3d -runtime_params = warpx.do_dynamic_scheduling=0 warpx.serialize_initial_conditions=1 -dim = 3 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=3 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 2 -compileTest = 0 -doVis = 0 -analysisRoutine = Examples/Tests/nuclear_fusion/analysis_proton_boron_fusion.py - -[Proton_Boron_Fusion_2D] -buildDir = . -inputFile = Examples/Tests/nuclear_fusion/inputs_proton_boron_2d -runtime_params = warpx.do_dynamic_scheduling=0 warpx.serialize_initial_conditions=1 -dim = 2 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=2 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 2 -compileTest = 0 -doVis = 0 -analysisRoutine = Examples/Tests/nuclear_fusion/analysis_proton_boron_fusion.py - -[Deuterium_Tritium_Fusion_3D] -buildDir = . -inputFile = Examples/Tests/nuclear_fusion/inputs_deuterium_tritium_3d -runtime_params = warpx.do_dynamic_scheduling=0 warpx.serialize_initial_conditions=1 -dim = 3 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=3 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 2 -compileTest = 0 -doVis = 0 -analysisRoutine = Examples/Tests/nuclear_fusion/analysis_two_product_fusion.py - -[Deuterium_Deuterium_Fusion_3D] -buildDir = . -inputFile = Examples/Tests/nuclear_fusion/inputs_deuterium_deuterium_3d -runtime_params = warpx.do_dynamic_scheduling=0 warpx.serialize_initial_conditions=1 -dim = 3 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=3 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -analysisRoutine = Examples/Tests/nuclear_fusion/analysis_two_product_fusion.py - -[Deuterium_Deuterium_Fusion_3D_intraspecies] -buildDir = . -inputFile = Examples/Tests/nuclear_fusion/inputs_deuterium_deuterium_3d_intraspecies -runtime_params = warpx.do_dynamic_scheduling=0 warpx.serialize_initial_conditions=1 -dim = 3 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=3 -restartTest = 0 -useMPI = 1 -numprocs = 1 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -analysisRoutine = Examples/Tests/nuclear_fusion/analysis_deuterium_deuterium_3d_intraspecies.py - -[Deuterium_Tritium_Fusion_RZ] -buildDir = . -inputFile = Examples/Tests/nuclear_fusion/inputs_deuterium_tritium_rz -runtime_params = warpx.do_dynamic_scheduling=0 warpx.serialize_initial_conditions=1 -dim = 2 -addToCompileString = USE_RZ=TRUE -cmakeSetupOpts = -DWarpX_DIMS=RZ -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -analysisRoutine = Examples/Tests/nuclear_fusion/analysis_two_product_fusion.py - -[Maxwell_Hybrid_QED_solver] -buildDir = . -inputFile = Examples/Tests/maxwell_hybrid_qed/inputs_2d -runtime_params = warpx.cfl=0.7071067811865475 -dim = 2 -addToCompileString = USE_PSATD=TRUE -cmakeSetupOpts = -DWarpX_DIMS=2 -DWarpX_PSATD=ON -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -analysisRoutine = Examples/Tests/maxwell_hybrid_qed/analysis_Maxwell_QED_Hybrid.py - -[reduced_diags] -buildDir = . -inputFile = Examples/Tests/reduced_diags/inputs -aux1File = Examples/Tests/reduced_diags/analysis_reduced_diags_impl.py -runtime_params = warpx.do_dynamic_scheduling=0 warpx.serialize_initial_conditions=1 -dim = 3 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=3 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -analysisRoutine = Examples/Tests/reduced_diags/analysis_reduced_diags.py - -[reduced_diags_single_precision] -buildDir = . -inputFile = Examples/Tests/reduced_diags/inputs -aux1File = Examples/Tests/reduced_diags/analysis_reduced_diags_impl.py -runtime_params = warpx.do_dynamic_scheduling=0 warpx.serialize_initial_conditions=1 -dim = 3 -addToCompileString = PRECISION=FLOAT USE_SINGLE_PRECISION_PARTICLES=TRUE -cmakeSetupOpts = -DWarpX_DIMS=3 -DWarpX_PRECISION=SINGLE -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -analysisRoutine = Examples/Tests/reduced_diags/analysis_reduced_diags_single.py - -[reduced_diags_loadbalancecosts_timers] -buildDir = . -inputFile = Examples/Tests/reduced_diags/inputs_loadbalancecosts -runtime_params = warpx.do_dynamic_scheduling=0 warpx.serialize_initial_conditions=1 algo.load_balance_costs_update=Timers -dim = 3 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=3 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -analysisRoutine = Examples/Tests/reduced_diags/analysis_reduced_diags_loadbalancecosts.py - -[Python_reduced_diags_loadbalancecosts_timers] -buildDir = . -inputFile = Examples/Tests/reduced_diags/PICMI_inputs_loadbalancecosts.py -runtime_params = warpx.do_dynamic_scheduling=0 warpx.serialize_initial_conditions=1 algo.load_balance_costs_update=Timers -customRunCmd = python3 PICMI_inputs_loadbalancecosts.py -dim = 3 -addToCompileString = USE_PYTHON_MAIN=TRUE -cmakeSetupOpts = -DWarpX_DIMS=3 -target = pip_install -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -analysisRoutine = Examples/Tests/reduced_diags/analysis_reduced_diags_loadbalancecosts.py - -[reduced_diags_loadbalancecosts_timers_psatd] -buildDir = . -inputFile = Examples/Tests/reduced_diags/inputs_loadbalancecosts -runtime_params = warpx.do_dynamic_scheduling=0 warpx.serialize_initial_conditions=1 algo.load_balance_costs_update=Timers -dim = 3 -addToCompileString = USE_PSATD=TRUE -cmakeSetupOpts = -DWarpX_DIMS=3 -DWarpX_PSATD=ON -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -analysisRoutine = Examples/Tests/reduced_diags/analysis_reduced_diags_loadbalancecosts.py - -[reduced_diags_loadbalancecosts_heuristic] -buildDir = . -inputFile = Examples/Tests/reduced_diags/inputs_loadbalancecosts -runtime_params = warpx.do_dynamic_scheduling=0 warpx.serialize_initial_conditions=1 algo.load_balance_costs_update=Heuristic -dim = 3 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=3 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -analysisRoutine = Examples/Tests/reduced_diags/analysis_reduced_diags_loadbalancecosts.py - -[particle_fields_diags] -buildDir = . -inputFile = Examples/Tests/particle_fields_diags/inputs -aux1File = Examples/Tests/particle_fields_diags/analysis_particle_diags_impl.py -runtime_params = warpx.do_dynamic_scheduling=0 warpx.serialize_initial_conditions=1 -dim = 3 -addToCompileString = USE_OPENPMD=TRUE -cmakeSetupOpts = -DWarpX_DIMS=3 -DWarpX_OPENPMD=ON -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -analysisRoutine = Examples/Tests/particle_fields_diags/analysis_particle_diags.py - -[particle_fields_diags_single_precision] -buildDir = . -inputFile = Examples/Tests/particle_fields_diags/inputs -aux1File = Examples/Tests/particle_fields_diags/analysis_particle_diags_impl.py -runtime_params = warpx.do_dynamic_scheduling=0 warpx.serialize_initial_conditions=1 -dim = 3 -addToCompileString = PRECISION=FLOAT USE_SINGLE_PRECISION_PARTICLES=TRUE USE_OPENPMD=TRUE -cmakeSetupOpts = -DWarpX_DIMS=3 -DWarpX_PRECISION=SINGLE -DWarpX_OPENPMD=ON -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -analysisRoutine = Examples/Tests/particle_fields_diags/analysis_particle_diags_single.py - -[galilean_2d_psatd] -buildDir = . -inputFile = Examples/Tests/nci_psatd_stability/inputs_2d -runtime_params = warpx.grid_type=collocated algo.current_deposition=direct psatd.current_correction=0 warpx.abort_on_warning_threshold=medium -dim = 2 -addToCompileString = USE_PSATD=TRUE -cmakeSetupOpts = -DWarpX_DIMS=2 -DWarpX_PSATD=ON -restartTest = 0 -useMPI = 1 -numprocs = 1 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons ions -analysisRoutine = Examples/Tests/nci_psatd_stability/analysis_galilean.py - -[galilean_2d_psatd_current_correction_psb] -buildDir = . -inputFile = Examples/Tests/nci_psatd_stability/inputs_2d -runtime_params = psatd.periodic_single_box_fft=1 psatd.update_with_rho=0 psatd.current_correction=1 diag1.fields_to_plot=Ex Ey Ez Bx By Bz jx jy jz rho divE -dim = 2 -addToCompileString = USE_PSATD=TRUE -cmakeSetupOpts = -DWarpX_DIMS=2 -DWarpX_PSATD=ON -restartTest = 0 -useMPI = 1 -numprocs = 1 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons ions -analysisRoutine = Examples/Tests/nci_psatd_stability/analysis_galilean.py - -[galilean_2d_psatd_current_correction] -buildDir = . -inputFile = Examples/Tests/nci_psatd_stability/inputs_2d -runtime_params = psatd.periodic_single_box_fft=0 psatd.update_with_rho=0 psatd.current_correction=1 diag1.fields_to_plot=Ex Ey Ez Bx By Bz jx jy jz rho divE amr.max_grid_size=64 amr.blocking_factor=64 -dim = 2 -addToCompileString = USE_PSATD=TRUE -cmakeSetupOpts = -DWarpX_DIMS=2 -DWarpX_PSATD=ON -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons ions -analysisRoutine = Examples/Tests/nci_psatd_stability/analysis_galilean.py - -[galilean_2d_psatd_hybrid] -buildDir = . -inputFile = Examples/Tests/nci_psatd_stability/inputs_2d_hybrid -runtime_params = psatd.current_correction=0 warpx.abort_on_warning_threshold=medium -dim = 2 -addToCompileString = USE_PSATD=TRUE -cmakeSetupOpts = -DWarpX_DIMS=2 -DWarpX_PSATD=ON -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons ions beam -analysisRoutine = Examples/analysis_default_regression.py - -[comoving_2d_psatd_hybrid] -buildDir = . -inputFile = Examples/Tests/comoving/inputs_2d_hybrid -runtime_params = psatd.current_correction=0 warpx.abort_on_warning_threshold=medium -dim = 2 -addToCompileString = USE_PSATD=TRUE -cmakeSetupOpts = -DWarpX_DIMS=2 -DWarpX_PSATD=ON -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons ions beam -analysisRoutine = Examples/analysis_default_regression.py - -[galilean_rz_psatd] -buildDir = . -inputFile = Examples/Tests/nci_psatd_stability/inputs_rz -runtime_params = warpx.do_dynamic_scheduling=0 warpx.serialize_initial_conditions=1 electrons.random_theta=0 ions.random_theta=0 psatd.current_correction=0 warpx.abort_on_warning_threshold=medium -dim = 2 -addToCompileString = USE_RZ=TRUE USE_PSATD=TRUE BLAS_LIB=-lblas LAPACK_LIB=-llapack -cmakeSetupOpts = -DWarpX_DIMS=RZ -DWarpX_PSATD=ON -restartTest = 0 -useMPI = 1 -numprocs = 1 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons ions -analysisRoutine = Examples/Tests/nci_psatd_stability/analysis_galilean.py - -[galilean_rz_psatd_current_correction_psb] -buildDir = . -inputFile = Examples/Tests/nci_psatd_stability/inputs_rz -runtime_params = psatd.periodic_single_box_fft=1 psatd.current_correction=1 electrons.random_theta=0 ions.random_theta=0 -dim = 2 -addToCompileString = USE_RZ=TRUE USE_PSATD=TRUE BLAS_LIB=-lblas LAPACK_LIB=-llapack -cmakeSetupOpts = -DWarpX_DIMS=RZ -DWarpX_PSATD=ON -restartTest = 0 -useMPI = 1 -numprocs = 1 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons ions -analysisRoutine = Examples/Tests/nci_psatd_stability/analysis_galilean.py - -[galilean_rz_psatd_current_correction] -buildDir = . -inputFile = Examples/Tests/nci_psatd_stability/inputs_rz -runtime_params = psatd.periodic_single_box_fft=0 psatd.current_correction=1 electrons.random_theta=0 ions.random_theta=0 amr.max_grid_size=32 amr.blocking_factor=32 -dim = 2 -addToCompileString = USE_RZ=TRUE USE_PSATD=TRUE BLAS_LIB=-lblas LAPACK_LIB=-llapack -cmakeSetupOpts = -DWarpX_DIMS=RZ -DWarpX_PSATD=ON -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons ions -analysisRoutine = Examples/Tests/nci_psatd_stability/analysis_galilean.py - -[galilean_3d_psatd] -buildDir = . -inputFile = Examples/Tests/nci_psatd_stability/inputs_3d -runtime_params = psatd.v_galilean=0. 0. 0.99498743710662 psatd.current_correction=0 warpx.abort_on_warning_threshold=medium -dim = 3 -addToCompileString = USE_PSATD=TRUE -cmakeSetupOpts = -DWarpX_DIMS=3 -DWarpX_PSATD=ON -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons ions -analysisRoutine = Examples/Tests/nci_psatd_stability/analysis_galilean.py - -[galilean_3d_psatd_current_correction_psb] -buildDir = . -inputFile = Examples/Tests/nci_psatd_stability/inputs_3d -runtime_params = psatd.v_galilean=0. 0. 0.99498743710662 warpx.numprocs=1 1 1 psatd.periodic_single_box_fft=1 psatd.update_with_rho=0 psatd.current_correction=1 diag1.fields_to_plot=Ex Ey Ez Bx By Bz jx jy jz rho divE -dim = 3 -addToCompileString = USE_PSATD=TRUE -cmakeSetupOpts = -DWarpX_DIMS=3 -DWarpX_PSATD=ON -restartTest = 0 -useMPI = 1 -numprocs = 1 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons ions -analysisRoutine = Examples/Tests/nci_psatd_stability/analysis_galilean.py - -[galilean_3d_psatd_current_correction] -buildDir = . -inputFile = Examples/Tests/nci_psatd_stability/inputs_3d -runtime_params = psatd.v_galilean=0. 0. 0.99498743710662 warpx.numprocs=1 1 2 psatd.periodic_single_box_fft=0 psatd.update_with_rho=0 psatd.current_correction=1 diag1.fields_to_plot=Ex Ey Ez Bx By Bz jx jy jz rho divE -dim = 3 -addToCompileString = USE_PSATD=TRUE -cmakeSetupOpts = -DWarpX_DIMS=3 -DWarpX_PSATD=ON -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons ions -analysisRoutine = Examples/Tests/nci_psatd_stability/analysis_galilean.py - -[averaged_galilean_2d_psatd] -buildDir = . -inputFile = Examples/Tests/nci_psatd_stability/inputs_avg_2d -runtime_params = psatd.current_correction=0 warpx.abort_on_warning_threshold=medium -dim = 2 -addToCompileString = USE_PSATD=TRUE -cmakeSetupOpts = -DWarpX_DIMS=2 -DWarpX_PSATD=ON -restartTest = 0 -useMPI = 1 -numprocs = 1 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons ions -analysisRoutine = Examples/Tests/nci_psatd_stability/analysis_galilean.py - -[averaged_galilean_2d_psatd_hybrid] -buildDir = . -inputFile = Examples/Tests/nci_psatd_stability/inputs_avg_2d -runtime_params = amr.max_grid_size_x=128 amr.max_grid_size_y=64 warpx.grid_type=hybrid psatd.current_correction=0 warpx.abort_on_warning_threshold=medium -dim = 2 -addToCompileString = USE_PSATD=TRUE -cmakeSetupOpts = -DWarpX_DIMS=2 -DWarpX_PSATD=ON -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons ions -analysisRoutine = Examples/Tests/nci_psatd_stability/analysis_galilean.py - -[averaged_galilean_3d_psatd] -buildDir = . -inputFile = Examples/Tests/nci_psatd_stability/inputs_avg_3d -runtime_params = psatd.current_correction=0 warpx.abort_on_warning_threshold=medium -dim = 3 -addToCompileString = USE_PSATD=TRUE -cmakeSetupOpts = -DWarpX_DIMS=3 -DWarpX_PSATD=ON -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons ions -analysisRoutine = Examples/Tests/nci_psatd_stability/analysis_galilean.py - -[averaged_galilean_3d_psatd_hybrid] -buildDir = . -inputFile = Examples/Tests/nci_psatd_stability/inputs_avg_3d -runtime_params = warpx.grid_type=hybrid psatd.current_correction=0 warpx.abort_on_warning_threshold=medium -dim = 3 -addToCompileString = USE_PSATD=TRUE -cmakeSetupOpts = -DWarpX_DIMS=3 -DWarpX_PSATD=ON -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons ions -analysisRoutine = Examples/Tests/nci_psatd_stability/analysis_galilean.py - -[multi_J_rz_psatd] -buildDir = . -inputFile = Examples/Tests/multi_j/inputs_rz -runtime_params = warpx.do_dynamic_scheduling=0 warpx.serialize_initial_conditions=1 warpx.abort_on_warning_threshold=medium psatd.J_in_time=linear -dim = 2 -addToCompileString = USE_RZ=TRUE USE_PSATD=TRUE -cmakeSetupOpts = -DWarpX_DIMS=RZ -DWarpX_PSATD=ON -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = driver plasma_e plasma_p -analysisRoutine = Examples/analysis_default_regression.py - -[ElectrostaticSphereEB] -buildDir = . -inputFile = Examples/Tests/electrostatic_sphere_eb/inputs_3d -runtime_params = warpx.abort_on_warning_threshold = medium -dim = 3 -addToCompileString = USE_EB=TRUE -cmakeSetupOpts = -DWarpX_DIMS=3 -DWarpX_EB=ON -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -analysisRoutine = Examples/Tests/electrostatic_sphere_eb/analysis.py - -[ElectrostaticSphereEB_RZ] -buildDir = . -inputFile = Examples/Tests/electrostatic_sphere_eb/inputs_rz -runtime_params = warpx.abort_on_warning_threshold = medium -dim = 2 -addToCompileString = USE_EB=TRUE USE_RZ=TRUE -cmakeSetupOpts = -DWarpX_DIMS=RZ -DWarpX_EB=ON -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -analysisRoutine = Examples/Tests/electrostatic_sphere_eb/analysis_rz.py - -[ElectrostaticSphereEB_RZ_MR] -buildDir = . -inputFile = Examples/Tests/electrostatic_sphere_eb/inputs_rz_mr -runtime_params = warpx.abort_on_warning_threshold = medium -dim = 2 -addToCompileString = USE_EB=TRUE USE_RZ=TRUE -cmakeSetupOpts = -DWarpX_DIMS=RZ -DWarpX_EB=ON -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -analysisRoutine = Examples/Tests/electrostatic_sphere_eb/analysis_rz.py - -[Python_ElectrostaticSphereEB] -buildDir = . -inputFile = Examples/Tests/electrostatic_sphere_eb/PICMI_inputs_3d.py -runtime_params = -customRunCmd = python3 PICMI_inputs_3d.py -dim = 3 -addToCompileString = USE_EB=TRUE USE_PYTHON_MAIN=TRUE -cmakeSetupOpts = -DWarpX_DIMS=3 -DWarpX_EB=ON -DWarpX_APP=OFF -target = pip_install -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -analysisRoutine = Examples/Tests/electrostatic_sphere_eb/analysis.py - -[ElectrostaticSphereEB_mixedBCs] -buildDir = . -inputFile = Examples/Tests/electrostatic_sphere_eb/inputs_3d_mixed_BCs -runtime_params = warpx.abort_on_warning_threshold = medium -dim = 3 -addToCompileString = USE_EB=TRUE -cmakeSetupOpts = -DWarpX_DIMS=3 -DWarpX_EB=ON -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -analysisRoutine = Examples/analysis_default_regression.py - -[ElectrostaticSphere] -buildDir = . -inputFile = Examples/Tests/electrostatic_sphere/inputs_3d -runtime_params = warpx.abort_on_warning_threshold=medium -dim = 3 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=3 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -analysisRoutine = Examples/Tests/electrostatic_sphere/analysis_electrostatic_sphere.py - -[ElectrostaticSphereRZ] -buildDir = . -inputFile = Examples/Tests/electrostatic_sphere/inputs_rz -runtime_params = warpx.abort_on_warning_threshold = medium -dim = 2 -addToCompileString = USE_RZ=TRUE -cmakeSetupOpts = -DWarpX_DIMS=RZ -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -analysisRoutine = Examples/Tests/electrostatic_sphere/analysis_electrostatic_sphere.py - -[ElectrostaticSphereLabFrame] -buildDir = . -inputFile = Examples/Tests/electrostatic_sphere/inputs_3d -runtime_params = warpx.do_electrostatic=labframe -dim = 3 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=3 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -analysisRoutine = Examples/Tests/electrostatic_sphere/analysis_electrostatic_sphere.py - -[FieldProbe] -buildDir = . -inputFile = Examples/Tests/field_probe/inputs_2d -runtime_params = -dim = 2 -addToCompileString = USE_EB=TRUE -cmakeSetupOpts = -DWarpX_DIMS=2 -DWarpX_EB=ON -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -analysisRoutine = Examples/Tests/field_probe/analysis_field_probe.py - -[embedded_circle] -buildDir = . -inputFile = Examples/Tests/embedded_circle/inputs_2d -runtime_params = warpx.abort_on_warning_threshold = high -dim = 2 -addToCompileString = USE_EB=TRUE USE_OPENPMD=TRUE -cmakeSetupOpts = -DWarpX_DIMS=2 -DWarpX_EB=ON -DWarpX_OPENPMD=ON -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons ar_ions -analysisRoutine = Examples/Tests/embedded_circle/analysis.py - -[initial_distribution] -buildDir = . -inputFile = Examples/Tests/initial_distribution/inputs -runtime_params = warpx.do_dynamic_scheduling=0 warpx.serialize_initial_conditions=1 -dim = 3 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=3 -restartTest = 0 -useMPI = 1 -numprocs = 1 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -analysisRoutine = Examples/Tests/initial_distribution/analysis_distribution.py -aux1File = Tools/PostProcessing/read_raw_data.py - -[leveling_thinning] -buildDir = . -inputFile = Examples/Tests/resampling/inputs_leveling_thinning -runtime_params = -dim = 2 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=2 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -analysisRoutine = Examples/Tests/resampling/analysis_leveling_thinning.py - -[particle_boundaries_3d] -buildDir = . -inputFile = Examples/Tests/boundaries/inputs_3d -runtime_params = -dim = 3 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=3 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -analysisRoutine = Examples/Tests/boundaries/analysis.py - -[embedded_boundary_cube] -buildDir = . -inputFile = Examples/Tests/embedded_boundary_cube/inputs_3d -runtime_params = -dim = 3 -addToCompileString = USE_EB=TRUE -cmakeSetupOpts = -DWarpX_DIMS=3 -DWarpX_EB=ON -restartTest = 0 -useMPI = 1 -numprocs = 1 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -analysisRoutine = Examples/Tests/embedded_boundary_cube/analysis_fields.py - -[embedded_boundary_cube_macroscopic] -buildDir = . -inputFile = Examples/Tests/embedded_boundary_cube/inputs_3d -runtime_params = algo.em_solver_medium=macroscopic macroscopic.epsilon=1.5*8.8541878128e-12 macroscopic.sigma=0 macroscopic.mu=1.25663706212e-06 -dim = 3 -addToCompileString = USE_EB=TRUE -cmakeSetupOpts = -DWarpX_DIMS=3 -DWarpX_EB=ON -restartTest = 0 -useMPI = 1 -numprocs = 1 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -analysisRoutine = Examples/Tests/embedded_boundary_cube/analysis_fields.py - -[embedded_boundary_cube_2d] -buildDir = . -inputFile = Examples/Tests/embedded_boundary_cube/inputs_2d -runtime_params = -dim = 2 -addToCompileString = USE_EB=TRUE -cmakeSetupOpts = -DWarpX_DIMS=2 -DWarpX_EB=ON -restartTest = 0 -useMPI = 1 -numprocs = 1 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -analysisRoutine = Examples/Tests/embedded_boundary_cube/analysis_fields_2d.py - -[embedded_boundary_rotated_cube] -buildDir = . -inputFile = Examples/Tests/embedded_boundary_rotated_cube/inputs_3d -runtime_params = warpx.abort_on_warning_threshold=medium -dim = 3 -addToCompileString = USE_EB=TRUE -cmakeSetupOpts = -DWarpX_DIMS=3 -DWarpX_EB=ON -restartTest = 0 -useMPI = 1 -numprocs = 1 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -analysisRoutine = Examples/Tests/embedded_boundary_rotated_cube/analysis_fields.py - -[embedded_boundary_rotated_cube_2d] -buildDir = . -inputFile = Examples/Tests/embedded_boundary_rotated_cube/inputs_2d -runtime_params = warpx.abort_on_warning_threshold=medium -dim = 2 -addToCompileString = USE_EB=TRUE -cmakeSetupOpts = -DWarpX_DIMS=2 -DWarpX_EB=ON -restartTest = 0 -useMPI = 1 -numprocs = 1 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -analysisRoutine = Examples/Tests/embedded_boundary_rotated_cube/analysis_fields_2d.py - -[dirichletbc] -buildDir = . -inputFile = Examples/Tests/electrostatic_dirichlet_bc/inputs_2d -runtime_params = warpx.abort_on_warning_threshold = medium -dim = 2 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=2 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -analysisRoutine = Examples/Tests/electrostatic_dirichlet_bc/analysis.py - -[Python_dirichletbc] -buildDir = . -inputFile = Examples/Tests/electrostatic_dirichlet_bc/PICMI_inputs_2d.py -runtime_params = -customRunCmd = python3 PICMI_inputs_2d.py -dim = 2 -addToCompileString = USE_PYTHON_MAIN=TRUE -cmakeSetupOpts = -DWarpX_DIMS=2 -DWarpX_APP=OFF -target = pip_install -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -analysisRoutine = Examples/Tests/electrostatic_dirichlet_bc/analysis.py - -[PEC_field] -buildDir = . -inputFile = Examples/Tests/pec/inputs_field_PEC_3d -runtime_params = -dim = 3 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=3 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -analysisRoutine = Examples/Tests/pec/analysis_pec.py - -[PEC_field_mr] -buildDir = . -inputFile = Examples/Tests/pec/inputs_field_PEC_mr_3d -runtime_params = -dim = 3 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=3 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -analysisRoutine = Examples/Tests/pec/analysis_pec_mr.py - -[PEC_particle] -buildDir = . -inputFile = Examples/Tests/pec/inputs_particle_PEC_3d -runtime_params = -dim = 3 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=3 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electron proton -analysisRoutine = Examples/analysis_default_regression.py - -[Python_pass_mpi_comm] -buildDir = . -inputFile = Examples/Tests/pass_mpi_communicator/PICMI_inputs_2d.py -runtime_params = -customRunCmd = python3 PICMI_inputs_2d.py -dim = 2 -addToCompileString = USE_PYTHON_MAIN=TRUE -cmakeSetupOpts = -DWarpX_DIMS=2 -DWarpX_APP=OFF -target = pip_install -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons -analysisRoutine = Examples/Tests/pass_mpi_communicator/analysis.py - -[Plasma_lens] -buildDir = . -inputFile = Examples/Tests/plasma_lens/inputs_3d -runtime_params = -dim = 3 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=3 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons -analysisRoutine = Examples/Tests/plasma_lens/analysis.py - -[Plasma_lens_boosted] -buildDir = . -inputFile = Examples/Tests/plasma_lens/inputs_boosted_3d -runtime_params = -dim = 3 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=3 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons -analysisRoutine = Examples/Tests/plasma_lens/analysis.py - -[Plasma_lens_short] -buildDir = . -inputFile = Examples/Tests/plasma_lens/inputs_short_3d -runtime_params = -dim = 3 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=3 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons -analysisRoutine = Examples/Tests/plasma_lens/analysis.py - -[Python_plasma_lens] -buildDir = . -inputFile = Examples/Tests/plasma_lens/PICMI_inputs_3d.py -runtime_params = -customRunCmd = python3 PICMI_inputs_3d.py -dim = 3 -addToCompileString = USE_PYTHON_MAIN=TRUE -cmakeSetupOpts = -DWarpX_DIMS=3 -DWarpX_APP=OFF -target = pip_install -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons -analysisRoutine = Examples/Tests/plasma_lens/analysis.py - -[hard_edged_quadrupoles] -buildDir = . -inputFile = Examples/Tests/AcceleratorLattice/inputs_quad_3d -runtime_params = -dim = 3 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=3 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electron -analysisRoutine = Examples/Tests/AcceleratorLattice/analysis.py - -[hard_edged_quadrupoles_moving] -buildDir = . -inputFile = Examples/Tests/AcceleratorLattice/inputs_quad_moving_3d -runtime_params = -dim = 3 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=3 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electron -analysisRoutine = Examples/Tests/AcceleratorLattice/analysis.py - -[hard_edged_quadrupoles_boosted] -buildDir = . -inputFile = Examples/Tests/AcceleratorLattice/inputs_quad_boosted_3d -runtime_params = -dim = 3 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=3 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electron -analysisRoutine = Examples/Tests/AcceleratorLattice/analysis.py - -[hard_edged_plasma_lens] -buildDir = . -inputFile = Examples/Tests/plasma_lens/inputs_lattice_3d -runtime_params = -dim = 3 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=3 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons -analysisRoutine = Examples/Tests/plasma_lens/analysis.py - -[background_mcc] -buildDir = . -inputFile = Examples/Physics_applications/capacitive_discharge/inputs_2d -runtime_params = warpx.abort_on_warning_threshold = high -dim = 2 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=2 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons he_ions -analysisRoutine = Examples/analysis_default_regression.py - -[background_mcc_dp_psp] -buildDir = . -inputFile = Examples/Physics_applications/capacitive_discharge/inputs_2d -runtime_params = warpx.abort_on_warning_threshold = high -dim = 2 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=2 -DWarpX_PRECISION=DOUBLE -DWarpX_PARTICLE_PRECISION=SINGLE -DWarpX_QED=OFF -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons he_ions -analysisRoutine = Examples/analysis_default_regression.py - -[Python_background_mcc] -buildDir = . -inputFile = Examples/Physics_applications/capacitive_discharge/PICMI_inputs_2d.py -runtime_params = -customRunCmd = python3 PICMI_inputs_2d.py -dim = 2 -addToCompileString = USE_PYTHON_MAIN=TRUE -cmakeSetupOpts = -DWarpX_DIMS=2 -DWarpX_APP=OFF -target = pip_install -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -analysisRoutine = Examples/Physics_applications/capacitive_discharge/analysis_2d.py - -[Python_background_mcc_1d] -buildDir = . -inputFile = Examples/Physics_applications/capacitive_discharge/PICMI_inputs_1d.py -runtime_params = -customRunCmd = python3 PICMI_inputs_1d.py --test --pythonsolver -dim = 1 -addToCompileString = USE_PYTHON_MAIN=TRUE USE_OPENPMD=TRUE QED=FALSE -cmakeSetupOpts = -DWarpX_DIMS=1 -DWarpX_APP=OFF -DWarpX_OPENPMD=ON -DWarpX_QED=OFF -target = pip_install -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -analysisRoutine = Examples/Physics_applications/capacitive_discharge/analysis_1d.py - -[Python_background_mcc_1d_tridiag] -buildDir = . -inputFile = Examples/Physics_applications/capacitive_discharge/PICMI_inputs_1d.py -runtime_params = -customRunCmd = python3 PICMI_inputs_1d.py --test -dim = 1 -addToCompileString = USE_PYTHON_MAIN=TRUE USE_OPENPMD=TRUE QED=FALSE -cmakeSetupOpts = -DWarpX_DIMS=1 -DWarpX_APP=OFF -DWarpX_OPENPMD=ON -DWarpX_QED=OFF -target = pip_install -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -analysisRoutine = Examples/Physics_applications/capacitive_discharge/analysis_1d.py - -[particle_absorption] -buildDir = . -inputFile = Examples/Tests/particle_boundary_process/inputs_absorption -runtime_params = -dim = 3 -addToCompileString = USE_EB=TRUE -cmakeSetupOpts = -DWarpX_DIMS=3 -DWarpX_EB=ON -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons -analysisRoutine = Examples/Tests/particle_boundary_process/analysis_absorption.py - -[particle_scrape] -buildDir = . -inputFile = Examples/Tests/particle_boundary_scrape/inputs_scrape -runtime_params = -dim = 3 -addToCompileString = USE_EB=TRUE -cmakeSetupOpts = -DWarpX_DIMS=3 -DWarpX_EB=ON -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons -analysisRoutine = Examples/Tests/particle_boundary_scrape/analysis_scrape.py - -[Python_particle_scrape] -buildDir = . -inputFile = Examples/Tests/particle_boundary_scrape/PICMI_inputs_scrape.py -runtime_params = -customRunCmd = python3 PICMI_inputs_scrape.py -dim = 3 -addToCompileString = USE_EB=TRUE USE_PYTHON_MAIN=TRUE -cmakeSetupOpts = -DWarpX_DIMS=3 -DWarpX_EB=ON -DWarpX_APP=OFF -target = pip_install -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons -analysisRoutine = Examples/Tests/particle_boundary_scrape/analysis_scrape.py - -[Python_particle_reflection] -buildDir = . -inputFile = Examples/Tests/particle_boundary_process/PICMI_inputs_reflection.py -runtime_params = -customRunCmd = python3 PICMI_inputs_reflection.py -dim = 2 -addToCompileString = USE_PYTHON_MAIN=TRUE -cmakeSetupOpts = -DWarpX_DIMS=2 -DWarpX_APP=OFF -target = pip_install -restartTest = 0 -useMPI = 1 -numprocs = 1 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -analysisRoutine = Examples/Tests/particle_boundary_process/analysis_reflection.py - -[Python_particle_attr_access] -buildDir = . -inputFile = Examples/Tests/particle_data_python/PICMI_inputs_2d.py -runtime_params = -customRunCmd = python3 PICMI_inputs_2d.py -dim = 2 -addToCompileString = USE_PYTHON_MAIN=TRUE -cmakeSetupOpts = -DWarpX_DIMS=2 -DWarpX_APP=OFF -target = pip_install -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -analysisRoutine = Examples/Tests/particle_data_python/analysis.py - -[Python_particle_attr_access_unique] -buildDir = . -inputFile = Examples/Tests/particle_data_python/PICMI_inputs_2d.py -runtime_params = -customRunCmd = python3 PICMI_inputs_2d.py --unique -dim = 2 -addToCompileString = USE_PYTHON_MAIN=TRUE -cmakeSetupOpts = -DWarpX_DIMS=2 -DWarpX_APP=OFF -target = pip_install -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -analysisRoutine = Examples/Tests/particle_data_python/analysis.py - -[Python_prev_positions] -buildDir = . -inputFile = Examples/Tests/particle_data_python/PICMI_inputs_prev_pos_2d.py -runtime_params = -customRunCmd = python3 PICMI_inputs_prev_pos_2d.py -dim = 2 -addToCompileString = USE_PYTHON_MAIN=TRUE -cmakeSetupOpts = -DWarpX_DIMS=2 -DWarpX_APP=OFF -target = pip_install -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -analysisRoutine = Examples/analysis_default_regression.py - -[Performance_works_1_uniform_rest_32ppc] -buildDir = . -inputFile = Examples/Tests/performance_tests/automated_test_1_uniform_rest_32ppc -runtime_params = amr.max_grid_size=32 amr.n_cell=32 32 32 max_step=5 diagnostics.diags_names=diag1 diag1.intervals=0 diag1.diag_type=Full -dim = 3 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=3 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons ions -analysisRoutine = - -[Performance_works_2_uniform_rest_1ppc] -buildDir = . -inputFile = Examples/Tests/performance_tests/automated_test_2_uniform_rest_1ppc -runtime_params = amr.max_grid_size=32 amr.n_cell=32 32 32 max_step=5 diagnostics.diags_names=diag1 diag1.intervals=0 diag1.diag_type=Full -dim = 3 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=3 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons -analysisRoutine = - -[Performance_works_3_uniform_drift_4ppc] -buildDir = . -inputFile = Examples/Tests/performance_tests/automated_test_3_uniform_drift_4ppc -runtime_params = amr.max_grid_size=32 amr.n_cell=32 32 32 max_step=5 diagnostics.diags_names=diag1 diag1.intervals=0 diag1.diag_type=Full -dim = 3 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=3 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons ions -analysisRoutine = - -[Performance_works_4_labdiags_2ppc] -buildDir = . -inputFile = Examples/Tests/performance_tests/automated_test_4_labdiags_2ppc -runtime_params = amr.n_cell=64 64 64 max_step=10 diagnostics.diags_names=diag1 diag1.intervals=0 diag1.diag_type=Full -dim = 3 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=3 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons ions -analysisRoutine = - -[Performance_works_5_loadimbalance] -buildDir = . -inputFile = Examples/Tests/performance_tests/automated_test_5_loadimbalance -runtime_params = amr.max_grid_size=32 amr.n_cell=32 32 32 max_step=5 diagnostics.diags_names=diag1 diag1.intervals=0 diag1.diag_type=Full -dim = 3 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=3 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons ions -analysisRoutine = - -[Performance_works_6_output_2ppc] -buildDir = . -inputFile = Examples/Tests/performance_tests/automated_test_6_output_2ppc -runtime_params = amr.n_cell=64 64 64 max_step=10 -dim = 3 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=3 -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons ions -analysisRoutine = - -[Python_wrappers] -buildDir = . -inputFile = Examples/Tests/python_wrappers/PICMI_inputs_2d.py -runtime_params = -customRunCmd = python3 PICMI_inputs_2d.py -dim = 2 -addToCompileString = USE_PSATD=TRUE USE_PYTHON_MAIN=TRUE -cmakeSetupOpts = -DWarpX_DIMS=2 -DWarpX_PSATD=ON -DWarpX_APP=OFF -target = pip_install -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -analysisRoutine = Examples/analysis_default_regression.py - -[embedded_boundary_python_API] -buildDir = . -inputFile = Examples/Tests/embedded_boundary_python_api/PICMI_inputs_EB_API.py -runtime_params = -customRunCmd = python PICMI_inputs_EB_API.py -dim = 3 -addToCompileString = USE_EB=TRUE USE_PYTHON_MAIN=TRUE -cmakeSetupOpts = -DWarpX_DIMS=3 -DWarpX_EB=ON -DWarpX_APP=OFF -target = pip_install -restartTest = 0 -useMPI = 1 -numprocs = 1 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -analysisRoutine = Examples/Tests/embedded_boundary_python_api/analysis.py - -[scraping] -buildDir = . -inputFile = Examples/Tests/scraping/inputs_rz -runtime_params = warpx.abort_on_warning_threshold = medium -dim = 2 -addToCompileString = USE_EB=TRUE USE_RZ=TRUE USE_OPENPMD=TRUE -cmakeSetupOpts = -DWarpX_DIMS=RZ -DWarpX_EB=ON -DWarpX_OPENPMD=ON -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -analysisRoutine = Examples/Tests/scraping/analysis_rz.py - -[ion_stopping] -buildDir = . -inputFile = Examples/Tests/ion_stopping/inputs_3d -runtime_params = warpx.cfl=0.7 -dim = 3 -addToCompileString = -cmakeSetupOpts = -restartTest = 0 -useMPI = 1 -numprocs = 1 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -analysisRoutine = Examples/Tests/ion_stopping/analysis_ion_stopping.py - -[VayDeposition2D] -buildDir = . -inputFile = Examples/Tests/vay_deposition/inputs_2d -runtime_params = -dim = 2 -addToCompileString = USE_PSATD=TRUE -cmakeSetupOpts = -DWarpX_DIMS=2 -DWarpX_PSATD=ON -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electron ion -analysisRoutine = Examples/Tests/vay_deposition/analysis.py - -[VayDeposition3D] -buildDir = . -inputFile = Examples/Tests/vay_deposition/inputs_3d -runtime_params = -dim = 3 -addToCompileString = USE_PSATD=TRUE -cmakeSetupOpts = -DWarpX_DIMS=3 -DWarpX_PSATD=ON -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electron ion -analysisRoutine = Examples/Tests/vay_deposition/analysis.py - -[BTD_rz] -buildDir = . -inputFile = Examples/Tests/btd_rz/inputs_rz_z_boosted_BTD -runtime_params = -dim = 2 -addToCompileString = USE_RZ=TRUE -cmakeSetupOpts = -DWarpX_DIMS=RZ -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -analysisRoutine = Examples/Tests/btd_rz/analysis_BTD_laser_antenna.py - -[uniform_plasma_multiJ] -buildDir = . -inputFile = Examples/Tests/nci_psatd_stability/inputs_3d -runtime_params = psatd.solution_type=first-order psatd.J_in_time=constant psatd.rho_in_time=constant warpx.do_dive_cleaning=1 warpx.do_divb_cleaning=1 warpx.do_multi_J=1 warpx.do_multi_J_n_depositions=1 diag1.fields_to_plot=Bx By Bz divE Ex Ey Ez F G jx jy jz rho warpx.abort_on_warning_threshold=medium -dim = 3 -addToCompileString = USE_PSATD=TRUE -cmakeSetupOpts = -DWarpX_DIMS=3 -DWarpX_PSATD=ON -restartTest = 0 -useMPI = 1 -numprocs = 2 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = electrons ions -analysisRoutine = Examples/Tests/nci_psatd_stability/analysis_multiJ.py - -[LoadExternalFieldRZ] -buildDir = . -inputFile = Examples/Tests/LoadExternalField/inputs_rz -runtime_params = warpx.abort_on_warning_threshold=medium -dim = 2 -addToCompileString = USE_RZ=TRUE -cmakeSetupOpts = -DWarpX_DIMS=RZ -DWarpX_OPENPMD=ON -restartTest = 0 -useMPI = 1 -numprocs = 1 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = proton -analysisRoutine = Examples/Tests/LoadExternalField/analysis_rz.py - -[LoadExternalField3D] -buildDir = . -inputFile = Examples/Tests/LoadExternalField/inputs_3d -runtime_params = warpx.abort_on_warning_threshold=medium -dim = 3 -addToCompileString = -cmakeSetupOpts = -DWarpX_DIMS=3 -DWarpX_OPENPMD=ON -restartTest = 0 -useMPI = 1 -numprocs = 1 -useOMP = 1 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 1 -particleTypes = proton -analysisRoutine = Examples/Tests/LoadExternalField/analysis_3d.py - -[Python_magnetostatic_eb_rz] -buildDir = . -inputFile = Examples/Tests/magnetostatic_eb/PICMI_inputs_rz.py -runtime_params = -customRunCmd = python3 PICMI_inputs_rz.py -dim = 2 -addToCompileString = USE_EB=TRUE USE_PYTHON_MAIN=TRUE USE_RZ=TRUE -cmakeSetupOpts = -DWarpX_DIMS=RZ -DWarpX_APP=OFF -DWarpX_EB=ON -target = pip_install -restartTest = 0 -useMPI = 1 -numprocs = 1 -useOMP = 1 -numthreads = 2 -compileTest = 0 -doVis = 0 -compareParticles = 0 -particleTypes = electrons -analysisRoutine = Examples/Tests/magnetostatic_eb/analysis_rz.py - -[Python_magnetostatic_eb_3d] -buildDir = . -inputFile = Examples/Tests/magnetostatic_eb/PICMI_inputs_3d.py -runtime_params = -customRunCmd = python3 PICMI_inputs_3d.py -dim = 3 -addToCompileString = USE_EB=TRUE USE_PYTHON_MAIN=TRUE -cmakeSetupOpts = -DWarpX_DIMS=3 -DWarpX_APP=OFF -DWarpX_EB=ON -target = pip_install -restartTest = 0 -useMPI = 1 -numprocs = 1 -useOMP = 1 -numthreads = 2 -compileTest = 0 -doVis = 0 -compareParticles = 0 -particleTypes = electrons -analysisRoutine = Examples/analysis_default_regression.py - -[magnetostatic_eb_3d] -buildDir = . -inputFile = Examples/Tests/magnetostatic_eb/inputs_3d -runtime_params = warpx.abort_on_warning_threshold = medium -dim = 3 -addToCompileString = USE_EB=TRUE -cmakeSetupOpts = -DWarpX_DIMS=3 -DWarpX_EB=ON -restartTest = 0 -useMPI = 1 -numprocs = 1 -useOMP = 2 -numthreads = 1 -compileTest = 0 -doVis = 0 -compareParticles = 0 -analysisRoutine = Examples/analysis_default_regression.py diff --git a/Regression/prepare_file_ci.py b/Regression/prepare_file_ci.py deleted file mode 100644 index 7ec0af427..000000000 --- a/Regression/prepare_file_ci.py +++ /dev/null @@ -1,152 +0,0 @@ -# Copyright 2018-2019 Andrew Myers, Luca Fedeli, Maxence Thevenet -# Remi Lehe -# -# This file is part of WarpX. -# -# License: BSD-3-Clause-LBNL - -import os -# This script modifies `WarpX-test.ini` (which is used for nightly builds) -# and creates the file `ci-test.ini` (which is used for continous -# integration) -# The subtests that are selected are controlled by WARPX_TEST_DIM -# The architecture (CPU/GPU) is selected by WARPX_TEST_ARCH -import re - -# Get relevant environment variables -arch = os.environ.get('WARPX_TEST_ARCH', 'CPU') - -ci_regular_cartesian_1d = os.environ.get('WARPX_CI_REGULAR_CARTESIAN_1D') == 'TRUE' -ci_regular_cartesian_2d = os.environ.get('WARPX_CI_REGULAR_CARTESIAN_2D') == 'TRUE' -ci_regular_cartesian_3d = os.environ.get('WARPX_CI_REGULAR_CARTESIAN_3D') == 'TRUE' -ci_psatd = os.environ.get('WARPX_CI_PSATD', 'TRUE') == 'TRUE' -ci_single_precision = os.environ.get('WARPX_CI_SINGLE_PRECISION') == 'TRUE' -ci_rz_or_nompi = os.environ.get('WARPX_CI_RZ_OR_NOMPI') == 'TRUE' -ci_qed = os.environ.get('WARPX_CI_QED') == 'TRUE' -ci_eb = os.environ.get('WARPX_CI_EB') == 'TRUE' -ci_openpmd = os.environ.get('WARPX_CI_OPENPMD') == 'TRUE' -ci_ccache = os.environ.get('WARPX_CI_CCACHE') == 'TRUE' -ci_num_make_jobs = os.environ.get('WARPX_CI_NUM_MAKE_JOBS', None) - -# Find the directory in which the tests should be run -current_dir = os.getcwd() -test_dir = re.sub('warpx/Regression', '', current_dir ) - -with open('WarpX-tests.ini') as f: - text = f.read() - -# Replace default folder name -text = re.sub('/home/regtester/AMReX_RegTesting', test_dir, text) -# Remove the web directory -text = re.sub('[\w\-\/]*/web', '', text) - -# Add doComparison = 0 for each test -text = re.sub( '\[(?P.*)\]\nbuildDir = ', - '[\g]\ndoComparison = 0\nbuildDir = ', text ) - -# Change compile options when running on GPU -if arch == 'GPU': - text = re.sub( 'addToCompileString =', - 'addToCompileString = USE_GPU=TRUE USE_OMP=FALSE ', text) -print('Compiling for %s' %arch) - -# Extra dependencies -if ci_openpmd: - text = re.sub('addToCompileString =', - 'addToCompileString = USE_OPENPMD=TRUE ', text) - -# always build with PSATD support (runtime controlled if used) -if ci_psatd: - text = re.sub('addToCompileString =', - 'addToCompileString = USE_PSATD=TRUE ', text) - text = re.sub('USE_PSATD=FALSE', - '', text) - -# Ccache -if ci_ccache: - text = re.sub('addToCompileString =', - 'addToCompileString = USE_CCACHE=TRUE ', text) - -# Add runtime options: -# > crash for unused variables -# > trap NaNs, divisions by zero, and overflows -# > abort upon any warning message by default -text = re.sub('runtime_params =', - 'runtime_params = amrex.abort_on_unused_inputs=1 '+ - 'amrex.fpe_trap_invalid=1 amrex.fpe_trap_zero=1 amrex.fpe_trap_overflow=1 '+ - 'warpx.always_warn_immediately=1 warpx.abort_on_warning_threshold=low', - text) - -# Use less/more cores for compiling, e.g. public CI only provides 2 cores -if ci_num_make_jobs is not None: - text = re.sub( 'numMakeJobs = \d+', 'numMakeJobs = {}'.format(ci_num_make_jobs), text ) - -# Prevent emails from being sent -text = re.sub( 'sendEmailWhenFail = 1', 'sendEmailWhenFail = 0', text ) - -# Select the tests to be run -# -------------------------- - -# - Extract test blocks (they are identified by the fact that they contain "inputFile") -select_test_regex = r'(\[(.+\n)*inputFile(.+\n)*)' -test_blocks = [ match[0] for match in re.findall(select_test_regex, text) ] -# - Remove the test blocks from `text` (only the selected ones will be added back) -text = re.sub( select_test_regex, '', text ) - -def select_tests(blocks, match_string_list, do_test): - """Remove or keep tests from list in WarpX-tests.ini according to do_test variable""" - if do_test not in [True, False]: - raise ValueError("do_test must be True or False") - if (do_test == False): - for match_string in match_string_list: - print('Selecting tests without ' + match_string) - blocks = [ block for block in blocks if not match_string in block ] - else: - for match_string in match_string_list: - print('Selecting tests with ' + match_string) - blocks = [ block for block in blocks if match_string in block ] - return blocks - -if ci_regular_cartesian_1d: - test_blocks = select_tests(test_blocks, ['dim = 1'], True) - test_blocks = select_tests(test_blocks, ['USE_RZ=TRUE'], False) - test_blocks = select_tests(test_blocks, ['PRECISION=FLOAT', 'USE_SINGLE_PRECISION_PARTICLES=TRUE'], False) - test_blocks = select_tests(test_blocks, ['useMPI = 0'], False) - test_blocks = select_tests(test_blocks, ['QED=TRUE'], False) - test_blocks = select_tests(test_blocks, ['USE_EB=TRUE'], False) - -if ci_regular_cartesian_2d: - test_blocks = select_tests(test_blocks, ['dim = 2'], True) - test_blocks = select_tests(test_blocks, ['USE_RZ=TRUE'], False) - test_blocks = select_tests(test_blocks, ['PRECISION=FLOAT', 'USE_SINGLE_PRECISION_PARTICLES=TRUE'], False) - test_blocks = select_tests(test_blocks, ['useMPI = 0'], False) - test_blocks = select_tests(test_blocks, ['QED=TRUE'], False) - test_blocks = select_tests(test_blocks, ['USE_EB=TRUE'], False) - -if ci_regular_cartesian_3d: - test_blocks = select_tests(test_blocks, ['dim = 3'], True) - test_blocks = select_tests(test_blocks, ['PRECISION=FLOAT', 'USE_SINGLE_PRECISION_PARTICLES=TRUE'], False) - test_blocks = select_tests(test_blocks, ['useMPI = 0'], False) - test_blocks = select_tests(test_blocks, ['QED=TRUE'], False) - test_blocks = select_tests(test_blocks, ['USE_EB=TRUE'], False) - -if ci_single_precision: - test_blocks = select_tests(test_blocks, ['PRECISION=FLOAT', 'USE_SINGLE_PRECISION_PARTICLES=TRUE'], True) - -if ci_rz_or_nompi: - block1 = select_tests(test_blocks, ['USE_RZ=TRUE'], True) - block2 = select_tests(test_blocks, ['useMPI = 0'], True) - test_blocks = block1 + block2 - -if ci_qed: - test_blocks = select_tests(test_blocks, ['QED=TRUE'], True) - -if ci_eb: - test_blocks = select_tests(test_blocks, ['USE_RZ=TRUE'], False) - test_blocks = select_tests(test_blocks, ['USE_EB=TRUE'], True) - -# - Add the selected test blocks to the text -text = text + '\n' + '\n'.join(test_blocks) - -with open('ci-tests.ini', 'w') as f: - f.write(text) diff --git a/Regression/requirements.txt b/Regression/requirements.txt deleted file mode 100644 index 3cf9e9fdf..000000000 --- a/Regression/requirements.txt +++ /dev/null @@ -1,8 +0,0 @@ -matplotlib -mpi4py -numpy -openpmd-api -openpmd-viewer -pandas -scipy -yt diff --git a/Source/AcceleratorLattice/README.rst b/Source/AcceleratorLattice/README.rst deleted file mode 100644 index 3fdbed6fa..000000000 --- a/Source/AcceleratorLattice/README.rst +++ /dev/null @@ -1,43 +0,0 @@ -.. _accelerator_lattice: - -Accelerator lattice -=================== - -The files in this directory handle the accelerator lattice. These are fields of various types and configurations. -The lattice is laid out along the z-axis. - -The AcceleratorLattice has the instances of the accelerator element types and handles the input of the data. - -The LatticeElementFinder manages the application of the fields to the particles. It maintains index lookup tables -that allow rapidly determining which elements the particles are in. - -The classes for each element type are in the subdirectory LatticeElements. - -Host and device classes ------------------------ - -The LatticeElementFinder and each of the element types have two classes, one -that lives on the host and one that can be trivially copied to the device. -This dual structure is needed because of the complex data structures -describing both the accelerator elements and the index lookup tables. The -host level classes manage the data structures, reading in and setting up the -data. The host classes copy the data to the device and maintain the pointers -to that data on the device. The device level classes grab pointers to the -appropriate data (on the device) needed when fetching the data for the particles. - -External fields ---------------- - -The lattice fields are applied to the particles from the GetExternalEBField -class. If a lattice is defined, the GetExternalEBField class gets the lattice -element finder device level instance associated with the grid being operated -on. The fields are applied from that instance, which calls the "get_field" -method for each lattice element type that is defined for each particle. - -Adding new element types ------------------------- - -A number of places need to be touched when adding a new element types. The -best method is to look for every place where the "quad" element is referenced -and duplicate the code for the new element type. Changes will only be needed -within the AcceleratorLattice directory. diff --git a/Source/Diagnostics/requirements.txt b/Source/Diagnostics/requirements.txt deleted file mode 100644 index d9f5cb553..000000000 --- a/Source/Diagnostics/requirements.txt +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright 2020-2021 Axel Huebl -# -# This file is part of WarpX. -# -# License: BSD-3-Clause-LBNL - -# keep this entry for GitHub's dependency graph -openPMD-api>=0.15.1 diff --git a/Source/EmbeddedBoundary/WarpXFaceExtensions.H b/Source/EmbeddedBoundary/WarpXFaceExtensions.H deleted file mode 100644 index 9502f5db5..000000000 --- a/Source/EmbeddedBoundary/WarpXFaceExtensions.H +++ /dev/null @@ -1,41 +0,0 @@ -// -// Created by Lorenzo Giacomel on 26/08/2021. -// - -#ifndef WARPX_SOURCE_EMBEDDEDBOUNDARY_WARPXFACEEXTENSIONS_H -#define WARPX_SOURCE_EMBEDDEDBOUNDARY_WARPXFACEEXTENSIONS_H -/** -* \brief For the face of cell pointing in direction idim, return the number of faces -* we need to intrude with the one-way extension. Returns only one or zero: one if the -* face can be extended with the the one-way extension, zeros if it can't. -* -* \param[in] cell \c Dim3 storing the indices of the face to extended -* \param[in] S_ext amount of area needed for the extension -* \param[in] S_red \c Array4 storing the amount of area each face can still give away -* \param[in] flag_info_face \c Array4 storing face information -* \param[in] flag_ext_face \c Array4 storing face information -* \param[in] idim normal direction to the face in consideration (0 for x, 1 for y, 2 for z) -*/ -AMREX_GPU_DEVICE -int ComputeNBorrowOneFaceExtension(const amrex::Dim3 cell, const amrex::Real S_ext, - const amrex::Array4 &S_red, - const amrex::Array4 &flag_info_face, - const amrex::Array4 &flag_ext_face, int idim); -/** -* \brief For the face of cell pointing in direction idim, return the number of faces -* we need to intrude with the eight-ways extension. -* -* \param[in] cell \c Dim3 storing the indices of the face to extended -* \param[in] S_ext amount of area needed for the extension -* \param[in] S_red \c Array4 storing the amount of area each face can still give away -* \param[in] S \c Array4 storing the area of face -* \param[in] flag_info_face \c Array4 storing face information -* \param[in] idim normal direction to the face in consideration (0 for x, 1 for y, 2 for z) -*/ -AMREX_GPU_DEVICE -int ComputeNBorrowEightFacesExtension(const amrex::Dim3 cell, const amrex::Real S_ext, - const amrex::Array4 &S_red, - const amrex::Array4 &S, - const amrex::Array4 &flag_info_face, - int idim); -#endif //WARPX_SOURCE_EMBEDDEDBOUNDARY_WARPXFACEEXTENSIONS_H diff --git a/Source/Make.WarpX b/Source/Make.WarpX index 567d1f39a..0f73e9578 100644 --- a/Source/Make.WarpX +++ b/Source/Make.WarpX @@ -1,5 +1,4 @@ AMREX_HOME ?= ../../../amrex -PICSAR_HOME ?= ../../../picsar OPENBC_HOME ?= ../../../openbc_poisson USE_MPI = TRUE @@ -106,28 +105,6 @@ ifeq ($(USE_EB),TRUE) USERSuffix := $(USERSuffix).EB endif -ifeq ($(QED),TRUE) - INCLUDE_LOCATIONS += $(PICSAR_HOME)/multi_physics/QED/include - CXXFLAGS += -DWARPX_QED - CFLAGS += -DWARPX_QED - FFLAGS += -DWARPX_QED - F90FLAGS += -DWARPX_QED - USERSuffix := $(USERSuffix).QED - - ifeq ($(QED_TABLE_GEN),TRUE) - BOOST_ROOT ?= NOT_SET - ifneq ($(BOOST_ROOT),NOT_SET) - VPATH_LOCATIONS += $(BOOST_ROOT) - INCLUDE_LOCATIONS += $(BOOST_ROOT) - endif - CXXFLAGS += -DWARPX_QED_TABLE_GEN - CFLAGS += -DWARPX_QED_TABLE_GEN - FFLAGS += -DWARPX_QED_TABLE_GEN - F90FLAGS += -DWARPX_QED_TABLE_GEN - USERSuffix := $(USERSuffix).GENTABLES - endif -endif - ifeq ($(PRECISION),FLOAT) USERSuffix := $(USERSuffix).SP endif @@ -135,15 +112,9 @@ ifeq ($(USE_SINGLE_PRECISION_PARTICLES),TRUE) USERSuffix := $(USERSuffix).pSP endif -ifeq ($(QED),TRUE) - include $(PICSAR_HOME)/src/Make.package -endif - WARPX_GIT_VERSION := $(shell cd $(WARPX_HOME); git describe --abbrev=12 --dirty --always --tags) -PICSAR_GIT_VERSION := $(shell cd $(PICSAR_HOME); git describe --abbrev=12 --dirty --always --tags) -WARPX_DEFINES = -DWARPX_GIT_VERSION=\"$(WARPX_GIT_VERSION)\" -DPICSAR_GIT_VERSION=\"$(PICSAR_GIT_VERSION)\" +WARPX_DEFINES = -DWARPX_GIT_VERSION=\"$(WARPX_GIT_VERSION)\" -DEFINES += -DPICSAR_NO_ASSUMED_ALIGNMENT DEFINES += -DWARPX ifeq ($(USE_OPENBC_POISSON),TRUE) @@ -294,7 +265,7 @@ AMReX_buildInfo.cpp: --CXX_comp_name "$(CXX)" --CXX_flags "$(CXXFLAGS) $(CPPFLAGS) $(includes)" \ --F_comp_name "$(F90)" --F_flags "$(F90FLAGS)" \ --link_flags "$(LDFLAGS)" --libraries "$(libraries)" \ - --GIT ". $(AMREX_HOME) $(PICSAR_HOME)" + --GIT ". $(AMREX_HOME)" vpath WarpXVersion.H $(srcTempDir)/Utils diff --git a/Source/Particles/Collision/README.md b/Source/Particles/Collision/README.md deleted file mode 100644 index 53e5bd525..000000000 --- a/Source/Particles/Collision/README.md +++ /dev/null @@ -1,15 +0,0 @@ -How to add a new collision operator: - -Create a class that inherits from CollisionBase and include the method doCollisions that does the -operation. The constructor should call the CollisionBase constructor with the collision -name argument and read in any input parameters with a prefix of the collision name that are -specific to the operator. - -If the collision is a binary collision, the new class may be a version of the templated -BinaryCollision class. The specific collision physics is in this case defined in a new functor, -acting at the cell level, whose type is the template parameter of the BinaryCollision class. See -for instance BinaryCollision for an example. - -Then modify CollisionHandler.cpp to include the header file of the new class. In its constructor, -add an if block for the input collision type creating an instance of the new class in the -allcollisions vector. diff --git a/Source/Particles/ElementaryProcess/CMakeLists.txt b/Source/Particles/ElementaryProcess/CMakeLists.txt index b85caafbc..da9a6e62b 100644 --- a/Source/Particles/ElementaryProcess/CMakeLists.txt +++ b/Source/Particles/ElementaryProcess/CMakeLists.txt @@ -2,12 +2,3 @@ target_sources(WarpX PRIVATE Ionization.cpp ) - -if(WarpX_QED) - target_sources(WarpX - PRIVATE - QEDPairGeneration.cpp - QEDPhotonEmission.cpp - ) - add_subdirectory(QEDInternals) -endif() diff --git a/Source/Particles/ElementaryProcess/Make.package b/Source/Particles/ElementaryProcess/Make.package index cc0610731..b0e837fe2 100644 --- a/Source/Particles/ElementaryProcess/Make.package +++ b/Source/Particles/ElementaryProcess/Make.package @@ -1,10 +1,3 @@ CEXE_sources += Ionization.cpp -ifeq ($(QED),TRUE) - CEXE_sources += QEDPairGeneration.cpp - CEXE_sources += QEDPhotonEmission.cpp - include $(WARPX_HOME)/Source/Particles/ElementaryProcess/QEDInternals/Make.package - VPATH_LOCATIONS += $(WARPX_HOME)/Source/Particles/ElementaryProcess/QEDInternals/ -endif - VPATH_LOCATIONS += $(WARPX_HOME)/Source/Particles/ElementaryProcess/ diff --git a/Source/Utils/Make.package b/Source/Utils/Make.package index 6fcce9557..1d2e0314c 100644 --- a/Source/Utils/Make.package +++ b/Source/Utils/Make.package @@ -5,7 +5,6 @@ CEXE_sources += WarpXrocfftUtil.cpp CEXE_sources += WarpXVersion.cpp CEXE_sources += WarpXAlgorithmSelection.cpp CEXE_sources += Interpolate.cpp -CEXE_sources += IntervalsParser.cpp CEXE_sources += MPIInitHelpers.cpp CEXE_sources += RelativeCellPosition.cpp CEXE_sources += ParticleUtils.cpp diff --git a/Source/Utils/Physics/atomic_data.txt b/Source/Utils/Physics/atomic_data.txt deleted file mode 100644 index a7d1e47e3..000000000 --- a/Source/Utils/Physics/atomic_data.txt +++ /dev/null @@ -1,5099 +0,0 @@ -# Copyright 2019 Maxence Thevenet -# -# This file is part of WarpX. -# -# License: BSD-3-Clause-LBNL - -# Reference: -# Kramida, A., Ralchenko, Yu., Reader, J., and NIST ASD Team (2014). -# NIST Atomic Spectra Database (ver. 5.2), [Online]. -# Available: http://physics.nist.gov/asd [2017, March 3]. - -# License (from https://www.nist.gov/director/licensing): -# This data was developed by employees of the National Institute of Standards -# and Technology (NIST), an agency of the Federal Government. Pursuant to title -# 17 United States Code Section 105, works of NIST employees are not subject to -# copyright protection in the United States and are considered to be in the -# public domain. -# The data is provided by NIST as a public service and is expressly provided -# "AS IS." NIST MAKES NO WARRANTY OF ANY KIND, EXPRESS, IMPLIED OR STATUTORY, -# INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTY OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT AND DATA ACCURACY. NIST -# does not warrant or make any representations regarding the use of the data or -# the results thereof, including but not limited to the correctness, accuracy, -# reliability or usefulness of the data. NIST SHALL NOT BE LIABLE AND YOU -# HEREBY RELEASE NIST FROM LIABILITY FOR ANY INDIRECT, CONSEQUENTIAL, SPECIAL, -# OR INCIDENTAL DAMAGES (INCLUDING DAMAGES FOR LOSS OF BUSINESS PROFITS, -# BUSINESS INTERRUPTION, LOSS OF BUSINESS INFORMATION, AND THE LIKE), WHETHER -# ARISING IN TORT, CONTRACT, OR OTHERWISE, ARISING FROM OR RELATING TO THE DATA -# (OR THE USE OF OR INABILITY TO USE THIS DATA), EVEN IF NIST HAS BEEN ADVISED -# OF THE POSSIBILITY OF SUCH DAMAGES. -# To the extent that NIST may hold copyright in countries other than the United -# States, you are hereby granted the non-exclusive irrevocable and unconditional -# right to print, publish, prepare derivative works and distribute the NIST -# data, in any medium, or authorize others to do so on your behalf, on a -# royalty-free basis throughout the world. -# You may improve, modify, and create derivative works of the data or any -# portion of the data, and you may copy and distribute such modifications or -# works. Modified works should carry a notice stating that you changed the data -# and should note the date and nature of any such change. Please explicitly -# acknowledge the National Institute of Standards and Technology as the source -# of the data: Data citation recommendations are provided below. -# Permission to use this data is contingent upon your acceptance of the terms -# of this agreement and upon your providing appropriate acknowledgments of -# NIST's creation of the data. - ------------------------------------------------------------------------------ -At. num | Sp. Name | Ion Charge | Ionization Energy (eV) | ---------|---------------|------------|--------------------------------------| - 1 | H I | 0 | (13.59843449) | - 2 | He I | 0 | 24.58738880 | - 2 | He II | +1 | (54.4177650) | - 3 | Li I | 0 | 5.39171495 | - 3 | Li II | +1 | [75.6400964] | - 3 | Li III | +2 | (122.4543581) | - 4 | Be I | 0 | 9.322699 | - 4 | Be II | +1 | 18.21115 | - 4 | Be III | +2 | [153.896203] | - 4 | Be IV | +3 | (217.7185843) | - 5 | B I | 0 | 8.298019 | - 5 | B II | +1 | 25.15483 | - 5 | B III | +2 | 37.93058 | - 5 | B IV | +3 | 259.3715 | - 5 | B V | +4 | (340.226020) | - 6 | C I | 0 | 11.2602880 | - 6 | C II | +1 | 24.383154 | - 6 | C III | +2 | 47.88778 | - 6 | C IV | +3 | 64.49352 | - 6 | C V | +4 | [392.090515] | - 6 | C VI | +5 | (489.993194) | - 7 | N I | 0 | 14.53413 | - 7 | N II | +1 | [29.60125] | - 7 | N III | +2 | [47.4453] | - 7 | N IV | +3 | 77.4735 | - 7 | N V | +4 | 97.8901 | - 7 | N VI | +5 | [552.06732] | - 7 | N VII | +6 | (667.046116) | - 8 | O I | 0 | 13.618055 | - 8 | O II | +1 | 35.12112 | - 8 | O III | +2 | [54.93554] | - 8 | O IV | +3 | 77.41350 | - 8 | O V | +4 | 113.8990 | - 8 | O VI | +5 | [138.1189] | - 8 | O VII | +6 | [739.32682] | - 8 | O VIII | +7 | (871.40988) | - 9 | F I | 0 | 17.42282 | - 9 | F II | +1 | 34.97081 | - 9 | F III | +2 | [62.70798] | - 9 | F IV | +3 | [87.175] | - 9 | F V | +4 | [114.249] | - 9 | F VI | +5 | 157.16311 | - 9 | F VII | +6 | [185.1868] | - 9 | F VIII | +7 | [953.89804] | - 9 | F IX | +8 | (1103.11747) | - 10 | Ne I | 0 | 21.564540 | - 10 | Ne II | +1 | 40.96297 | - 10 | Ne III | +2 | 63.4233 | - 10 | Ne IV | +3 | [97.1900] | - 10 | Ne V | +4 | 126.247 | - 10 | Ne VI | +5 | 157.934 | - 10 | Ne VII | +6 | 207.271 | - 10 | Ne VIII | +7 | [239.0970] | - 10 | Ne IX | +8 | [1195.80783] | - 10 | Ne X | +9 | (1362.19915) | - 11 | Na I | 0 | 5.1390769 | - 11 | Na II | +1 | 47.28636 | - 11 | Na III | +2 | [71.6200] | - 11 | Na IV | +3 | [98.936] | - 11 | Na V | +4 | 138.404 | - 11 | Na VI | +5 | [172.23] | - 11 | Na VII | +6 | [208.504] | - 11 | Na VIII | +7 | [264.192] | - 11 | Na IX | +8 | (299.856) | - 11 | Na X | +9 | (1465.13449) | - 11 | Na XI | +10 | (1648.70218) | - 12 | Mg I | 0 | 7.646236 | - 12 | Mg II | +1 | 15.035271 | - 12 | Mg III | +2 | 80.1436 | - 12 | Mg IV | +3 | [109.2654] | - 12 | Mg V | +4 | [141.33] | - 12 | Mg VI | +5 | [186.76] | - 12 | Mg VII | +6 | [225.02] | - 12 | Mg VIII | +7 | [265.924] | - 12 | Mg IX | +8 | [327.99] | - 12 | Mg X | +9 | (367.489) | - 12 | Mg XI | +10 | (1761.80487) | - 12 | Mg XII | +11 | (1962.66365) | - 13 | Al I | 0 | 5.985769 | - 13 | Al II | +1 | 18.82855 | - 13 | Al III | +2 | 28.447642 | - 13 | Al IV | +3 | 119.9924 | - 13 | Al V | +4 | [153.8252] | - 13 | Al VI | +5 | [190.49] | - 13 | Al VII | +6 | [241.76] | - 13 | Al VIII | +7 | [284.64] | - 13 | Al IX | +8 | [330.21] | - 13 | Al X | +9 | [398.65] | - 13 | Al XI | +10 | (442.005) | - 13 | Al XII | +11 | (2085.97700) | - 13 | Al XIII | +12 | (2304.14005) | - 14 | Si I | 0 | 8.15168 | - 14 | Si II | +1 | 16.34585 | - 14 | Si III | +2 | 33.49300 | - 14 | Si IV | +3 | 45.14179 | - 14 | Si V | +4 | 166.767 | - 14 | Si VI | +5 | [205.279] | - 14 | Si VII | +6 | [246.57] | - 14 | Si VIII | +7 | [303.59] | - 14 | Si IX | +8 | [351.28] | - 14 | Si X | +9 | [401.38] | - 14 | Si XI | +10 | [476.273] | - 14 | Si XII | +11 | (523.415) | - 14 | Si XIII | +12 | (2437.65813) | - 14 | Si XIV | +13 | (2673.17753) | - 15 | P I | 0 | 10.486686 | - 15 | P II | +1 | [19.76949] | - 15 | P III | +2 | 30.20264 | - 15 | P IV | +3 | 51.44387 | - 15 | P V | +4 | 65.02511 | - 15 | P VI | +5 | [220.430] | - 15 | P VII | +6 | [263.57] | - 15 | P VIII | +7 | [309.60] | - 15 | P IX | +8 | [372.31] | - 15 | P X | +9 | [424.40] | - 15 | P XI | +10 | [479.44] | - 15 | P XII | +11 | [560.62] | - 15 | P XIII | +12 | (611.741) | - 15 | P XIV | +13 | (2816.90876) | - 15 | P XV | +14 | (3069.8415) | - 16 | S I | 0 | 10.36001 | - 16 | S II | +1 | 23.33788 | - 16 | S III | +2 | [34.86] | - 16 | S IV | +3 | [47.222] | - 16 | S V | +4 | 72.5945 | - 16 | S VI | +5 | 88.0529 | - 16 | S VII | +6 | 280.954 | - 16 | S VIII | +7 | 328.794 | - 16 | S IX | +8 | [379.84] | - 16 | S X | +9 | [447.7] | - 16 | S XI | +10 | [504.55] | - 16 | S XII | +11 | [564.41] | - 16 | S XIII | +12 | [651.96] | - 16 | S XIV | +13 | (706.994) | - 16 | S XV | +14 | (3223.7807) | - 16 | S XVI | +15 | (3494.1879) | - 17 | Cl I | 0 | 12.967632 | - 17 | Cl II | +1 | 23.81364 | - 17 | Cl III | +2 | [39.80] | - 17 | Cl IV | +3 | [53.24] | - 17 | Cl V | +4 | [67.68] | - 17 | Cl VI | +5 | [96.94] | - 17 | Cl VII | +6 | 114.2013 | - 17 | Cl VIII | +7 | 348.306 | - 17 | Cl IX | +8 | 400.851 | - 17 | Cl X | +9 | [456.7] | - 17 | Cl XI | +10 | [530.0] | - 17 | Cl XII | +11 | [591.58] | - 17 | Cl XIII | +12 | [656.30] | - 17 | Cl XIV | +13 | [750.23] | - 17 | Cl XV | +14 | (809.198) | - 17 | Cl XVI | +15 | (3658.3437) | - 17 | Cl XVII | +16 | (3946.2909) | - 18 | Ar I | 0 | 15.7596117 | - 18 | Ar II | +1 | 27.62967 | - 18 | Ar III | +2 | [40.735] | - 18 | Ar IV | +3 | [59.58] | - 18 | Ar V | +4 | [74.84] | - 18 | Ar VI | +5 | 91.290 | - 18 | Ar VII | +6 | [124.41] | - 18 | Ar VIII | +7 | [143.4567] | - 18 | Ar IX | +8 | [422.60] | - 18 | Ar X | +9 | [479.76] | - 18 | Ar XI | +10 | [540.4] | - 18 | Ar XII | +11 | [619.0] | - 18 | Ar XIII | +12 | [685.5] | - 18 | Ar XIV | +13 | [755.13] | - 18 | Ar XV | +14 | [855.5] | - 18 | Ar XVI | +15 | (918.375) | - 18 | Ar XVII | +16 | (4120.6656) | - 18 | Ar XVIII | +17 | (4426.2228) | - 19 | K I | 0 | 4.34066373 | - 19 | K II | +1 | 31.62500 | - 19 | K III | +2 | [45.8031] | - 19 | K IV | +3 | [60.917] | - 19 | K V | +4 | [82.66] | - 19 | K VI | +5 | [99.44] | - 19 | K VII | +6 | 117.56 | - 19 | K VIII | +7 | [154.87] | - 19 | K IX | +8 | [175.8174] | - 19 | K X | +9 | [503.67] | - 19 | K XI | +10 | [565.6] | - 19 | K XII | +11 | [631.1] | - 19 | K XIII | +12 | [714.7] | - 19 | K XIV | +13 | [786.3] | - 19 | K XV | +14 | [860.92] | - 19 | K XVI | +15 | [967.7] | - 19 | K XVII | +16 | (1034.542) | - 19 | K XVIII | +17 | (4610.87018) | - 19 | K XIX | +18 | (4934.04979) | - 20 | Ca I | 0 | 6.11315547 | - 20 | Ca II | +1 | 11.871719 | - 20 | Ca III | +2 | 50.91316 | - 20 | Ca IV | +3 | [67.2732] | - 20 | Ca V | +4 | [84.34] | - 20 | Ca VI | +5 | [108.78] | - 20 | Ca VII | +6 | [127.21] | - 20 | Ca VIII | +7 | 147.24 | - 20 | Ca IX | +8 | [188.54] | - 20 | Ca X | +9 | [211.275] | - 20 | Ca XI | +10 | [591.60] | - 20 | Ca XII | +11 | [658.2] | - 20 | Ca XIII | +12 | [728.6] | - 20 | Ca XIV | +13 | [817.2] | - 20 | Ca XV | +14 | [894.0] | - 20 | Ca XVI | +15 | [973.7] | - 20 | Ca XVII | +16 | [1086.8] | - 20 | Ca XVIII | +17 | (1157.726) | - 20 | Ca XIX | +18 | (5128.8578) | - 20 | Ca XX | +19 | (5469.86358) | - 21 | Sc I | 0 | 6.56149 | - 21 | Sc II | +1 | 12.79977 | - 21 | Sc III | +2 | 24.756839 | - 21 | Sc IV | +3 | 73.4894 | - 21 | Sc V | +4 | [91.95] | - 21 | Sc VI | +5 | [110.68] | - 21 | Sc VII | +6 | [137.99] | - 21 | Sc VIII | +7 | [158.08] | - 21 | Sc IX | +8 | 180.03 | - 21 | Sc X | +9 | [225.18] | - 21 | Sc XI | +10 | [249.798] | - 21 | Sc XII | +11 | 687.36 | - 21 | Sc XIII | +12 | [757.7] | - 21 | Sc XIV | +13 | [833.2] | - 21 | Sc XV | +14 | [926.5] | - 21 | Sc XVI | +15 | [1008.6] | - 21 | Sc XVII | +16 | [1093.5] | - 21 | Sc XVIII | +17 | [1213.1] | - 21 | Sc XIX | +18 | (1287.957) | - 21 | Sc XX | +19 | (5674.9037) | - 21 | Sc XXI | +20 | (6033.75643) | - 22 | Ti I | 0 | 6.828120 | - 22 | Ti II | +1 | 13.5755 | - 22 | Ti III | +2 | 27.49171 | - 22 | Ti IV | +3 | 43.26717 | - 22 | Ti V | +4 | 99.299 | - 22 | Ti VI | +5 | [119.533] | - 22 | Ti VII | +6 | [140.68] | - 22 | Ti VIII | +7 | [170.5] | - 22 | Ti IX | +8 | [192.1] | - 22 | Ti X | +9 | 215.92 | - 22 | Ti XI | +10 | [265.07] | - 22 | Ti XII | +11 | [291.500] | - 22 | Ti XIII | +12 | 787.67 | - 22 | Ti XIV | +13 | [864.0] | - 22 | Ti XV | +14 | [944.5] | - 22 | Ti XVI | +15 | [1042.5] | - 22 | Ti XVII | +16 | [1130.2] | - 22 | Ti XVIII | +17 | [1220.3] | - 22 | Ti XIX | +18 | [1346.3] | - 22 | Ti XX | +19 | (1425.257) | - 22 | Ti XXI | +20 | (6249.0226) | - 22 | Ti XXII | +21 | (6625.81023) | - 23 | V I | 0 | 6.746187 | - 23 | V II | +1 | 14.634 | - 23 | V III | +2 | 29.3111 | - 23 | V IV | +3 | 46.709 | - 23 | V V | +4 | 65.28165 | - 23 | V VI | +5 | 128.125 | - 23 | V VII | +6 | [150.72] | - 23 | V VIII | +7 | [173.55] | - 23 | V IX | +8 | [206.0] | - 23 | V X | +9 | [230.5] | - 23 | V XI | +10 | [254.8] | - 23 | V XII | +11 | [308.5] | - 23 | V XIII | +12 | [336.274] | - 23 | V XIV | +13 | 896.0 | - 23 | V XV | +14 | [977.2] | - 23 | V XVI | +15 | [1062.9] | - 23 | V XVII | +16 | [1165.2] | - 23 | V XVIII | +17 | [1258.9] | - 23 | V XIX | +18 | [1354.2] | - 23 | V XX | +19 | [1486.7] | - 23 | V XXI | +20 | (1569.656) | - 23 | V XXII | +21 | (6851.3109) | - 23 | V XXIII | +22 | (7246.12624) | - 24 | Cr I | 0 | 6.76651 | - 24 | Cr II | +1 | 16.486305 | - 24 | Cr III | +2 | 30.959 | - 24 | Cr IV | +3 | [49.16] | - 24 | Cr V | +4 | [69.46] | - 24 | Cr VI | +5 | 90.6349 | - 24 | Cr VII | +6 | [160.29] | - 24 | Cr VIII | +7 | [184.76] | - 24 | Cr IX | +8 | [209.5] | - 24 | Cr X | +9 | [244.5] | - 24 | Cr XI | +10 | [270.8] | - 24 | Cr XII | +11 | [296.7] | - 24 | Cr XIII | +12 | [354.7] | - 24 | Cr XIV | +13 | [384.163] | - 24 | Cr XV | +14 | [1011.6] | - 24 | Cr XVI | +15 | [1097.2] | - 24 | Cr XVII | +16 | [1188.0] | - 24 | Cr XVIII | +17 | [1294.8] | - 24 | Cr XIX | +18 | [1394.5] | - 24 | Cr XX | +19 | [1495.1] | - 24 | Cr XXI | +20 | [1634.1] | - 24 | Cr XXII | +21 | (1721.183) | - 24 | Cr XXIII | +22 | (7481.8628) | - 24 | Cr XXIV | +23 | (7894.80289) | - 25 | Mn I | 0 | 7.4340380 | - 25 | Mn II | +1 | 15.63999 | - 25 | Mn III | +2 | 33.668 | - 25 | Mn IV | +3 | [51.21] | - 25 | Mn V | +4 | [72.41] | - 25 | Mn VI | +5 | 95.604 | - 25 | Mn VII | +6 | 119.203 | - 25 | Mn VIII | +7 | [195.5] | - 25 | Mn IX | +8 | [221.89] | - 25 | Mn X | +9 | [248.6] | - 25 | Mn XI | +10 | [286.1] | - 25 | Mn XII | +11 | [314.4] | - 25 | Mn XIII | +12 | [343.6] | - 25 | Mn XIV | +13 | [402.95] | - 25 | Mn XV | +14 | [435.172] | - 25 | Mn XVI | +15 | [1133.7] | - 25 | Mn XVII | +16 | [1224.1] | - 25 | Mn XVIII | +17 | [1320.3] | - 25 | Mn XIX | +18 | [1430.9] | - 25 | Mn XX | +19 | [1537.2] | - 25 | Mn XXI | +20 | [1643.2] | - 25 | Mn XXII | +21 | [1788.7] | - 25 | Mn XXIII | +22 | (1879.873) | - 25 | Mn XXIV | +23 | (8140.7872) | - 25 | Mn XXV | +24 | (8571.95438) | - 26 | Fe I | 0 | 7.9024681 | - 26 | Fe II | +1 | 16.19921 | - 26 | Fe III | +2 | 30.651 | - 26 | Fe IV | +3 | 54.91 | - 26 | Fe V | +4 | [75.00] | - 26 | Fe VI | +5 | 98.985 | - 26 | Fe VII | +6 | 124.9671 | - 26 | Fe VIII | +7 | 151.060 | - 26 | Fe IX | +8 | [233.6] | - 26 | Fe X | +9 | [262.10] | - 26 | Fe XI | +10 | [290.9] | - 26 | Fe XII | +11 | [330.8] | - 26 | Fe XIII | +12 | [361.0] | - 26 | Fe XIV | +13 | [392.2] | - 26 | Fe XV | +14 | 456.2 | - 26 | Fe XVI | +15 | [489.312] | - 26 | Fe XVII | +16 | [1262.7] | - 26 | Fe XVIII | +17 | [1357.8] | - 26 | Fe XIX | +18 | [1460] | - 26 | Fe XX | +19 | 1575.6 | - 26 | Fe XXI | +20 | [1687.0] | - 26 | Fe XXII | +21 | [1798.4] | - 26 | Fe XXIII | +22 | [1950.4] | - 26 | Fe XXIV | +23 | (2045.759) | - 26 | Fe XXV | +24 | (8828.1879) | - 26 | Fe XXVI | +25 | (9277.6886) | - 27 | Co I | 0 | 7.88101 | - 27 | Co II | +1 | 17.0844 | - 27 | Co III | +2 | [33.50] | - 27 | Co IV | +3 | [51.27] | - 27 | Co V | +4 | [79.50] | - 27 | Co VI | +5 | [102.00] | - 27 | Co VII | +6 | [128.9] | - 27 | Co VIII | +7 | [157.8] | - 27 | Co IX | +8 | 186.14 | - 27 | Co X | +9 | [275.4] | - 27 | Co XI | +10 | [305.32] | - 27 | Co XII | +11 | [336.1] | - 27 | Co XIII | +12 | [378.5] | - 27 | Co XIV | +13 | [410.0] | - 27 | Co XV | +14 | [441.1] | - 27 | Co XVI | +15 | [511.96] | - 27 | Co XVII | +16 | [546.588] | - 27 | Co XVIII | +17 | 1397.2 | - 27 | Co XIX | +18 | 1504.5 | - 27 | Co XX | +19 | [1606] | - 27 | Co XXI | +20 | [1724] | - 27 | Co XXII | +21 | [1844.0] | - 27 | Co XXIII | +22 | [1960.8] | - 27 | Co XXIV | +23 | [2119.4] | - 27 | Co XXV | +24 | (2218.876) | - 27 | Co XXVI | +25 | (9544.1833) | - 27 | Co XXVII | +26 | (10012.1297) | - 28 | Ni I | 0 | 7.639878 | - 28 | Ni II | +1 | 18.168838 | - 28 | Ni III | +2 | 35.187 | - 28 | Ni IV | +3 | [54.92] | - 28 | Ni V | +4 | [76.06] | - 28 | Ni VI | +5 | [108.0] | - 28 | Ni VII | +6 | (132.0) | - 28 | Ni VIII | +7 | (162.0) | - 28 | Ni IX | +8 | [193.2] | - 28 | Ni X | +9 | [224.7] | - 28 | Ni XI | +10 | [319.5] | - 28 | Ni XII | +11 | [351.6] | - 28 | Ni XIII | +12 | [384.5] | - 28 | Ni XIV | +13 | [429.3] | - 28 | Ni XV | +14 | [462.8] | - 28 | Ni XVI | +15 | [495.4] | - 28 | Ni XVII | +16 | [571.07] | - 28 | Ni XVIII | +17 | [607.020] | - 28 | Ni XIX | +18 | 1540.1 | - 28 | Ni XX | +19 | [1646] | - 28 | Ni XXI | +20 | [1758] | - 28 | Ni XXII | +21 | [1880] | - 28 | Ni XXIII | +22 | [2008.1] | - 28 | Ni XXIV | +23 | [2130.5] | - 28 | Ni XXV | +24 | [2295.6] | - 28 | Ni XXVI | +25 | (2399.259) | - 28 | Ni XXVII | +26 | (10288.8862) | - 28 | Ni XXVIII | +27 | (10775.3948) | - 29 | Cu I | 0 | 7.726380 | - 29 | Cu II | +1 | 20.29239 | - 29 | Cu III | +2 | 36.841 | - 29 | Cu IV | +3 | [57.38] | - 29 | Cu V | +4 | [79.8] | - 29 | Cu VI | +5 | [103.0] | - 29 | Cu VII | +6 | [139.0] | - 29 | Cu VIII | +7 | (166.0) | - 29 | Cu IX | +8 | (198.0) | - 29 | Cu X | +9 | [232.2] | - 29 | Cu XI | +10 | 265.33 | - 29 | Cu XII | +11 | [367.0] | - 29 | Cu XIII | +12 | [401.0] | - 29 | Cu XIV | +13 | [436.0] | - 29 | Cu XV | +14 | [483.1] | - 29 | Cu XVI | +15 | [518.7] | - 29 | Cu XVII | +16 | [552.8] | - 29 | Cu XVIII | +17 | [632.5] | - 29 | Cu XIX | +18 | [670.608] | - 29 | Cu XX | +19 | [1690.5] | - 29 | Cu XXI | +20 | [1800] | - 29 | Cu XXII | +21 | [1918] | - 29 | Cu XXIII | +22 | [2044] | - 29 | Cu XXIV | +23 | [2179.4] | - 29 | Cu XXV | +24 | [2307.3] | - 29 | Cu XXVI | +25 | [2479.1] | - 29 | Cu XXVII | +26 | (2586.954) | - 29 | Cu XXVIII | +27 | (11062.4313) | - 29 | Cu XXIX | +28 | (11567.613) | - 30 | Zn I | 0 | 9.394197 | - 30 | Zn II | +1 | 17.96439 | - 30 | Zn III | +2 | 39.72330 | - 30 | Zn IV | +3 | 59.573 | - 30 | Zn V | +4 | [82.6] | - 30 | Zn VI | +5 | [108.0] | - 30 | Zn VII | +6 | [133.9] | - 30 | Zn VIII | +7 | [173.9] | - 30 | Zn IX | +8 | [203.0] | - 30 | Zn X | +9 | (238.0) | - 30 | Zn XI | +10 | [274.4] | - 30 | Zn XII | +11 | [310.8] | - 30 | Zn XIII | +12 | [417.6] | - 30 | Zn XIV | +13 | [453.4] | - 30 | Zn XV | +14 | [490.6] | - 30 | Zn XVI | +15 | [540.0] | - 30 | Zn XVII | +16 | [577.8] | - 30 | Zn XVIII | +17 | [613.3] | - 30 | Zn XIX | +18 | [697.5] | - 30 | Zn XX | +19 | [737.366] | - 30 | Zn XXI | +20 | [1846.8] | - 30 | Zn XXII | +21 | [1961] | - 30 | Zn XXIII | +22 | [2085] | - 30 | Zn XXIV | +23 | [2214] | - 30 | Zn XXV | +24 | [2358.0] | - 30 | Zn XXVI | +25 | [2491.5] | - 30 | Zn XXVII | +26 | [2669.9] | - 30 | Zn XXVIII | +27 | (2781.996) | - 30 | Zn XXIX | +28 | (11864.9399) | - 30 | Zn XXX | +29 | (12388.9427) | - 31 | Ga I | 0 | 5.9993020 | - 31 | Ga II | +1 | 20.51514 | - 31 | Ga III | +2 | 30.72576 | - 31 | Ga IV | +3 | 63.241 | - 31 | Ga V | +4 | [86.01] | - 31 | Ga VI | +5 | (112.7) | - 31 | Ga VII | +6 | (140.8) | - 31 | Ga VIII | +7 | (169.9) | - 31 | Ga IX | +8 | (211.0) | - 31 | Ga X | +9 | (244.0) | - 31 | Ga XI | +10 | (280.0) | - 31 | Ga XII | +11 | (319.0) | - 31 | Ga XIII | +12 | (356) | - 31 | Ga XIV | +13 | [471.2] | - 31 | Ga XV | +14 | [508.8] | - 31 | Ga XVI | +15 | [548.3] | - 31 | Ga XVII | +16 | [599.8] | - 31 | Ga XVIII | +17 | [640.0] | - 31 | Ga XIX | +18 | [677] | - 31 | Ga XX | +19 | [765.7] | - 31 | Ga XXI | +20 | [807.308] | - 31 | Ga XXII | +21 | [2010.0] | - 31 | Ga XXIII | +22 | [2129] | - 31 | Ga XXIV | +23 | [2258] | - 31 | Ga XXV | +24 | [2391] | - 31 | Ga XXVI | +25 | [2543.9] | - 31 | Ga XXVII | +26 | [2683.0] | - 31 | Ga XXVIII | +27 | [2868] | - 31 | Ga XXIX | +28 | (2984.426) | - 31 | Ga XXX | +29 | (12696.5575) | - 31 | Ga XXXI | +30 | (13239.5029) | - 32 | Ge I | 0 | 7.899435 | - 32 | Ge II | +1 | 15.934610 | - 32 | Ge III | +2 | 34.0576 | - 32 | Ge IV | +3 | 45.7155 | - 32 | Ge V | +4 | 90.500 | - 32 | Ge VI | +5 | [115.90] | - 32 | Ge VII | +6 | (144.9) | - 32 | Ge VIII | +7 | (176.4) | - 32 | Ge IX | +8 | (212.5) | - 32 | Ge X | +9 | (252.1) | - 32 | Ge XI | +10 | (286) | - 32 | Ge XII | +11 | (326.0) | - 32 | Ge XIII | +12 | (367) | - 32 | Ge XIV | +13 | (407) | - 32 | Ge XV | +14 | [527.9] | - 32 | Ge XVI | +15 | [567.3] | - 32 | Ge XVII | +16 | [609.1] | - 32 | Ge XVIII | +17 | [662.8] | - 32 | Ge XIX | +18 | [706.7] | - 32 | Ge XX | +19 | [744] | - 32 | Ge XXI | +20 | [837.1] | - 32 | Ge XXII | +21 | [880.44] | - 32 | Ge XXIII | +22 | 2178.2 | - 32 | Ge XXIV | +23 | [2304] | - 32 | Ge XXV | +24 | [2439] | - 32 | Ge XXVI | +25 | [2575] | - 32 | Ge XXVII | +26 | [2737.1] | - 32 | Ge XXVIII | +27 | [2881.9] | - 32 | Ge XXIX | +28 | [3074] | - 32 | Ge XXX | +29 | (3194.293) | - 32 | Ge XXXI | +30 | (13557.4208) | - 32 | Ge XXXII | +31 | (14119.4457) | - 33 | As I | 0 | 9.78855 | - 33 | As II | +1 | 18.5892 | - 33 | As III | +2 | 28.349 | - 33 | As IV | +3 | 50.15 | - 33 | As V | +4 | 62.77 | - 33 | As VI | +5 | 121.19 | - 33 | As VII | +6 | (147.0) | - 33 | As VIII | +7 | (180.0) | - 33 | As IX | +8 | (213.0) | - 33 | As X | +9 | (247.0) | - 33 | As XI | +10 | (296.0) | - 33 | As XII | +11 | (333.0) | - 33 | As XIII | +12 | (375) | - 33 | As XIV | +13 | (418) | - 33 | As XV | +14 | (460) | - 33 | As XVI | +15 | [587.6] | - 33 | As XVII | +16 | [628.8] | - 33 | As XVIII | +17 | [672.9] | - 33 | As XIX | +18 | [728.9] | - 33 | As XX | +19 | [774.0] | - 33 | As XXI | +20 | [814] | - 33 | As XXII | +21 | [911.7] | - 33 | As XXIII | +22 | [956.79] | - 33 | As XXIV | +23 | [2356.9] | - 33 | As XXV | +24 | [2486] | - 33 | As XXVI | +25 | [2626] | - 33 | As XXVII | +26 | [2766] | - 33 | As XXVIII | +27 | [2938] | - 33 | As XXIX | +28 | [3088.1] | - 33 | As XXX | +29 | [3287] | - 33 | As XXXI | +30 | (3411.643) | - 33 | As XXXII | +31 | (14447.678) | - 33 | As XXXIII | +32 | (15028.9251) | - 34 | Se I | 0 | 9.752368 | - 34 | Se II | +1 | 21.196 | - 34 | Se III | +2 | 31.697 | - 34 | Se IV | +3 | 42.947 | - 34 | Se V | +4 | [68.30] | - 34 | Se VI | +5 | 81.83 | - 34 | Se VII | +6 | 155.327 | - 34 | Se VIII | +7 | (184.0) | - 34 | Se IX | +8 | (219.0) | - 34 | Se X | +9 | (255.0) | - 34 | Se XI | +10 | (291.0) | - 34 | Se XII | +11 | (342.9) | - 34 | Se XIII | +12 | (383) | - 34 | Se XIV | +13 | (426) | - 34 | Se XV | +14 | (473) | - 34 | Se XVI | +15 | (517) | - 34 | Se XVII | +16 | [650.5] | - 34 | Se XVIII | +17 | [693.4] | - 34 | Se XIX | +18 | [739.8] | - 34 | Se XX | +19 | [798] | - 34 | Se XXI | +20 | [845.8] | - 34 | Se XXII | +21 | [887] | - 34 | Se XXIII | +22 | [989.6] | - 34 | Se XXIV | +23 | [1036.36] | - 34 | Se XXV | +24 | [2540.7] | - 34 | Se XXVI | +25 | [2674] | - 34 | Se XXVII | +26 | [2820] | - 34 | Se XXVIII | +27 | [2964] | - 34 | Se XXIX | +28 | [3146] | - 34 | Se XXX | +29 | [3301.8] | - 34 | Se XXXI | +30 | [3507] | - 34 | Se XXXII | +31 | (3636.526) | - 34 | Se XXXIII | +32 | (15367.491) | - 34 | Se XXXIV | +33 | (15968.1075) | - 35 | Br I | 0 | 11.81381 | - 35 | Br II | +1 | 21.591 | - 35 | Br III | +2 | 34.871 | - 35 | Br IV | +3 | 47.782 | - 35 | Br V | +4 | 59.595 | - 35 | Br VI | +5 | 87.390 | - 35 | Br VII | +6 | [103.03] | - 35 | Br VIII | +7 | 192.61 | - 35 | Br IX | +8 | (224.0) | - 35 | Br X | +9 | (261.0) | - 35 | Br XI | +10 | (301.0) | - 35 | Br XII | +11 | (338.0) | - 35 | Br XIII | +12 | (393) | - 35 | Br XIV | +13 | (436) | - 35 | Br XV | +14 | (481) | - 35 | Br XVI | +15 | (530) | - 35 | Br XVII | +16 | (577) | - 35 | Br XVIII | +17 | [716.3] | - 35 | Br XIX | +18 | [761.0] | - 35 | Br XX | +19 | [809.8] | - 35 | Br XXI | +20 | [870] | - 35 | Br XXII | +21 | [920.8] | - 35 | Br XXIII | +22 | [963] | - 35 | Br XXIV | +23 | [1070.6] | - 35 | Br XXV | +24 | [1119.17] | - 35 | Br XXVI | +25 | [2731.4] | - 35 | Br XXVII | +26 | [2869] | - 35 | Br XXVIII | +27 | [3021] | - 35 | Br XXIX | +28 | [3169] | - 35 | Br XXX | +29 | [3361] | - 35 | Br XXXI | +30 | [3523.1] | - 35 | Br XXXII | +31 | [3735] | - 35 | Br XXXIII | +32 | (3868.986) | - 35 | Br XXXIV | +33 | (16317.011) | - 35 | Br XXXV | +34 | (16937.1497) | - 36 | Kr I | 0 | 13.9996053 | - 36 | Kr II | +1 | 24.35984 | - 36 | Kr III | +2 | 35.838 | - 36 | Kr IV | +3 | 50.85 | - 36 | Kr V | +4 | [64.69] | - 36 | Kr VI | +5 | [78.49] | - 36 | Kr VII | +6 | (109.13) | - 36 | Kr VIII | +7 | 125.802 | - 36 | Kr IX | +8 | [233.0] | - 36 | Kr X | +9 | (268) | - 36 | Kr XI | +10 | (308) | - 36 | Kr XII | +11 | (350) | - 36 | Kr XIII | +12 | (391) | - 36 | Kr XIV | +13 | (446) | - 36 | Kr XV | +14 | (492) | - 36 | Kr XVI | +15 | (540) | - 36 | Kr XVII | +16 | (591) | - 36 | Kr XVIII | +17 | (640) | - 36 | Kr XIX | +18 | [785] | - 36 | Kr XX | +19 | [831.6] | - 36 | Kr XXI | +20 | [882.8] | - 36 | Kr XXII | +21 | [945] | - 36 | Kr XXIII | +22 | [999.0] | - 36 | Kr XXIV | +23 | [1042] | - 36 | Kr XXV | +24 | [1155.0] | - 36 | Kr XXVI | +25 | [1205.23] | - 36 | Kr XXVII | +26 | [2928.9] | - 36 | Kr XXVIII | +27 | [3072] | - 36 | Kr XXIX | +28 | [3228] | - 36 | Kr XXX | +29 | [3380] | - 36 | Kr XXXI | +30 | [3584] | - 36 | Kr XXXII | +31 | [3752.0] | - 36 | Kr XXXIII | +32 | [3971] | - 36 | Kr XXXIV | +33 | (4109.083) | - 36 | Kr XXXV | +34 | (17296.420) | - 36 | Kr XXXVI | +35 | (17936.209) | - 37 | Rb I | 0 | 4.1771280 | - 37 | Rb II | +1 | 27.28954 | - 37 | Rb III | +2 | [39.247] | - 37 | Rb IV | +3 | [52.20] | - 37 | Rb V | +4 | (68.44) | - 37 | Rb VI | +5 | (82.9) | - 37 | Rb VII | +6 | [98.67] | - 37 | Rb VIII | +7 | [132.79] | - 37 | Rb IX | +8 | 150.628 | - 37 | Rb X | +9 | 277.12 | - 37 | Rb XI | +10 | (313.1) | - 37 | Rb XII | +11 | (356.0) | - 37 | Rb XIII | +12 | (400) | - 37 | Rb XIV | +13 | (443) | - 37 | Rb XV | +14 | (502) | - 37 | Rb XVI | +15 | (550) | - 37 | Rb XVII | +16 | (601) | - 37 | Rb XVIII | +17 | (654) | - 37 | Rb XIX | +18 | (706.0) | - 37 | Rb XX | +19 | [857] | - 37 | Rb XXI | +20 | [905.3] | - 37 | Rb XXII | +21 | [958.9] | - 37 | Rb XXIII | +22 | [1024] | - 37 | Rb XXIV | +23 | [1080] | - 37 | Rb XXV | +24 | [1125] | - 37 | Rb XXVI | +25 | [1242.5] | - 37 | Rb XXVII | +26 | [1294.57] | - 37 | Rb XXVIII | +27 | [3133.3] | - 37 | Rb XXIX | +28 | [3281] | - 37 | Rb XXX | +29 | [3443] | - 37 | Rb XXXI | +30 | [3600] | - 37 | Rb XXXII | +31 | [3815] | - 37 | Rb XXXIII | +32 | [3988] | - 37 | Rb XXXIV | +33 | [4214] | - 37 | Rb XXXV | +34 | (4356.865) | - 37 | Rb XXXVI | +35 | (18305.884) | - 37 | Rb XXXVII | +36 | (18965.516) | - 38 | Sr I | 0 | 5.69486745 | - 38 | Sr II | +1 | 11.0302765 | - 38 | Sr III | +2 | 42.88353 | - 38 | Sr IV | +3 | [56.280] | - 38 | Sr V | +4 | [70.7] | - 38 | Sr VI | +5 | (88.0) | - 38 | Sr VII | +6 | (104.0) | - 38 | Sr VIII | +7 | [121.21] | - 38 | Sr IX | +8 | [158.33] | - 38 | Sr X | +9 | 177.30 | - 38 | Sr XI | +10 | 324.07 | - 38 | Sr XII | +11 | (362.0) | - 38 | Sr XIII | +12 | (408) | - 38 | Sr XIV | +13 | (454) | - 38 | Sr XV | +14 | (499) | - 38 | Sr XVI | +15 | (562) | - 38 | Sr XVII | +16 | (612) | - 38 | Sr XVIII | +17 | (665) | - 38 | Sr XIX | +18 | (722) | - 38 | Sr XX | +19 | (774) | - 38 | Sr XXI | +20 | [932] | - 38 | Sr XXII | +21 | [982.1] | - 38 | Sr XXIII | +22 | [1038.0] | - 38 | Sr XXIV | +23 | [1105] | - 38 | Sr XXV | +24 | [1165] | - 38 | Sr XXVI | +25 | [1211] | - 38 | Sr XXVII | +26 | [1333.4] | - 38 | Sr XXVIII | +27 | [1387.19] | - 38 | Sr XXIX | +28 | [3344.7] | - 38 | Sr XXX | +29 | [3497] | - 38 | Sr XXXI | +30 | [3664] | - 38 | Sr XXXII | +31 | [3830] | - 38 | Sr XXXIII | +32 | [4053] | - 38 | Sr XXXIV | +33 | [4232] | - 38 | Sr XXXV | +34 | [4465] | - 38 | Sr XXXVI | +35 | (4612.397) | - 38 | Sr XXXVII | +36 | (19345.588) | - 38 | Sr XXXVIII | +37 | (20025.2673) | - 39 | Y I | 0 | 6.21726 | - 39 | Y II | +1 | 12.2236 | - 39 | Y III | +2 | 20.52441 | - 39 | Y IV | +3 | [60.6072] | - 39 | Y V | +4 | 75.35 | - 39 | Y VI | +5 | [91.390] | - 39 | Y VII | +6 | [110.02] | - 39 | Y VIII | +7 | [128.12] | - 39 | Y IX | +8 | [145.64] | - 39 | Y X | +9 | [185.7] | - 39 | Y XI | +10 | 205.814 | - 39 | Y XII | +11 | 374.04 | - 39 | Y XIII | +12 | (414) | - 39 | Y XIV | +13 | (463) | - 39 | Y XV | +14 | (512) | - 39 | Y XVI | +15 | (559) | - 39 | Y XVII | +16 | (624) | - 39 | Y XVIII | +17 | (677) | - 39 | Y XIX | +18 | (733) | - 39 | Y XX | +19 | (790) | - 39 | Y XXI | +20 | (847) | - 39 | Y XXII | +21 | [1010] | - 39 | Y XXIII | +22 | [1061.9] | - 39 | Y XXIV | +23 | [1120.2] | - 39 | Y XXV | +24 | [1190] | - 39 | Y XXVI | +25 | [1253] | - 39 | Y XXVII | +26 | [1300] | - 39 | Y XXVIII | +27 | [1427.6] | - 39 | Y XXIX | +28 | [1483.12] | - 39 | Y XXX | +29 | [3562.9] | - 39 | Y XXXI | +30 | [3720] | - 39 | Y XXXII | +31 | [3892] | - 39 | Y XXXIII | +32 | [4060] | - 39 | Y XXXIV | +33 | [4299] | - 39 | Y XXXV | +34 | [4484] | - 39 | Y XXXVI | +35 | [4724] | - 39 | Y XXXVII | +36 | (4875.731) | - 39 | Y XXXVIII | +37 | (20415.717) | - 39 | Y XXXIX | +38 | (21115.588) | - 40 | Zr I | 0 | 6.634126 | - 40 | Zr II | +1 | 13.13 | - 40 | Zr III | +2 | [23.170] | - 40 | Zr IV | +3 | 34.41836 | - 40 | Zr V | +4 | [80.348] | - 40 | Zr VI | +5 | [96.38] | - 40 | Zr VII | +6 | (112.0) | - 40 | Zr VIII | +7 | [133.7] | - 40 | Zr IX | +8 | (153.0) | - 40 | Zr X | +9 | [172.02] | - 40 | Zr XI | +10 | [214.9] | - 40 | Zr XII | +11 | 236.252 | - 40 | Zr XIII | +12 | (426) | - 40 | Zr XIV | +13 | (470) | - 40 | Zr XV | +14 | (520) | - 40 | Zr XVI | +15 | (573) | - 40 | Zr XVII | +16 | (622) | - 40 | Zr XVIII | +17 | (690) | - 40 | Zr XIX | +18 | (745) | - 40 | Zr XX | +19 | (803) | - 40 | Zr XXI | +20 | (863) | - 40 | Zr XXII | +21 | (922) | - 40 | Zr XXIII | +22 | [1092] | - 40 | Zr XXIV | +23 | [1144.7] | - 40 | Zr XXV | +24 | [1205.4] | - 40 | Zr XXVI | +25 | [1277] | - 40 | Zr XXVII | +26 | [1344] | - 40 | Zr XXVIII | +27 | [1392] | - 40 | Zr XXIX | +28 | [1525.1] | - 40 | Zr XXX | +29 | [1582.37] | - 40 | Zr XXXI | +30 | [3788.0] | - 40 | Zr XXXII | +31 | [3950] | - 40 | Zr XXXIII | +32 | [4127] | - 40 | Zr XXXIV | +33 | [4300] | - 40 | Zr XXXV | +34 | [4553] | - 40 | Zr XXXVI | +35 | [4744] | - 40 | Zr XXXVII | +36 | [4991] | - 40 | Zr XXXVIII | +37 | (5146.935) | - 40 | Zr XXXIX | +38 | (21516.469) | - 40 | Zr XL | +39 | (22236.712) | - 41 | Nb I | 0 | 6.75885 | - 41 | Nb II | +1 | [14.32] | - 41 | Nb III | +2 | [25.04] | - 41 | Nb IV | +3 | 37.611 | - 41 | Nb V | +4 | 50.5728 | - 41 | Nb VI | +5 | [102.069] | - 41 | Nb VII | +6 | 119.1 | - 41 | Nb VIII | +7 | (136.0) | - 41 | Nb IX | +8 | [159.2] | - 41 | Nb X | +9 | (180.0) | - 41 | Nb XI | +10 | [200.28] | - 41 | Nb XII | +11 | [246.1] | - 41 | Nb XIII | +12 | 268.59 | - 41 | Nb XIV | +13 | [482.5] | - 41 | Nb XV | +14 | (530) | - 41 | Nb XVI | +15 | (581) | - 41 | Nb XVII | +16 | (636) | - 41 | Nb XVIII | +17 | (688) | - 41 | Nb XIX | +18 | (758) | - 41 | Nb XX | +19 | (816) | - 41 | Nb XXI | +20 | (877) | - 41 | Nb XXII | +21 | (940) | - 41 | Nb XXIII | +22 | (1000) | - 41 | Nb XXIV | +23 | [1176] | - 41 | Nb XXV | +24 | [1230.6] | - 41 | Nb XXVI | +25 | [1293.7] | - 41 | Nb XXVII | +26 | [1368] | - 41 | Nb XXVIII | +27 | [1439] | - 41 | Nb XXIX | +28 | [1488] | - 41 | Nb XXX | +29 | [1625.9] | - 41 | Nb XXXI | +30 | [1684.97] | - 41 | Nb XXXII | +31 | [4020.1] | - 41 | Nb XXXIII | +32 | [4187] | - 41 | Nb XXXIV | +33 | [4369] | - 41 | Nb XXXV | +34 | [4540] | - 41 | Nb XXXVI | +35 | [4815] | - 41 | Nb XXXVII | +36 | [5011] | - 41 | Nb XXXVIII | +37 | [5265] | - 41 | Nb XXXIX | +38 | (5426.066) | - 41 | Nb XL | +39 | (22648.046) | - 41 | Nb XLI | +40 | (23388.850) | - 42 | Mo I | 0 | 7.09243 | - 42 | Mo II | +1 | [16.16] | - 42 | Mo III | +2 | [27.13] | - 42 | Mo IV | +3 | [40.33] | - 42 | Mo V | +4 | [54.417] | - 42 | Mo VI | +5 | 68.82704 | - 42 | Mo VII | +6 | [125.638] | - 42 | Mo VIII | +7 | 143.6 | - 42 | Mo IX | +8 | 164.12 | - 42 | Mo X | +9 | [186.3] | - 42 | Mo XI | +10 | (209.3) | - 42 | Mo XII | +11 | [230.28] | - 42 | Mo XIII | +12 | [279.1] | - 42 | Mo XIV | +13 | 302.60 | - 42 | Mo XV | +14 | [544.0] | - 42 | Mo XVI | +15 | (591) | - 42 | Mo XVII | +16 | (646) | - 42 | Mo XVIII | +17 | (702) | - 42 | Mo XIX | +18 | (758) | - 42 | Mo XX | +19 | (829) | - 42 | Mo XXI | +20 | (890) | - 42 | Mo XXII | +21 | (953) | - 42 | Mo XXIII | +22 | (1019) | - 42 | Mo XXIV | +23 | (1082) | - 42 | Mo XXV | +24 | [1263] | - 42 | Mo XXVI | +25 | [1319.6] | - 42 | Mo XXVII | +26 | [1385.1] | - 42 | Mo XXVIII | +27 | [1462] | - 42 | Mo XXIX | +28 | [1537] | - 42 | Mo XXX | +29 | [1587] | - 42 | Mo XXXI | +30 | [1730.1] | - 42 | Mo XXXII | +31 | [1790.93] | - 42 | Mo XXXIII | +32 | [4259.0] | - 42 | Mo XXXIV | +33 | [4430] | - 42 | Mo XXXV | +34 | [4618] | - 42 | Mo XXXVI | +35 | [4800] | - 42 | Mo XXXVII | +36 | [5084] | - 42 | Mo XXXVIII | +37 | [5287] | - 42 | Mo XXXIX | +38 | [5548] | - 42 | Mo XL | +39 | (5713.194) | - 42 | Mo XLI | +40 | (23810.654) | - 42 | Mo XLII | +41 | (24572.213) | - 43 | Tc I | 0 | 7.11938 | - 43 | Tc II | +1 | [15.26] | - 43 | Tc III | +2 | [29.55] | - 43 | Tc IV | +3 | (41.0) | - 43 | Tc V | +4 | (57.0) | - 43 | Tc VI | +5 | (72.0) | - 43 | Tc VII | +6 | (88.0) | - 43 | Tc VIII | +7 | (150.0) | - 43 | Tc IX | +8 | (169.0) | - 43 | Tc X | +9 | (189.9) | - 43 | Tc XI | +10 | (214.0) | - 43 | Tc XII | +11 | (239.0) | - 43 | Tc XIII | +12 | [262.08] | - 43 | Tc XIV | +13 | (311) | - 43 | Tc XV | +14 | [338.55] | - 43 | Tc XVI | +15 | (604) | - 43 | Tc XVII | +16 | (655) | - 43 | Tc XVIII | +17 | (713) | - 43 | Tc XIX | +18 | (773) | - 43 | Tc XX | +19 | (829) | - 43 | Tc XXI | +20 | (904) | - 43 | Tc XXII | +21 | (968) | - 43 | Tc XXIII | +22 | (1032) | - 43 | Tc XXIV | +23 | (1102) | - 43 | Tc XXV | +24 | (1166) | - 43 | Tc XXVI | +25 | [1354] | - 43 | Tc XXVII | +26 | [1411.6] | - 43 | Tc XXVIII | +27 | [1479.5] | - 43 | Tc XXIX | +28 | [1559] | - 43 | Tc XXX | +29 | [1638] | - 43 | Tc XXXI | +30 | [1689] | - 43 | Tc XXXII | +31 | [1838] | - 43 | Tc XXXIII | +32 | [1900.28] | - 43 | Tc XXXIV | +33 | [4505.0] | - 43 | Tc XXXV | +34 | [4681] | - 43 | Tc XXXVI | +35 | [4874] | - 43 | Tc XXXVII | +36 | [5060] | - 43 | Tc XXXVIII | +37 | [5361] | - 43 | Tc XXXIX | +38 | [5570] | - 43 | Tc XL | +39 | [5838] | - 43 | Tc XLI | +40 | (6008.391) | - 43 | Tc XLII | +41 | (25004.533) | - 43 | Tc XLIII | +42 | (25787.047) | - 44 | Ru I | 0 | 7.36050 | - 44 | Ru II | +1 | [16.76] | - 44 | Ru III | +2 | [28.47] | - 44 | Ru IV | +3 | (45.0) | - 44 | Ru V | +4 | (59.0) | - 44 | Ru VI | +5 | (76.0) | - 44 | Ru VII | +6 | (93.0) | - 44 | Ru VIII | +7 | (110.0) | - 44 | Ru IX | +8 | [178.41] | - 44 | Ru X | +9 | (198.0) | - 44 | Ru XI | +10 | (219.9) | - 44 | Ru XII | +11 | (245.0) | - 44 | Ru XIII | +12 | (271) | - 44 | Ru XIV | +13 | [295.90] | - 44 | Ru XV | +14 | (348) | - 44 | Ru XVI | +15 | 376.25 | - 44 | Ru XVII | +16 | (670) | - 44 | Ru XVIII | +17 | (723) | - 44 | Ru XIX | +18 | (784) | - 44 | Ru XX | +19 | (845) | - 44 | Ru XXI | +20 | (905) | - 44 | Ru XXII | +21 | (981) | - 44 | Ru XXIII | +22 | (1048) | - 44 | Ru XXIV | +23 | (1115) | - 44 | Ru XXV | +24 | (1187) | - 44 | Ru XXVI | +25 | (1253) | - 44 | Ru XXVII | +26 | [1447] | - 44 | Ru XXVIII | +27 | [1506.7] | - 44 | Ru XXIX | +28 | [1577.0] | - 44 | Ru XXX | +29 | [1659] | - 44 | Ru XXXI | +30 | [1743] | - 44 | Ru XXXII | +31 | [1794] | - 44 | Ru XXXIII | +32 | [1949] | - 44 | Ru XXXIV | +33 | [2013.04] | - 44 | Ru XXXV | +34 | [4758] | - 44 | Ru XXXVI | +35 | [4939] | - 44 | Ru XXXVII | +36 | [5136] | - 44 | Ru XXXVIII | +37 | [5330] | - 44 | Ru XXXIX | +38 | [5647] | - 44 | Ru XL | +39 | [5861] | - 44 | Ru XLI | +40 | [6137] | - 44 | Ru XLII | +41 | (6311.721) | - 44 | Ru XLIII | +42 | (26229.895) | - 44 | Ru XLIV | +43 | (27033.564) | - 45 | Rh I | 0 | 7.45890 | - 45 | Rh II | +1 | [18.08] | - 45 | Rh III | +2 | [31.06] | - 45 | Rh IV | +3 | (42.0) | - 45 | Rh V | +4 | (63.0) | - 45 | Rh VI | +5 | (80.0) | - 45 | Rh VII | +6 | (97.0) | - 45 | Rh VIII | +7 | (115.1) | - 45 | Rh IX | +8 | (135.0) | - 45 | Rh X | +9 | [207.51] | - 45 | Rh XI | +10 | (228.0) | - 45 | Rh XII | +11 | (252.1) | - 45 | Rh XIII | +12 | (277) | - 45 | Rh XIV | +13 | (306) | - 45 | Rh XV | +14 | [331.58] | - 45 | Rh XVI | +15 | (389.3) | - 45 | Rh XVII | +16 | [415.97] | - 45 | Rh XVIII | +17 | (739) | - 45 | Rh XIX | +18 | (794) | - 45 | Rh XX | +19 | (857) | - 45 | Rh XXI | +20 | (921) | - 45 | Rh XXII | +21 | (984) | - 45 | Rh XXIII | +22 | (1061) | - 45 | Rh XXIV | +23 | (1131) | - 45 | Rh XXV | +24 | (1202) | - 45 | Rh XXVI | +25 | (1274) | - 45 | Rh XXVII | +26 | (1344) | - 45 | Rh XXVIII | +27 | [1544] | - 45 | Rh XXIX | +28 | [1604.9] | - 45 | Rh XXX | +29 | [1677.6] | - 45 | Rh XXXI | +30 | [1763] | - 45 | Rh XXXII | +31 | [1851] | - 45 | Rh XXXIII | +32 | [1903] | - 45 | Rh XXXIV | +33 | [2063] | - 45 | Rh XXXV | +34 | [2129.22] | - 45 | Rh XXXVI | +35 | [5018] | - 45 | Rh XXXVII | +36 | [5203] | - 45 | Rh XXXVIII | +37 | [5406] | - 45 | Rh XXXIX | +38 | [5600] | - 45 | Rh XL | +39 | [5940] | - 45 | Rh XLI | +40 | [6161] | - 45 | Rh XLII | +41 | [6444] | - 45 | Rh XLIII | +42 | (6623.262) | - 45 | Rh XLIV | +43 | (27486.983) | - 45 | Rh XLV | +44 | (28312.031) | - 46 | Pd I | 0 | 8.336839 | - 46 | Pd II | +1 | [19.43] | - 46 | Pd III | +2 | [32.93] | - 46 | Pd IV | +3 | (46.0) | - 46 | Pd V | +4 | (61.0) | - 46 | Pd VI | +5 | (84.1) | - 46 | Pd VII | +6 | (101.0) | - 46 | Pd VIII | +7 | (120.0) | - 46 | Pd IX | +8 | (141.0) | - 46 | Pd X | +9 | (159.9) | - 46 | Pd XI | +10 | [238.57] | - 46 | Pd XII | +11 | (260.0) | - 46 | Pd XIII | +12 | (286) | - 46 | Pd XIV | +13 | (311) | - 46 | Pd XV | +14 | (342) | - 46 | Pd XVI | +15 | [369.10] | - 46 | Pd XVII | +16 | (427) | - 46 | Pd XVIII | +17 | [457.50] | - 46 | Pd XIX | +18 | (810) | - 46 | Pd XX | +19 | (869) | - 46 | Pd XXI | +20 | (933) | - 46 | Pd XXII | +21 | (1000) | - 46 | Pd XXIII | +22 | (1065) | - 46 | Pd XXIV | +23 | (1145) | - 46 | Pd XXV | +24 | (1218) | - 46 | Pd XXVI | +25 | (1290) | - 46 | Pd XXVII | +26 | (1366) | - 46 | Pd XXVIII | +27 | (1438) | - 46 | Pd XXIX | +28 | [1644] | - 46 | Pd XXX | +29 | [1706.2] | - 46 | Pd XXXI | +30 | [1781.3] | - 46 | Pd XXXII | +31 | [1869] | - 46 | Pd XXXIII | +32 | [1962] | - 46 | Pd XXXIV | +33 | [2016] | - 46 | Pd XXXV | +34 | [2181] | - 46 | Pd XXXVI | +35 | [2248.87] | - 46 | Pd XXXVII | +36 | [5284] | - 46 | Pd XXXVIII | +37 | [5475] | - 46 | Pd XXXIX | +38 | [5683] | - 46 | Pd XL | +39 | [5880] | - 46 | Pd XLI | +40 | [6242] | - 46 | Pd XLII | +41 | [6469] | - 46 | Pd XLIII | +42 | [6759] | - 46 | Pd XLIV | +43 | (6943.097) | - 46 | Pd XLV | +44 | (28776.034) | - 46 | Pd XLVI | +45 | (29622.678) | - 47 | Ag I | 0 | 7.576234 | - 47 | Ag II | +1 | 21.4844 | - 47 | Ag III | +2 | [34.8] | - 47 | Ag IV | +3 | (49.0) | - 47 | Ag V | +4 | (65.0) | - 47 | Ag VI | +5 | (82.0) | - 47 | Ag VII | +6 | (106.0) | - 47 | Ag VIII | +7 | (125.0) | - 47 | Ag IX | +8 | (145.1) | - 47 | Ag X | +9 | (167.0) | - 47 | Ag XI | +10 | (188.0) | - 47 | Ag XII | +11 | [271.46] | - 47 | Ag XIII | +12 | (294) | - 47 | Ag XIV | +13 | (321) | - 47 | Ag XV | +14 | (347) | - 47 | Ag XVI | +15 | (381) | - 47 | Ag XVII | +16 | [408.43] | - 47 | Ag XVIII | +17 | (469) | - 47 | Ag XIX | +18 | [500.87] | - 47 | Ag XX | +19 | (885) | - 47 | Ag XXI | +20 | (946) | - 47 | Ag XXII | +21 | (1013) | - 47 | Ag XXIII | +22 | (1082) | - 47 | Ag XXIV | +23 | (1149) | - 47 | Ag XXV | +24 | (1231) | - 47 | Ag XXVI | +25 | (1308) | - 47 | Ag XXVII | +26 | (1382) | - 47 | Ag XXVIII | +27 | (1460) | - 47 | Ag XXIX | +28 | (1535) | - 47 | Ag XXX | +29 | [1747] | - 47 | Ag XXXI | +30 | [1810.5] | - 47 | Ag XXXII | +31 | [1888.0] | - 47 | Ag XXXIII | +32 | [1979] | - 47 | Ag XXXIV | +33 | [2077] | - 47 | Ag XXXV | +34 | [2131] | - 47 | Ag XXXVI | +35 | [2302] | - 47 | Ag XXXVII | +36 | [2371.99] | - 47 | Ag XXXVIII | +37 | [5558] | - 47 | Ag XXXIX | +38 | [5753] | - 47 | Ag XL | +39 | [5966] | - 47 | Ag XLI | +40 | [6170] | - 47 | Ag XLII | +41 | [6551] | - 47 | Ag XLIII | +42 | [6785] | - 47 | Ag XLIV | +43 | [7082] | - 47 | Ag XLV | +44 | (7271.298) | - 47 | Ag XLVI | +45 | (30097.318) | - 47 | Ag XLVII | +46 | (30965.780) | - 48 | Cd I | 0 | 8.993820 | - 48 | Cd II | +1 | 16.908313 | - 48 | Cd III | +2 | 37.468 | - 48 | Cd IV | +3 | (51.0) | - 48 | Cd V | +4 | (67.9) | - 48 | Cd VI | +5 | (87.0) | - 48 | Cd VII | +6 | (105.0) | - 48 | Cd VIII | +7 | (130.1) | - 48 | Cd IX | +8 | (150.0) | - 48 | Cd X | +9 | (173.0) | - 48 | Cd XI | +10 | (195.0) | - 48 | Cd XII | +11 | (218.0) | - 48 | Cd XIII | +12 | (305) | - 48 | Cd XIV | +13 | (329) | - 48 | Cd XV | +14 | (358) | - 48 | Cd XVI | +15 | (385) | - 48 | Cd XVII | +16 | (421) | - 48 | Cd XVIII | +17 | [452.6] | - 48 | Cd XIX | +18 | (513) | - 48 | Cd XX | +19 | [546.19] | - 48 | Cd XXI | +20 | (963) | - 48 | Cd XXII | +21 | (1026) | - 48 | Cd XXIII | +22 | (1095) | - 48 | Cd XXIV | +23 | (1167) | - 48 | Cd XXV | +24 | (1237) | - 48 | Cd XXVI | +25 | (1320) | - 48 | Cd XXVII | +26 | (1401) | - 48 | Cd XXVIII | +27 | (1477) | - 48 | Cd XXIX | +28 | (1558) | - 48 | Cd XXX | +29 | (1635) | - 48 | Cd XXXI | +30 | [1852] | - 48 | Cd XXXII | +31 | [1917.9] | - 48 | Cd XXXIII | +32 | [1998] | - 48 | Cd XXXIV | +33 | [2091] | - 48 | Cd XXXV | +34 | [2195] | - 48 | Cd XXXVI | +35 | [2250] | - 48 | Cd XXXVII | +36 | [2427] | - 48 | Cd XXXVIII | +37 | [2498.62] | - 48 | Cd XXXIX | +38 | [5839] | - 48 | Cd XL | +39 | [6039] | - 48 | Cd XLI | +40 | [6257] | - 48 | Cd XLII | +41 | [6460] | - 48 | Cd XLIII | +42 | [6869] | - 48 | Cd XLIV | +43 | [7109] | - 48 | Cd XLV | +44 | [7414] | - 48 | Cd XLVI | +45 | (7607.95) | - 48 | Cd XLVII | +46 | (31451.062) | - 48 | Cd XLVIII | +47 | (32341.587) | - 49 | In I | 0 | 5.7863558 | - 49 | In II | +1 | 18.87041 | - 49 | In III | +2 | 28.04415 | - 49 | In IV | +3 | 55.45 | - 49 | In V | +4 | [69.3] | - 49 | In VI | +5 | (90.0) | - 49 | In VII | +6 | (109.0) | - 49 | In VIII | +7 | (130.1) | - 49 | In IX | +8 | (156.0) | - 49 | In X | +9 | (178.0) | - 49 | In XI | +10 | (201.0) | - 49 | In XII | +11 | (226.0) | - 49 | In XIII | +12 | (249) | - 49 | In XIV | +13 | (341) | - 49 | In XV | +14 | (368) | - 49 | In XVI | +15 | (396) | - 49 | In XVII | +16 | (425) | - 49 | In XVIII | +17 | (462) | - 49 | In XIX | +18 | [497.1] | - 49 | In XX | +19 | (560) | - 49 | In XXI | +20 | [593.38] | - 49 | In XXII | +21 | (1043) | - 49 | In XXIII | +22 | (1109) | - 49 | In XXIV | +23 | (1181) | - 49 | In XXV | +24 | (1255) | - 49 | In XXVI | +25 | (1328) | - 49 | In XXVII | +26 | (1413) | - 49 | In XXVIII | +27 | (1496) | - 49 | In XXIX | +28 | (1575) | - 49 | In XXX | +29 | (1659) | - 49 | In XXXI | +30 | (1738) | - 49 | In XXXII | +31 | [1961] | - 49 | In XXXIII | +32 | [2028.5] | - 49 | In XXXIV | +33 | [2111] | - 49 | In XXXV | +34 | [2207] | - 49 | In XXXVI | +35 | [2317] | - 49 | In XXXVII | +36 | [2373] | - 49 | In XXXVIII | +37 | [2555] | - 49 | In XXXIX | +38 | [2628.77] | - 49 | In XL | +39 | [6126] | - 49 | In XLI | +40 | [6331] | - 49 | In XLII | +41 | [6554] | - 49 | In XLIII | +42 | [6770] | - 49 | In XLIV | +43 | [7196] | - 49 | In XLV | +44 | [7442] | - 49 | In XLVI | +45 | [7754] | - 49 | In XLVII | +46 | (7953.14) | - 49 | In XLVIII | +47 | (32837.592) | - 49 | In XLIX | +48 | (33750.404) | - 50 | Sn I | 0 | 7.343918 | - 50 | Sn II | +1 | 14.63307 | - 50 | Sn III | +2 | 30.506 | - 50 | Sn IV | +3 | 40.74 | - 50 | Sn V | +4 | 77.03 | - 50 | Sn VI | +5 | (94.0) | - 50 | Sn VII | +6 | (112.9) | - 50 | Sn VIII | +7 | (135.0) | - 50 | Sn IX | +8 | (156.0) | - 50 | Sn X | +9 | (184.0) | - 50 | Sn XI | +10 | (208.0) | - 50 | Sn XII | +11 | (232.0) | - 50 | Sn XIII | +12 | (258) | - 50 | Sn XIV | +13 | (282) | - 50 | Sn XV | +14 | (379) | - 50 | Sn XVI | +15 | (407) | - 50 | Sn XVII | +16 | (437) | - 50 | Sn XVIII | +17 | (466) | - 50 | Sn XIX | +18 | (506) | - 50 | Sn XX | +19 | (537) | - 50 | Sn XXI | +20 | (608) | - 50 | Sn XXII | +21 | [642.35] | - 50 | Sn XXIII | +22 | (1127) | - 50 | Sn XXIV | +23 | (1195) | - 50 | Sn XXV | +24 | (1269) | - 50 | Sn XXVI | +25 | (1347) | - 50 | Sn XXVII | +26 | (1421) | - 50 | Sn XXVIII | +27 | (1508) | - 50 | Sn XXIX | +28 | (1596) | - 50 | Sn XXX | +29 | (1676) | - 50 | Sn XXXI | +30 | (1763) | - 50 | Sn XXXII | +31 | (1844) | - 50 | Sn XXXIII | +32 | [2074] | - 50 | Sn XXXIV | +33 | [2142.1] | - 50 | Sn XXXV | +34 | [2227] | - 50 | Sn XXXVI | +35 | [2326] | - 50 | Sn XXXVII | +36 | [2443] | - 50 | Sn XXXVIII | +37 | [2499] | - 50 | Sn XXXIX | +38 | [2687] | - 50 | Sn XL | +39 | [2762.49] | - 50 | Sn XLI | +40 | [6421] | - 50 | Sn XLII | +41 | [6631] | - 50 | Sn XLIII | +42 | [6859] | - 50 | Sn XLIV | +43 | [7080] | - 50 | Sn XLV | +44 | [7531] | - 50 | Sn XLVI | +45 | (7790) | - 50 | Sn XLVII | +46 | [8103] | - 50 | Sn XLVIII | +47 | (8306.95) | - 50 | Sn XLIX | +48 | (34257.143) | - 50 | Sn L | +49 | (35192.501) | - 51 | Sb I | 0 | 8.608389 | - 51 | Sb II | +1 | 16.626 | - 51 | Sb III | +2 | 25.3235 | - 51 | Sb IV | +3 | 43.804 | - 51 | Sb V | +4 | [55.00] | - 51 | Sb VI | +5 | 99.51 | - 51 | Sb VII | +6 | (117.0) | - 51 | Sb VIII | +7 | (139.0) | - 51 | Sb IX | +8 | (162.0) | - 51 | Sb X | +9 | (185.0) | - 51 | Sb XI | +10 | (214.0) | - 51 | Sb XII | +11 | (238.0) | - 51 | Sb XIII | +12 | (265) | - 51 | Sb XIV | +13 | (292) | - 51 | Sb XV | +14 | (317) | - 51 | Sb XVI | +15 | (420) | - 51 | Sb XVII | +16 | (447) | - 51 | Sb XVIII | +17 | (479) | - 51 | Sb XIX | +18 | (510) | - 51 | Sb XX | +19 | (552) | - 51 | Sb XXI | +20 | (584) | - 51 | Sb XXII | +21 | (657) | - 51 | Sb XXIII | +22 | [693.26] | - 51 | Sb XXIV | +23 | (1214) | - 51 | Sb XXV | +24 | (1285) | - 51 | Sb XXVI | +25 | (1360) | - 51 | Sb XXVII | +26 | (1441) | - 51 | Sb XXVIII | +27 | (1518) | - 51 | Sb XXIX | +28 | (1606) | - 51 | Sb XXX | +29 | (1698) | - 51 | Sb XXXI | +30 | (1781) | - 51 | Sb XXXII | +31 | (1869) | - 51 | Sb XXXIII | +32 | (1954) | - 51 | Sb XXXIV | +33 | (2190) | - 51 | Sb XXXV | +34 | (2266) | - 51 | Sb XXXVI | +35 | (2349) | - 51 | Sb XXXVII | +36 | (2428) | - 51 | Sb XXXVIII | +37 | (2567) | - 51 | Sb XXXIX | +38 | (2654) | - 51 | Sb XL | +39 | (2815) | - 51 | Sb XLI | +40 | [2900.0] | - 51 | Sb XLII | +41 | (6714) | - 51 | Sb XLIII | +42 | (6929) | - 51 | Sb XLIV | +43 | (7167) | - 51 | Sb XLV | +44 | (7390) | - 51 | Sb XLVI | +45 | (7887) | - 51 | Sb XLVII | +46 | (8140) | - 51 | Sb XLVIII | +47 | (8455) | - 51 | Sb XLIX | +48 | (8669.48) | - 51 | Sb L | +49 | (35710.028) | - 51 | Sb LI | +50 | (36668.183) | - 52 | Te I | 0 | 9.009808 | - 52 | Te II | +1 | 18.6 | - 52 | Te III | +2 | 27.84 | - 52 | Te IV | +3 | 37.4155 | - 52 | Te V | +4 | 59.3 | - 52 | Te VI | +5 | (69.1) | - 52 | Te VII | +6 | 124.20 | - 52 | Te VIII | +7 | (143.0) | - 52 | Te IX | +8 | (167.0) | - 52 | Te X | +9 | (191.1) | - 52 | Te XI | +10 | (215.0) | - 52 | Te XII | +11 | (245.0) | - 52 | Te XIII | +12 | (272) | - 52 | Te XIV | +13 | (299) | - 52 | Te XV | +14 | (328) | - 52 | Te XVI | +15 | (354) | - 52 | Te XVII | +16 | (461) | - 52 | Te XVIII | +17 | (491) | - 52 | Te XIX | +18 | (522) | - 52 | Te XX | +19 | (555) | - 52 | Te XXI | +20 | (599) | - 52 | Te XXII | +21 | (633) | - 52 | Te XXIII | +22 | (709) | - 52 | Te XXIV | +23 | [746.12] | - 52 | Te XXV | +24 | (1304) | - 52 | Te XXVI | +25 | (1377) | - 52 | Te XXVII | +26 | (1455) | - 52 | Te XXVIII | +27 | (1538) | - 52 | Te XXIX | +28 | (1618) | - 52 | Te XXX | +29 | (1707) | - 52 | Te XXXI | +30 | (1803) | - 52 | Te XXXII | +31 | (1889) | - 52 | Te XXXIII | +32 | (1979) | - 52 | Te XXXIV | +33 | (2066) | - 52 | Te XXXV | +34 | (2309) | - 52 | Te XXXVI | +35 | (2386) | - 52 | Te XXXVII | +36 | (2472) | - 52 | Te XXXVIII | +37 | (2552) | - 52 | Te XXXIX | +38 | (2700) | - 52 | Te XL | +39 | (2788) | - 52 | Te XLI | +40 | (2954) | - 52 | Te XLII | +41 | [3041.0] | - 52 | Te XLIII | +42 | (7022) | - 52 | Te XLIV | +43 | (7243) | - 52 | Te XLV | +44 | (7485) | - 52 | Te XLVI | +45 | (7714) | - 52 | Te XLVII | +46 | (8240) | - 52 | Te XLVIII | +47 | (8499) | - 52 | Te XLIX | +48 | (8821) | - 52 | Te L | +49 | (9040.83) | - 52 | Te LI | +50 | (37196.522) | - 52 | Te LII | +51 | (38177.740) | - 53 | I I | 0 | 10.451260 | - 53 | I II | +1 | 19.13126 | - 53 | I III | +2 | 29.570 | - 53 | I IV | +3 | 40.357 | - 53 | I V | +4 | 51.52 | - 53 | I VI | +5 | [74.4] | - 53 | I VII | +6 | [87.61] | - 53 | I VIII | +7 | 150.81 | - 53 | I IX | +8 | (171.0) | - 53 | I X | +9 | (197.0) | - 53 | I XI | +10 | (220.9) | - 53 | I XII | +11 | (247.0) | - 53 | I XIII | +12 | (279) | - 53 | I XIV | +13 | (307) | - 53 | I XV | +14 | (335) | - 53 | I XVI | +15 | (365) | - 53 | I XVII | +16 | (393) | - 53 | I XVIII | +17 | (505) | - 53 | I XIX | +18 | (535) | - 53 | I XX | +19 | (569) | - 53 | I XXI | +20 | (601) | - 53 | I XXII | +21 | (649) | - 53 | I XXIII | +22 | (683) | - 53 | I XXIV | +23 | (762) | - 53 | I XXV | +24 | [800.8] | - 53 | I XXVI | +25 | (1397) | - 53 | I XXVII | +26 | (1472) | - 53 | I XXVIII | +27 | (1553) | - 53 | I XXIX | +28 | (1639) | - 53 | I XXX | +29 | (1720) | - 53 | I XXXI | +30 | (1812) | - 53 | I XXXII | +31 | (1911) | - 53 | I XXXIII | +32 | (1999) | - 53 | I XXXIV | +33 | (2093) | - 53 | I XXXV | +34 | (2181) | - 53 | I XXXVI | +35 | (2431) | - 53 | I XXXVII | +36 | (2510) | - 53 | I XXXVIII | +37 | (2598) | - 53 | I XXXIX | +38 | (2680) | - 53 | I XL | +39 | (2836) | - 53 | I XLI | +40 | (2926) | - 53 | I XLII | +41 | (3096) | - 53 | I XLIII | +42 | [3185.5] | - 53 | I XLIV | +43 | (7337) | - 53 | I XLV | +44 | (7563) | - 53 | I XLVI | +45 | (7811) | - 53 | I XLVII | +46 | (8044) | - 53 | I XLVIII | +47 | (8601) | - 53 | I XLIX | +48 | (8867) | - 53 | I L | +49 | (9196) | - 53 | I LI | +50 | (9421.10) | - 53 | I LII | +51 | (38716.996) | - 53 | I LIII | +52 | (39721.549) | - 54 | Xe I | 0 | 12.1298437 | - 54 | Xe II | +1 | [20.975] | - 54 | Xe III | +2 | [31.05] | - 54 | Xe IV | +3 | 42.20 | - 54 | Xe V | +4 | [54.1] | - 54 | Xe VI | +5 | 66.703 | - 54 | Xe VII | +6 | [91.6] | - 54 | Xe VIII | +7 | 105.9778 | - 54 | Xe IX | +8 | 179.84 | - 54 | Xe X | +9 | (202.0) | - 54 | Xe XI | +10 | [229.02] | - 54 | Xe XII | +11 | (255.0) | - 54 | Xe XIII | +12 | (281) | - 54 | Xe XIV | +13 | (314) | - 54 | Xe XV | +14 | (343) | - 54 | Xe XVI | +15 | (374) | - 54 | Xe XVII | +16 | (404) | - 54 | Xe XVIII | +17 | (434) | - 54 | Xe XIX | +18 | (549) | - 54 | Xe XX | +19 | (582) | - 54 | Xe XXI | +20 | (616) | - 54 | Xe XXII | +21 | (650) | - 54 | Xe XXIII | +22 | (700) | - 54 | Xe XXIV | +23 | (736) | - 54 | Xe XXV | +24 | (818) | - 54 | Xe XXVI | +25 | [857.0] | - 54 | Xe XXVII | +26 | (1493) | - 54 | Xe XXVIII | +27 | (1571) | - 54 | Xe XXIX | +28 | (1653) | - 54 | Xe XXX | +29 | (1742) | - 54 | Xe XXXI | +30 | (1826) | - 54 | Xe XXXII | +31 | (1919) | - 54 | Xe XXXIII | +32 | (2023) | - 54 | Xe XXXIV | +33 | (2113) | - 54 | Xe XXXV | +34 | (2209) | - 54 | Xe XXXVI | +35 | (2300) | - 54 | Xe XXXVII | +36 | (2556) | - 54 | Xe XXXVIII | +37 | (2637) | - 54 | Xe XXXIX | +38 | (2726) | - 54 | Xe XL | +39 | (2811) | - 54 | Xe XLI | +40 | (2975) | - 54 | Xe XLII | +41 | (3068) | - 54 | Xe XLIII | +42 | (3243) | - 54 | Xe XLIV | +43 | [3333.8] | - 54 | Xe XLV | +44 | (7660) | - 54 | Xe XLVI | +45 | (7889) | - 54 | Xe XLVII | +46 | (8144) | - 54 | Xe XLVIII | +47 | (8382) | - 54 | Xe XLIX | +48 | (8971) | - 54 | Xe L | +49 | (9243) | - 54 | Xe LI | +50 | (9581) | - 54 | Xe LII | +51 | (9810.37) | - 54 | Xe LIII | +52 | (40271.724) | - 54 | Xe LIV | +53 | (41299.892) | - 55 | Cs I | 0 | 3.89390572743 | - 55 | Cs II | +1 | 23.15745 | - 55 | Cs III | +2 | [33.195] | - 55 | Cs IV | +3 | (43.0) | - 55 | Cs V | +4 | (56.0) | - 55 | Cs VI | +5 | (69.1) | - 55 | Cs VII | +6 | (82.9) | - 55 | Cs VIII | +7 | [110.1] | - 55 | Cs IX | +8 | [125.61] | - 55 | Cs X | +9 | 213.3 | - 55 | Cs XI | +10 | (233.0) | - 55 | Cs XII | +11 | (261.0) | - 55 | Cs XIII | +12 | (289) | - 55 | Cs XIV | +13 | (316) | - 55 | Cs XV | +14 | (352) | - 55 | Cs XVI | +15 | (382) | - 55 | Cs XVII | +16 | (413) | - 55 | Cs XVIII | +17 | (445) | - 55 | Cs XIX | +18 | (476) | - 55 | Cs XX | +19 | (597) | - 55 | Cs XXI | +20 | (629) | - 55 | Cs XXII | +21 | (666) | - 55 | Cs XXIII | +22 | (700) | - 55 | Cs XXIV | +23 | (753) | - 55 | Cs XXV | +24 | (791) | - 55 | Cs XXVI | +25 | (875) | - 55 | Cs XXVII | +26 | [916.1] | - 55 | Cs XXVIII | +27 | (1592) | - 55 | Cs XXIX | +28 | (1672) | - 55 | Cs XXX | +29 | (1757) | - 55 | Cs XXXI | +30 | (1848) | - 55 | Cs XXXII | +31 | (1936) | - 55 | Cs XXXIII | +32 | (2029) | - 55 | Cs XXXIV | +33 | (2137) | - 55 | Cs XXXV | +34 | (2230) | - 55 | Cs XXXVI | +35 | (2329) | - 55 | Cs XXXVII | +36 | (2422) | - 55 | Cs XXXVIII | +37 | (2683) | - 55 | Cs XXXIX | +38 | (2767) | - 55 | Cs XL | +39 | (2859) | - 55 | Cs XLI | +40 | (2945) | - 55 | Cs XLII | +41 | (3118) | - 55 | Cs XLIII | +42 | (3214) | - 55 | Cs XLIV | +43 | (3392) | - 55 | Cs XLV | +44 | (3485) | - 55 | Cs XLVI | +45 | (7989) | - 55 | Cs XLVII | +46 | (8224) | - 55 | Cs XLVIII | +47 | (8484) | - 55 | Cs XLIX | +48 | (8726) | - 55 | Cs L | +49 | (9350) | - 55 | Cs LI | +50 | (9629) | - 55 | Cs LII | +51 | (9974) | - 55 | Cs LIII | +52 | (10208.78) | - 55 | Cs LIV | +53 | (41861.075) | - 55 | Cs LV | +54 | (42913.144) | - 56 | Ba I | 0 | 5.2116646 | - 56 | Ba II | +1 | 10.003826 | - 56 | Ba III | +2 | 35.8438 | - 56 | Ba IV | +3 | [47.0] | - 56 | Ba V | +4 | (58.0) | - 56 | Ba VI | +5 | (71.0) | - 56 | Ba VII | +6 | (86.0) | - 56 | Ba VIII | +7 | (101.0) | - 56 | Ba IX | +8 | [130.5] | - 56 | Ba X | +9 | [146.52] | - 56 | Ba XI | +10 | (241.0) | - 56 | Ba XII | +11 | (267.1) | - 56 | Ba XIII | +12 | (296) | - 56 | Ba XIV | +13 | (325) | - 56 | Ba XV | +14 | (354) | - 56 | Ba XVI | +15 | (390) | - 56 | Ba XVII | +16 | (422) | - 56 | Ba XVIII | +17 | (455) | - 56 | Ba XIX | +18 | (488) | - 56 | Ba XX | +19 | (520) | - 56 | Ba XXI | +20 | (646) | - 56 | Ba XXII | +21 | (679) | - 56 | Ba XXIII | +22 | (717) | - 56 | Ba XXIV | +23 | (752) | - 56 | Ba XXV | +24 | (809) | - 56 | Ba XXVI | +25 | (846) | - 56 | Ba XXVII | +26 | (935) | - 56 | Ba XXVIII | +27 | [976.62] | - 56 | Ba XXIX | +28 | (1695) | - 56 | Ba XXX | +29 | (1776) | - 56 | Ba XXXI | +30 | (1864) | - 56 | Ba XXXII | +31 | (1958) | - 56 | Ba XXXIII | +32 | (2047) | - 56 | Ba XXXIV | +33 | (2142) | - 56 | Ba XXXV | +34 | (2256) | - 56 | Ba XXXVI | +35 | (2349) | - 56 | Ba XXXVII | +36 | (2452) | - 56 | Ba XXXVIII | +37 | (2547) | - 56 | Ba XXXIX | +38 | (2814) | - 56 | Ba XL | +39 | (2901) | - 56 | Ba XLI | +40 | (2994) | - 56 | Ba XLII | +41 | (3081) | - 56 | Ba XLIII | +42 | (3266) | - 56 | Ba XLIV | +43 | (3363) | - 56 | Ba XLV | +44 | (3546) | - 56 | Ba XLVI | +45 | (3640) | - 56 | Ba XLVII | +46 | (8326) | - 56 | Ba XLVIII | +47 | (8565) | - 56 | Ba XLIX | +48 | (8831) | - 56 | Ba L | +49 | (9077) | - 56 | Ba LI | +50 | (9739) | - 56 | Ba LII | +51 | (10023) | - 56 | Ba LIII | +52 | (10376) | - 56 | Ba LIV | +53 | (10616.42) | - 56 | Ba LV | +54 | (43485.366) | - 56 | Ba LVI | +55 | (44561.633) | - 57 | La I | 0 | 5.5769 | - 57 | La II | +1 | 11.18496 | - 57 | La III | +2 | 19.1773 | - 57 | La IV | +3 | [49.95] | - 57 | La V | +4 | [61.6] | - 57 | La VI | +5 | (74.0) | - 57 | La VII | +6 | (88.0) | - 57 | La VIII | +7 | (105.0) | - 57 | La IX | +8 | (119.0) | - 57 | La X | +9 | [151.4] | - 57 | La XI | +10 | [168.77] | - 57 | La XII | +11 | (275.0) | - 57 | La XIII | +12 | (303) | - 57 | La XIV | +13 | (332) | - 57 | La XV | +14 | (364) | - 57 | La XVI | +15 | (393) | - 57 | La XVII | +16 | (431) | - 57 | La XVIII | +17 | (464) | - 57 | La XIX | +18 | (498) | - 57 | La XX | +19 | (533) | - 57 | La XXI | +20 | (566) | - 57 | La XXII | +21 | (696) | - 57 | La XXIII | +22 | (731) | - 57 | La XXIV | +23 | (770) | - 57 | La XXV | +24 | (806) | - 57 | La XXVI | +25 | (865) | - 57 | La XXVII | +26 | (906) | - 57 | La XXVIII | +27 | (995) | - 57 | La XXIX | +28 | [1039.09] | - 57 | La XXX | +29 | (1800) | - 57 | La XXXI | +30 | (1884) | - 57 | La XXXII | +31 | (1974) | - 57 | La XXXIII | +32 | (2069) | - 57 | La XXXIV | +33 | (2162) | - 57 | La XXXV | +34 | (2259) | - 57 | La XXXVI | +35 | (2377) | - 57 | La XXXVII | +36 | (2473) | - 57 | La XXXVIII | +37 | (2577) | - 57 | La XXXIX | +38 | (2674) | - 57 | La XL | +39 | (2950) | - 57 | La XLI | +40 | (3036) | - 57 | La XLII | +41 | (3133) | - 57 | La XLIII | +42 | (3222) | - 57 | La XLIV | +43 | (3416) | - 57 | La XLV | +44 | (3515) | - 57 | La XLVI | +45 | (3704) | - 57 | La XLVII | +46 | (3800) | - 57 | La XLVIII | +47 | (8669) | - 57 | La XLIX | +48 | (8914) | - 57 | La L | +49 | (9184) | - 57 | La LI | +50 | (9437) | - 57 | La LII | +51 | (10136) | - 57 | La LIII | +52 | (10426) | - 57 | La LIV | +53 | (10789) | - 57 | La LV | +54 | (11033.40) | - 57 | La LVI | +55 | (45144.996) | - 57 | La LVII | +56 | (46245.77) | - 58 | Ce I | 0 | 5.5386 | - 58 | Ce II | +1 | [10.956] | - 58 | Ce III | +2 | [20.1974] | - 58 | Ce IV | +3 | [36.906] | - 58 | Ce V | +4 | [65.55] | - 58 | Ce VI | +5 | [77.6] | - 58 | Ce VII | +6 | (91.0) | - 58 | Ce VIII | +7 | (106.0) | - 58 | Ce IX | +8 | (125.0) | - 58 | Ce X | +9 | (140.0) | - 58 | Ce XI | +10 | (172.0) | - 58 | Ce XII | +11 | [192.24] | - 58 | Ce XIII | +12 | (312) | - 58 | Ce XIV | +13 | (340) | - 58 | Ce XV | +14 | (371) | - 58 | Ce XVI | +15 | (403) | - 58 | Ce XVII | +16 | (435) | - 58 | Ce XVIII | +17 | (472) | - 58 | Ce XIX | +18 | (509) | - 58 | Ce XX | +19 | (543) | - 58 | Ce XXI | +20 | (579) | - 58 | Ce XXII | +21 | (613) | - 58 | Ce XXIII | +22 | (749) | - 58 | Ce XXIV | +23 | (785) | - 58 | Ce XXV | +24 | (824) | - 58 | Ce XXVI | +25 | (862) | - 58 | Ce XXVII | +26 | (924) | - 58 | Ce XXVIII | +27 | (965) | - 58 | Ce XXIX | +28 | (1060) | - 58 | Ce XXX | +29 | [1103.5] | - 58 | Ce XXXI | +30 | (1908) | - 58 | Ce XXXII | +31 | (1994) | - 58 | Ce XXXIII | +32 | (2087) | - 58 | Ce XXXIV | +33 | (2185) | - 58 | Ce XXXV | +34 | (2280) | - 58 | Ce XXXVI | +35 | (2378) | - 58 | Ce XXXVII | +36 | (2500) | - 58 | Ce XXXVIII | +37 | (2600) | - 58 | Ce XXXIX | +38 | (2706) | - 58 | Ce XL | +39 | (2806) | - 58 | Ce XLI | +40 | (3087) | - 58 | Ce XLII | +41 | (3176) | - 58 | Ce XLIII | +42 | (3274) | - 58 | Ce XLIV | +43 | (3366) | - 58 | Ce XLV | +44 | (3570) | - 58 | Ce XLVI | +45 | (3672) | - 58 | Ce XLVII | +46 | (3865) | - 58 | Ce XLVIII | +47 | (3963) | - 58 | Ce XLIX | +48 | (9020) | - 58 | Ce L | +49 | (9269) | - 58 | Ce LI | +50 | (9545) | - 58 | Ce LII | +51 | (9803) | - 58 | Ce LIII | +52 | (10542) | - 58 | Ce LIV | +53 | (10840) | - 58 | Ce LV | +54 | (11210) | - 58 | Ce LVI | +55 | (11459.85) | - 58 | Ce LVII | +56 | (46840.306) | - 58 | Ce LVIII | +57 | (47965.89) | - 59 | Pr I | 0 | [5.4702] | - 59 | Pr II | +1 | [10.631] | - 59 | Pr III | +2 | 21.6237 | - 59 | Pr IV | +3 | [38.981] | - 59 | Pr V | +4 | [57.53] | - 59 | Pr VI | +5 | (82) | - 59 | Pr VII | +6 | (97) | - 59 | Pr VIII | +7 | (112) | - 59 | Pr IX | +8 | (131) | - 59 | Pr X | +9 | (148) | - 59 | Pr XI | +10 | (162.0) | - 59 | Pr XII | +11 | (196.0) | - 59 | Pr XIII | +12 | [217.02] | - 59 | Pr XIV | +13 | (350) | - 59 | Pr XV | +14 | (378) | - 59 | Pr XVI | +15 | (412) | - 59 | Pr XVII | +16 | (445) | - 59 | Pr XVIII | +17 | (478) | - 59 | Pr XIX | +18 | (516) | - 59 | Pr XX | +19 | (554) | - 59 | Pr XXI | +20 | (590) | - 59 | Pr XXII | +21 | (627) | - 59 | Pr XXIII | +22 | (663) | - 59 | Pr XXIV | +23 | (803) | - 59 | Pr XXV | +24 | (840) | - 59 | Pr XXVI | +25 | (880) | - 59 | Pr XXVII | +26 | (920) | - 59 | Pr XXVIII | +27 | (985) | - 59 | Pr XXIX | +28 | (1028) | - 59 | Pr XXX | +29 | (1124) | - 59 | Pr XXXI | +30 | [1169.9] | - 59 | Pr XXXII | +31 | (2019) | - 59 | Pr XXXIII | +32 | (2108) | - 59 | Pr XXXIV | +33 | (2202) | - 59 | Pr XXXV | +34 | (2304) | - 59 | Pr XXXVI | +35 | (2400) | - 59 | Pr XXXVII | +36 | (2501) | - 59 | Pr XXXVIII | +37 | (2628) | - 59 | Pr XXXIX | +38 | (2729) | - 59 | Pr XL | +39 | (2838) | - 59 | Pr XLI | +40 | (2941) | - 59 | Pr XLII | +41 | (3227) | - 59 | Pr XLIII | +42 | (3319) | - 59 | Pr XLIV | +43 | (3419) | - 59 | Pr XLV | +44 | (3512) | - 59 | Pr XLVI | +45 | (3729) | - 59 | Pr XLVII | +46 | (3832) | - 59 | Pr XLVIII | +47 | (4030) | - 59 | Pr XLIX | +48 | (4130) | - 59 | Pr L | +49 | (9378) | - 59 | Pr LI | +50 | (9632) | - 59 | Pr LII | +51 | (9913) | - 59 | Pr LIII | +52 | (10175) | - 59 | Pr LIV | +53 | (10959) | - 59 | Pr LV | +54 | (11262) | - 59 | Pr LVI | +55 | (11641) | - 59 | Pr LVII | +56 | (11895.89) | - 59 | Pr LVIII | +57 | (48571.71) | - 59 | Pr LIX | +58 | (49722.44) | - 60 | Nd I | 0 | 5.5250 | - 60 | Nd II | +1 | [10.783] | - 60 | Nd III | +2 | [22.09] | - 60 | Nd IV | +3 | [40.60] | - 60 | Nd V | +4 | [60.0] | - 60 | Nd VI | +5 | (84) | - 60 | Nd VII | +6 | (99) | - 60 | Nd VIII | +7 | (114) | - 60 | Nd IX | +8 | (136) | - 60 | Nd X | +9 | (152) | - 60 | Nd XI | +10 | (168) | - 60 | Nd XII | +11 | (195) | - 60 | Nd XIII | +12 | (221) | - 60 | Nd XIV | +13 | [243.00] | - 60 | Nd XV | +14 | (389) | - 60 | Nd XVI | +15 | (420) | - 60 | Nd XVII | +16 | (453) | - 60 | Nd XVIII | +17 | (489) | - 60 | Nd XIX | +18 | (522) | - 60 | Nd XX | +19 | (562) | - 60 | Nd XXI | +20 | (602) | - 60 | Nd XXII | +21 | (638) | - 60 | Nd XXIII | +22 | (678) | - 60 | Nd XXIV | +23 | (714) | - 60 | Nd XXV | +24 | (859) | - 60 | Nd XXVI | +25 | (896) | - 60 | Nd XXVII | +26 | (939) | - 60 | Nd XXVIII | +27 | (978) | - 60 | Nd XXIX | +28 | (1049) | - 60 | Nd XXX | +29 | (1092) | - 60 | Nd XXXI | +30 | (1191) | - 60 | Nd XXXII | +31 | [1238.42] | - 60 | Nd XXXIII | +32 | (2134) | - 60 | Nd XXXIV | +33 | (2224) | - 60 | Nd XXXV | +34 | (2321) | - 60 | Nd XXXVI | +35 | (2425) | - 60 | Nd XXXVII | +36 | (2525) | - 60 | Nd XXXVIII | +37 | (2627) | - 60 | Nd XXXIX | +38 | (2758) | - 60 | Nd XL | +39 | (2861) | - 60 | Nd XLI | +40 | (2974) | - 60 | Nd XLII | +41 | (3078) | - 60 | Nd XLIII | +42 | (3371) | - 60 | Nd XLIV | +43 | (3465) | - 60 | Nd XLV | +44 | (3567) | - 60 | Nd XLVI | +45 | (3662) | - 60 | Nd XLVII | +46 | (3891) | - 60 | Nd XLVIII | +47 | (3997) | - 60 | Nd XLIX | +48 | (4198) | - 60 | Nd L | +49 | (4302) | - 60 | Nd LI | +50 | (9742) | - 60 | Nd LII | +51 | (10002) | - 60 | Nd LIII | +52 | (10288) | - 60 | Nd LIV | +53 | (10555) | - 60 | Nd LV | +54 | (11384) | - 60 | Nd LVI | +55 | (11694) | - 60 | Nd LVII | +56 | (12082) | - 60 | Nd LVIII | +57 | (12341.66) | - 60 | Nd LIX | +58 | (50339.59) | - 60 | Nd LX | +59 | (51515.78) | - 61 | Pm I | 0 | 5.58187 | - 61 | Pm II | +1 | [10.938] | - 61 | Pm III | +2 | [22.44] | - 61 | Pm IV | +3 | [41.17] | - 61 | Pm V | +4 | [61.7] | - 61 | Pm VI | +5 | (85) | - 61 | Pm VII | +6 | (101) | - 61 | Pm VIII | +7 | (116) | - 61 | Pm IX | +8 | (138) | - 61 | Pm X | +9 | (155) | - 61 | Pm XI | +10 | (174) | - 61 | Pm XII | +11 | (202) | - 61 | Pm XIII | +12 | (229) | - 61 | Pm XIV | +13 | (248) | - 61 | Pm XV | +14 | (269) | - 61 | Pm XVI | +15 | (430) | - 61 | Pm XVII | +16 | (462) | - 61 | Pm XVIII | +17 | (497) | - 61 | Pm XIX | +18 | (534) | - 61 | Pm XX | +19 | (569) | - 61 | Pm XXI | +20 | (609) | - 61 | Pm XXII | +21 | (651) | - 61 | Pm XXIII | +22 | (689) | - 61 | Pm XXIV | +23 | (730) | - 61 | Pm XXV | +24 | (767) | - 61 | Pm XXVI | +25 | (916) | - 61 | Pm XXVII | +26 | (956) | - 61 | Pm XXVIII | +27 | (998) | - 61 | Pm XXIX | +28 | (1040) | - 61 | Pm XXX | +29 | (1113) | - 61 | Pm XXXI | +30 | (1158) | - 61 | Pm XXXII | +31 | (1261) | - 61 | Pm XXXIII | +32 | [1308.7] | - 61 | Pm XXXIV | +33 | (2251) | - 61 | Pm XXXV | +34 | (2344) | - 61 | Pm XXXVI | +35 | (2443) | - 61 | Pm XXXVII | +36 | (2549) | - 61 | Pm XXXVIII | +37 | (2652) | - 61 | Pm XXXIX | +38 | (2755) | - 61 | Pm XL | +39 | (2892) | - 61 | Pm XLI | +40 | (2997) | - 61 | Pm XLII | +41 | (3112) | - 61 | Pm XLIII | +42 | (3219) | - 61 | Pm XLIV | +43 | (3519) | - 61 | Pm XLV | +44 | (3613) | - 61 | Pm XLVI | +45 | (3718) | - 61 | Pm XLVII | +46 | (3816) | - 61 | Pm XLVIII | +47 | (4056) | - 61 | Pm XLIX | +48 | (4166) | - 61 | Pm L | +49 | (4371) | - 61 | Pm LI | +50 | (4476) | - 61 | Pm LII | +51 | (10115) | - 61 | Pm LIII | +52 | (10378) | - 61 | Pm LIV | +53 | (10671) | - 61 | Pm LV | +54 | (10942) | - 61 | Pm LVI | +55 | (11819) | - 61 | Pm LVII | +56 | (12136) | - 61 | Pm LVIII | +57 | (12532) | - 61 | Pm LIX | +58 | (12797.26) | - 61 | Pm LX | +59 | (52144.29) | - 61 | Pm LXI | +60 | (53346.31) | - 62 | Sm I | 0 | 5.643722 | - 62 | Sm II | +1 | [11.078] | - 62 | Sm III | +2 | [23.55] | - 62 | Sm IV | +3 | [41.64] | - 62 | Sm V | +4 | [62.7] | - 62 | Sm VI | +5 | (87) | - 62 | Sm VII | +6 | (103) | - 62 | Sm VIII | +7 | (118) | - 62 | Sm IX | +8 | (141) | - 62 | Sm X | +9 | (158) | - 62 | Sm XI | +10 | (179) | - 62 | Sm XII | +11 | (208) | - 62 | Sm XIII | +12 | (237) | - 62 | Sm XIV | +13 | (257) | - 62 | Sm XV | +14 | (276) | - 62 | Sm XVI | +15 | [306.5] | - 62 | Sm XVII | +16 | (474) | - 62 | Sm XVIII | +17 | (506) | - 62 | Sm XIX | +18 | (543) | - 62 | Sm XX | +19 | (581) | - 62 | Sm XXI | +20 | (617) | - 62 | Sm XXII | +21 | (658) | - 62 | Sm XXIII | +22 | (702) | - 62 | Sm XXIV | +23 | (742) | - 62 | Sm XXV | +24 | (782) | - 62 | Sm XXVI | +25 | (822) | - 62 | Sm XXVII | +26 | (976) | - 62 | Sm XXVIII | +27 | (1016) | - 62 | Sm XXIX | +28 | (1060) | - 62 | Sm XXX | +29 | (1103) | - 62 | Sm XXXI | +30 | (1180) | - 62 | Sm XXXII | +31 | (1226) | - 62 | Sm XXXIII | +32 | (1332) | - 62 | Sm XXXIV | +33 | [1381.56] | - 62 | Sm XXXV | +34 | (2371) | - 62 | Sm XXXVI | +35 | (2466) | - 62 | Sm XXXVII | +36 | (2569) | - 62 | Sm XXXVIII | +37 | (2676) | - 62 | Sm XXXIX | +38 | (2782) | - 62 | Sm XL | +39 | (2887) | - 62 | Sm XLI | +40 | (3028) | - 62 | Sm XLII | +41 | (3137) | - 62 | Sm XLIII | +42 | (3253) | - 62 | Sm XLIV | +43 | (3363) | - 62 | Sm XLV | +44 | (3669) | - 62 | Sm XLVI | +45 | (3766) | - 62 | Sm XLVII | +46 | (3873) | - 62 | Sm XLVIII | +47 | (3971) | - 62 | Sm XLIX | +48 | (4227) | - 62 | Sm L | +49 | (4337) | - 62 | Sm LI | +50 | (4548) | - 62 | Sm LII | +51 | (4655) | - 62 | Sm LIII | +52 | (10494) | - 62 | Sm LIV | +53 | (10762) | - 62 | Sm LV | +54 | (11060) | - 62 | Sm LVI | +55 | (11337) | - 62 | Sm LVII | +56 | (12264) | - 62 | Sm LVIII | +57 | (12588) | - 62 | Sm LIX | +58 | (12992) | - 62 | Sm LX | +59 | (13262.85) | - 62 | Sm LXI | +60 | (53986.12) | - 62 | Sm LXII | +61 | (55214.30) | - 63 | Eu I | 0 | 5.670385 | - 63 | Eu II | +1 | [11.240] | - 63 | Eu III | +2 | [24.84] | - 63 | Eu IV | +3 | [42.94] | - 63 | Eu V | +4 | [63.2] | - 63 | Eu VI | +5 | (89) | - 63 | Eu VII | +6 | (105) | - 63 | Eu VIII | +7 | (120) | - 63 | Eu IX | +8 | (144) | - 63 | Eu X | +9 | (161) | - 63 | Eu XI | +10 | (183) | - 63 | Eu XII | +11 | (213) | - 63 | Eu XIII | +12 | (243) | - 63 | Eu XIV | +13 | (263) | - 63 | Eu XV | +14 | (281) | - 63 | Eu XVI | +15 | (311) | - 63 | Eu XVII | +16 | [344.4] | - 63 | Eu XVIII | +17 | (518) | - 63 | Eu XIX | +18 | (553) | - 63 | Eu XX | +19 | (590) | - 63 | Eu XXI | +20 | (630) | - 63 | Eu XXII | +21 | (667) | - 63 | Eu XXIII | +22 | (709) | - 63 | Eu XXIV | +23 | (755) | - 63 | Eu XXV | +24 | (795) | - 63 | Eu XXVI | +25 | (838) | - 63 | Eu XXVII | +26 | (879) | - 63 | Eu XXVIII | +27 | (1037) | - 63 | Eu XXIX | +28 | (1078) | - 63 | Eu XXX | +29 | (1124) | - 63 | Eu XXXI | +30 | (1167) | - 63 | Eu XXXII | +31 | (1249) | - 63 | Eu XXXIII | +32 | (1296) | - 63 | Eu XXXIV | +33 | (1406) | - 63 | Eu XXXV | +34 | [1456.06] | - 63 | Eu XXXVI | +35 | (2495) | - 63 | Eu XXXVII | +36 | (2591) | - 63 | Eu XXXVIII | +37 | (2697) | - 63 | Eu XXXIX | +38 | (2807) | - 63 | Eu XL | +39 | (2914) | - 63 | Eu XLI | +40 | (3022) | - 63 | Eu XLII | +41 | (3168) | - 63 | Eu XLIII | +42 | (3279) | - 63 | Eu XLIV | +43 | (3398) | - 63 | Eu XLV | +44 | (3510) | - 63 | Eu XLVI | +45 | (3823) | - 63 | Eu XLVII | +46 | (3921) | - 63 | Eu XLVIII | +47 | (4031) | - 63 | Eu XLIX | +48 | (4131) | - 63 | Eu L | +49 | (4400) | - 63 | Eu LI | +50 | (4513) | - 63 | Eu LII | +51 | (4729) | - 63 | Eu LIII | +52 | (4838) | - 63 | Eu LIV | +53 | (10880) | - 63 | Eu LV | +54 | (11153) | - 63 | Eu LVI | +55 | (11457) | - 63 | Eu LVII | +56 | (11739) | - 63 | Eu LVIII | +57 | (12718) | - 63 | Eu LIX | +58 | (13050) | - 63 | Eu LX | +59 | (13462) | - 63 | Eu LXI | +60 | (13738.58) | - 63 | Eu LXII | +61 | (55865.92) | - 63 | Eu LXIII | +62 | (57120.64) | - 64 | Gd I | 0 | 6.14980 | - 64 | Gd II | +1 | [12.076] | - 64 | Gd III | +2 | [20.54] | - 64 | Gd IV | +3 | [44.44] | - 64 | Gd V | +4 | [64.8] | - 64 | Gd VI | +5 | (89) | - 64 | Gd VII | +6 | (106) | - 64 | Gd VIII | +7 | (123) | - 64 | Gd IX | +8 | (144) | - 64 | Gd X | +9 | (165) | - 64 | Gd XI | +10 | (183) | - 64 | Gd XII | +11 | (213) | - 64 | Gd XIII | +12 | (246) | - 64 | Gd XIV | +13 | (268) | - 64 | Gd XV | +14 | (288) | - 64 | Gd XVI | +15 | (319) | - 64 | Gd XVII | +16 | (352) | - 64 | Gd XVIII | +17 | (384.4) | - 64 | Gd XIX | +18 | (565) | - 64 | Gd XX | +19 | (601) | - 64 | Gd XXI | +20 | (639) | - 64 | Gd XXII | +21 | (680) | - 64 | Gd XXIII | +22 | (719) | - 64 | Gd XXIV | +23 | (761) | - 64 | Gd XXV | +24 | (810) | - 64 | Gd XXVI | +25 | (851) | - 64 | Gd XXVII | +26 | (895) | - 64 | Gd XXVIII | +27 | (937) | - 64 | Gd XXIX | +28 | (1100) | - 64 | Gd XXX | +29 | (1142) | - 64 | Gd XXXI | +30 | (1189) | - 64 | Gd XXXII | +31 | (1233) | - 64 | Gd XXXIII | +32 | (1321) | - 64 | Gd XXXIV | +33 | (1368) | - 64 | Gd XXXV | +34 | (1481) | - 64 | Gd XXXVI | +35 | [1532.3] | - 64 | Gd XXXVII | +36 | (2621) | - 64 | Gd XXXVIII | +37 | (2720) | - 64 | Gd XXXIX | +38 | (2827) | - 64 | Gd XL | +39 | (2941) | - 64 | Gd XLI | +40 | (3050) | - 64 | Gd XLII | +41 | (3160) | - 64 | Gd XLIII | +42 | (3312) | - 64 | Gd XLIV | +43 | (3424) | - 64 | Gd XLV | +44 | (3546) | - 64 | Gd XLVI | +45 | (3660) | - 64 | Gd XLVII | +46 | (3980) | - 64 | Gd XLVIII | +47 | (4080) | - 64 | Gd XLIX | +48 | (4191) | - 64 | Gd L | +49 | (4294) | - 64 | Gd LI | +50 | (4578) | - 64 | Gd LII | +51 | (4693) | - 64 | Gd LIII | +52 | (4914) | - 64 | Gd LIV | +53 | (5025) | - 64 | Gd LV | +54 | (11273) | - 64 | Gd LVI | +55 | (11552) | - 64 | Gd LVII | +56 | (11861) | - 64 | Gd LVIII | +57 | (12147) | - 64 | Gd LIX | +58 | (13183) | - 64 | Gd LX | +59 | (13521) | - 64 | Gd LXI | +60 | (13943) | - 64 | Gd LXII | +61 | (14224.57) | - 64 | Gd LXIII | +62 | (57783.90) | - 64 | Gd LXIV | +63 | (59065.54) | - 65 | Tb I | 0 | 5.8638 | - 65 | Tb II | +1 | [11.513] | - 65 | Tb III | +2 | [21.82] | - 65 | Tb IV | +3 | [39.33] | - 65 | Tb V | +4 | [66.5] | - 65 | Tb VI | +5 | (90) | - 65 | Tb VII | +6 | (108) | - 65 | Tb VIII | +7 | (125) | - 65 | Tb IX | +8 | (143) | - 65 | Tb X | +9 | (168) | - 65 | Tb XI | +10 | (186) | - 65 | Tb XII | +11 | (216) | - 65 | Tb XIII | +12 | (250) | - 65 | Tb XIV | +13 | (273) | - 65 | Tb XV | +14 | (294) | - 65 | Tb XVI | +15 | (325) | - 65 | Tb XVII | +16 | (358) | - 65 | Tb XVIII | +17 | (393) | - 65 | Tb XIX | +18 | (426.6) | - 65 | Tb XX | +19 | (613) | - 65 | Tb XXI | +20 | (651) | - 65 | Tb XXII | +21 | (690) | - 65 | Tb XXIII | +22 | (732) | - 65 | Tb XXIV | +23 | (772) | - 65 | Tb XXV | +24 | (816) | - 65 | Tb XXVI | +25 | (866) | - 65 | Tb XXVII | +26 | (909) | - 65 | Tb XXVIII | +27 | (954) | - 65 | Tb XXIX | +28 | (997) | - 65 | Tb XXX | +29 | (1165) | - 65 | Tb XXXI | +30 | (1208) | - 65 | Tb XXXII | +31 | (1256) | - 65 | Tb XXXIII | +32 | (1301) | - 65 | Tb XXXIV | +33 | (1393) | - 65 | Tb XXXV | +34 | (1443) | - 65 | Tb XXXVI | +35 | (1559) | - 65 | Tb XXXVII | +36 | [1610.4] | - 65 | Tb XXXVIII | +37 | (2750) | - 65 | Tb XXXIX | +38 | (2852) | - 65 | Tb XL | +39 | (2961) | - 65 | Tb XLI | +40 | (3078) | - 65 | Tb XLII | +41 | (3189) | - 65 | Tb XLIII | +42 | (3300) | - 65 | Tb XLIV | +43 | (3458) | - 65 | Tb XLV | +44 | (3573) | - 65 | Tb XLVI | +45 | (3698) | - 65 | Tb XLVII | +46 | (3814) | - 65 | Tb XLVIII | +47 | (4139) | - 65 | Tb XLIX | +48 | (4242) | - 65 | Tb L | +49 | (4355) | - 65 | Tb LI | +50 | (4460) | - 65 | Tb LII | +51 | (4760) | - 65 | Tb LIII | +52 | (4877) | - 65 | Tb LIV | +53 | (5103) | - 65 | Tb LV | +54 | (5217) | - 65 | Tb LVI | +55 | (11673) | - 65 | Tb LVII | +56 | (11957) | - 65 | Tb LVIII | +57 | (12272) | - 65 | Tb LIX | +58 | (12563) | - 65 | Tb LX | +59 | (13658) | - 65 | Tb LXI | +60 | (14003) | - 65 | Tb LXII | +61 | (14434) | - 65 | Tb LXIII | +62 | (14721.02) | - 65 | Tb LXIV | +63 | (59739.3) | - 65 | Tb LXV | +64 | (61050.1) | - 66 | Dy I | 0 | 5.939061 | - 66 | Dy II | +1 | [11.647] | - 66 | Dy III | +2 | [22.89] | - 66 | Dy IV | +3 | [41.23] | - 66 | Dy V | +4 | [62.1] | - 66 | Dy VI | +5 | (93) | - 66 | Dy VII | +6 | (110) | - 66 | Dy VIII | +7 | (127) | - 66 | Dy IX | +8 | (152) | - 66 | Dy X | +9 | (170) | - 66 | Dy XI | +10 | (192) | - 66 | Dy XII | +11 | (224) | - 66 | Dy XIII | +12 | (259) | - 66 | Dy XIV | +13 | (279) | - 66 | Dy XV | +14 | (300) | - 66 | Dy XVI | +15 | (332) | - 66 | Dy XVII | +16 | (366) | - 66 | Dy XVIII | +17 | (399) | - 66 | Dy XIX | +18 | (431) | - 66 | Dy XX | +19 | (464.9) | - 66 | Dy XXI | +20 | (664) | - 66 | Dy XXII | +21 | (702) | - 66 | Dy XXIII | +22 | (743) | - 66 | Dy XXIV | +23 | (786) | - 66 | Dy XXV | +24 | (827) | - 66 | Dy XXVI | +25 | (872) | - 66 | Dy XXVII | +26 | (924) | - 66 | Dy XXVIII | +27 | (969) | - 66 | Dy XXIX | +28 | (1014) | - 66 | Dy XXX | +29 | (1059) | - 66 | Dy XXXI | +30 | (1232) | - 66 | Dy XXXII | +31 | (1275) | - 66 | Dy XXXIII | +32 | (1325) | - 66 | Dy XXXIV | +33 | (1371) | - 66 | Dy XXXV | +34 | (1468) | - 66 | Dy XXXVI | +35 | (1520) | - 66 | Dy XXXVII | +36 | (1638) | - 66 | Dy XXXVIII | +37 | [1691.7] | - 66 | Dy XXXIX | +38 | (2882) | - 66 | Dy XL | +39 | (2987) | - 66 | Dy XLI | +40 | (3098) | - 66 | Dy XLII | +41 | (3217) | - 66 | Dy XLIII | +42 | (3331) | - 66 | Dy XLIV | +43 | (3445) | - 66 | Dy XLV | +44 | (3607) | - 66 | Dy XLVI | +45 | (3725) | - 66 | Dy XLVII | +46 | (3852) | - 66 | Dy XLVIII | +47 | (3970) | - 66 | Dy XLIX | +48 | (4303) | - 66 | Dy L | +49 | (4407) | - 66 | Dy LI | +50 | (4523) | - 66 | Dy LII | +51 | (4629) | - 66 | Dy LIII | +52 | (4945) | - 66 | Dy LIV | +53 | (5066) | - 66 | Dy LV | +54 | (5296) | - 66 | Dy LVI | +55 | (5412) | - 66 | Dy LVII | +56 | (12081) | - 66 | Dy LVIII | +57 | (12370) | - 66 | Dy LIX | +58 | (12690) | - 66 | Dy LX | +59 | (12986) | - 66 | Dy LXI | +60 | (14144) | - 66 | Dy LXII | +61 | (14495) | - 66 | Dy LXIII | +62 | (14936) | - 66 | Dy LXIV | +63 | (15228.06) | - 66 | Dy LXV | +64 | (61736.56) | - 66 | Dy LXVI | +65 | (63073.23) | - 67 | Ho I | 0 | 6.0215 | - 67 | Ho II | +1 | [11.781] | - 67 | Ho III | +2 | [22.79] | - 67 | Ho IV | +3 | [42.52] | - 67 | Ho V | +4 | [63.9] | - 67 | Ho VI | +5 | (95) | - 67 | Ho VII | +6 | (112) | - 67 | Ho VIII | +7 | (129) | - 67 | Ho IX | +8 | (155) | - 67 | Ho X | +9 | (173) | - 67 | Ho XI | +10 | (197) | - 67 | Ho XII | +11 | (229) | - 67 | Ho XIII | +12 | (263) | - 67 | Ho XIV | +13 | (284) | - 67 | Ho XV | +14 | (305) | - 67 | Ho XVI | +15 | (340) | - 67 | Ho XVII | +16 | (373) | - 67 | Ho XVIII | +17 | (408) | - 67 | Ho XIX | +18 | (441) | - 67 | Ho XX | +19 | (475) | - 67 | Ho XXI | +20 | (510) | - 67 | Ho XXII | +21 | (715) | - 67 | Ho XXIII | +22 | (755) | - 67 | Ho XXIV | +23 | (797) | - 67 | Ho XXV | +24 | (842) | - 67 | Ho XXVI | +25 | (885) | - 67 | Ho XXVII | +26 | (929) | - 67 | Ho XXVIII | +27 | (985) | - 67 | Ho XXIX | +28 | (1029) | - 67 | Ho XXX | +29 | (1077) | - 67 | Ho XXXI | +30 | (1122) | - 67 | Ho XXXII | +31 | (1300) | - 67 | Ho XXXIII | +32 | (1346) | - 67 | Ho XXXIV | +33 | (1395) | - 67 | Ho XXXV | +34 | (1443) | - 67 | Ho XXXVI | +35 | (1545) | - 67 | Ho XXXVII | +36 | (1598) | - 67 | Ho XXXVIII | +37 | (1719) | - 67 | Ho XXXIX | +38 | [1773.6] | - 67 | Ho XL | +39 | (3018) | - 67 | Ho XLI | +40 | (3125) | - 67 | Ho XLII | +41 | (3238) | - 67 | Ho XLIII | +42 | (3359) | - 67 | Ho XLIV | +43 | (3476) | - 67 | Ho XLV | +44 | (3592) | - 67 | Ho XLVI | +45 | (3760) | - 67 | Ho XLVII | +46 | (3880) | - 67 | Ho XLVIII | +47 | (4009) | - 67 | Ho XLIX | +48 | (4131) | - 67 | Ho L | +49 | (4469) | - 67 | Ho LI | +50 | (4576) | - 67 | Ho LII | +51 | (4693) | - 67 | Ho LIII | +52 | (4802) | - 67 | Ho LIV | +53 | (5135) | - 67 | Ho LV | +54 | (5258) | - 67 | Ho LVI | +55 | (5494) | - 67 | Ho LVII | +56 | (5611) | - 67 | Ho LVIII | +57 | (12495) | - 67 | Ho LIX | +58 | (12790) | - 67 | Ho LX | +59 | (13116) | - 67 | Ho LXI | +60 | (13417) | - 67 | Ho LXII | +61 | (14639) | - 67 | Ho LXIII | +62 | (14998) | - 67 | Ho LXIV | +63 | (15448) | - 67 | Ho LXV | +64 | (15745.77) | - 67 | Ho LXVI | +65 | (63772.43) | - 67 | Ho LXVII | +66 | (65137.13) | - 68 | Er I | 0 | 6.1077 | - 68 | Er II | +1 | [11.916] | - 68 | Er III | +2 | [22.70] | - 68 | Er IV | +3 | [42.42] | - 68 | Er V | +4 | [65.1] | - 68 | Er VI | +5 | (96) | - 68 | Er VII | +6 | (114) | - 68 | Er VIII | +7 | (131) | - 68 | Er IX | +8 | (158) | - 68 | Er X | +9 | (177) | - 68 | Er XI | +10 | (201) | - 68 | Er XII | +11 | (235) | - 68 | Er XIII | +12 | (268) | - 68 | Er XIV | +13 | (290) | - 68 | Er XV | +14 | (311) | - 68 | Er XVI | +15 | (345) | - 68 | Er XVII | +16 | (381) | - 68 | Er XVIII | +17 | (415) | - 68 | Er XIX | +18 | (450) | - 68 | Er XX | +19 | (486) | - 68 | Er XXI | +20 | (520) | - 68 | Er XXII | +21 | (555) | - 68 | Er XXIII | +22 | (770) | - 68 | Er XXIV | +23 | (810) | - 68 | Er XXV | +24 | (853) | - 68 | Er XXVI | +25 | (899) | - 68 | Er XXVII | +26 | (943) | - 68 | Er XXVIII | +27 | (989) | - 68 | Er XXIX | +28 | (1046) | - 68 | Er XXX | +29 | (1092) | - 68 | Er XXXI | +30 | (1142) | - 68 | Er XXXII | +31 | (1188) | - 68 | Er XXXIII | +32 | (1370) | - 68 | Er XXXIV | +33 | (1416) | - 68 | Er XXXV | +34 | (1468) | - 68 | Er XXXVI | +35 | (1516) | - 68 | Er XXXVII | +36 | (1625) | - 68 | Er XXXVIII | +37 | (1678) | - 68 | Er XXXIX | +38 | (1803) | - 68 | Er XL | +39 | [1858.5] | - 68 | Er XLI | +40 | (3157) | - 68 | Er XLII | +41 | (3265) | - 68 | Er XLIII | +42 | (3381) | - 68 | Er XLIV | +43 | (3505) | - 68 | Er XLV | +44 | (3624) | - 68 | Er XLVI | +45 | (3742) | - 68 | Er XLVII | +46 | (3916) | - 68 | Er XLVIII | +47 | (4038) | - 68 | Er XLIX | +48 | (4170) | - 68 | Er L | +49 | (4294) | - 68 | Er LI | +50 | (4639) | - 68 | Er LII | +51 | (4748) | - 68 | Er LIII | +52 | (4866) | - 68 | Er LIV | +53 | (4978) | - 68 | Er LV | +54 | (5329) | - 68 | Er LVI | +55 | (5455) | - 68 | Er LVII | +56 | (5695) | - 68 | Er LVIII | +57 | (5815) | - 68 | Er LIX | +58 | (12918) | - 68 | Er LX | +59 | (13217) | - 68 | Er LXI | +60 | (13548) | - 68 | Er LXII | +61 | (13855) | - 68 | Er LXIII | +62 | (15146) | - 68 | Er LXIV | +63 | (15511) | - 68 | Er LXV | +64 | (15971) | - 68 | Er LXVI | +65 | (16274.56) | - 68 | Er LXVII | +66 | (65848.24) | - 68 | Er LXVIII | +67 | (67241.48) | - 69 | Tm I | 0 | 6.184402 | - 69 | Tm II | +1 | [12.065] | - 69 | Tm III | +2 | [23.66] | - 69 | Tm IV | +3 | [42.41] | - 69 | Tm V | +4 | [65.4] | - 69 | Tm VI | +5 | (98) | - 69 | Tm VII | +6 | (116) | - 69 | Tm VIII | +7 | (133) | - 69 | Tm IX | +8 | (160) | - 69 | Tm X | +9 | (180) | - 69 | Tm XI | +10 | (205) | - 69 | Tm XII | +11 | (239) | - 69 | Tm XIII | +12 | (274) | - 69 | Tm XIV | +13 | (295) | - 69 | Tm XV | +14 | (317) | - 69 | Tm XVI | +15 | (352) | - 69 | Tm XVII | +16 | (387) | - 69 | Tm XVIII | +17 | (424) | - 69 | Tm XIX | +18 | (460) | - 69 | Tm XX | +19 | (496) | - 69 | Tm XXI | +20 | (530) | - 69 | Tm XXII | +21 | (570) | - 69 | Tm XXIII | +22 | (603) | - 69 | Tm XXIV | +23 | (825) | - 69 | Tm XXV | +24 | (866) | - 69 | Tm XXVI | +25 | (911) | - 69 | Tm XXVII | +26 | (958) | - 69 | Tm XXVIII | +27 | (1004) | - 69 | Tm XXIX | +28 | (1050) | - 69 | Tm XXX | +29 | (1110) | - 69 | Tm XXXI | +30 | (1157) | - 69 | Tm XXXII | +31 | (1207) | - 69 | Tm XXXIII | +32 | (1255) | - 69 | Tm XXXIV | +33 | (1442) | - 69 | Tm XXXV | +34 | (1490) | - 69 | Tm XXXVI | +35 | (1542) | - 69 | Tm XXXVII | +36 | (1591) | - 69 | Tm XXXVIII | +37 | (1706) | - 69 | Tm XXXIX | +38 | (1761) | - 69 | Tm XL | +39 | (1889) | - 69 | Tm XLI | +40 | [1945.2] | - 69 | Tm XLII | +41 | (3298) | - 69 | Tm XLIII | +42 | (3409) | - 69 | Tm XLIV | +43 | (3528) | - 69 | Tm XLV | +44 | (3653) | - 69 | Tm XLVI | +45 | (3775) | - 69 | Tm XLVII | +46 | (3895) | - 69 | Tm XLVIII | +47 | (4075) | - 69 | Tm XLIX | +48 | (4199) | - 69 | Tm L | +49 | (4335) | - 69 | Tm LI | +50 | (4461) | - 69 | Tm LII | +51 | (4812) | - 69 | Tm LIII | +52 | (4922) | - 69 | Tm LIV | +53 | (5044) | - 69 | Tm LV | +54 | (5157) | - 69 | Tm LVI | +55 | (5527) | - 69 | Tm LVII | +56 | (5656) | - 69 | Tm LVIII | +57 | (5901) | - 69 | Tm LIX | +58 | (6023) | - 69 | Tm LX | +59 | (13347) | - 69 | Tm LXI | +60 | (13651) | - 69 | Tm LXII | +61 | (13988) | - 69 | Tm LXIII | +62 | (14300) | - 69 | Tm LXIV | +63 | (15663) | - 69 | Tm LXV | +64 | (16036) | - 69 | Tm LXVI | +65 | (16510) | - 69 | Tm LXVII | +66 | (16814.34) | - 69 | Tm LXVIII | +67 | (67965.26) | - 69 | Tm LXIX | +68 | (69387.45) | - 70 | Yb I | 0 | 6.254160 | - 70 | Yb II | +1 | 12.179185 | - 70 | Yb III | +2 | [25.053] | - 70 | Yb IV | +3 | [43.61] | - 70 | Yb V | +4 | [65.6] | - 70 | Yb VI | +5 | (99) | - 70 | Yb VII | +6 | (117) | - 70 | Yb VIII | +7 | (135) | - 70 | Yb IX | +8 | (163) | - 70 | Yb X | +9 | (182) | - 70 | Yb XI | +10 | (209) | - 70 | Yb XII | +11 | (244) | - 70 | Yb XIII | +12 | (279) | - 70 | Yb XIV | +13 | (301) | - 70 | Yb XV | +14 | (324) | - 70 | Yb XVI | +15 | (360) | - 70 | Yb XVII | +16 | (396) | - 70 | Yb XVIII | +17 | (431) | - 70 | Yb XIX | +18 | (469) | - 70 | Yb XX | +19 | (505) | - 70 | Yb XXI | +20 | (540) | - 70 | Yb XXII | +21 | (580) | - 70 | Yb XXIII | +22 | (610) | - 70 | Yb XXIV | +23 | (651) | - 70 | Yb XXV | +24 | (882) | - 70 | Yb XXVI | +25 | (924) | - 70 | Yb XXVII | +26 | (971) | - 70 | Yb XXVIII | +27 | (1019) | - 70 | Yb XXIX | +28 | (1065) | - 70 | Yb XXX | +29 | (1114) | - 70 | Yb XXXI | +30 | (1175) | - 70 | Yb XXXII | +31 | (1224) | - 70 | Yb XXXIII | +32 | (1275) | - 70 | Yb XXXIV | +33 | (1324) | - 70 | Yb XXXV | +34 | (1516) | - 70 | Yb XXXVI | +35 | (1564) | - 70 | Yb XXXVII | +36 | (1618) | - 70 | Yb XXXVIII | +37 | (1668) | - 70 | Yb XXXIX | +38 | (1789) | - 70 | Yb XL | +39 | (1845) | - 70 | Yb XLI | +40 | (1978) | - 70 | Yb XLII | +41 | [2036.4] | - 70 | Yb XLIII | +42 | (3443) | - 70 | Yb XLIV | +43 | (3555) | - 70 | Yb XLV | +44 | (3677) | - 70 | Yb XLVI | +45 | (3805) | - 70 | Yb XLVII | +46 | (3929) | - 70 | Yb XLVIII | +47 | (4051) | - 70 | Yb XLIX | +48 | (4238) | - 70 | Yb L | +49 | (4364) | - 70 | Yb LI | +50 | (4502) | - 70 | Yb LII | +51 | (4630) | - 70 | Yb LIII | +52 | (4988) | - 70 | Yb LIV | +53 | (5101) | - 70 | Yb LV | +54 | (5224) | - 70 | Yb LVI | +55 | (5339) | - 70 | Yb LVII | +56 | (5731) | - 70 | Yb LVIII | +57 | (5860) | - 70 | Yb LIX | +58 | (6111) | - 70 | Yb LX | +59 | (6236) | - 70 | Yb LXI | +60 | (13784) | - 70 | Yb LXII | +61 | (14093) | - 70 | Yb LXIII | +62 | (14435) | - 70 | Yb LXIV | +63 | (14752) | - 70 | Yb LXV | +64 | (16191) | - 70 | Yb LXVI | +65 | (16570) | - 70 | Yb LXVII | +66 | (17050) | - 70 | Yb LXVIII | +67 | (17365.44) | - 70 | Yb LXIX | +68 | (70123.04) | - 70 | Yb LXX | +69 | (71574.63) | - 71 | Lu I | 0 | 5.425871 | - 71 | Lu II | +1 | [14.13] | - 71 | Lu III | +2 | 20.9594 | - 71 | Lu IV | +3 | [45.249] | - 71 | Lu V | +4 | [66.8] | - 71 | Lu VI | +5 | (98) | - 71 | Lu VII | +6 | (117) | - 71 | Lu VIII | +7 | (136) | - 71 | Lu IX | +8 | (159) | - 71 | Lu X | +9 | (185) | - 71 | Lu XI | +10 | (205) | - 71 | Lu XII | +11 | (238) | - 71 | Lu XIII | +12 | (276) | - 71 | Lu XIV | +13 | (305) | - 71 | Lu XV | +14 | (328) | - 71 | Lu XVI | +15 | (361) | - 71 | Lu XVII | +16 | (399) | - 71 | Lu XVIII | +17 | (438) | - 71 | Lu XIX | +18 | (476) | - 71 | Lu XX | +19 | (520) | - 71 | Lu XXI | +20 | (560) | - 71 | Lu XXII | +21 | (600) | - 71 | Lu XXIII | +22 | (630) | - 71 | Lu XXIV | +23 | (670) | - 71 | Lu XXV | +24 | (713) | - 71 | Lu XXVI | +25 | (941) | - 71 | Lu XXVII | +26 | (985) | - 71 | Lu XXVIII | +27 | (1032) | - 71 | Lu XXIX | +28 | (1081) | - 71 | Lu XXX | +29 | (1130) | - 71 | Lu XXXI | +30 | (1178) | - 71 | Lu XXXII | +31 | (1242) | - 71 | Lu XXXIII | +32 | (1292) | - 71 | Lu XXXIV | +33 | (1345) | - 71 | Lu XXXV | +34 | (1395) | - 71 | Lu XXXVI | +35 | (1591) | - 71 | Lu XXXVII | +36 | (1641) | - 71 | Lu XXXVIII | +37 | (1696) | - 71 | Lu XXXIX | +38 | (1747) | - 71 | Lu XL | +39 | (1875) | - 71 | Lu XLI | +40 | (1933) | - 71 | Lu XLII | +41 | (2067) | - 71 | Lu XLIII | +42 | [2125.5] | - 71 | Lu XLIV | +43 | (3590) | - 71 | Lu XLV | +44 | (3706) | - 71 | Lu XLVI | +45 | (3828) | - 71 | Lu XLVII | +46 | (3960) | - 71 | Lu XLVIII | +47 | (4086) | - 71 | Lu XLIX | +48 | (4211) | - 71 | Lu L | +49 | (4403) | - 71 | Lu LI | +50 | (4532) | - 71 | Lu LII | +51 | (4673) | - 71 | Lu LIII | +52 | (4803) | - 71 | Lu LIV | +53 | (5168) | - 71 | Lu LV | +54 | (5282) | - 71 | Lu LVI | +55 | (5408) | - 71 | Lu LVII | +56 | (5525) | - 71 | Lu LVIII | +57 | (5937) | - 71 | Lu LIX | +58 | (6070) | - 71 | Lu LX | +59 | (6326) | - 71 | Lu LXI | +60 | (6452) | - 71 | Lu LXII | +61 | (14228) | - 71 | Lu LXIII | +62 | (14542) | - 71 | Lu LXIV | +63 | (14890) | - 71 | Lu LXV | +64 | (15211) | - 71 | Lu LXVI | +65 | (16730) | - 71 | Lu LXVII | +66 | (17120) | - 71 | Lu LXVIII | +67 | (17610) | - 71 | Lu LXIX | +68 | (17928.05) | - 71 | Lu LXX | +69 | (72322.91) | - 71 | Lu LXXI | +70 | (73804.35) | - 72 | Hf I | 0 | 6.825070 | - 72 | Hf II | +1 | (14.61) | - 72 | Hf III | +2 | (22.55) | - 72 | Hf IV | +3 | [33.370] | - 72 | Hf V | +4 | [68.37] | - 72 | Hf VI | +5 | (98) | - 72 | Hf VII | +6 | (118) | - 72 | Hf VIII | +7 | (137) | - 72 | Hf IX | +8 | (157) | - 72 | Hf X | +9 | (187) | - 72 | Hf XI | +10 | (209) | - 72 | Hf XII | +11 | (230) | - 72 | Hf XIII | +12 | (270) | - 72 | Hf XIV | +13 | (310) | - 72 | Hf XV | +14 | (334) | - 72 | Hf XVI | +15 | (359) | - 72 | Hf XVII | +16 | (399) | - 72 | Hf XVIII | +17 | (440) | - 72 | Hf XIX | +18 | (481) | - 72 | Hf XX | +19 | (520) | - 72 | Hf XXI | +20 | (570) | - 72 | Hf XXII | +21 | (610) | - 72 | Hf XXIII | +22 | (650) | - 72 | Hf XXIV | +23 | (690) | - 72 | Hf XXV | +24 | (730) | - 72 | Hf XXVI | +25 | (772) | - 72 | Hf XXVII | +26 | (1002) | - 72 | Hf XXVIII | +27 | (1047) | - 72 | Hf XXIX | +28 | (1094) | - 72 | Hf XXX | +29 | (1146) | - 72 | Hf XXXI | +30 | (1195) | - 72 | Hf XXXII | +31 | (1245) | - 72 | Hf XXXIII | +32 | (1311) | - 72 | Hf XXXIV | +33 | (1362) | - 72 | Hf XXXV | +34 | (1417) | - 72 | Hf XXXVI | +35 | (1467) | - 72 | Hf XXXVII | +36 | (1669) | - 72 | Hf XXXVIII | +37 | (1719) | - 72 | Hf XXXIX | +38 | (1776) | - 72 | Hf XL | +39 | (1827) | - 72 | Hf XLI | +40 | (1963) | - 72 | Hf XLII | +41 | (2022) | - 72 | Hf XLIII | +42 | (2159) | - 72 | Hf XLIV | +43 | [2218.9] | - 72 | Hf XLV | +44 | (3741) | - 72 | Hf XLVI | +45 | (3858) | - 72 | Hf XLVII | +46 | (3984) | - 72 | Hf XLVIII | +47 | (4118) | - 72 | Hf XLIX | +48 | (4246) | - 72 | Hf L | +49 | (4372) | - 72 | Hf LI | +50 | (4573) | - 72 | Hf LII | +51 | (4703) | - 72 | Hf LIII | +52 | (4846) | - 72 | Hf LIV | +53 | (4980) | - 72 | Hf LV | +54 | (5350) | - 72 | Hf LVI | +55 | (5468) | - 72 | Hf LVII | +56 | (5595) | - 72 | Hf LVIII | +57 | (5713) | - 72 | Hf LIX | +58 | (6149) | - 72 | Hf LX | +59 | (6284) | - 72 | Hf LXI | +60 | (6545) | - 72 | Hf LXII | +61 | (6674) | - 72 | Hf LXIII | +62 | (14678) | - 72 | Hf LXIV | +63 | (14999) | - 72 | Hf LXV | +64 | (15351) | - 72 | Hf LXVI | +65 | (15680) | - 72 | Hf LXVII | +66 | (17280) | - 72 | Hf LXVIII | +67 | (17680) | - 72 | Hf LXIX | +68 | (18180) | - 72 | Hf LXX | +69 | (18502.32) | - 72 | Hf LXXI | +70 | (74565.93) | - 72 | Hf LXXII | +71 | (76077.70) | - 73 | Ta I | 0 | 7.549571 | - 73 | Ta II | +1 | [16.2] | - 73 | Ta III | +2 | (23.1) | - 73 | Ta IV | +3 | (35.0) | - 73 | Ta V | +4 | [48.272] | - 73 | Ta VI | +5 | [94.01] | - 73 | Ta VII | +6 | (119) | - 73 | Ta VIII | +7 | (139) | - 73 | Ta IX | +8 | (159) | - 73 | Ta X | +9 | (180) | - 73 | Ta XI | +10 | (213) | - 73 | Ta XII | +11 | (235) | - 73 | Ta XIII | +12 | (262) | - 73 | Ta XIV | +13 | (304) | - 73 | Ta XV | +14 | (338) | - 73 | Ta XVI | +15 | (363) | - 73 | Ta XVII | +16 | (396) | - 73 | Ta XVIII | +17 | (439) | - 73 | Ta XIX | +18 | (482) | - 73 | Ta XX | +19 | (530) | - 73 | Ta XXI | +20 | (570) | - 73 | Ta XXII | +21 | (610) | - 73 | Ta XXIII | +22 | (660) | - 73 | Ta XXIV | +23 | (700) | - 73 | Ta XXV | +24 | (750) | - 73 | Ta XXVI | +25 | (790) | - 73 | Ta XXVII | +26 | (832) | - 73 | Ta XXVIII | +27 | (1064) | - 73 | Ta XXIX | +28 | (1110) | - 73 | Ta XXX | +29 | (1160) | - 73 | Ta XXXI | +30 | (1211) | - 73 | Ta XXXII | +31 | (1262) | - 73 | Ta XXXIII | +32 | (1313) | - 73 | Ta XXXIV | +33 | (1382) | - 73 | Ta XXXV | +34 | (1434) | - 73 | Ta XXXVI | +35 | (1490) | - 73 | Ta XXXVII | +36 | (1542) | - 73 | Ta XXXVIII | +37 | (1748) | - 73 | Ta XXXIX | +38 | (1799) | - 73 | Ta XL | +39 | (1857) | - 73 | Ta XLI | +40 | (1910) | - 73 | Ta XLII | +41 | (2053) | - 73 | Ta XLIII | +42 | (2113) | - 73 | Ta XLIV | +43 | (2254) | - 73 | Ta XLV | +44 | [2314.7] | - 73 | Ta XLVI | +45 | 3898.7 | - 73 | Ta XLVII | +46 | (4014) | - 73 | Ta XLVIII | +47 | (4143) | - 73 | Ta XLIX | +48 | (4278) | - 73 | Ta L | +49 | (4410) | - 73 | Ta LI | +50 | (4537) | - 73 | Ta LII | +51 | (4745) | - 73 | Ta LIII | +52 | (4877) | - 73 | Ta LIV | +53 | (5024) | - 73 | Ta LV | +54 | (5159) | - 73 | Ta LVI | +55 | (5537) | - 73 | Ta LVII | +56 | (5655) | - 73 | Ta LVIII | +57 | (5785) | - 73 | Ta LIX | +58 | (5907) | - 73 | Ta LX | +59 | (6364) | - 73 | Ta LXI | +60 | (6502) | - 73 | Ta LXII | +61 | (6769) | - 73 | Ta LXIII | +62 | (6900) | - 73 | Ta LXIV | +63 | (15137) | - 73 | Ta LXV | +64 | (15461) | - 73 | Ta LXVI | +65 | (15820) | - 73 | Ta LXVII | +66 | (16150) | - 73 | Ta LXVIII | +67 | (17840) | - 73 | Ta LXIX | +68 | (18250) | - 73 | Ta LXX | +69 | (18760) | - 73 | Ta LXXI | +70 | (19088.51) | - 73 | Ta LXXII | +71 | (76852.03) | - 73 | Ta LXXIII | +72 | (78394.63) | - 74 | W I | 0 | 7.86403 | - 74 | W II | +1 | [16.37] | - 74 | W III | +2 | [26.0] | - 74 | W IV | +3 | [38.2] | - 74 | W V | +4 | [51.6] | - 74 | W VI | +5 | [64.77] | - 74 | W VII | +6 | [122.01] | - 74 | W VIII | +7 | [141.2] | - 74 | W IX | +8 | [160.2] | - 74 | W X | +9 | [179.0] | - 74 | W XI | +10 | [208.9] | - 74 | W XII | +11 | [231.6] | - 74 | W XIII | +12 | [258.3] | - 74 | W XIV | +13 | [290.7] | - 74 | W XV | +14 | [325.3] | - 74 | W XVI | +15 | [361.9] | - 74 | W XVII | +16 | [387.9] | - 74 | W XVIII | +17 | [420.7] | - 74 | W XIX | +18 | [462.1] | - 74 | W XX | +19 | [502.6] | - 74 | W XXI | +20 | [543.4] | - 74 | W XXII | +21 | [594.5] | - 74 | W XXIII | +22 | [640.6] | - 74 | W XXIV | +23 | [685.6] | - 74 | W XXV | +24 | [734.1] | - 74 | W XXVI | +25 | [784.4] | - 74 | W XXVII | +26 | [833.4] | - 74 | W XXVIII | +27 | [881.4] | - 74 | W XXIX | +28 | [1132.2] | - 74 | W XXX | +29 | [1180.0] | - 74 | W XXXI | +30 | [1230.4] | - 74 | W XXXII | +31 | [1283.4] | - 74 | W XXXIII | +32 | [1335.1] | - 74 | W XXXIV | +33 | [1386.8] | - 74 | W XXXV | +34 | [1459.9] | - 74 | W XXXVI | +35 | [1512.4] | - 74 | W XXXVII | +36 | [1569.1] | - 74 | W XXXVIII | +37 | [1621.7] | - 74 | W XXXIX | +38 | [1829.8] | - 74 | W XL | +39 | [1882.9] | - 74 | W XLI | +40 | [1940.6] | - 74 | W XLII | +41 | [1994.8] | - 74 | W XLIII | +42 | [2149.1] | - 74 | W XLIV | +43 | [2210.0] | - 74 | W XLV | +44 | [2354.5] | - 74 | W XLVI | +45 | [2414.1] | - 74 | W XLVII | +46 | 4057 | - 74 | W XLVIII | +47 | [4180] | - 74 | W XLIX | +48 | [4309] | - 74 | W L | +49 | [4446] | - 74 | W LI | +50 | [4578] | - 74 | W LII | +51 | [4709] | - 74 | W LIII | +52 | [4927] | - 74 | W LIV | +53 | [5063] | - 74 | W LV | +54 | [5209] | - 74 | W LVI | +55 | [5348] | - 74 | W LVII | +56 | [5719] | - 74 | W LVIII | +57 | [5840] | - 74 | W LIX | +58 | [5970] | - 74 | W LX | +59 | [6093] | - 74 | W LXI | +60 | [6596] | - 74 | W LXII | +61 | [6735] | - 74 | W LXIII | +62 | [7000] | - 74 | W LXIV | +63 | [7130] | - 74 | W LXV | +64 | [15566] | - 74 | W LXVI | +65 | [15896] | - 74 | W LXVII | +66 | [16252] | - 74 | W LXVIII | +67 | [16588] | - 74 | W LXIX | +68 | [18476] | - 74 | W LXX | +69 | [18872] | - 74 | W LXXI | +70 | [19362] | - 74 | W LXXII | +71 | (19686.74) | - 74 | W LXXIII | +72 | (79181.94) | - 74 | W LXXIV | +73 | (80755.91) | - 75 | Re I | 0 | 7.83352 | - 75 | Re II | +1 | [16.6] | - 75 | Re III | +2 | (27.0) | - 75 | Re IV | +3 | (39.1) | - 75 | Re V | +4 | (51.9) | - 75 | Re VI | +5 | (67.0) | - 75 | Re VII | +6 | [82.71] | - 75 | Re VIII | +7 | [144.4] | - 75 | Re IX | +8 | (165) | - 75 | Re X | +9 | (187) | - 75 | Re XI | +10 | (208) | - 75 | Re XII | +11 | (236) | - 75 | Re XIII | +12 | (268) | - 75 | Re XIV | +13 | (291) | - 75 | Re XV | +14 | (330) | - 75 | Re XVI | +15 | (377) | - 75 | Re XVII | +16 | (403) | - 75 | Re XVIII | +17 | (429) | - 75 | Re XIX | +18 | (476) | - 75 | Re XX | +19 | (520) | - 75 | Re XXI | +20 | (570) | - 75 | Re XXII | +21 | (620) | - 75 | Re XXIII | +22 | (670) | - 75 | Re XXIV | +23 | (720) | - 75 | Re XXV | +24 | (760) | - 75 | Re XXVI | +25 | (810) | - 75 | Re XXVII | +26 | (860) | - 75 | Re XXVIII | +27 | (910) | - 75 | Re XXIX | +28 | (953) | - 75 | Re XXX | +29 | (1194) | - 75 | Re XXXI | +30 | (1242) | - 75 | Re XXXII | +31 | (1294) | - 75 | Re XXXIII | +32 | (1349) | - 75 | Re XXXIV | +33 | (1402) | - 75 | Re XXXV | +34 | (1454) | - 75 | Re XXXVI | +35 | (1530) | - 75 | Re XXXVII | +36 | (1583) | - 75 | Re XXXVIII | +37 | (1641) | - 75 | Re XXXIX | +38 | (1696) | - 75 | Re XL | +39 | (1912) | - 75 | Re XLI | +40 | (1966) | - 75 | Re XLII | +41 | (2025) | - 75 | Re XLIII | +42 | (2080) | - 75 | Re XLIV | +43 | (2240) | - 75 | Re XLV | +44 | (2302) | - 75 | Re XLVI | +45 | (2450) | - 75 | Re XLVII | +46 | [2514.5] | - 75 | Re XLVIII | +47 | 4214 | - 75 | Re XLIX | +48 | (4335) | - 75 | Re L | +49 | (4468) | - 75 | Re LI | +50 | (4609) | - 75 | Re LII | +51 | (4745) | - 75 | Re LIII | +52 | (4877) | - 75 | Re LIV | +53 | (5099) | - 75 | Re LV | +54 | (5236) | - 75 | Re LVI | +55 | (5388) | - 75 | Re LVII | +56 | (5528) | - 75 | Re LVIII | +57 | (5919) | - 75 | Re LIX | +58 | (6042) | - 75 | Re LX | +59 | (6176) | - 75 | Re LXI | +60 | (6300) | - 75 | Re LXII | +61 | (6810) | - 75 | Re LXIII | +62 | (6952) | - 75 | Re LXIV | +63 | (7230) | - 75 | Re LXV | +64 | (7366) | - 75 | Re LXVI | +65 | (16080) | - 75 | Re LXVII | +66 | (16410) | - 75 | Re LXVIII | +67 | (16780) | - 75 | Re LXIX | +68 | (17120) | - 75 | Re LXX | +69 | (19000) | - 75 | Re LXXI | +70 | (19420) | - 75 | Re LXXII | +71 | (19950) | - 75 | Re LXXIII | +72 | (20297.40) | - 75 | Re LXXIV | +73 | (81556.90) | - 75 | Re LXXV | +74 | (83162.41) | - 76 | Os I | 0 | 8.43823 | - 76 | Os II | +1 | [17.0] | - 76 | Os III | +2 | (25.0) | - 76 | Os IV | +3 | (41.0) | - 76 | Os V | +4 | (55.0) | - 76 | Os VI | +5 | (70.1) | - 76 | Os VII | +6 | (85.1) | - 76 | Os VIII | +7 | [102.02] | - 76 | Os IX | +8 | [168.7] | - 76 | Os X | +9 | (190) | - 76 | Os XI | +10 | (213) | - 76 | Os XII | +11 | (235) | - 76 | Os XIII | +12 | (269) | - 76 | Os XIV | +13 | (298) | - 76 | Os XV | +14 | (322) | - 76 | Os XVI | +15 | (367) | - 76 | Os XVII | +16 | (410) | - 76 | Os XVIII | +17 | (436) | - 76 | Os XIX | +18 | (470) | - 76 | Os XX | +19 | (520) | - 76 | Os XXI | +20 | (570) | - 76 | Os XXII | +21 | (620) | - 76 | Os XXIII | +22 | (670) | - 76 | Os XXIV | +23 | (720) | - 76 | Os XXV | +24 | (770) | - 76 | Os XXVI | +25 | (820) | - 76 | Os XXVII | +26 | (870) | - 76 | Os XXVIII | +27 | (920) | - 76 | Os XXIX | +28 | (970) | - 76 | Os XXX | +29 | (1015) | - 76 | Os XXXI | +30 | (1262) | - 76 | Os XXXII | +31 | (1311) | - 76 | Os XXXIII | +32 | (1364) | - 76 | Os XXXIV | +33 | (1420) | - 76 | Os XXXV | +34 | (1474) | - 76 | Os XXXVI | +35 | (1528) | - 76 | Os XXXVII | +36 | (1606) | - 76 | Os XXXVIII | +37 | (1660) | - 76 | Os XXXIX | +38 | (1720) | - 76 | Os XL | +39 | (1776) | - 76 | Os XLI | +40 | (1996) | - 76 | Os XLII | +41 | (2052) | - 76 | Os XLIII | +42 | (2112) | - 76 | Os XLIV | +43 | (2168) | - 76 | Os XLV | +44 | (2336) | - 76 | Os XLVI | +45 | (2400) | - 76 | Os XLVII | +46 | (2552) | - 76 | Os XLVIII | +47 | [2615.5] | - 76 | Os XLIX | +48 | (4374) | - 76 | Os L | +49 | (4501) | - 76 | Os LI | +50 | (4635) | - 76 | Os LII | +51 | (4779) | - 76 | Os LIII | +52 | (4917) | - 76 | Os LIV | +53 | (5052) | - 76 | Os LV | +54 | (5280) | - 76 | Os LVI | +55 | (5421) | - 76 | Os LVII | +56 | (5575) | - 76 | Os LVIII | +57 | (5717) | - 76 | Os LIX | +58 | (6115) | - 76 | Os LX | +59 | (6240) | - 76 | Os LXI | +60 | (6376) | - 76 | Os LXII | +61 | (6503) | - 76 | Os LXIII | +62 | (7039) | - 76 | Os LXIV | +63 | (7185) | - 76 | Os LXV | +64 | (7468) | - 76 | Os LXVI | +65 | (7610) | - 76 | Os LXVII | +66 | (16560) | - 76 | Os LXVIII | +67 | (16900) | - 76 | Os LXIX | +68 | (17270) | - 76 | Os LXX | +69 | (17620) | - 76 | Os LXXI | +70 | (19600) | - 76 | Os LXXII | +71 | (20030) | - 76 | Os LXXIII | +72 | (20570) | - 76 | Os LXXIV | +73 | (20920.60) | - 76 | Os LXXV | +74 | (83976.21) | - 76 | Os LXXVI | +75 | (85614.42) | - 77 | Ir I | 0 | 8.96702 | - 77 | Ir II | +1 | [17.0] | - 77 | Ir III | +2 | (28.0) | - 77 | Ir IV | +3 | (40.0) | - 77 | Ir V | +4 | (57.0) | - 77 | Ir VI | +5 | (72.0) | - 77 | Ir VII | +6 | (89.0) | - 77 | Ir VIII | +7 | (105.0) | - 77 | Ir IX | +8 | [122.7] | - 77 | Ir X | +9 | [194.8] | - 77 | Ir XI | +10 | (217) | - 77 | Ir XII | +11 | (240) | - 77 | Ir XIII | +12 | (264) | - 77 | Ir XIV | +13 | (303) | - 77 | Ir XV | +14 | (329) | - 77 | Ir XVI | +15 | (356) | - 77 | Ir XVII | +16 | (407) | - 77 | Ir XVIII | +17 | (445) | - 77 | Ir XIX | +18 | (472) | - 77 | Ir XX | +19 | (510) | - 77 | Ir XXI | +20 | (560) | - 77 | Ir XXII | +21 | (610) | - 77 | Ir XXIII | +22 | (670) | - 77 | Ir XXIV | +23 | (720) | - 77 | Ir XXV | +24 | (770) | - 77 | Ir XXVI | +25 | (820) | - 77 | Ir XXVII | +26 | (870) | - 77 | Ir XXVIII | +27 | (920) | - 77 | Ir XXIX | +28 | (980) | - 77 | Ir XXX | +29 | (1030) | - 77 | Ir XXXI | +30 | (1080) | - 77 | Ir XXXII | +31 | (1331) | - 77 | Ir XXXIII | +32 | (1381) | - 77 | Ir XXXIV | +33 | (1436) | - 77 | Ir XXXV | +34 | (1493) | - 77 | Ir XXXVI | +35 | (1548) | - 77 | Ir XXXVII | +36 | (1603) | - 77 | Ir XXXVIII | +37 | (1684) | - 77 | Ir XXXIX | +38 | (1739) | - 77 | Ir XL | +39 | (1801) | - 77 | Ir XLI | +40 | (1857) | - 77 | Ir XLII | +41 | (2083) | - 77 | Ir XLIII | +42 | (2139) | - 77 | Ir XLIV | +43 | (2201) | - 77 | Ir XLV | +44 | (2258) | - 77 | Ir XLVI | +45 | (2435) | - 77 | Ir XLVII | +46 | (2500) | - 77 | Ir XLVIII | +47 | (2656) | - 77 | Ir XLIX | +48 | [2720.4] | - 77 | Ir L | +49 | (4540) | - 77 | Ir LI | +50 | (4668) | - 77 | Ir LII | +51 | (4806) | - 77 | Ir LIII | +52 | (4952) | - 77 | Ir LIV | +53 | (5092) | - 77 | Ir LV | +54 | (5229) | - 77 | Ir LVI | +55 | (5466) | - 77 | Ir LVII | +56 | (5609) | - 77 | Ir LVIII | +57 | (5765) | - 77 | Ir LIX | +58 | (5910) | - 77 | Ir LX | +59 | (6315) | - 77 | Ir LXI | +60 | (6441) | - 77 | Ir LXII | +61 | (6580) | - 77 | Ir LXIII | +62 | (6708) | - 77 | Ir LXIV | +63 | (7274) | - 77 | Ir LXV | +64 | (7421) | - 77 | Ir LXVI | +65 | (7710) | - 77 | Ir LXVII | +66 | (7850) | - 77 | Ir LXVIII | +67 | (17040) | - 77 | Ir LXIX | +68 | (17390) | - 77 | Ir LXX | +69 | (17770) | - 77 | Ir LXXI | +70 | (18120) | - 77 | Ir LXXII | +71 | (20210) | - 77 | Ir LXXIII | +72 | (20650) | - 77 | Ir LXXIV | +73 | (21200) | - 77 | Ir LXXV | +74 | (21556.60) | - 77 | Ir LXXVI | +75 | (86438.9) | - 77 | Ir LXXVII | +76 | (88113.6) | - 78 | Pt I | 0 | 8.95883 | - 78 | Pt II | +1 | 18.56 | - 78 | Pt III | +2 | (29.0) | - 78 | Pt IV | +3 | (43.0) | - 78 | Pt V | +4 | (56.0) | - 78 | Pt VI | +5 | (75.0) | - 78 | Pt VII | +6 | (91.0) | - 78 | Pt VIII | +7 | (109.0) | - 78 | Pt IX | +8 | (126.0) | - 78 | Pt X | +9 | [144.9] | - 78 | Pt XI | +10 | [220.4] | - 78 | Pt XII | +11 | (245) | - 78 | Pt XIII | +12 | (269) | - 78 | Pt XIV | +13 | (293) | - 78 | Pt XV | +14 | (332) | - 78 | Pt XVI | +15 | (358) | - 78 | Pt XVII | +16 | (392) | - 78 | Pt XVIII | +17 | (445) | - 78 | Pt XIX | +18 | (479) | - 78 | Pt XX | +19 | (507) | - 78 | Pt XXI | +20 | (550) | - 78 | Pt XXII | +21 | (610) | - 78 | Pt XXIII | +22 | (660) | - 78 | Pt XXIV | +23 | (710) | - 78 | Pt XXV | +24 | (760) | - 78 | Pt XXVI | +25 | (820) | - 78 | Pt XXVII | +26 | (870) | - 78 | Pt XXVIII | +27 | (930) | - 78 | Pt XXIX | +28 | (980) | - 78 | Pt XXX | +29 | (1040) | - 78 | Pt XXXI | +30 | (1090) | - 78 | Pt XXXII | +31 | (1140) | - 78 | Pt XXXIII | +32 | (1402) | - 78 | Pt XXXIV | +33 | (1454) | - 78 | Pt XXXV | +34 | (1509) | - 78 | Pt XXXVI | +35 | (1567) | - 78 | Pt XXXVII | +36 | (1624) | - 78 | Pt XXXVIII | +37 | (1680) | - 78 | Pt XXXIX | +38 | (1763) | - 78 | Pt XL | +39 | (1821) | - 78 | Pt XLI | +40 | (1883) | - 78 | Pt XLII | +41 | (1941) | - 78 | Pt XLIII | +42 | (2171) | - 78 | Pt XLIV | +43 | (2228) | - 78 | Pt XLV | +44 | (2291) | - 78 | Pt XLVI | +45 | (2350) | - 78 | Pt XLVII | +46 | (2536) | - 78 | Pt XLVIII | +47 | (2603) | - 78 | Pt XLIX | +48 | (2762) | - 78 | Pt L | +49 | [2827.8] | - 78 | Pt LI | +50 | 4715 | - 78 | Pt LII | +51 | (4839) | - 78 | Pt LIII | +52 | (4980) | - 78 | Pt LIV | +53 | (5128) | - 78 | Pt LV | +54 | (5270) | - 78 | Pt LVI | +55 | (5410) | - 78 | Pt LVII | +56 | (5654) | - 78 | Pt LVIII | +57 | (5800) | - 78 | Pt LIX | +58 | (5959) | - 78 | Pt LX | +59 | (6106) | - 78 | Pt LXI | +60 | (6517) | - 78 | Pt LXII | +61 | (6646) | - 78 | Pt LXIII | +62 | (6787) | - 78 | Pt LXIV | +63 | (6918) | - 78 | Pt LXV | +64 | (7512) | - 78 | Pt LXVI | +65 | (7660) | - 78 | Pt LXVII | +66 | (7960) | - 78 | Pt LXVIII | +67 | (8100) | - 78 | Pt LXIX | +68 | (17540) | - 78 | Pt LXX | +69 | (17890) | - 78 | Pt LXXI | +70 | (18280) | - 78 | Pt LXXII | +71 | (18630) | - 78 | Pt LXXIII | +72 | (20840) | - 78 | Pt LXXIV | +73 | (21280) | - 78 | Pt LXXV | +74 | (21840) | - 78 | Pt LXXVI | +75 | (22205.7) | - 78 | Pt LXXVII | +76 | (88955.18) | - 78 | Pt LXXVIII | +77 | (90659.84) | - 79 | Au I | 0 | 9.225554 | - 79 | Au II | +1 | 20.203 | - 79 | Au III | +2 | (30.0) | - 79 | Au IV | +3 | (45.0) | - 79 | Au V | +4 | (60.0) | - 79 | Au VI | +5 | (74.0) | - 79 | Au VII | +6 | (94.0) | - 79 | Au VIII | +7 | (112.0) | - 79 | Au IX | +8 | (130.1) | - 79 | Au X | +9 | (149.0) | - 79 | Au XI | +10 | [168.2] | - 79 | Au XII | +11 | [248.0] | - 79 | Au XIII | +12 | (275) | - 79 | Au XIV | +13 | (299) | - 79 | Au XV | +14 | (324) | - 79 | Au XVI | +15 | (365) | - 79 | Au XVII | +16 | (392) | - 79 | Au XVIII | +17 | (433) | - 79 | Au XIX | +18 | (487) | - 79 | Au XX | +19 | (520) | - 79 | Au XXI | +20 | (550) | - 79 | Au XXII | +21 | (600) | - 79 | Au XXIII | +22 | (650) | - 79 | Au XXIV | +23 | (710) | - 79 | Au XXV | +24 | (760) | - 79 | Au XXVI | +25 | (820) | - 79 | Au XXVII | +26 | (870) | - 79 | Au XXVIII | +27 | (930) | - 79 | Au XXIX | +28 | (990) | - 79 | Au XXX | +29 | (1040) | - 79 | Au XXXI | +30 | (1100) | - 79 | Au XXXII | +31 | (1150) | - 79 | Au XXXIII | +32 | (1210) | - 79 | Au XXXIV | +33 | (1475) | - 79 | Au XXXV | +34 | (1527) | - 79 | Au XXXVI | +35 | (1584) | - 79 | Au XXXVII | +36 | (1644) | - 79 | Au XXXVIII | +37 | (1702) | - 79 | Au XXXIX | +38 | (1758) | - 79 | Au XL | +39 | (1845) | - 79 | Au XLI | +40 | (1904) | - 79 | Au XLII | +41 | (1967) | - 79 | Au XLIII | +42 | (2026) | - 79 | Au XLIV | +43 | (2261) | - 79 | Au XLV | +44 | (2320) | - 79 | Au XLVI | +45 | (2383) | - 79 | Au XLVII | +46 | (2443) | - 79 | Au XLVIII | +47 | (2640) | - 79 | Au XLIX | +48 | (2708) | - 79 | Au L | +49 | (2870) | - 79 | Au LI | +50 | [2941.0] | - 79 | Au LII | +51 | 4888 | - 79 | Au LIII | +52 | (5013) | - 79 | Au LIV | +53 | (5156) | - 79 | Au LV | +54 | (5307) | - 79 | Au LVI | +55 | (5452) | - 79 | Au LVII | +56 | (5594) | - 79 | Au LVIII | +57 | (5846) | - 79 | Au LIX | +58 | (5994) | - 79 | Au LX | +59 | (6156) | - 79 | Au LXI | +60 | (6305) | - 79 | Au LXII | +61 | (6724) | - 79 | Au LXIII | +62 | (6854) | - 79 | Au LXIV | +63 | (6997) | - 79 | Au LXV | +64 | (7130) | - 79 | Au LXVI | +65 | (7760) | - 79 | Au LXVII | +66 | (7910) | - 79 | Au LXVIII | +67 | (8210) | - 79 | Au LXIX | +68 | (8360) | - 79 | Au LXX | +69 | (18040) | - 79 | Au LXXI | +70 | (18400) | - 79 | Au LXXII | +71 | (18790) | - 79 | Au LXXIII | +72 | (19150) | - 79 | Au LXXIV | +73 | (21470) | - 79 | Au LXXV | +74 | (21920) | - 79 | Au LXXVI | +75 | (22500) | - 79 | Au LXXVII | +76 | (22868.1) | - 79 | Au LXXVIII | +77 | (91515.82) | - 79 | Au LXXIX | +78 | (93254.62) | - 80 | Hg I | 0 | 10.437504 | - 80 | Hg II | +1 | 18.75688 | - 80 | Hg III | +2 | 34.49 | - 80 | Hg IV | +3 | 48.55 | - 80 | Hg V | +4 | 61.20 | - 80 | Hg VI | +5 | 76.6 | - 80 | Hg VII | +6 | 93.0 | - 80 | Hg VIII | +7 | (113.9) | - 80 | Hg IX | +8 | (134.0) | - 80 | Hg X | +9 | (153.0) | - 80 | Hg XI | +10 | (173.0) | - 80 | Hg XII | +11 | [192.7] | - 80 | Hg XIII | +12 | [276.9] | - 80 | Hg XIV | +13 | (307) | - 80 | Hg XV | +14 | (332) | - 80 | Hg XVI | +15 | (357) | - 80 | Hg XVII | +16 | (402) | - 80 | Hg XVIII | +17 | (429) | - 80 | Hg XIX | +18 | (477) | - 80 | Hg XX | +19 | (530) | - 80 | Hg XXI | +20 | (560) | - 80 | Hg XXII | +21 | (590) | - 80 | Hg XXIII | +22 | (650) | - 80 | Hg XXIV | +23 | (710) | - 80 | Hg XXV | +24 | (760) | - 80 | Hg XXVI | +25 | (820) | - 80 | Hg XXVII | +26 | (880) | - 80 | Hg XXVIII | +27 | (930) | - 80 | Hg XXIX | +28 | (990) | - 80 | Hg XXX | +29 | (1050) | - 80 | Hg XXXI | +30 | (1110) | - 80 | Hg XXXII | +31 | (1160) | - 80 | Hg XXXIII | +32 | (1220) | - 80 | Hg XXXIV | +33 | (1280) | - 80 | Hg XXXV | +34 | (1549) | - 80 | Hg XXXVI | +35 | (1603) | - 80 | Hg XXXVII | +36 | (1661) | - 80 | Hg XXXVIII | +37 | (1723) | - 80 | Hg XXXIX | +38 | (1780) | - 80 | Hg XL | +39 | (1839) | - 80 | Hg XLI | +40 | (1928) | - 80 | Hg XLII | +41 | (1989) | - 80 | Hg XLIII | +42 | (2052) | - 80 | Hg XLIV | +43 | (2113) | - 80 | Hg XLV | +44 | (2354) | - 80 | Hg XLVI | +45 | (2412) | - 80 | Hg XLVII | +46 | (2478) | - 80 | Hg XLVIII | +47 | (2539) | - 80 | Hg XLIX | +48 | (2745) | - 80 | Hg L | +49 | (2815) | - 80 | Hg LI | +50 | (2981) | - 80 | Hg LII | +51 | [3049.9] | - 80 | Hg LIII | +52 | (5055) | - 80 | Hg LIV | +53 | (5191) | - 80 | Hg LV | +54 | (5335) | - 80 | Hg LVI | +55 | (5490) | - 80 | Hg LVII | +56 | (5636) | - 80 | Hg LVIII | +57 | (5780) | - 80 | Hg LIX | +58 | (6041) | - 80 | Hg LX | +59 | (6192) | - 80 | Hg LXI | +60 | (6356) | - 80 | Hg LXII | +61 | (6508) | - 80 | Hg LXIII | +62 | (6933) | - 80 | Hg LXIV | +63 | (7066) | - 80 | Hg LXV | +64 | (7211) | - 80 | Hg LXVI | +65 | (7350) | - 80 | Hg LXVII | +66 | (8010) | - 80 | Hg LXVIII | +67 | (8160) | - 80 | Hg LXIX | +68 | (8470) | - 80 | Hg LXX | +69 | (8620) | - 80 | Hg LXXI | +70 | (18550) | - 80 | Hg LXXII | +71 | (18910) | - 80 | Hg LXXIII | +72 | (19310) | - 80 | Hg LXXIV | +73 | (19680) | - 80 | Hg LXXV | +74 | (22120) | - 80 | Hg LXXVI | +75 | (22580) | - 80 | Hg LXXVII | +76 | (23170) | - 80 | Hg LXXVIII | +77 | (23544.1) | - 80 | Hg LXXIX | +78 | (94124.70) | - 80 | Hg LXXX | +79 | (95898.19) | - 81 | Tl I | 0 | 6.1082873 | - 81 | Tl II | +1 | 20.4283 | - 81 | Tl III | +2 | 29.8520 | - 81 | Tl IV | +3 | 51.14 | - 81 | Tl V | +4 | 62.6 | - 81 | Tl VI | +5 | (80.0) | - 81 | Tl VII | +6 | (97.9) | - 81 | Tl VIII | +7 | (116.0) | - 81 | Tl IX | +8 | (135.0) | - 81 | Tl X | +9 | (158.0) | - 81 | Tl XI | +10 | (177.0) | - 81 | Tl XII | +11 | (198.0) | - 81 | Tl XIII | +12 | [218.3] | - 81 | Tl XIV | +13 | [306.9] | - 81 | Tl XV | +14 | (340) | - 81 | Tl XVI | +15 | (366) | - 81 | Tl XVII | +16 | (392) | - 81 | Tl XVIII | +17 | (439) | - 81 | Tl XIX | +18 | (467) | - 81 | Tl XX | +19 | (520) | - 81 | Tl XXI | +20 | (570) | - 81 | Tl XXII | +21 | (600) | - 81 | Tl XXIII | +22 | (640) | - 81 | Tl XXIV | +23 | (700) | - 81 | Tl XXV | +24 | (760) | - 81 | Tl XXVI | +25 | (820) | - 81 | Tl XXVII | +26 | (880) | - 81 | Tl XXVIII | +27 | (930) | - 81 | Tl XXIX | +28 | (990) | - 81 | Tl XXX | +29 | (1060) | - 81 | Tl XXXI | +30 | (1110) | - 81 | Tl XXXII | +31 | (1170) | - 81 | Tl XXXIII | +32 | (1230) | - 81 | Tl XXXIV | +33 | (1290) | - 81 | Tl XXXV | +34 | (1350) | - 81 | Tl XXXVI | +35 | (1625) | - 81 | Tl XXXVII | +36 | (1681) | - 81 | Tl XXXVIII | +37 | (1740) | - 81 | Tl XXXIX | +38 | (1802) | - 81 | Tl XL | +39 | (1862) | - 81 | Tl XLI | +40 | (1920) | - 81 | Tl XLII | +41 | (2014) | - 81 | Tl XLIII | +42 | (2075) | - 81 | Tl XLIV | +43 | (2140) | - 81 | Tl XLV | +44 | (2202) | - 81 | Tl XLVI | +45 | (2447) | - 81 | Tl XLVII | +46 | (2508) | - 81 | Tl XLVIII | +47 | (2574) | - 81 | Tl XLIX | +48 | (2635) | - 81 | Tl L | +49 | (2854) | - 81 | Tl LI | +50 | (2925) | - 81 | Tl LII | +51 | (3094) | - 81 | Tl LIII | +52 | [3164.7] | - 81 | Tl LIV | +53 | (5234) | - 81 | Tl LV | +54 | (5371) | - 81 | Tl LVI | +55 | (5518) | - 81 | Tl LVII | +56 | (5674) | - 81 | Tl LVIII | +57 | (5824) | - 81 | Tl LIX | +58 | (5969) | - 81 | Tl LX | +59 | (6241) | - 81 | Tl LXI | +60 | (6392) | - 81 | Tl LXII | +61 | (6560) | - 81 | Tl LXIII | +62 | (6714) | - 81 | Tl LXIV | +63 | (7146) | - 81 | Tl LXV | +64 | (7281) | - 81 | Tl LXVI | +65 | (7430) | - 81 | Tl LXVII | +66 | (7570) | - 81 | Tl LXVIII | +67 | (8260) | - 81 | Tl LXIX | +68 | (8420) | - 81 | Tl LXX | +69 | (8730) | - 81 | Tl LXXI | +70 | (8880) | - 81 | Tl LXXII | +71 | (19070) | - 81 | Tl LXXIII | +72 | (19440) | - 81 | Tl LXXIV | +73 | (19840) | - 81 | Tl LXXV | +74 | (20210) | - 81 | Tl LXXVI | +75 | (22780) | - 81 | Tl LXXVII | +76 | (23250) | - 81 | Tl LXXVIII | +77 | (23850) | - 81 | Tl LXXIX | +78 | (24234.1) | - 81 | Tl LXXX | +79 | (96783.21) | - 81 | Tl LXXXI | +80 | (98592.12) | - 82 | Pb I | 0 | 7.4166799 | - 82 | Pb II | +1 | 15.032499 | - 82 | Pb III | +2 | 31.9373 | - 82 | Pb IV | +3 | 42.33256 | - 82 | Pb V | +4 | [68.8] | - 82 | Pb VI | +5 | (82.9) | - 82 | Pb VII | +6 | (100.1) | - 82 | Pb VIII | +7 | (120.0) | - 82 | Pb IX | +8 | (138.0) | - 82 | Pb X | +9 | (158.0) | - 82 | Pb XI | +10 | (182.0) | - 82 | Pb XII | +11 | (203.0) | - 82 | Pb XIII | +12 | (224) | - 82 | Pb XIV | +13 | [245.1] | - 82 | Pb XV | +14 | [338.1] | - 82 | Pb XVI | +15 | (374) | - 82 | Pb XVII | +16 | (401) | - 82 | Pb XVIII | +17 | (427) | - 82 | Pb XIX | +18 | (478) | - 82 | Pb XX | +19 | (507) | - 82 | Pb XXI | +20 | (570) | - 82 | Pb XXII | +21 | (610) | - 82 | Pb XXIII | +22 | (650) | - 82 | Pb XXIV | +23 | (690) | - 82 | Pb XXV | +24 | (750) | - 82 | Pb XXVI | +25 | (810) | - 82 | Pb XXVII | +26 | (870) | - 82 | Pb XXVIII | +27 | (930) | - 82 | Pb XXIX | +28 | (990) | - 82 | Pb XXX | +29 | (1050) | - 82 | Pb XXXI | +30 | (1120) | - 82 | Pb XXXII | +31 | (1180) | - 82 | Pb XXXIII | +32 | (1240) | - 82 | Pb XXXIV | +33 | (1300) | - 82 | Pb XXXV | +34 | (1360) | - 82 | Pb XXXVI | +35 | (1430) | - 82 | Pb XXXVII | +36 | (1704) | - 82 | Pb XXXVIII | +37 | (1760) | - 82 | Pb XXXIX | +38 | (1819) | - 82 | Pb XL | +39 | (1884) | - 82 | Pb XLI | +40 | (1945) | - 82 | Pb XLII | +41 | (2004) | - 82 | Pb XLIII | +42 | (2101) | - 82 | Pb XLIV | +43 | (2163) | - 82 | Pb XLV | +44 | (2230) | - 82 | Pb XLVI | +45 | (2292) | - 82 | Pb XLVII | +46 | (2543) | - 82 | Pb XLVIII | +47 | (2605) | - 82 | Pb XLIX | +48 | (2671) | - 82 | Pb L | +49 | (2735) | - 82 | Pb LI | +50 | (2965) | - 82 | Pb LII | +51 | (3036) | - 82 | Pb LIII | +52 | (3211) | - 82 | Pb LIV | +53 | [3282.1] | - 82 | Pb LV | +54 | (5414) | - 82 | Pb LVI | +55 | (5555) | - 82 | Pb LVII | +56 | (5703) | - 82 | Pb LVIII | +57 | (5862) | - 82 | Pb LIX | +58 | (6015) | - 82 | Pb LX | +59 | (6162) | - 82 | Pb LXI | +60 | (6442) | - 82 | Pb LXII | +61 | (6597) | - 82 | Pb LXIII | +62 | (6767) | - 82 | Pb LXIV | +63 | (6924) | - 82 | Pb LXV | +64 | (7362) | - 82 | Pb LXVI | +65 | (7500) | - 82 | Pb LXVII | +66 | (7650) | - 82 | Pb LXVIII | +67 | (7790) | - 82 | Pb LXIX | +68 | (8520) | - 82 | Pb LXX | +69 | (8680) | - 82 | Pb LXXI | +70 | (9000) | - 82 | Pb LXXII | +71 | (9150) | - 82 | Pb LXXIII | +72 | (19590) | - 82 | Pb LXXIV | +73 | (19970) | - 82 | Pb LXXV | +74 | (20380) | - 82 | Pb LXXVI | +75 | (20750) | - 82 | Pb LXXVII | +76 | (23460) | - 82 | Pb LXXVIII | +77 | (23940) | - 82 | Pb LXXIX | +78 | (24550) | - 82 | Pb LXXX | +79 | (24938.2) | - 82 | Pb LXXXI | +80 | (99491.85) | - 82 | Pb LXXXII | +81 | (101336.7) | - 83 | Bi I | 0 | 7.285516 | - 83 | Bi II | +1 | 16.703 | - 83 | Bi III | +2 | 25.57075 | - 83 | Bi IV | +3 | 45.37 | - 83 | Bi V | +4 | 54.856 | - 83 | Bi VI | +5 | [88.4] | - 83 | Bi VII | +6 | (103.0) | - 83 | Bi VIII | +7 | (122.0) | - 83 | Bi IX | +8 | (143.0) | - 83 | Bi X | +9 | (161.1) | - 83 | Bi XI | +10 | (183.0) | - 83 | Bi XII | +11 | (208.0) | - 83 | Bi XIII | +12 | (229) | - 83 | Bi XIV | +13 | (252) | - 83 | Bi XV | +14 | [272.6] | - 83 | Bi XVI | +15 | [370.2] | - 83 | Bi XVII | +16 | (409) | - 83 | Bi XVIII | +17 | (436) | - 83 | Bi XIX | +18 | (464) | - 83 | Bi XX | +19 | (520) | - 83 | Bi XXI | +20 | (550) | - 83 | Bi XXII | +21 | (620) | - 83 | Bi XXIII | +22 | (660) | - 83 | Bi XXIV | +23 | (690) | - 83 | Bi XXV | +24 | (750) | - 83 | Bi XXVI | +25 | (810) | - 83 | Bi XXVII | +26 | (870) | - 83 | Bi XXVIII | +27 | (930) | - 83 | Bi XXIX | +28 | (990) | - 83 | Bi XXX | +29 | (1060) | - 83 | Bi XXXI | +30 | (1120) | - 83 | Bi XXXII | +31 | (1180) | - 83 | Bi XXXIII | +32 | (1250) | - 83 | Bi XXXIV | +33 | (1310) | - 83 | Bi XXXV | +34 | (1380) | - 83 | Bi XXXVI | +35 | (1440) | - 83 | Bi XXXVII | +36 | (1500) | - 83 | Bi XXXVIII | +37 | (1784) | - 83 | Bi XXXIX | +38 | (1840) | - 83 | Bi XL | +39 | (1902) | - 83 | Bi XLI | +40 | (1967) | - 83 | Bi XLII | +41 | (2029) | - 83 | Bi XLIII | +42 | (2090) | - 83 | Bi XLIV | +43 | (2190) | - 83 | Bi XLV | +44 | (2253) | - 83 | Bi XLVI | +45 | (2321) | - 83 | Bi XLVII | +46 | (2385) | - 83 | Bi XLVIII | +47 | (2641) | - 83 | Bi XLIX | +48 | (2703) | - 83 | Bi L | +49 | (2771) | - 83 | Bi LI | +50 | (2835) | - 83 | Bi LII | +51 | (3078) | - 83 | Bi LIII | +52 | (3151) | - 83 | Bi LIV | +53 | (3329) | - 83 | Bi LV | +54 | [3401.8] | - 83 | Bi LVI | +55 | (5599) | - 83 | Bi LVII | +56 | (5740) | - 83 | Bi LVIII | +57 | (5892) | - 83 | Bi LIX | +58 | (6054) | - 83 | Bi LX | +59 | (6208) | - 83 | Bi LXI | +60 | (6358) | - 83 | Bi LXII | +61 | (6648) | - 83 | Bi LXIII | +62 | (6804) | - 83 | Bi LXIV | +63 | (6977) | - 83 | Bi LXV | +64 | (7137) | - 83 | Bi LXVI | +65 | (7580) | - 83 | Bi LXVII | +66 | (7720) | - 83 | Bi LXVIII | +67 | (7870) | - 83 | Bi LXIX | +68 | (8010) | - 83 | Bi LXX | +69 | (8780) | - 83 | Bi LXXI | +70 | (8950) | - 83 | Bi LXXII | +71 | (9270) | - 83 | Bi LXXIII | +72 | (9430) | - 83 | Bi LXXIV | +73 | (20130) | - 83 | Bi LXXV | +74 | (20500) | - 83 | Bi LXXVI | +75 | (20920) | - 83 | Bi LXXVII | +76 | (21300) | - 83 | Bi LXXVIII | +77 | (24150) | - 83 | Bi LXXIX | +78 | (24640) | - 83 | Bi LXXX | +79 | (25260) | - 83 | Bi LXXXI | +80 | (25656.9) | - 83 | Bi LXXXII | +81 | (102251.76) | - 83 | Bi LXXXIII | +82 | (104133.4) | - 84 | Po I | 0 | 8.418070 | - 84 | Po II | +1 | [19.3] | - 84 | Po III | +2 | [27.3] | - 84 | Po IV | +3 | (36.0) | - 84 | Po V | +4 | (57.0) | - 84 | Po VI | +5 | (69.1) | - 84 | Po VII | +6 | (108.0) | - 84 | Po VIII | +7 | (125.0) | - 84 | Po IX | +8 | (146.1) | - 84 | Po X | +9 | (166.0) | - 84 | Po XI | +10 | (186.0) | - 84 | Po XII | +11 | (209.0) | - 84 | Po XIII | +12 | (235) | - 84 | Po XIV | +13 | (257) | - 84 | Po XV | +14 | (281) | - 84 | Po XVI | +15 | (304) | - 84 | Po XVII | +16 | (416) | - 84 | Po XVIII | +17 | (444) | - 84 | Po XIX | +18 | (473) | - 84 | Po XX | +19 | (502) | - 84 | Po XXI | +20 | (560) | - 84 | Po XXII | +21 | (590) | - 84 | Po XXIII | +22 | (670) | - 84 | Po XXIV | +23 | (700) | - 84 | Po XXV | +24 | (740) | - 84 | Po XXVI | +25 | (800) | - 84 | Po XXVII | +26 | (870) | - 84 | Po XXVIII | +27 | (930) | - 84 | Po XXIX | +28 | (990) | - 84 | Po XXX | +29 | (1060) | - 84 | Po XXXI | +30 | (1120) | - 84 | Po XXXII | +31 | (1180) | - 84 | Po XXXIII | +32 | (1250) | - 84 | Po XXXIV | +33 | (1320) | - 84 | Po XXXV | +34 | (1380) | - 84 | Po XXXVI | +35 | (1440) | - 84 | Po XXXVII | +36 | (1510) | - 84 | Po XXXVIII | +37 | (1570) | - 84 | Po XXXIX | +38 | (1865) | - 84 | Po XL | +39 | (1923) | - 84 | Po XLI | +40 | (1986) | - 84 | Po XLII | +41 | (2052) | - 84 | Po XLIII | +42 | (2115) | - 84 | Po XLIV | +43 | (2177) | - 84 | Po XLV | +44 | (2281) | - 84 | Po XLVI | +45 | (2345) | - 84 | Po XLVII | +46 | (2414) | - 84 | Po XLVIII | +47 | (2480) | - 84 | Po XLIX | +48 | (2740) | - 84 | Po L | +49 | (2803) | - 84 | Po LI | +50 | (2873) | - 84 | Po LII | +51 | (2938) | - 84 | Po LIII | +52 | (3194) | - 84 | Po LIV | +53 | (3268) | - 84 | Po LV | +54 | (3450) | - 84 | Po LVI | +55 | [3524.2] | - 84 | Po LVII | +56 | (5785) | - 84 | Po LVIII | +57 | (5930) | - 84 | Po LIX | +58 | (6084) | - 84 | Po LX | +59 | (6248) | - 84 | Po LXI | +60 | (6405) | - 84 | Po LXII | +61 | (6557) | - 84 | Po LXIII | +62 | (6856) | - 84 | Po LXIV | +63 | (7015) | - 84 | Po LXV | +64 | (7191) | - 84 | Po LXVI | +65 | (7350) | - 84 | Po LXVII | +66 | (7810) | - 84 | Po LXVIII | +67 | (7950) | - 84 | Po LXIX | +68 | (8100) | - 84 | Po LXX | +69 | (8240) | - 84 | Po LXXI | +70 | (9050) | - 84 | Po LXXII | +71 | (9220) | - 84 | Po LXXIII | +72 | (9550) | - 84 | Po LXXIV | +73 | (9710) | - 84 | Po LXXV | +74 | (20670) | - 84 | Po LXXVI | +75 | (21050) | - 84 | Po LXXVII | +76 | (21470) | - 84 | Po LXXVIII | +77 | (21860) | - 84 | Po LXXIX | +78 | (24860) | - 84 | Po LXXX | +79 | (25360) | - 84 | Po LXXXI | +80 | (25990) | - 84 | Po LXXXII | +81 | (26390.4) | - 84 | Po LXXXIII | +82 | (105064.3) | - 84 | Po LXXXIV | +83 | (106983.4) | - 85 | At I | 0 | 9.31751 | - 85 | At II | +1 | [17.880] | - 85 | At III | +2 | [26.58] | - 85 | At IV | +3 | [39.65] | - 85 | At V | +4 | [50.39] | - 85 | At VI | +5 | (72.0) | - 85 | At VII | +6 | (85.1) | - 85 | At VIII | +7 | (130.1) | - 85 | At IX | +8 | (149.0) | - 85 | At X | +9 | (169.0) | - 85 | At XI | +10 | (192.1) | - 85 | At XII | +11 | (212.0) | - 85 | At XIII | +12 | (236) | - 85 | At XIV | +13 | (263) | - 85 | At XV | +14 | (287) | - 85 | At XVI | +15 | (311) | - 85 | At XVII | +16 | (335) | - 85 | At XVIII | +17 | (452) | - 85 | At XIX | +18 | (481) | - 85 | At XX | +19 | (510) | - 85 | At XXI | +20 | (540) | - 85 | At XXII | +21 | (600) | - 85 | At XXIII | +22 | (630) | - 85 | At XXIV | +23 | (720) | - 85 | At XXV | +24 | (750) | - 85 | At XXVI | +25 | (790) | - 85 | At XXVII | +26 | (860) | - 85 | At XXVIII | +27 | (920) | - 85 | At XXIX | +28 | (990) | - 85 | At XXX | +29 | (1050) | - 85 | At XXXI | +30 | (1120) | - 85 | At XXXII | +31 | (1180) | - 85 | At XXXIII | +32 | (1250) | - 85 | At XXXIV | +33 | (1320) | - 85 | At XXXV | +34 | (1380) | - 85 | At XXXVI | +35 | (1450) | - 85 | At XXXVII | +36 | (1510) | - 85 | At XXXVIII | +37 | (1590) | - 85 | At XXXIX | +38 | (1650) | - 85 | At XL | +39 | (1948) | - 85 | At XLI | +40 | (2007) | - 85 | At XLII | +41 | (2071) | - 85 | At XLIII | +42 | (2139) | - 85 | At XLIV | +43 | (2203) | - 85 | At XLV | +44 | (2266) | - 85 | At XLVI | +45 | (2373) | - 85 | At XLVII | +46 | (2439) | - 85 | At XLVIII | +47 | (2510) | - 85 | At XLIX | +48 | (2576) | - 85 | At L | +49 | (2841) | - 85 | At LI | +50 | (2905) | - 85 | At LII | +51 | (2977) | - 85 | At LIII | +52 | (3042) | - 85 | At LIV | +53 | (3312) | - 85 | At LV | +54 | (3388) | - 85 | At LVI | +55 | (3573) | - 85 | At LVII | +56 | [3649] | - 85 | At LVIII | +57 | (5976) | - 85 | At LIX | +58 | (6122) | - 85 | At LX | +59 | (6279) | - 85 | At LXI | +60 | (6445) | - 85 | At LXII | +61 | (6604) | - 85 | At LXIII | +62 | (6759) | - 85 | At LXIV | +63 | (7068) | - 85 | At LXV | +64 | (7230) | - 85 | At LXVI | +65 | (7410) | - 85 | At LXVII | +66 | (7570) | - 85 | At LXVIII | +67 | (8030) | - 85 | At LXIX | +68 | (8180) | - 85 | At LXX | +69 | (8330) | - 85 | At LXXI | +70 | (8480) | - 85 | At LXXII | +71 | (9330) | - 85 | At LXXIII | +72 | (9500) | - 85 | At LXXIV | +73 | (9830) | - 85 | At LXXV | +74 | (9990) | - 85 | At LXXVI | +75 | (21210) | - 85 | At LXXVII | +76 | (21600) | - 85 | At LXXVIII | +77 | (22030) | - 85 | At LXXIX | +78 | (22420) | - 85 | At LXXX | +79 | (25580) | - 85 | At LXXXI | +80 | (26090) | - 85 | At LXXXII | +81 | (26730) | - 85 | At LXXXIII | +82 | (27139.0) | - 85 | At LXXXIV | +83 | (107923.4) | - 85 | At LXXXV | +84 | (109887.2) | - 86 | Rn I | 0 | 10.74850 | - 86 | Rn II | +1 | [21.4] | - 86 | Rn III | +2 | [29.4] | - 86 | Rn IV | +3 | (36.9) | - 86 | Rn V | +4 | (52.9) | - 86 | Rn VI | +5 | (64.0) | - 86 | Rn VII | +6 | (88.0) | - 86 | Rn VIII | +7 | (102.0) | - 86 | Rn IX | +8 | (154.0) | - 86 | Rn X | +9 | (173.9) | - 86 | Rn XI | +10 | (195.0) | - 86 | Rn XII | +11 | (218.0) | - 86 | Rn XIII | +12 | (240) | - 86 | Rn XIV | +13 | (264) | - 86 | Rn XV | +14 | (293) | - 86 | Rn XVI | +15 | (317) | - 86 | Rn XVII | +16 | (342) | - 86 | Rn XVIII | +17 | (367) | - 86 | Rn XIX | +18 | (488) | - 86 | Rn XX | +19 | (520) | - 86 | Rn XXI | +20 | (550) | - 86 | Rn XXII | +21 | (580) | - 86 | Rn XXIII | +22 | (640) | - 86 | Rn XXIV | +23 | (680) | - 86 | Rn XXV | +24 | (760) | - 86 | Rn XXVI | +25 | (800) | - 86 | Rn XXVII | +26 | (850) | - 86 | Rn XXVIII | +27 | (920) | - 86 | Rn XXIX | +28 | (980) | - 86 | Rn XXX | +29 | (1050) | - 86 | Rn XXXI | +30 | (1110) | - 86 | Rn XXXII | +31 | (1180) | - 86 | Rn XXXIII | +32 | (1250) | - 86 | Rn XXXIV | +33 | (1310) | - 86 | Rn XXXV | +34 | (1390) | - 86 | Rn XXXVI | +35 | (1460) | - 86 | Rn XXXVII | +36 | (1520) | - 86 | Rn XXXVIII | +37 | (1590) | - 86 | Rn XXXIX | +38 | (1660) | - 86 | Rn XL | +39 | (1720) | - 86 | Rn XLI | +40 | (2033) | - 86 | Rn XLII | +41 | (2094) | - 86 | Rn XLIII | +42 | (2158) | - 86 | Rn XLIV | +43 | (2227) | - 86 | Rn XLV | +44 | (2293) | - 86 | Rn XLVI | +45 | (2357) | - 86 | Rn XLVII | +46 | (2467) | - 86 | Rn XLVIII | +47 | (2535) | - 86 | Rn XLIX | +48 | (2606) | - 86 | Rn L | +49 | (2674) | - 86 | Rn LI | +50 | (2944) | - 86 | Rn LII | +51 | (3010) | - 86 | Rn LIII | +52 | (3082) | - 86 | Rn LIV | +53 | (3149) | - 86 | Rn LV | +54 | (3433) | - 86 | Rn LVI | +55 | (3510) | - 86 | Rn LVII | +56 | (3699) | - 86 | Rn LVIII | +57 | [3777] | - 86 | Rn LIX | +58 | (6169) | - 86 | Rn LX | +59 | (6318) | - 86 | Rn LXI | +60 | (6476) | - 86 | Rn LXII | +61 | (6646) | - 86 | Rn LXIII | +62 | (6807) | - 86 | Rn LXIV | +63 | (6964) | - 86 | Rn LXV | +64 | (7283) | - 86 | Rn LXVI | +65 | (7450) | - 86 | Rn LXVII | +66 | (7630) | - 86 | Rn LXVIII | +67 | (7800) | - 86 | Rn LXIX | +68 | (8260) | - 86 | Rn LXX | +69 | (8410) | - 86 | Rn LXXI | +70 | (8570) | - 86 | Rn LXXII | +71 | (8710) | - 86 | Rn LXXIII | +72 | (9610) | - 86 | Rn LXXIV | +73 | (9780) | - 86 | Rn LXXV | +74 | (10120) | - 86 | Rn LXXVI | +75 | (10290) | - 86 | Rn LXXVII | +76 | (21770) | - 86 | Rn LXXVIII | +77 | (22160) | - 86 | Rn LXXIX | +78 | (22600) | - 86 | Rn LXXX | +79 | (22990) | - 86 | Rn LXXXI | +80 | (26310) | - 86 | Rn LXXXII | +81 | (26830) | - 86 | Rn LXXXIII | +82 | (27490) | - 86 | Rn LXXXIV | +83 | (27903.1) | - 86 | Rn LXXXV | +84 | (110842.0) | - 86 | Rn LXXXVI | +85 | (112843.7) | - 87 | Fr I | 0 | 4.0727411 | - 87 | Fr II | +1 | [22.4] | - 87 | Fr III | +2 | [33.5] | - 87 | Fr IV | +3 | (39.1) | - 87 | Fr V | +4 | (50.0) | - 87 | Fr VI | +5 | (67.0) | - 87 | Fr VII | +6 | (80.0) | - 87 | Fr VIII | +7 | (106.0) | - 87 | Fr IX | +8 | (120.0) | - 87 | Fr X | +9 | (179.0) | - 87 | Fr XI | +10 | (200.0) | - 87 | Fr XII | +11 | (222.1) | - 87 | Fr XIII | +12 | (245) | - 87 | Fr XIV | +13 | (269) | - 87 | Fr XV | +14 | (293) | - 87 | Fr XVI | +15 | (324) | - 87 | Fr XVII | +16 | (349) | - 87 | Fr XVIII | +17 | (375) | - 87 | Fr XIX | +18 | (400) | - 87 | Fr XX | +19 | (530) | - 87 | Fr XXI | +20 | (560) | - 87 | Fr XXII | +21 | (590) | - 87 | Fr XXIII | +22 | (620) | - 87 | Fr XXIV | +23 | (690) | - 87 | Fr XXV | +24 | (720) | - 87 | Fr XXVI | +25 | (810) | - 87 | Fr XXVII | +26 | (850) | - 87 | Fr XXVIII | +27 | (910) | - 87 | Fr XXIX | +28 | (980) | - 87 | Fr XXX | +29 | (1040) | - 87 | Fr XXXI | +30 | (1110) | - 87 | Fr XXXII | +31 | (1180) | - 87 | Fr XXXIII | +32 | (1250) | - 87 | Fr XXXIV | +33 | (1320) | - 87 | Fr XXXV | +34 | (1380) | - 87 | Fr XXXVI | +35 | (1460) | - 87 | Fr XXXVII | +36 | (1530) | - 87 | Fr XXXVIII | +37 | (1600) | - 87 | Fr XXXIX | +38 | (1670) | - 87 | Fr XL | +39 | (1740) | - 87 | Fr XLI | +40 | (1810) | - 87 | Fr XLII | +41 | (2119) | - 87 | Fr XLIII | +42 | (2182) | - 87 | Fr XLIV | +43 | (2247) | - 87 | Fr XLV | +44 | (2317) | - 87 | Fr XLVI | +45 | (2384) | - 87 | Fr XLVII | +46 | (2450) | - 87 | Fr XLVIII | +47 | (2564) | - 87 | Fr XLIX | +48 | (2631) | - 87 | Fr L | +49 | (2706) | - 87 | Fr LI | +50 | (2774) | - 87 | Fr LII | +51 | (3049) | - 87 | Fr LIII | +52 | (3115) | - 87 | Fr LIV | +53 | (3190) | - 87 | Fr LV | +54 | (3257) | - 87 | Fr LVI | +55 | (3556) | - 87 | Fr LVII | +56 | (3635) | - 87 | Fr LVIII | +57 | (3828) | - 87 | Fr LIX | +58 | [3907] | - 87 | Fr LX | +59 | (6365) | - 87 | Fr LXI | +60 | (6516) | - 87 | Fr LXII | +61 | (6678) | - 87 | Fr LXIII | +62 | (6849) | - 87 | Fr LXIV | +63 | (7013) | - 87 | Fr LXV | +64 | (7172) | - 87 | Fr LXVI | +65 | (7500) | - 87 | Fr LXVII | +66 | (7670) | - 87 | Fr LXVIII | +67 | (7850) | - 87 | Fr LXIX | +68 | (8020) | - 87 | Fr LXX | +69 | (8500) | - 87 | Fr LXXI | +70 | (8640) | - 87 | Fr LXXII | +71 | (8800) | - 87 | Fr LXXIII | +72 | (8950) | - 87 | Fr LXXIV | +73 | (9890) | - 87 | Fr LXXV | +74 | (10070) | - 87 | Fr LXXVI | +75 | (10420) | - 87 | Fr LXXVII | +76 | (10590) | - 87 | Fr LXXVIII | +77 | (22330) | - 87 | Fr LXXIX | +78 | (22730) | - 87 | Fr LXXX | +79 | (23170) | - 87 | Fr LXXXI | +80 | (23570) | - 87 | Fr LXXXII | +81 | (27060) | - 87 | Fr LXXXIII | +82 | (27590) | - 87 | Fr LXXXIV | +83 | (28260) | - 87 | Fr LXXXV | +84 | (28683.4) | - 87 | Fr LXXXVI | +85 | (113817.2) | - 87 | Fr LXXXVII | +86 | (115857.5) | - 88 | Ra I | 0 | 5.2784239 | - 88 | Ra II | +1 | 10.14718 | - 88 | Ra III | +2 | (31.0) | - 88 | Ra IV | +3 | (41.0) | - 88 | Ra V | +4 | (52.9) | - 88 | Ra VI | +5 | (64.0) | - 88 | Ra VII | +6 | (82.0) | - 88 | Ra VIII | +7 | (97.0) | - 88 | Ra IX | +8 | (124.0) | - 88 | Ra X | +9 | (140.0) | - 88 | Ra XI | +10 | (204.9) | - 88 | Ra XII | +11 | (227.0) | - 88 | Ra XIII | +12 | (250) | - 88 | Ra XIV | +13 | (274) | - 88 | Ra XV | +14 | (299) | - 88 | Ra XVI | +15 | (324) | - 88 | Ra XVII | +16 | (356) | - 88 | Ra XVIII | +17 | (382) | - 88 | Ra XIX | +18 | (409) | - 88 | Ra XX | +19 | (435) | - 88 | Ra XXI | +20 | (570) | - 88 | Ra XXII | +21 | (600) | - 88 | Ra XXIII | +22 | (630) | - 88 | Ra XXIV | +23 | (660) | - 88 | Ra XXV | +24 | (740) | - 88 | Ra XXVI | +25 | (770) | - 88 | Ra XXVII | +26 | (860) | - 88 | Ra XXVIII | +27 | (900) | - 88 | Ra XXIX | +28 | (970) | - 88 | Ra XXX | +29 | (1040) | - 88 | Ra XXXI | +30 | (1110) | - 88 | Ra XXXII | +31 | (1180) | - 88 | Ra XXXIII | +32 | (1250) | - 88 | Ra XXXIV | +33 | (1320) | - 88 | Ra XXXV | +34 | (1390) | - 88 | Ra XXXVI | +35 | (1460) | - 88 | Ra XXXVII | +36 | (1530) | - 88 | Ra XXXVIII | +37 | (1610) | - 88 | Ra XXXIX | +38 | (1680) | - 88 | Ra XL | +39 | (1750) | - 88 | Ra XLI | +40 | (1820) | - 88 | Ra XLII | +41 | (1880) | - 88 | Ra XLIII | +42 | (2208) | - 88 | Ra XLIV | +43 | (2271) | - 88 | Ra XLV | +44 | (2338) | - 88 | Ra XLVI | +45 | (2409) | - 88 | Ra XLVII | +46 | (2477) | - 88 | Ra XLVIII | +47 | (2544) | - 88 | Ra XLIX | +48 | (2662) | - 88 | Ra L | +49 | (2731) | - 88 | Ra LI | +50 | (2806) | - 88 | Ra LII | +51 | (2876) | - 88 | Ra LIII | +52 | (3155) | - 88 | Ra LIV | +53 | (3224) | - 88 | Ra LV | +54 | (3298) | - 88 | Ra LVI | +55 | (3368) | - 88 | Ra LVII | +56 | (3682) | - 88 | Ra LVIII | +57 | (3762) | - 88 | Ra LIX | +58 | (3959) | - 88 | Ra LX | +59 | [4040] | - 88 | Ra LXI | +60 | (6565) | - 88 | Ra LXII | +61 | (6718) | - 88 | Ra LXIII | +62 | (6881) | - 88 | Ra LXIV | +63 | (7056) | - 88 | Ra LXV | +64 | (7222) | - 88 | Ra LXVI | +65 | (7380) | - 88 | Ra LXVII | +66 | (7720) | - 88 | Ra LXVIII | +67 | (7890) | - 88 | Ra LXIX | +68 | (8080) | - 88 | Ra LXX | +69 | (8250) | - 88 | Ra LXXI | +70 | (8730) | - 88 | Ra LXXII | +71 | (8880) | - 88 | Ra LXXIII | +72 | (9040) | - 88 | Ra LXXIV | +73 | (9200) | - 88 | Ra LXXV | +74 | (10190) | - 88 | Ra LXXVI | +75 | (10360) | - 88 | Ra LXXVII | +76 | (10720) | - 88 | Ra LXXVIII | +77 | (10890) | - 88 | Ra LXXIX | +78 | (22900) | - 88 | Ra LXXX | +79 | (23300) | - 88 | Ra LXXXI | +80 | (23750) | - 88 | Ra LXXXII | +81 | (24160) | - 88 | Ra LXXXIII | +82 | (27830) | - 88 | Ra LXXXIV | +83 | (28370) | - 88 | Ra LXXXV | +84 | (29050) | - 88 | Ra LXXXVI | +85 | (29479.8) | - 88 | Ra LXXXVII | +86 | (116848.7) | - 88 | Ra LXXXVIII | +87 | (118929.5) | - 89 | Ac I | 0 | 5.380235 | - 89 | Ac II | +1 | [11.75] | - 89 | Ac III | +2 | [17.436] | - 89 | Ac IV | +3 | [44.8] | - 89 | Ac V | +4 | (55.0) | - 89 | Ac VI | +5 | (67.0) | - 89 | Ac VII | +6 | (79.0) | - 89 | Ac VIII | +7 | (98.9) | - 89 | Ac IX | +8 | (113.9) | - 89 | Ac X | +9 | (143.9) | - 89 | Ac XI | +10 | (161.1) | - 89 | Ac XII | +11 | (233.0) | - 89 | Ac XIII | +12 | (255) | - 89 | Ac XIV | +13 | (279) | - 89 | Ac XV | +14 | (305) | - 89 | Ac XVI | +15 | (330) | - 89 | Ac XVII | +16 | (355) | - 89 | Ac XVIII | +17 | (390) | - 89 | Ac XIX | +18 | (416) | - 89 | Ac XX | +19 | (444) | - 89 | Ac XXI | +20 | (470) | - 89 | Ac XXII | +21 | (610) | - 89 | Ac XXIII | +22 | (640) | - 89 | Ac XXIV | +23 | (670) | - 89 | Ac XXV | +24 | (710) | - 89 | Ac XXVI | +25 | (780) | - 89 | Ac XXVII | +26 | (820) | - 89 | Ac XXVIII | +27 | (920) | - 89 | Ac XXIX | +28 | (950) | - 89 | Ac XXX | +29 | (1030) | - 89 | Ac XXXI | +30 | (1100) | - 89 | Ac XXXII | +31 | (1170) | - 89 | Ac XXXIII | +32 | (1240) | - 89 | Ac XXXIV | +33 | (1310) | - 89 | Ac XXXV | +34 | (1380) | - 89 | Ac XXXVI | +35 | (1460) | - 89 | Ac XXXVII | +36 | (1530) | - 89 | Ac XXXVIII | +37 | (1610) | - 89 | Ac XXXIX | +38 | (1680) | - 89 | Ac XL | +39 | (1750) | - 89 | Ac XLI | +40 | (1820) | - 89 | Ac XLII | +41 | (1900) | - 89 | Ac XLIII | +42 | (1970) | - 89 | Ac XLIV | +43 | (2298) | - 89 | Ac XLV | +44 | (2362) | - 89 | Ac XLVI | +45 | (2430) | - 89 | Ac XLVII | +46 | (2503) | - 89 | Ac XLVIII | +47 | (2572) | - 89 | Ac XLIX | +48 | (2639) | - 89 | Ac L | +49 | (2762) | - 89 | Ac LI | +50 | (2833) | - 89 | Ac LII | +51 | (2908) | - 89 | Ac LIII | +52 | (2980) | - 89 | Ac LIV | +53 | (3264) | - 89 | Ac LV | +54 | (3334) | - 89 | Ac LVI | +55 | (3409) | - 89 | Ac LVII | +56 | (3479) | - 89 | Ac LVIII | +57 | (3811) | - 89 | Ac LIX | +58 | (3893) | - 89 | Ac LX | +59 | (4093) | - 89 | Ac LXI | +60 | [4175] | - 89 | Ac LXII | +61 | (6767) | - 89 | Ac LXIII | +62 | (6923) | - 89 | Ac LXIV | +63 | (7088) | - 89 | Ac LXV | +64 | (7265) | - 89 | Ac LXVI | +65 | (7430) | - 89 | Ac LXVII | +66 | (7600) | - 89 | Ac LXVIII | +67 | (7950) | - 89 | Ac LXIX | +68 | (8120) | - 89 | Ac LXX | +69 | (8310) | - 89 | Ac LXXI | +70 | (8480) | - 89 | Ac LXXII | +71 | (8970) | - 89 | Ac LXXIII | +72 | (9120) | - 89 | Ac LXXIV | +73 | (9290) | - 89 | Ac LXXV | +74 | (9440) | - 89 | Ac LXXVI | +75 | (10480) | - 89 | Ac LXXVII | +76 | (10660) | - 89 | Ac LXXVIII | +77 | (11030) | - 89 | Ac LXXIX | +78 | (11200) | - 89 | Ac LXXX | +79 | (23480) | - 89 | Ac LXXXI | +80 | (23890) | - 89 | Ac LXXXII | +81 | (24340) | - 89 | Ac LXXXIII | +82 | (24760) | - 89 | Ac LXXXIV | +83 | (28610) | - 89 | Ac LXXXV | +84 | (29160) | - 89 | Ac LXXXVI | +85 | (29850) | - 89 | Ac LXXXVII | +86 | (30293.1) | - 89 | Ac LXXXVIII | +87 | (119938.6) | - 89 | Ac LXXXIX | +88 | (122063.1) | - 90 | Th I | 0 | 6.30670 | - 90 | Th II | +1 | 12.10 | - 90 | Th III | +2 | [18.32] | - 90 | Th IV | +3 | 28.648 | - 90 | Th V | +4 | (58.0) | - 90 | Th VI | +5 | (69.1) | - 90 | Th VII | +6 | (82.0) | - 90 | Th VIII | +7 | (95.0) | - 90 | Th IX | +8 | (118.0) | - 90 | Th X | +9 | (133.0) | - 90 | Th XI | +10 | (165.0) | - 90 | Th XII | +11 | (181.0) | - 90 | Th XIII | +12 | (262) | - 90 | Th XIV | +13 | (285) | - 90 | Th XV | +14 | (310) | - 90 | Th XVI | +15 | (336) | - 90 | Th XVII | +16 | (362) | - 90 | Th XVIII | +17 | (389) | - 90 | Th XIX | +18 | (424) | - 90 | Th XX | +19 | (451) | - 90 | Th XXI | +20 | (480) | - 90 | Th XXII | +21 | (508) | - 90 | Th XXIII | +22 | (650) | - 90 | Th XXIV | +23 | (680) | - 90 | Th XXV | +24 | (720) | - 90 | Th XXVI | +25 | (750) | - 90 | Th XXVII | +26 | (830) | - 90 | Th XXVIII | +27 | (870) | - 90 | Th XXIX | +28 | (970) | - 90 | Th XXX | +29 | (1010) | - 90 | Th XXXI | +30 | (1090) | - 90 | Th XXXII | +31 | (1160) | - 90 | Th XXXIII | +32 | (1240) | - 90 | Th XXXIV | +33 | (1310) | - 90 | Th XXXV | +34 | (1380) | - 90 | Th XXXVI | +35 | (1460) | - 90 | Th XXXVII | +36 | (1530) | - 90 | Th XXXVIII | +37 | (1600) | - 90 | Th XXXIX | +38 | (1680) | - 90 | Th XL | +39 | (1760) | - 90 | Th XLI | +40 | (1830) | - 90 | Th XLII | +41 | (1910) | - 90 | Th XLIII | +42 | (1980) | - 90 | Th XLIV | +43 | (2060) | - 90 | Th XLV | +44 | (2390) | - 90 | Th XLVI | +45 | (2455) | - 90 | Th XLVII | +46 | (2524) | - 90 | Th XLVIII | +47 | (2598) | - 90 | Th XLIX | +48 | (2669) | - 90 | Th L | +49 | (2737) | - 90 | Th LI | +50 | (2864) | - 90 | Th LII | +51 | (2935) | - 90 | Th LIII | +52 | (3013) | - 90 | Th LIV | +53 | (3086) | - 90 | Th LV | +54 | (3375) | - 90 | Th LVI | +55 | (3445) | - 90 | Th LVII | +56 | (3522) | - 90 | Th LVIII | +57 | (3593) | - 90 | Th LIX | +58 | (3943) | - 90 | Th LX | +59 | (4025) | - 90 | Th LXI | +60 | (4230) | - 90 | Th LXII | +61 | [4313] | - 90 | Th LXIII | +62 | (6972) | - 90 | Th LXIV | +63 | (7130) | - 90 | Th LXV | +64 | (7299) | - 90 | Th LXVI | +65 | (7480) | - 90 | Th LXVII | +66 | (7650) | - 90 | Th LXVIII | +67 | (7810) | - 90 | Th LXIX | +68 | (8180) | - 90 | Th LXX | +69 | (8350) | - 90 | Th LXXI | +70 | (8550) | - 90 | Th LXXII | +71 | (8720) | - 90 | Th LXXIII | +72 | (9220) | - 90 | Th LXXIV | +73 | (9370) | - 90 | Th LXXV | +74 | (9540) | - 90 | Th LXXVI | +75 | (9690) | - 90 | Th LXXVII | +76 | (10790) | - 90 | Th LXXVIII | +77 | (10970) | - 90 | Th LXXIX | +78 | (11340) | - 90 | Th LXXX | +79 | (11510) | - 90 | Th LXXXI | +80 | (24060) | - 90 | Th LXXXII | +81 | (24480) | - 90 | Th LXXXIII | +82 | (24940) | - 90 | Th LXXXIV | +83 | (25360) | - 90 | Th LXXXV | +84 | (29410) | - 90 | Th LXXXVI | +85 | (29970) | - 90 | Th LXXXVII | +86 | (30680) | - 90 | Th LXXXVIII | +87 | (31122.8) | - 90 | Th LXXXIX | +88 | (123086.4) | - 90 | Th XC | +89 | (125250.3) | - 91 | Pa I | 0 | [5.89] | - 91 | Pa II | +1 | [11.9] | - 91 | Pa III | +2 | [18.6] | - 91 | Pa IV | +3 | [30.9] | - 91 | Pa V | +4 | (44.3) | - 91 | Pa VI | +5 | (72.0) | - 91 | Pa VII | +6 | (85.1) | - 91 | Pa VIII | +7 | (98.9) | - 91 | Pa IX | +8 | (111.0) | - 91 | Pa X | +9 | (137.0) | - 91 | Pa XI | +10 | (153.0) | - 91 | Pa XII | +11 | (187.0) | - 91 | Pa XIII | +12 | (203) | - 91 | Pa XIV | +13 | (292) | - 91 | Pa XV | +14 | (316) | - 91 | Pa XVI | +15 | (342) | - 91 | Pa XVII | +16 | (369) | - 91 | Pa XVIII | +17 | (395) | - 91 | Pa XIX | +18 | (423) | - 91 | Pa XX | +19 | (460) | - 91 | Pa XXI | +20 | (488) | - 91 | Pa XXII | +21 | (518) | - 91 | Pa XXIII | +22 | (546) | - 91 | Pa XXIV | +23 | (690) | - 91 | Pa XXV | +24 | (720) | - 91 | Pa XXVI | +25 | (760) | - 91 | Pa XXVII | +26 | (790) | - 91 | Pa XXVIII | +27 | (880) | - 91 | Pa XXIX | +28 | (920) | - 91 | Pa XXX | +29 | (1020) | - 91 | Pa XXXI | +30 | (1060) | - 91 | Pa XXXII | +31 | (1150) | - 91 | Pa XXXIII | +32 | (1220) | - 91 | Pa XXXIV | +33 | (1300) | - 91 | Pa XXXV | +34 | (1370) | - 91 | Pa XXXVI | +35 | (1450) | - 91 | Pa XXXVII | +36 | (1520) | - 91 | Pa XXXVIII | +37 | (1600) | - 91 | Pa XXXIX | +38 | (1670) | - 91 | Pa XL | +39 | (1760) | - 91 | Pa XLI | +40 | (1830) | - 91 | Pa XLII | +41 | (1910) | - 91 | Pa XLIII | +42 | (1980) | - 91 | Pa XLIV | +43 | (2060) | - 91 | Pa XLV | +44 | (2130) | - 91 | Pa XLVI | +45 | (2483) | - 91 | Pa XLVII | +46 | (2550) | - 91 | Pa XLVIII | +47 | (2620) | - 91 | Pa XLIX | +48 | (2696) | - 91 | Pa L | +49 | (2766) | - 91 | Pa LI | +50 | (2837) | - 91 | Pa LII | +51 | (2968) | - 91 | Pa LIII | +52 | (3040) | - 91 | Pa LIV | +53 | (3119) | - 91 | Pa LV | +54 | (3193) | - 91 | Pa LVI | +55 | (3488) | - 91 | Pa LVII | +56 | (3558) | - 91 | Pa LVIII | +57 | (3637) | - 91 | Pa LIX | +58 | (3709) | - 91 | Pa LX | +59 | (4077) | - 91 | Pa LXI | +60 | (4161) | - 91 | Pa LXII | +61 | (4370) | - 91 | Pa LXIII | +62 | [4454] | - 91 | Pa LXIV | +63 | (7181) | - 91 | Pa LXV | +64 | (7341) | - 91 | Pa LXVI | +65 | (7510) | - 91 | Pa LXVII | +66 | (7690) | - 91 | Pa LXVIII | +67 | (7870) | - 91 | Pa LXIX | +68 | (8040) | - 91 | Pa LXX | +69 | (8410) | - 91 | Pa LXXI | +70 | (8590) | - 91 | Pa LXXII | +71 | (8780) | - 91 | Pa LXXIII | +72 | (8960) | - 91 | Pa LXXIV | +73 | (9460) | - 91 | Pa LXXV | +74 | (9620) | - 91 | Pa LXXVI | +75 | (9790) | - 91 | Pa LXXVII | +76 | (9950) | - 91 | Pa LXXVIII | +77 | (11100) | - 91 | Pa LXXIX | +78 | (11290) | - 91 | Pa LXXX | +79 | (11660) | - 91 | Pa LXXXI | +80 | (11840) | - 91 | Pa LXXXII | +81 | (24660) | - 91 | Pa LXXXIII | +82 | (25080) | - 91 | Pa LXXXIV | +83 | (25540) | - 91 | Pa LXXXV | +84 | (25970) | - 91 | Pa LXXXVI | +85 | (30230) | - 91 | Pa LXXXVII | +86 | (30800) | - 91 | Pa LXXXVIII | +87 | (31520) | - 91 | Pa LXXXIX | +88 | (31971.6) | - 91 | Pa XC | +89 | (126296.6) | - 91 | Pa XCI | +90 | (128507) | - 92 | U I | 0 | 6.19405 | - 92 | U II | +1 | 11.6 | - 92 | U III | +2 | 19.8 | - 92 | U IV | +3 | 36.7 | - 92 | U V | +4 | (46.0) | - 92 | U VI | +5 | [62.0] | - 92 | U VII | +6 | (89.0) | - 92 | U VIII | +7 | (101.0) | - 92 | U IX | +8 | (116.0) | - 92 | U X | +9 | (128.9) | - 92 | U XI | +10 | (158.0) | - 92 | U XII | +11 | (173.0) | - 92 | U XIII | +12 | (210) | - 92 | U XIV | +13 | (227) | - 92 | U XV | +14 | (323) | - 92 | U XVI | +15 | (348) | - 92 | U XVII | +16 | (375) | - 92 | U XVIII | +17 | (402) | - 92 | U XIX | +18 | (431) | - 92 | U XX | +19 | (458) | - 92 | U XXI | +20 | (497) | - 92 | U XXII | +21 | (525) | - 92 | U XXIII | +22 | (557) | - 92 | U XXIV | +23 | (585) | - 92 | U XXV | +24 | (730) | - 92 | U XXVI | +25 | (770) | - 92 | U XXVII | +26 | (800) | - 92 | U XXVIII | +27 | (840) | - 92 | U XXIX | +28 | (930) | - 92 | U XXX | +29 | (970) | - 92 | U XXXI | +30 | (1070) | - 92 | U XXXII | +31 | (1110) | - 92 | U XXXIII | +32 | (1210) | - 92 | U XXXIV | +33 | (1290) | - 92 | U XXXV | +34 | (1370) | - 92 | U XXXVI | +35 | (1440) | - 92 | U XXXVII | +36 | (1520) | - 92 | U XXXVIII | +37 | (1590) | - 92 | U XXXIX | +38 | (1670) | - 92 | U XL | +39 | (1750) | - 92 | U XLI | +40 | (1830) | - 92 | U XLII | +41 | (1910) | - 92 | U XLIII | +42 | (1990) | - 92 | U XLIV | +43 | (2070) | - 92 | U XLV | +44 | (2140) | - 92 | U XLVI | +45 | (2220) | - 92 | U XLVII | +46 | (2578) | - 92 | U XLVIII | +47 | (2646) | - 92 | U XLIX | +48 | (2718) | - 92 | U L | +49 | (2794) | - 92 | U LI | +50 | (2867) | - 92 | U LII | +51 | (2938) | - 92 | U LIII | +52 | (3073) | - 92 | U LIV | +53 | (3147) | - 92 | U LV | +54 | (3228) | - 92 | U LVI | +55 | (3301) | - 92 | U LVII | +56 | (3602) | - 92 | U LVIII | +57 | (3675) | - 92 | U LIX | +58 | (3753) | - 92 | U LX | +59 | (3827) | - 92 | U LXI | +60 | (4214) | - 92 | U LXII | +61 | (4299) | - 92 | U LXIII | +62 | (4513) | - 92 | U LXIV | +63 | [4598] | - 92 | U LXV | +64 | (7393) | - 92 | U LXVI | +65 | (7550) | - 92 | U LXVII | +66 | (7730) | - 92 | U LXVIII | +67 | (7910) | - 92 | U LXIX | +68 | (8090) | - 92 | U LXX | +69 | (8260) | - 92 | U LXXI | +70 | (8650) | - 92 | U LXXII | +71 | (8830) | - 92 | U LXXIII | +72 | (9030) | - 92 | U LXXIV | +73 | (9210) | - 92 | U LXXV | +74 | (9720) | - 92 | U LXXVI | +75 | (9870) | - 92 | U LXXVII | +76 | (10040) | - 92 | U LXXVIII | +77 | (10200) | - 92 | U LXXIX | +78 | (11410) | - 92 | U LXXX | +79 | (11600) | - 92 | U LXXXI | +80 | (11990) | - 92 | U LXXXII | +81 | (12160) | - 92 | U LXXXIII | +82 | (25260) | - 92 | U LXXXIV | +83 | (25680) | - 92 | U LXXXV | +84 | (26150) | - 92 | U LXXXVI | +85 | (26590) | - 92 | U LXXXVII | +86 | (31060) | - 92 | U LXXXVIII | +87 | (31640) | - 92 | U LXXXIX | +88 | (32400) | - 92 | U XC | +89 | (32836.5) | - 92 | U XCI | +90 | (129570.3) | - 92 | U XCII | +91 | (131816.2) | - 93 | Np I | 0 | 6.26554 | - 93 | Np II | +1 | [11.5] | - 93 | Np III | +2 | [19.7] | - 93 | Np IV | +3 | [33.8] | - 93 | Np V | +4 | (48.0) | - 93 | Np VI | +5 | (65.0) | - 93 | Np VII | +6 | (92) | - 93 | Np VIII | +7 | (107) | - 93 | Np IX | +8 | (121) | - 93 | Np X | +9 | (136) | - 93 | Np XI | +10 | (151) | - 93 | Np XII | +11 | (179.0) | - 93 | Np XIII | +12 | (196) | - 93 | Np XIV | +13 | (233) | - 93 | Np XV | +14 | (252) | - 93 | Np XVI | +15 | (355) | - 93 | Np XVII | +16 | (382) | - 93 | Np XVIII | +17 | (408) | - 93 | Np XIX | +18 | (438) | - 93 | Np XX | +19 | (466) | - 93 | Np XXI | +20 | (495) | - 93 | Np XXII | +21 | (535) | - 93 | Np XXIII | +22 | (565) | - 93 | Np XXIV | +23 | (596) | - 93 | Np XXV | +24 | (626) | - 93 | Np XXVI | +25 | (770) | - 93 | Np XXVII | +26 | (810) | - 93 | Np XXVIII | +27 | (850) | - 93 | Np XXIX | +28 | (880) | - 93 | Np XXX | +29 | (980) | - 93 | Np XXXI | +30 | (1020) | - 93 | Np XXXII | +31 | (1130) | - 93 | Np XXXIII | +32 | (1170) | - 93 | Np XXXIV | +33 | (1280) | - 93 | Np XXXV | +34 | (1360) | - 93 | Np XXXVI | +35 | (1430) | - 93 | Np XXXVII | +36 | (1510) | - 93 | Np XXXVIII | +37 | (1590) | - 93 | Np XXXIX | +38 | (1670) | - 93 | Np XL | +39 | (1740) | - 93 | Np XLI | +40 | (1820) | - 93 | Np XLII | +41 | (1910) | - 93 | Np XLIII | +42 | (1990) | - 93 | Np XLIV | +43 | (2070) | - 93 | Np XLV | +44 | (2140) | - 93 | Np XLVI | +45 | (2230) | - 93 | Np XLVII | +46 | (2310) | - 93 | Np XLVIII | +47 | (2675) | - 93 | Np XLIX | +48 | (2745) | - 93 | Np L | +49 | (2817) | - 93 | Np LI | +50 | (2894) | - 93 | Np LII | +51 | (2969) | - 93 | Np LIII | +52 | (3041) | - 93 | Np LIV | +53 | (3181) | - 93 | Np LV | +54 | (3255) | - 93 | Np LVI | +55 | (3338) | - 93 | Np LVII | +56 | (3413) | - 93 | Np LVIII | +57 | (3718) | - 93 | Np LIX | +58 | (3792) | - 93 | Np LX | +59 | (3872) | - 93 | Np LXI | +60 | (3947) | - 93 | Np LXII | +61 | (4353) | - 93 | Np LXIII | +62 | (4441) | - 93 | Np LXIV | +63 | (4658) | - 93 | Np LXV | +64 | (4744) | - 93 | Np LXVI | +65 | (7610) | - 93 | Np LXVII | +66 | (7770) | - 93 | Np LXVIII | +67 | (7950) | - 93 | Np LXIX | +68 | (8130) | - 93 | Np LXX | +69 | (8310) | - 93 | Np LXXI | +70 | (8480) | - 93 | Np LXXII | +71 | (8890) | - 93 | Np LXXIII | +72 | (9070) | - 93 | Np LXXIV | +73 | (9270) | - 93 | Np LXXV | +74 | (9450) | - 93 | Np LXXVI | +75 | (9970) | - 93 | Np LXXVII | +76 | (10130) | - 93 | Np LXXVIII | +77 | (10300) | - 93 | Np LXXIX | +78 | (10470) | - 93 | Np LXXX | +79 | (11730) | - 93 | Np LXXXI | +80 | (11930) | - 93 | Np LXXXII | +81 | (12320) | - 93 | Np LXXXIII | +82 | (12500) | - 93 | Np LXXXIV | +83 | (25870) | - 93 | Np LXXXV | +84 | (26300) | - 93 | Np LXXXVI | +85 | (26770) | - 93 | Np LXXXVII | +86 | (27210) | - 93 | Np LXXXVIII | +87 | (31910) | - 93 | Np LXXXIX | +88 | (32500) | - 93 | Np XC | +89 | (33300) | - 93 | Np XCI | +90 | (33722.2) | - 93 | Np XCII | +91 | (132901.8) | - 93 | Np XCIII | +92 | (135202) | - 94 | Pu I | 0 | 6.02576 | - 94 | Pu II | +1 | [11.5] | - 94 | Pu III | +2 | [21.1] | - 94 | Pu IV | +3 | [35.0] | - 94 | Pu V | +4 | (49.0) | - 94 | Pu VI | +5 | (80) | - 94 | Pu VII | +6 | (95) | - 94 | Pu VIII | +7 | (109) | - 94 | Pu IX | +8 | (124) | - 94 | Pu X | +9 | (139) | - 94 | Pu XI | +10 | (159) | - 94 | Pu XII | +11 | (179) | - 94 | Pu XIII | +12 | (200) | - 94 | Pu XIV | +13 | (219) | - 94 | Pu XV | +14 | (258) | - 94 | Pu XVI | +15 | (278) | - 94 | Pu XVII | +16 | (389) | - 94 | Pu XVIII | +17 | (416) | - 94 | Pu XIX | +18 | (444) | - 94 | Pu XX | +19 | (474) | - 94 | Pu XXI | +20 | (503) | - 94 | Pu XXII | +21 | (532) | - 94 | Pu XXIII | +22 | (575) | - 94 | Pu XXIV | +23 | (605) | - 94 | Pu XXV | +24 | (637) | - 94 | Pu XXVI | +25 | (668) | - 94 | Pu XXVII | +26 | (820) | - 94 | Pu XXVIII | +27 | (850) | - 94 | Pu XXIX | +28 | (890) | - 94 | Pu XXX | +29 | (930) | - 94 | Pu XXXI | +30 | (1030) | - 94 | Pu XXXII | +31 | (1070) | - 94 | Pu XXXIII | +32 | (1180) | - 94 | Pu XXXIV | +33 | (1220) | - 94 | Pu XXXV | +34 | (1340) | - 94 | Pu XXXVI | +35 | (1420) | - 94 | Pu XXXVII | +36 | (1500) | - 94 | Pu XXXVIII | +37 | (1580) | - 94 | Pu XXXIX | +38 | (1660) | - 94 | Pu XL | +39 | (1740) | - 94 | Pu XLI | +40 | (1820) | - 94 | Pu XLII | +41 | (1890) | - 94 | Pu XLIII | +42 | (1990) | - 94 | Pu XLIV | +43 | (2070) | - 94 | Pu XLV | +44 | (2150) | - 94 | Pu XLVI | +45 | (2230) | - 94 | Pu XLVII | +46 | (2310) | - 94 | Pu XLVIII | +47 | (2390) | - 94 | Pu XLIX | +48 | (2774) | - 94 | Pu L | +49 | (2844) | - 94 | Pu LI | +50 | (2918) | - 94 | Pu LII | +51 | (2997) | - 94 | Pu LIII | +52 | (3072) | - 94 | Pu LIV | +53 | (3146) | - 94 | Pu LV | +54 | (3290) | - 94 | Pu LVI | +55 | (3366) | - 94 | Pu LVII | +56 | (3449) | - 94 | Pu LVIII | +57 | (3527) | - 94 | Pu LIX | +58 | (3836) | - 94 | Pu LX | +59 | (3911) | - 94 | Pu LXI | +60 | (3993) | - 94 | Pu LXII | +61 | (4068) | - 94 | Pu LXIII | +62 | (4496) | - 94 | Pu LXIV | +63 | (4585) | - 94 | Pu LXV | +64 | (4807) | - 94 | Pu LXVI | +65 | (4890) | - 94 | Pu LXVII | +66 | (7830) | - 94 | Pu LXVIII | +67 | (7990) | - 94 | Pu LXIX | +68 | (8170) | - 94 | Pu LXX | +69 | (8360) | - 94 | Pu LXXI | +70 | (8540) | - 94 | Pu LXXII | +71 | (8710) | - 94 | Pu LXXIII | +72 | (9130) | - 94 | Pu LXXIV | +73 | (9310) | - 94 | Pu LXXV | +74 | (9520) | - 94 | Pu LXXVI | +75 | (9700) | - 94 | Pu LXXVII | +76 | (10230) | - 94 | Pu LXXVIII | +77 | (10390) | - 94 | Pu LXXIX | +78 | (10570) | - 94 | Pu LXXX | +79 | (10730) | - 94 | Pu LXXXI | +80 | (12060) | - 94 | Pu LXXXII | +81 | (12260) | - 94 | Pu LXXXIII | +82 | (12660) | - 94 | Pu LXXXIV | +83 | (12840) | - 94 | Pu LXXXV | +84 | (26480) | - 94 | Pu LXXXVI | +85 | (26920) | - 94 | Pu LXXXVII | +86 | (27400) | - 94 | Pu LXXXVIII | +87 | (27840) | - 94 | Pu LXXXIX | +88 | (32800) | - 94 | Pu XC | +89 | (33400) | - 94 | Pu XCI | +90 | (34100) | - 94 | Pu XCII | +91 | (34625.8) | - 94 | Pu XCIII | +92 | (136299.2) | - 94 | Pu XCIV | +93 | (138640.2) | - 95 | Am I | 0 | 5.97381 | - 95 | Am II | +1 | [11.7] | - 95 | Am III | +2 | [21.7] | - 95 | Am IV | +3 | [36.8] | - 95 | Am V | +4 | (50.0) | - 95 | Am VI | +5 | (67.9) | - 95 | Am VII | +6 | (95) | - 95 | Am VIII | +7 | (110) | - 95 | Am IX | +8 | (125) | - 95 | Am X | +9 | (141) | - 95 | Am XI | +10 | (163) | - 95 | Am XII | +11 | (184) | - 95 | Am XIII | +12 | (206) | - 95 | Am XIV | +13 | (225) | - 95 | Am XV | +14 | (242) | - 95 | Am XVI | +15 | (284) | - 95 | Am XVII | +16 | (305) | - 95 | Am XVIII | +17 | (424) | - 95 | Am XIX | +18 | (451) | - 95 | Am XX | +19 | (481) | - 95 | Am XXI | +20 | (511) | - 95 | Am XXII | +21 | (541) | - 95 | Am XXIII | +22 | (571) | - 95 | Am XXIV | +23 | (616) | - 95 | Am XXV | +24 | (646) | - 95 | Am XXVI | +25 | (680) | - 95 | Am XXVII | +26 | (711) | - 95 | Am XXVIII | +27 | (870) | - 95 | Am XXIX | +28 | (900) | - 95 | Am XXX | +29 | (940) | - 95 | Am XXXI | +30 | (980) | - 95 | Am XXXII | +31 | (1090) | - 95 | Am XXXIII | +32 | (1130) | - 95 | Am XXXIV | +33 | (1240) | - 95 | Am XXXV | +34 | (1280) | - 95 | Am XXXVI | +35 | (1410) | - 95 | Am XXXVII | +36 | (1490) | - 95 | Am XXXVIII | +37 | (1570) | - 95 | Am XXXIX | +38 | (1650) | - 95 | Am XL | +39 | (1730) | - 95 | Am XLI | +40 | (1820) | - 95 | Am XLII | +41 | (1900) | - 95 | Am XLIII | +42 | (1980) | - 95 | Am XLIV | +43 | (2070) | - 95 | Am XLV | +44 | (2160) | - 95 | Am XLVI | +45 | (2240) | - 95 | Am XLVII | +46 | (2320) | - 95 | Am XLVIII | +47 | (2410) | - 95 | Am XLIX | +48 | (2480) | - 95 | Am L | +49 | (2874) | - 95 | Am LI | +50 | (2946) | - 95 | Am LII | +51 | (3021) | - 95 | Am LIII | +52 | (3101) | - 95 | Am LIV | +53 | (3178) | - 95 | Am LV | +54 | (3251) | - 95 | Am LVI | +55 | (3402) | - 95 | Am LVII | +56 | (3479) | - 95 | Am LVIII | +57 | (3563) | - 95 | Am LIX | +58 | (3641) | - 95 | Am LX | +59 | (3956) | - 95 | Am LXI | +60 | (4033) | - 95 | Am LXII | +61 | (4115) | - 95 | Am LXIII | +62 | (4191) | - 95 | Am LXIV | +63 | (4642) | - 95 | Am LXV | +64 | (4733) | - 95 | Am LXVI | +65 | (4960) | - 95 | Am LXVII | +66 | (5050) | - 95 | Am LXVIII | +67 | (8040) | - 95 | Am LXIX | +68 | (8210) | - 95 | Am LXX | +69 | (8390) | - 95 | Am LXXI | +70 | (8590) | - 95 | Am LXXII | +71 | (8770) | - 95 | Am LXXIII | +72 | (8950) | - 95 | Am LXXIV | +73 | (9380) | - 95 | Am LXXV | +74 | (9560) | - 95 | Am LXXVI | +75 | (9770) | - 95 | Am LXXVII | +76 | (9960) | - 95 | Am LXXVIII | +77 | (10490) | - 95 | Am LXXIX | +78 | (10650) | - 95 | Am LXXX | +79 | (10830) | - 95 | Am LXXXI | +80 | (11000) | - 95 | Am LXXXII | +81 | (12400) | - 95 | Am LXXXIII | +82 | (12600) | - 95 | Am LXXXIV | +83 | (13000) | - 95 | Am LXXXV | +84 | (13190) | - 95 | Am LXXXVI | +85 | (27110) | - 95 | Am LXXXVII | +86 | (27550) | - 95 | Am LXXXVIII | +87 | (28040) | - 95 | Am LXXXIX | +88 | (28500) | - 95 | Am XC | +89 | (33700) | - 95 | Am XCI | +90 | (34300) | - 95 | Am XCII | +91 | (35100) | - 95 | Am XCIII | +92 | (35549.4) | - 95 | Am XCIV | +93 | (139769.5) | - 95 | Am XCV | +94 | (142153.5) | - 96 | Cm I | 0 | 5.99141 | - 96 | Cm II | +1 | [12.4] | - 96 | Cm III | +2 | [20.1] | - 96 | Cm IV | +3 | [37.7] | - 96 | Cm V | +4 | (51.0) | - 96 | Cm VI | +5 | (69.1) | - 96 | Cm VII | +6 | (97) | - 96 | Cm VIII | +7 | (112) | - 96 | Cm IX | +8 | (128) | - 96 | Cm X | +9 | (144) | - 96 | Cm XI | +10 | (167) | - 96 | Cm XII | +11 | (190) | - 96 | Cm XIII | +12 | (213) | - 96 | Cm XIV | +13 | (235) | - 96 | Cm XV | +14 | (253) | - 96 | Cm XVI | +15 | (272) | - 96 | Cm XVII | +16 | (311) | - 96 | Cm XVIII | +17 | (332) | - 96 | Cm XIX | +18 | (460) | - 96 | Cm XX | +19 | (489) | - 96 | Cm XXI | +20 | (518) | - 96 | Cm XXII | +21 | (550) | - 96 | Cm XXIII | +22 | (580) | - 96 | Cm XXIV | +23 | (611) | - 96 | Cm XXV | +24 | (657) | - 96 | Cm XXVI | +25 | (689) | - 96 | Cm XXVII | +26 | (723) | - 96 | Cm XXVIII | +27 | (755) | - 96 | Cm XXIX | +28 | (910) | - 96 | Cm XXX | +29 | (950) | - 96 | Cm XXXI | +30 | (990) | - 96 | Cm XXXII | +31 | (1030) | - 96 | Cm XXXIII | +32 | (1140) | - 96 | Cm XXXIV | +33 | (1180) | - 96 | Cm XXXV | +34 | (1300) | - 96 | Cm XXXVI | +35 | (1340) | - 96 | Cm XXXVII | +36 | (1480) | - 96 | Cm XXXVIII | +37 | (1560) | - 96 | Cm XXXIX | +38 | (1650) | - 96 | Cm XL | +39 | (1730) | - 96 | Cm XLI | +40 | (1810) | - 96 | Cm XLII | +41 | (1890) | - 96 | Cm XLIII | +42 | (1980) | - 96 | Cm XLIV | +43 | (2060) | - 96 | Cm XLV | +44 | (2160) | - 96 | Cm XLVI | +45 | (2240) | - 96 | Cm XLVII | +46 | (2320) | - 96 | Cm XLVIII | +47 | (2410) | - 96 | Cm XLIX | +48 | (2490) | - 96 | Cm L | +49 | (2580) | - 96 | Cm LI | +50 | (2976) | - 96 | Cm LII | +51 | (3050) | - 96 | Cm LIII | +52 | (3125) | - 96 | Cm LIV | +53 | (3207) | - 96 | Cm LV | +54 | (3284) | - 96 | Cm LVI | +55 | (3360) | - 96 | Cm LVII | +56 | (3515) | - 96 | Cm LVIII | +57 | (3593) | - 96 | Cm LIX | +58 | (3679) | - 96 | Cm LX | +59 | (3758) | - 96 | Cm LXI | +60 | (4078) | - 96 | Cm LXII | +61 | (4156) | - 96 | Cm LXIII | +62 | (4239) | - 96 | Cm LXIV | +63 | (4317) | - 96 | Cm LXV | +64 | (4791) | - 96 | Cm LXVI | +65 | (4880) | - 96 | Cm LXVII | +66 | (5110) | - 96 | Cm LXVIII | +67 | (5200) | - 96 | Cm LXIX | +68 | (8270) | - 96 | Cm LXX | +69 | (8440) | - 96 | Cm LXXI | +70 | (8620) | - 96 | Cm LXXII | +71 | (8820) | - 96 | Cm LXXIII | +72 | (9000) | - 96 | Cm LXXIV | +73 | (9180) | - 96 | Cm LXXV | +74 | (9630) | - 96 | Cm LXXVI | +75 | (9820) | - 96 | Cm LXXVII | +76 | (10020) | - 96 | Cm LXXVIII | +77 | (10220) | - 96 | Cm LXXIX | +78 | (10760) | - 96 | Cm LXXX | +79 | (10920) | - 96 | Cm LXXXI | +80 | (11100) | - 96 | Cm LXXXII | +81 | (11270) | - 96 | Cm LXXXIII | +82 | (12740) | - 96 | Cm LXXXIV | +83 | (12950) | - 96 | Cm LXXXV | +84 | (13350) | - 96 | Cm LXXXVI | +85 | (13550) | - 96 | Cm LXXXVII | +86 | (27740) | - 96 | Cm LXXXVIII | +87 | (28180) | - 96 | Cm LXXXIX | +88 | (28700) | - 96 | Cm XC | +89 | (29100) | - 96 | Cm XCI | +90 | (34600) | - 96 | Cm XCII | +91 | (35200) | - 96 | Cm XCIII | +92 | (36000) | - 96 | Cm XCIV | +93 | (36493.0) | - 96 | Cm XCV | +94 | (143299.6) | - 96 | Cm XCVI | +95 | (145740.1) | - 97 | Bk I | 0 | 6.19785 | - 97 | Bk II | +1 | [11.9] | - 97 | Bk III | +2 | [21.6] | - 97 | Bk IV | +3 | [36.0] | - 97 | Bk V | +4 | (56.0) | - 97 | Bk VI | +5 | (70.1) | - 97 | Bk VII | +6 | (90.0) | - 97 | Bk VIII | +7 | (114) | - 97 | Bk IX | +8 | (130) | - 97 | Bk X | +9 | (147) | - 97 | Bk XI | +10 | (171) | - 97 | Bk XII | +11 | (195) | - 97 | Bk XIII | +12 | (218) | - 97 | Bk XIV | +13 | (240) | - 97 | Bk XV | +14 | (259) | - 97 | Bk XVI | +15 | (279) | - 97 | Bk XVII | +16 | (303) | - 97 | Bk XVIII | +17 | (339) | - 97 | Bk XIX | +18 | (361) | - 97 | Bk XX | +19 | (497) | - 97 | Bk XXI | +20 | (526) | - 97 | Bk XXII | +21 | (557) | - 97 | Bk XXIII | +22 | (590) | - 97 | Bk XXIV | +23 | (621) | - 97 | Bk XXV | +24 | (652) | - 97 | Bk XXVI | +25 | (700) | - 97 | Bk XXVII | +26 | (733) | - 97 | Bk XXVIII | +27 | (768) | - 97 | Bk XXIX | +28 | (800) | - 97 | Bk XXX | +29 | (960) | - 97 | Bk XXXI | +30 | (1000) | - 97 | Bk XXXII | +31 | (1040) | - 97 | Bk XXXIII | +32 | (1080) | - 97 | Bk XXXIV | +33 | (1200) | - 97 | Bk XXXV | +34 | (1240) | - 97 | Bk XXXVI | +35 | (1360) | - 97 | Bk XXXVII | +36 | (1410) | - 97 | Bk XXXVIII | +37 | (1550) | - 97 | Bk XXXIX | +38 | (1630) | - 97 | Bk XL | +39 | (1720) | - 97 | Bk XLI | +40 | (1800) | - 97 | Bk XLII | +41 | (1890) | - 97 | Bk XLIII | +42 | (1970) | - 97 | Bk XLIV | +43 | (2050) | - 97 | Bk XLV | +44 | (2140) | - 97 | Bk XLVI | +45 | (2240) | - 97 | Bk XLVII | +46 | (2320) | - 97 | Bk XLVIII | +47 | (2410) | - 97 | Bk XLIX | +48 | (2490) | - 97 | Bk L | +49 | (2580) | - 97 | Bk LI | +50 | (2670) | - 97 | Bk LII | +51 | (3080) | - 97 | Bk LIII | +52 | (3154) | - 97 | Bk LIV | +53 | (3232) | - 97 | Bk LV | +54 | (3315) | - 97 | Bk LVI | +55 | (3393) | - 97 | Bk LVII | +56 | (3469) | - 97 | Bk LVIII | +57 | (3630) | - 97 | Bk LIX | +58 | (3709) | - 97 | Bk LX | +59 | (3797) | - 97 | Bk LXI | +60 | (3877) | - 97 | Bk LXII | +61 | (4202) | - 97 | Bk LXIII | +62 | (4281) | - 97 | Bk LXIV | +63 | (4365) | - 97 | Bk LXV | +64 | (4445) | - 97 | Bk LXVI | +65 | (4940) | - 97 | Bk LXVII | +66 | (5040) | - 97 | Bk LXVIII | +67 | (5270) | - 97 | Bk LXIX | +68 | (5360) | - 97 | Bk LXX | +69 | (8500) | - 97 | Bk LXXI | +70 | (8670) | - 97 | Bk LXXII | +71 | (8850) | - 97 | Bk LXXIII | +72 | (9050) | - 97 | Bk LXXIV | +73 | (9240) | - 97 | Bk LXXV | +74 | (9420) | - 97 | Bk LXXVI | +75 | (9880) | - 97 | Bk LXXVII | +76 | (10070) | - 97 | Bk LXXVIII | +77 | (10280) | - 97 | Bk LXXIX | +78 | (10480) | - 97 | Bk LXXX | +79 | (11020) | - 97 | Bk LXXXI | +80 | (11190) | - 97 | Bk LXXXII | +81 | (11380) | - 97 | Bk LXXXIII | +82 | (11550) | - 97 | Bk LXXXIV | +83 | (13090) | - 97 | Bk LXXXV | +84 | (13300) | - 97 | Bk LXXXVI | +85 | (13720) | - 97 | Bk LXXXVII | +86 | (13910) | - 97 | Bk LXXXVIII | +87 | (28380) | - 97 | Bk LXXXIX | +88 | (28800) | - 97 | Bk XC | +89 | (29300) | - 97 | Bk XCI | +90 | (29800) | - 97 | Bk XCII | +91 | (35500) | - 97 | Bk XCIII | +92 | (36200) | - 97 | Bk XCIV | +93 | (37000) | - 97 | Bk XCV | +94 | (37457.6) | - 97 | Bk XCVI | +95 | (146904.7) | - 97 | Bk XCVII | +96 | (149398) | - 98 | Cf I | 0 | 6.281878 | - 98 | Cf II | +1 | [12.0] | - 98 | Cf III | +2 | [22.4] | - 98 | Cf IV | +3 | [37.7] | - 98 | Cf V | +4 | (51.9) | - 98 | Cf VI | +5 | (75.0) | - 98 | Cf VII | +6 | (91.0) | - 98 | Cf VIII | +7 | (112.9) | - 98 | Cf IX | +8 | (133) | - 98 | Cf X | +9 | (152) | - 98 | Cf XI | +10 | (178) | - 98 | Cf XII | +11 | (201) | - 98 | Cf XIII | +12 | (225) | - 98 | Cf XIV | +13 | (247) | - 98 | Cf XV | +14 | (265) | - 98 | Cf XVI | +15 | (286) | - 98 | Cf XVII | +16 | (310) | - 98 | Cf XVIII | +17 | (334) | - 98 | Cf XIX | +18 | (368) | - 98 | Cf XX | +19 | (390) | - 98 | Cf XXI | +20 | (536) | - 98 | Cf XXII | +21 | (566) | - 98 | Cf XXIII | +22 | (597) | - 98 | Cf XXIV | +23 | (630) | - 98 | Cf XXV | +24 | (662) | - 98 | Cf XXVI | +25 | (695) | - 98 | Cf XXVII | +26 | (744) | - 98 | Cf XXVIII | +27 | (778) | - 98 | Cf XXIX | +28 | (814) | - 98 | Cf XXX | +29 | (847) | - 98 | Cf XXXI | +30 | (1010) | - 98 | Cf XXXII | +31 | (1050) | - 98 | Cf XXXIII | +32 | (1090) | - 98 | Cf XXXIV | +33 | (1120) | - 98 | Cf XXXV | +34 | (1250) | - 98 | Cf XXXVI | +35 | (1300) | - 98 | Cf XXXVII | +36 | (1420) | - 98 | Cf XXXVIII | +37 | (1470) | - 98 | Cf XXXIX | +38 | (1620) | - 98 | Cf XL | +39 | (1700) | - 98 | Cf XLI | +40 | (1790) | - 98 | Cf XLII | +41 | (1880) | - 98 | Cf XLIII | +42 | (1960) | - 98 | Cf XLIV | +43 | (2050) | - 98 | Cf XLV | +44 | (2130) | - 98 | Cf XLVI | +45 | (2220) | - 98 | Cf XLVII | +46 | (2320) | - 98 | Cf XLVIII | +47 | (2410) | - 98 | Cf XLIX | +48 | (2490) | - 98 | Cf L | +49 | (2580) | - 98 | Cf LI | +50 | (2670) | - 98 | Cf LII | +51 | (2750) | - 98 | Cf LIII | +52 | (3186) | - 98 | Cf LIV | +53 | (3261) | - 98 | Cf LV | +54 | (3340) | - 98 | Cf LVI | +55 | (3424) | - 98 | Cf LVII | +56 | (3503) | - 98 | Cf LVIII | +57 | (3581) | - 98 | Cf LIX | +58 | (3747) | - 98 | Cf LX | +59 | (3828) | - 98 | Cf LXI | +60 | (3915) | - 98 | Cf LXII | +61 | (3998) | - 98 | Cf LXIII | +62 | (4329) | - 98 | Cf LXIV | +63 | (4407) | - 98 | Cf LXV | +64 | (4494) | - 98 | Cf LXVI | +65 | (4570) | - 98 | Cf LXVII | +66 | (5100) | - 98 | Cf LXVIII | +67 | (5190) | - 98 | Cf LXIX | +68 | (5430) | - 98 | Cf LXX | +69 | (5520) | - 98 | Cf LXXI | +70 | (8730) | - 98 | Cf LXXII | +71 | (8900) | - 98 | Cf LXXIII | +72 | (9090) | - 98 | Cf LXXIV | +73 | (9290) | - 98 | Cf LXXV | +74 | (9480) | - 98 | Cf LXXVI | +75 | (9660) | - 98 | Cf LXXVII | +76 | (10140) | - 98 | Cf LXXVIII | +77 | (10330) | - 98 | Cf LXXIX | +78 | (10550) | - 98 | Cf LXXX | +79 | (10740) | - 98 | Cf LXXXI | +80 | (11300) | - 98 | Cf LXXXII | +81 | (11470) | - 98 | Cf LXXXIII | +82 | (11650) | - 98 | Cf LXXXIV | +83 | (11820) | - 98 | Cf LXXXV | +84 | (13450) | - 98 | Cf LXXXVI | +85 | (13660) | - 98 | Cf LXXXVII | +86 | (14080) | - 98 | Cf LXXXVIII | +87 | (14280) | - 98 | Cf LXXXIX | +88 | (29000) | - 98 | Cf XC | +89 | (29500) | - 98 | Cf XCI | +90 | (30000) | - 98 | Cf XCII | +91 | (30500) | - 98 | Cf XCIII | +92 | (36500) | - 98 | Cf XCIV | +93 | (37100) | - 98 | Cf XCV | +94 | (37900) | - 98 | Cf XCVI | +95 | (38443.5) | - 98 | Cf XCVII | +96 | (150579.3) | - 98 | Cf XCVIII | +97 | (153124) | - 99 | Es I | 0 | 6.36758 | - 99 | Es II | +1 | [12.2] | - 99 | Es III | +2 | [22.7] | - 99 | Es IV | +3 | [38.8] | - 99 | Es V | +4 | (54.1) | - 99 | Es VI | +5 | (71.0) | - 99 | Es VII | +6 | (97.0) | - 99 | Es VIII | +7 | (112.9) | - 99 | Es IX | +8 | (137.0) | - 99 | Es X | +9 | (157) | - 99 | Es XI | +10 | (180) | - 99 | Es XII | +11 | (206) | - 99 | Es XIII | +12 | (231) | - 99 | Es XIV | +13 | (252) | - 99 | Es XV | +14 | (270) | - 99 | Es XVI | +15 | (294) | - 99 | Es XVII | +16 | (317) | - 99 | Es XVIII | +17 | (342) | - 99 | Es XIX | +18 | (367) | - 99 | Es XX | +19 | (398) | - 99 | Es XXI | +20 | (421) | - 99 | Es XXII | +21 | (576) | - 99 | Es XXIII | +22 | (606) | - 99 | Es XXIV | +23 | (638) | - 99 | Es XXV | +24 | (672) | - 99 | Es XXVI | +25 | (705) | - 99 | Es XXVII | +26 | (738) | - 99 | Es XXVIII | +27 | (790) | - 99 | Es XXIX | +28 | (824) | - 99 | Es XXX | +29 | (861) | - 99 | Es XXXI | +30 | (895) | - 99 | Es XXXII | +31 | (1060) | - 99 | Es XXXIII | +32 | (1100) | - 99 | Es XXXIV | +33 | (1140) | - 99 | Es XXXV | +34 | (1180) | - 99 | Es XXXVI | +35 | (1310) | - 99 | Es XXXVII | +36 | (1360) | - 99 | Es XXXVIII | +37 | (1480) | - 99 | Es XXXIX | +38 | (1530) | - 99 | Es XL | +39 | (1690) | - 99 | Es XLI | +40 | (1780) | - 99 | Es XLII | +41 | (1870) | - 99 | Es XLIII | +42 | (1950) | - 99 | Es XLIV | +43 | (2040) | - 99 | Es XLV | +44 | (2130) | - 99 | Es XLVI | +45 | (2220) | - 99 | Es XLVII | +46 | (2300) | - 99 | Es XLVIII | +47 | (2410) | - 99 | Es XLIX | +48 | (2490) | - 99 | Es L | +49 | (2580) | - 99 | Es LI | +50 | (2680) | - 99 | Es LII | +51 | (2760) | - 99 | Es LIII | +52 | (2850) | - 99 | Es LIV | +53 | (3294) | - 99 | Es LV | +54 | (3370) | - 99 | Es LVI | +55 | (3449) | - 99 | Es LVII | +56 | (3535) | - 99 | Es LVIII | +57 | (3616) | - 99 | Es LIX | +58 | (3694) | - 99 | Es LX | +59 | (3866) | - 99 | Es LXI | +60 | (3947) | - 99 | Es LXII | +61 | (4038) | - 99 | Es LXIII | +62 | (4120) | - 99 | Es LXIV | +63 | (4456) | - 99 | Es LXV | +64 | (4537) | - 99 | Es LXVI | +65 | (4620) | - 99 | Es LXVII | +66 | (4700) | - 99 | Es LXVIII | +67 | (5260) | - 99 | Es LXIX | +68 | (5350) | - 99 | Es LXX | +69 | (5600) | - 99 | Es LXXI | +70 | (5690) | - 99 | Es LXXII | +71 | (8960) | - 99 | Es LXXIII | +72 | (9140) | - 99 | Es LXXIV | +73 | (9330) | - 99 | Es LXXV | +74 | (9530) | - 99 | Es LXXVI | +75 | (9720) | - 99 | Es LXXVII | +76 | (9910) | - 99 | Es LXXVIII | +77 | (10400) | - 99 | Es LXXIX | +78 | (10590) | - 99 | Es LXXX | +79 | (10810) | - 99 | Es LXXXI | +80 | (11010) | - 99 | Es LXXXII | +81 | (11570) | - 99 | Es LXXXIII | +82 | (11740) | - 99 | Es LXXXIV | +83 | (11930) | - 99 | Es LXXXV | +84 | (12110) | - 99 | Es LXXXVI | +85 | (13810) | - 99 | Es LXXXVII | +86 | (14030) | - 99 | Es LXXXVIII | +87 | (14460) | - 99 | Es LXXXIX | +88 | (14700) | - 99 | Es XC | +89 | (29700) | - 99 | Es XCI | +90 | (30100) | - 99 | Es XCII | +91 | (30700) | - 99 | Es XCIII | +92 | (31100) | - 99 | Es XCIV | +93 | (37400) | - 99 | Es XCV | +94 | (38100) | - 99 | Es XCVI | +95 | (38900) | - 99 | Es XCVII | +96 | (39451.4) | - 99 | Es XCVIII | +97 | (154328.1) | - 99 | Es XCIX | +98 | (156927) | - 100 | Fm I | 0 | [6.50] | - 100 | Fm II | +1 | [12.4] | - 100 | Fm III | +2 | [23.2] | - 100 | Fm IV | +3 | [39.3] | - 100 | Fm V | +4 | (55.0) | - 100 | Fm VI | +5 | (74.0) | - 100 | Fm VII | +6 | (93.0) | - 100 | Fm VIII | +7 | (120.0) | - 100 | Fm IX | +8 | (136.0) | - 100 | Fm X | +9 | (162.0) | - 100 | Fm XI | +10 | (185) | - 100 | Fm XII | +11 | (209) | - 100 | Fm XIII | +12 | (237) | - 100 | Fm XIV | +13 | (257) | - 100 | Fm XV | +14 | (276) | - 100 | Fm XVI | +15 | (300) | - 100 | Fm XVII | +16 | (326) | - 100 | Fm XVIII | +17 | (351) | - 100 | Fm XIX | +18 | (377) | - 100 | Fm XX | +19 | (402) | - 100 | Fm XXI | +20 | (430) | - 100 | Fm XXII | +21 | (453) | - 100 | Fm XXIII | +22 | (616) | - 100 | Fm XXIV | +23 | (647) | - 100 | Fm XXV | +24 | (680) | - 100 | Fm XXVI | +25 | (716) | - 100 | Fm XXVII | +26 | (749) | - 100 | Fm XXVIII | +27 | (782) | - 100 | Fm XXIX | +28 | (837) | - 100 | Fm XXX | +29 | (871) | - 100 | Fm XXXI | +30 | (909) | - 100 | Fm XXXII | +31 | (944) | - 100 | Fm XXXIII | +32 | (1110) | - 100 | Fm XXXIV | +33 | (1150) | - 100 | Fm XXXV | +34 | (1190) | - 100 | Fm XXXVI | +35 | (1230) | - 100 | Fm XXXVII | +36 | (1370) | - 100 | Fm XXXVIII | +37 | (1420) | - 100 | Fm XXXIX | +38 | (1550) | - 100 | Fm XL | +39 | (1600) | - 100 | Fm XLI | +40 | (1770) | - 100 | Fm XLII | +41 | (1850) | - 100 | Fm XLIII | +42 | (1940) | - 100 | Fm XLIV | +43 | (2030) | - 100 | Fm XLV | +44 | (2120) | - 100 | Fm XLVI | +45 | (2210) | - 100 | Fm XLVII | +46 | (2300) | - 100 | Fm XLVIII | +47 | (2390) | - 100 | Fm XLIX | +48 | (2490) | - 100 | Fm L | +49 | (2590) | - 100 | Fm LI | +50 | (2680) | - 100 | Fm LII | +51 | (2760) | - 100 | Fm LIII | +52 | (2850) | - 100 | Fm LIV | +53 | (2950) | - 100 | Fm LV | +54 | (3403) | - 100 | Fm LVI | +55 | (3480) | - 100 | Fm LVII | +56 | (3561) | - 100 | Fm LVIII | +57 | (3647) | - 100 | Fm LIX | +58 | (3730) | - 100 | Fm LX | +59 | (3810) | - 100 | Fm LXI | +60 | (3986) | - 100 | Fm LXII | +61 | (4070) | - 100 | Fm LXIII | +62 | (4160) | - 100 | Fm LXIV | +63 | (4245) | - 100 | Fm LXV | +64 | (4586) | - 100 | Fm LXVI | +65 | (4670) | - 100 | Fm LXVII | +66 | (4760) | - 100 | Fm LXVIII | +67 | (4840) | - 100 | Fm LXIX | +68 | (5420) | - 100 | Fm LXX | +69 | (5510) | - 100 | Fm LXXI | +70 | (5760) | - 100 | Fm LXXII | +71 | (5860) | - 100 | Fm LXXIII | +72 | (9200) | - 100 | Fm LXXIV | +73 | (9370) | - 100 | Fm LXXV | +74 | (9570) | - 100 | Fm LXXVI | +75 | (9770) | - 100 | Fm LXXVII | +76 | (9970) | - 100 | Fm LXXVIII | +77 | (10160) | - 100 | Fm LXXIX | +78 | (10660) | - 100 | Fm LXXX | +79 | (10860) | - 100 | Fm LXXXI | +80 | (11080) | - 100 | Fm LXXXII | +81 | (11280) | - 100 | Fm LXXXIII | +82 | (11850) | - 100 | Fm LXXXIV | +83 | (12020) | - 100 | Fm LXXXV | +84 | (12220) | - 100 | Fm LXXXVI | +85 | (12390) | - 100 | Fm LXXXVII | +86 | (14180) | - 100 | Fm LXXXVIII | +87 | (14400) | - 100 | Fm LXXXIX | +88 | (14800) | - 100 | Fm XC | +89 | (15000) | - 100 | Fm XCI | +90 | (30300) | - 100 | Fm XCII | +91 | (30800) | - 100 | Fm XCIII | +92 | (31300) | - 100 | Fm XCIV | +93 | (31800) | - 100 | Fm XCV | +94 | (38400) | - 100 | Fm XCVI | +95 | (39100) | - 100 | Fm XCVII | +96 | (40000) | - 100 | Fm XCVIII | +97 | (40482.2) | - 100 | Fm XCIX | +98 | (158152.5) | - 100 | Fm C | +99 | (160808) | ------------------------------------------------------------------------------ diff --git a/Source/Utils/Physics/write_atomic_data_cpp.py b/Source/Utils/Physics/write_atomic_data_cpp.py deleted file mode 100644 index 11cd3b2c0..000000000 --- a/Source/Utils/Physics/write_atomic_data_cpp.py +++ /dev/null @@ -1,90 +0,0 @@ -#!/usr/bin/env python3 -# -# Copyright 2019-2021 Axel Huebl, Luca Fedeli, Maxence Thevenet -# -# -# This file is part of WarpX. -# -# License: BSD-3-Clause-LBNL - -''' -This python script reads ionization tables in atomic_data.txt (generated from -the NIST website) and extracts ionization levels into C++ file -IonizationEnergiesTable.H, which contains tables + metadata. -''' - -import os -import re - -import numpy as np - -filename = os.path.join( '.', 'atomic_data.txt' ) -with open(filename) as f: - text_data = f.read() - -# Read full table from file and get names, atomic numbers and offsets -# position in table of ionization energies for all species -regex_command = '\n\s+(\d+)\s+\|\s+([A-Z]+[a-z]*)\s+\w+\s+\|\s+\+*(\d+)\s+\|\s+\(*\[*(\d+\.*\d*)' -list_of_tuples = re.findall( regex_command, text_data ) -ion_atom_numbers = [int(i) for i in list(dict.fromkeys( [x[0] for x in list_of_tuples] ))] -ion_names = list(dict.fromkeys( [x[1] for x in list_of_tuples] )) -ion_offsets = np.concatenate(([0], np.cumsum(np.array(ion_atom_numbers)[:-1])), axis=0) - -# Head of CPP file -cpp_string = '// This script was automatically generated!\n' -cpp_string += '// Edit dev/Source/Utils/Physics/write_atomic_data_cpp.py instead!\n\n' -cpp_string += '#ifndef WARPX_UTILS_PHYSICS_IONIZATION_TABLE_H_\n' -cpp_string += '#define WARPX_UTILS_PHYSICS_IONIZATION_TABLE_H_\n\n' -cpp_string += '#include \n\n' -cpp_string += '#include \n' -cpp_string += '#include \n\n' -cpp_string += 'namespace utils::physics\n' -cpp_string += '{\n' - -# Map each element to ID in table -cpp_string += ' static std::map const ion_map_ids = {' -for count, name in enumerate(ion_names): - cpp_string += '\n {"' + name + '", ' + str(count) + '},' -cpp_string = cpp_string[:-1] -cpp_string += ' };\n\n' - -# Atomic number of each species -cpp_string += ' constexpr int nelements = ' + str(len(ion_names)) + ';\n\n' -cpp_string += ' constexpr int ion_atomic_numbers[nelements] = {\n ' -for count, atom_num in enumerate(ion_atom_numbers): - if count%10==0 and count>0: cpp_string = cpp_string[:-2] + ',\n ' - cpp_string += str(atom_num) + ', ' -cpp_string = cpp_string[:-2] -cpp_string += '};\n\n' - -# Offset of each element in table of ionization energies -cpp_string += ' constexpr int ion_energy_offsets[nelements] = {\n ' -for count, offset in enumerate(ion_offsets): - if count%10==0 and count>0: cpp_string = cpp_string[:-2] + ',\n ' - cpp_string += str(offset) + ', ' -cpp_string = cpp_string[:-2] -cpp_string += '};\n\n' - -# Table of ionization energies -cpp_string += ' constexpr int energies_tab_length = ' + str(len(list_of_tuples)) + ';\n\n' -cpp_string += ' constexpr amrex::Real table_ionization_energies[energies_tab_length]{' -for element in ion_names: - cpp_string += '\n // ' + element + '\n ' - regex_command = \ - '\n\s+(\d+)\s+\|\s+%s\s+\w+\s+\|\s+\+*(\d+)\s+\|\s+\(*\[*(\d+\.*\d*)' \ - %element - list_of_tuples = re.findall( regex_command, text_data ) - for count, energy in enumerate([x[2] for x in list_of_tuples]): - if count%3==0 and count>0: cpp_string = cpp_string[:-2] + ',\n ' - cpp_string += "amrex::Real(" + energy + '), ' - cpp_string = cpp_string[:-1] -cpp_string = cpp_string[:-1] -cpp_string += '\n };\n\n' - -cpp_string += '}\n\n' - -# Write the string to file -cpp_string += '#endif // #ifndef WARPX_UTILS_PHYSICS_IONIZATION_TABLE_H_\n' -f= open("IonizationEnergiesTable.H","w") -f.write(cpp_string) -f.close() diff --git a/Source/Utils/check_interp_points_and_weights.py b/Source/Utils/check_interp_points_and_weights.py deleted file mode 100644 index a1d17c8dd..000000000 --- a/Source/Utils/check_interp_points_and_weights.py +++ /dev/null @@ -1,190 +0,0 @@ -# Copyright 2020 Edoardo Zoni -# -# This file is part of WarpX -# -# License: BSD-3-Clause-LBNL - -#------------------------------------------------------------------------------- -# Compute interpolation points and weights for coarsening and refinement in IO -# and MR applications in 1D (extensions to 2D and 3D are trivial). Weights are -# computed in order to guarantee total charge conservation for both cell-centered -# data (equal weights) and nodal data (weights depend on distance between points -# on fine and coarse grids). -# -# Notation: -# - index i refers to points on coarse grid -# - index ii refers to points on fine grid -# - sc denotes the staggering of the coarse data -# - sf denotes the staggering of the fine data -# - cr denotes the coarsening ratio (must be cr=1,2,4 only) -# -# For MR applications only the cases sc=sf=0 and sc=sf=1 are considered. Terms -# multiplied by (1-sf)*(1-sc) are ON for cell-centered data and OFF for nodal data, -# while terms multiplied by sf*sc are ON for nodal data and OFF for cell-centered -# data. C++ implementation in Source/ablastr/coarsen/average.(H/.cpp) and -# Source/ablastr/coarsen/sample.(H/.cpp) -#------------------------------------------------------------------------------- - -import sys - -import numpy as np - - -# Fine grid limits (without ghost cells) -def fine_grid_limits( sf ): - if ( sf == 0 ): # cell-centered - iimin = 0 - iimax = 7 - elif ( sf == 1 ): # nodal - iimin = 0 - iimax = 8 - return [ iimin, iimax ] - -# Coarse grid limits (without ghost cells) -def coarse_grid_limits( sc, sf, iimin, iimax ): - imin = int( iimin/cr ) - imax = int( iimax/cr )-(1-sc)*sf+(1-sf)*sc - return [ imin, imax ] - -# Coarsening for MR: interpolation points and weights -def coarsening_points_and_weights( i, sc, sf, cr ): - if ( cr==1 ): - numpts = 1 - idxmin = i - elif ( cr>=2 ): - numpts = cr*(1-sf)*(1-sc)+(2*(cr-1)+1)*sf*sc - idxmin = i*cr*(1-sf)*(1-sc)+(i*cr-cr+1)*sf*sc - weights = np.zeros( numpts ) - for ir in range( numpts ): - ii = idxmin+ir - weights[ir] = (1/cr)*(1-sf)*(1-sc)+((abs(cr-abs(ii-i*cr)))/(cr*cr))*sf*sc - return [ numpts, idxmin, weights ] - -# Refinement for MR: interpolation points and weights -def refinement_points_and_weights( ii, sc, sf, cr ): - if ( cr==1 ): - numpts = 1 - idxmin = ii - elif ( cr>=2 ): - if ( ii%cr==0 ): - numpts = (1-sf)*(1-sc)+sf*sc - elif ( ii%cr!=0 ): - numpts = (1-sf)*(1-sc)+2*sf*sc - idxmin = (ii//cr)*(1-sf)*(1-sc)+(ii//cr)*sf*sc - weights = np.zeros( numpts ) - for ir in range( numpts ): - i = idxmin+ir - if ( ii==iimin or ii==iimax ): - weights[ir] = (1-sf)*(1-sc)+((abs(cr-abs(ii-i*cr)))/(cr)+(cr/2-0.5))*sf*sc - else: - weights[ir] = (1-sf)*(1-sc)+((abs(cr-abs(ii-i*cr)))/(cr))*sf*sc - return [ numpts, idxmin, weights ] - -## TODO Coarsening for IO: interpolation points and weights -#def coarsening_points_and_weights_for_IO( i, sf, sc, cr ): -# if ( cr==1 ): -# numpts = 1+abs(sf-sc) -# idxmin = i-sc*(1-sf) -# elif ( cr>=2 ): -# numpts = 2-sf -# idxmin = i*cr+cr//2*(1-sc)-(1-sf) -# weights = np.zeros( numpts ) -# for ir in range( numpts ): -# weights[ir] = (1/numpts)*(1-sf)*(1-sc)+(1/numpts)*sf*sc -# return [ numpts, idxmin, weights ] - -#------------------------------------------------------------------------------- -# Main -#------------------------------------------------------------------------------- - -# Input coarsening ratio -cr = int( input( "\n Select coarsening ratio (cr=1,2,4): cr=" ) ) -if ( cr!=1 and cr!=2 and cr!=4 ): - print() - sys.exit( 'coarsening ratio cr={} is not valid'.format( cr ) ) - -# Loop over possible staggering of coarse and fine grid (cell-centered or nodal) -for sc in [0,1]: - for sf in [0,1]: - - print( '\n **************************************************' ) - print( ' * Staggering of coarse grid: sc={}'.format( sc ), end='' ) - if ( sc == 0 ): - print( ' cell-centered *' ) - elif ( sc == 1 ): - print( ' nodal *' ) - print( ' * Staggering of fine grid: sf={}'.format( sf ), end='' ) - if ( sf == 0 ): - print( ' cell-centered *' ) - elif ( sf == 1 ): - print( ' nodal *' ) - print( ' **************************************************' ) - - iimin,iimax = fine_grid_limits( sf ) - imin ,imax = coarse_grid_limits( sc, sf, iimin, iimax ) - - print( '\n Min and max index on coarse grid: imin={} imax={}'.format( imin, imax ) ) - print( ' Min and max index on fine grid: iimin={} iimax={}'.format( iimin, iimax ) ) - - # Number of grid points - nc = imax-imin+1 - nf = iimax-iimin+1 - - print( '\n Number of points on coarse grid: nc={}'.format( nc ) ) - print( ' Number of points on fine grid: nf={}'.format( nf ) ) - - if ( sf!=sc ): - print( '\n WARNING: sc={} not equal to sf={}, not implemented for MR, continue ...'.format( sc, sf ) ) - continue - - print( '\n Coarsening for MR: check interpolation points and weights' ) - print( ' ---------------------------------------------------------' ) - - # Coarsening for MR: interpolation points and weights - for i in range ( nc ): # index on coarse grid - numpts,idxmin,weights = coarsening_points_and_weights( i, sc, sf, cr ) - print( '\n Find value at i={} by interpolating over the following points and weights:'.format( i ) ) - for ir in range( numpts ): # interpolation points and weights - ii = idxmin+ir - print( ' ({},{})'.format( ii, weights[ir] ), end='' ) - if not ( ir == numpts-1 ): - print( ' ', end='' ) - print() - - # Coarsening for MR: check conservation properties - for ii in range( nf ): # index on fine grid - ws = 0.0 - for i in range( nc ): # index on coarse grid - numpts,idxmin,weights = coarsening_points_and_weights( i, sc, sf, cr ) - for ir in range( numpts ): # interpolation points and weights - jj = idxmin+ir - if ( jj==ii ): # interpolation point matches point on fine grid - ws += weights[ir] - if ( ws!=1.0/cr ): - print( '\n ERROR: sum of weights ws={} should be 1/cr'.format( ws ) ) - - print( '\n Refinement for MR: check interpolation points and weights' ) - print( ' ---------------------------------------------------------' ) - - # Refinement for MR: interpolation points and weights - for ii in range ( nf ): # index on fine grid - numpts,idxmin,weights = refinement_points_and_weights( ii, sc, sf, cr ) - print( '\n Find value at ii={} by interpolating over the following points and weights:'.format( ii ) ) - for ir in range( numpts ): # interpolation points and weights - i = idxmin+ir - print( ' ({},{})'.format( i, weights[ir] ), end='' ) - if not ( ir == numpts-1 ): - print( ' ', end='' ) - print() - - # Refinement for MR: check conservation properties - for i in range( nc ): # index on coarse grid - ws = 0.0 - for ii in range( nf ): # index on fine grid - numpts,idxmin,weights = refinement_points_and_weights( ii, sc, sf, cr ) - for ir in range( numpts ): # interpolation points and weights - jj = idxmin+ir - if ( jj==i ): # interpolation point matches point on coarse grid - ws += weights[ir] - if ( ws!=cr ): - print( '\n ERROR: sum of weights ws={} should be cr'.format( ws ) ) diff --git a/Source/ablastr/particles/ParticleMoments.H b/Source/ablastr/particles/ParticleMoments.H deleted file mode 100644 index e45fb574c..000000000 --- a/Source/ablastr/particles/ParticleMoments.H +++ /dev/null @@ -1,144 +0,0 @@ -/* Copyright 2021 Axel Huebl, Remi Lehe - * - * This file is part of WarpX. - * - * License: BSD-3-Clause-LBNL - */ -#ifndef ABLASTR_PARTICLE_MOMENTS_H -#define ABLASTR_PARTICLE_MOMENTS_H - -#include -#include -#include -#include -#include - -#include -#include - - -namespace ablastr { -namespace particles { - - /** Compute the min and max of the particle position in each dimension - * - * \tparam T_PC a type of amrex::ParticleContainer - * - * \param pc the particle container to operate on - * \returns x_min, y_min, z_min, x_max, y_max, z_max - */ - template< typename T_PC > - static - std::tuple< - amrex::ParticleReal, amrex::ParticleReal, - amrex::ParticleReal, amrex::ParticleReal, - amrex::ParticleReal, amrex::ParticleReal> - MinAndMaxPositions (T_PC const & pc) - { - using PType = typename T_PC::SuperParticleType; - - // Get min and max for the local rank - amrex::ReduceOps< - amrex::ReduceOpMin, amrex::ReduceOpMin, amrex::ReduceOpMin, - amrex::ReduceOpMax, amrex::ReduceOpMax, amrex::ReduceOpMax> reduce_ops; - auto r = amrex::ParticleReduce< - amrex::ReduceData - >( - pc, - [=] AMREX_GPU_DEVICE(PType const & p) noexcept - { - amrex::ParticleReal const x = p.pos(0); - amrex::ParticleReal const y = p.pos(1); - amrex::ParticleReal const z = p.pos(2); - - return amrex::makeTuple(x, y, z, x, y, z); - }, - reduce_ops - ); - - // Get min and max across all ranks - std::vector< amrex::ParticleReal > xyz_min = { - amrex::get<0>(r), - amrex::get<1>(r), - amrex::get<2>(r) - }; - amrex::ParallelDescriptor::ReduceRealMin(xyz_min.data(), xyz_min.size()); - std::vector< amrex::ParticleReal > xyz_max = { - amrex::get<3>(r), - amrex::get<4>(r), - amrex::get<5>(r) - }; - amrex::ParallelDescriptor::ReduceRealMax(xyz_max.data(), xyz_max.size()); - - return {xyz_min[0], xyz_min[1], xyz_min[2], xyz_max[0], xyz_max[1], xyz_max[2]}; - } - - /** Compute the mean and std of the particle position in each dimension - * - * \tparam T_PC a type of amrex::ParticleContainer - * \tparam T_RealSoAWeight - * - * \param pc the particle container to operate on - * \returns x_mean, x_std, y_mean, y_std, z_mean, z_std - */ - template< typename T_PC, int T_RealSoAWeight > - static - std::tuple< - amrex::ParticleReal, amrex::ParticleReal, - amrex::ParticleReal, amrex::ParticleReal, - amrex::ParticleReal, amrex::ParticleReal> - MeanAndStdPositions (T_PC const & pc) - { - using PType = typename T_PC::SuperParticleType; - - amrex::ReduceOps< - amrex::ReduceOpSum, amrex::ReduceOpSum, amrex::ReduceOpSum, - amrex::ReduceOpSum, amrex::ReduceOpSum, amrex::ReduceOpSum, - amrex::ReduceOpSum> reduce_ops; - auto r = amrex::ParticleReduce< - amrex::ReduceData< - amrex::ParticleReal, amrex::ParticleReal, amrex::ParticleReal, - amrex::ParticleReal, amrex::ParticleReal, amrex::ParticleReal, - amrex::ParticleReal> - >( - pc, - [=] AMREX_GPU_DEVICE(const PType& p) noexcept - { - amrex::ParticleReal const x = p.pos(0); - amrex::ParticleReal const y = p.pos(1); - amrex::ParticleReal const z = p.pos(2); - amrex::ParticleReal const w = p.rdata(T_RealSoAWeight); - - return amrex::makeTuple(x, x*x, y, y*y, z, z*z, w); - }, - reduce_ops - ); - - // Reduce across MPI ranks - std::vector data_vector = { - amrex::get<0>(r), - amrex::get<1>(r), - amrex::get<2>(r), - amrex::get<3>(r), - amrex::get<4>(r), - amrex::get<5>(r), - amrex::get<6>(r) - }; - amrex::ParallelDescriptor::ReduceRealSum(data_vector.data(), data_vector.size()); - - amrex::ParticleReal w_sum = data_vector[6]; - amrex::ParticleReal x_mean = data_vector[0] / w_sum; - amrex::ParticleReal x_std = data_vector[1] / w_sum- x_mean * x_mean; - amrex::ParticleReal y_mean = data_vector[2] / w_sum; - amrex::ParticleReal y_std = data_vector[3] / w_sum- x_mean * x_mean; - amrex::ParticleReal z_mean = data_vector[4] / w_sum; - amrex::ParticleReal z_std = data_vector[5] / w_sum- x_mean * x_mean; - - return {x_mean, x_std, y_mean, y_std, z_mean, z_std}; - } - -} // namespace particles -} // namespace ablastr - -#endif // ABLASTR_PARTICLE_MOMENTS_H diff --git a/Tools/Algorithms/psatd.ipynb b/Tools/Algorithms/psatd.ipynb deleted file mode 100644 index c2f326e41..000000000 --- a/Tools/Algorithms/psatd.ipynb +++ /dev/null @@ -1,721 +0,0 @@ -{ - "cells": [ - { - "cell_type": "code", - "execution_count": null, - "metadata": { - "scrolled": false - }, - "outputs": [], - "source": [ - "import sympy as sp\n", - "from sympy import *\n", - "\n", - "sp.init_session()\n", - "sp.init_printing()" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "### Selection of algorithm:\n", - "- `divE_cleaning` (bool: `True`, `False`): \"$\\text{div}(\\boldsymbol{E})$ cleaning\" using the additional scalar field $F$;\n", - "\n", - "- `divB_cleaning` (bool: `True`, `False`): \"$\\text{div}(\\boldsymbol{B})$ cleaning\" using the additional scalar field $G$;\n", - "\n", - "- `J_in_time` (str: `'constant'`, `'linear'`, `'quadratic'`): $\\boldsymbol{J}$ constant, linear, or quadratic in time;\n", - "\n", - "- `rho_in_time` (str: `'constant'`, `'linear'`, `'quadratic'`): $\\rho$ constant, linear, or quadratic in time.\n", - "\n", - "In the notebook, the constant, linear, and quadratic coefficients of $\\boldsymbol{J}$ and $\\rho$ are denoted with the suffixes `_c0`, `_c1`, `_c2`, respectively. However, the corresponding coefficients in the displayed equations are denoted with the prefixes $\\gamma$, $\\beta$, and $\\alpha$, respectively. For example, if $\\rho$ is quadratic in time, it will be denoted as `rho = rho_c0 + rho_c1*(t-tn) + rho_c2*(t-tn)**2` in the notebook and $\\rho(t) = \\gamma_{\\rho} + \\beta_{\\rho} (t-t_n) + \\alpha_{\\rho} (t-t_n)^2$ in the displayed equations." - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "divE_cleaning = True\n", - "divB_cleaning = True\n", - "J_in_time = 'constant'\n", - "rho_in_time = 'constant'" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "### Auxiliary functions:" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "def check_diag(W, D, P, invP):\n", - " \"\"\"\n", - " Check diagonalization of W as P*D*P**(-1).\n", - " \"\"\"\n", - " Wd = P * D * invP\n", - " for i in range(Wd.shape[0]):\n", - " for j in range(Wd.shape[1]):\n", - " Wd[i,j] = Wd[i,j].expand().simplify()\n", - " diff = W[i,j] - Wd[i,j]\n", - " diff = diff.expand().simplify()\n", - " assert (diff == 0), f'Diagonalization failed: W[{i},{j}] - Wd[{i},{j}] = {diff} is not zero'\n", - "\n", - "def simple_mat(W):\n", - " \"\"\"\n", - " Simplify matrix W.\n", - " \"\"\"\n", - " for i in range(W.shape[0]):\n", - " for j in range(W.shape[1]):\n", - " W[i,j] = W[i,j].expand().simplify()" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "### Definition of symbols:" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "# Define dimensionality parameter used throughout the notebook\n", - "dim = 6\n", - "if divE_cleaning:\n", - " dim += 1\n", - "if divB_cleaning:\n", - " dim += 1\n", - "\n", - "# Define symbols for physical constants\n", - "c = sp.symbols(r'c', real=True, positive=True)\n", - "mu0 = sp.symbols(r'\\mu_0', real=True, positive=True)\n", - "\n", - "# Define symbols for time variables\n", - "# (s is auxiliary variable used in integral over time)\n", - "s = sp.symbols(r's', real=True, positive=True)\n", - "t = sp.symbols(r't', real=True, positive=True)\n", - "tn = sp.symbols(r't_n', real=True, positive=True)\n", - "dt = sp.symbols(r'\\Delta{t}', real=True, positive=True)\n", - "\n", - "# The assumption that kx, ky and kz are positive is general enough\n", - "# and makes it easier for SymPy to perform some of the calculations\n", - "kx = sp.symbols(r'k_x', real=True, positive=True)\n", - "ky = sp.symbols(r'k_y', real=True, positive=True)\n", - "kz = sp.symbols(r'k_z', real=True, positive=True)\n", - "\n", - "# Define symbols for the Cartesian components of the electric field\n", - "Ex = sp.symbols(r'E^x')\n", - "Ey = sp.symbols(r'E^y')\n", - "Ez = sp.symbols(r'E^z')\n", - "E = Matrix([[Ex], [Ey], [Ez]])\n", - "\n", - "# Define symbols for the Cartesian components of the magnetic field\n", - "Bx = sp.symbols(r'B^x')\n", - "By = sp.symbols(r'B^y')\n", - "Bz = sp.symbols(r'B^z')\n", - "B = Matrix([[Bx], [By], [Bz]])\n", - "\n", - "# Define symbol for the scalar field F used with div(E) cleaning\n", - "if divE_cleaning:\n", - " F = sp.symbols(r'F')\n", - "\n", - "# Define symbol for the scalar field G used with div(B) cleaning\n", - "if divB_cleaning:\n", - " G = sp.symbols(r'G')" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "### First-order ODEs for $\\boldsymbol{E}$, $\\boldsymbol{B}$, $F$ and $G$:" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "# Define first-order time derivatives of the electric field\n", - "dEx_dt = I*c**2*(ky*Bz-kz*By) \n", - "dEy_dt = I*c**2*(kz*Bx-kx*Bz)\n", - "dEz_dt = I*c**2*(kx*By-ky*Bx)\n", - "\n", - "# Define first-order time derivatives of the magnetic field\n", - "dBx_dt = -I*(ky*Ez-kz*Ey)\n", - "dBy_dt = -I*(kz*Ex-kx*Ez)\n", - "dBz_dt = -I*(kx*Ey-ky*Ex)\n", - "\n", - "# Define first-order time derivative of the scalar field F used with div(E) cleaning,\n", - "# and related additional terms in the first-order time derivative of the electric field\n", - "if divE_cleaning:\n", - " dEx_dt += I*c**2*F*kx \n", - " dEy_dt += I*c**2*F*ky\n", - " dEz_dt += I*c**2*F*kz\n", - " dF_dt = I*(kx*Ex+ky*Ey+kz*Ez)\n", - "\n", - "# Define first-order time derivative of the scalar field G used with div(B) cleaning,\n", - "# and related additional terms in the first-order time derivative of the magnetic field\n", - "if divB_cleaning:\n", - " dBx_dt += I*c**2*G*kx\n", - " dBy_dt += I*c**2*G*ky\n", - " dBz_dt += I*c**2*G*kz\n", - " dG_dt = I*(kx*Bx+ky*By+kz*Bz)\n", - "\n", - "# Define array of first-order time derivatives of the electric and magnetic fields\n", - "dE_dt = Matrix([[dEx_dt], [dEy_dt], [dEz_dt]])\n", - "dB_dt = Matrix([[dBx_dt], [dBy_dt], [dBz_dt]])" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "### Linear system of ODEs for $\\boldsymbol{E}$, $\\boldsymbol{B}$, $F$ and $G$:\n", - "$$\n", - "\\frac{\\partial}{\\partial t}\n", - "\\begin{bmatrix}\n", - "\\boldsymbol{E} \\\\\n", - "\\boldsymbol{B} \\\\\n", - "F \\\\\n", - "G\n", - "\\end{bmatrix}\n", - "= M\n", - "\\begin{bmatrix}\n", - "\\boldsymbol{E} \\\\\n", - "\\boldsymbol{B} \\\\\n", - "F \\\\\n", - "G\n", - "\\end{bmatrix}\n", - "-\\mu_0 c^2 \n", - "\\begin{bmatrix}\n", - "\\boldsymbol{J} \\\\\n", - "\\boldsymbol{0} \\\\\n", - "\\rho \\\\\n", - " 0\n", - "\\end{bmatrix}\n", - "$$" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": { - "scrolled": true - }, - "outputs": [], - "source": [ - "# Define array of all fields\n", - "fields_list = [Ex, Ey, Ez, Bx, By, Bz]\n", - "if divE_cleaning:\n", - " fields_list.append(F)\n", - "if divB_cleaning:\n", - " fields_list.append(G)\n", - "EBFG = zeros(dim, 1)\n", - "for i in range(EBFG.shape[0]):\n", - " EBFG[i] = fields_list[i]\n", - "\n", - "# Define array of first-order time derivatives of all fields\n", - "fields_list = [dEx_dt, dEy_dt, dEz_dt, dBx_dt, dBy_dt, dBz_dt]\n", - "if divE_cleaning:\n", - " fields_list.append(dF_dt)\n", - "if divB_cleaning:\n", - " fields_list.append(dG_dt)\n", - "dEBFG_dt = zeros(dim, 1)\n", - "for i in range(dEBFG_dt.shape[0]):\n", - " dEBFG_dt[i] = fields_list[i]\n", - "dEBFG_dt = dEBFG_dt.expand()\n", - "\n", - "# Define matrix M representing the linear system of ODEs\n", - "M = zeros(dim)\n", - "for i in range(M.shape[0]):\n", - " for j in range(M.shape[1]):\n", - " M[i,j] = dEBFG_dt[i].coeff(EBFG[j], 1)\n", - "print(r'M = ')\n", - "display(M)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "### Solution of linear system of ODEs for $\\boldsymbol{E}$, $\\boldsymbol{B}$, $F$ and $G$:\n", - "\n", - "The solution of the linear system of ODEs above is given by the superposition of the **general solution of the homogeneous system** (denoted with the subscript \"h\"),\n", - "\n", - "$$\n", - "\\begin{bmatrix}\n", - "\\boldsymbol{E}_h(t) \\\\\n", - "\\boldsymbol{B}_h(t) \\\\\n", - "F_h(t) \\\\\n", - "G_h(t)\n", - "\\end{bmatrix}\n", - "= e^{M (t-t_n)}\n", - "\\begin{bmatrix}\n", - "\\boldsymbol{E}(t_n) \\\\\n", - "\\boldsymbol{B}(t_n) \\\\\n", - "F(t_n) \\\\\n", - "G(t_n)\n", - "\\end{bmatrix} \\,,\n", - "$$\n", - "\n", - "and the **particular solution of the non-homogeneous system** (denoted with the subscript \"nh\"),\n", - "\n", - "$$\n", - "\\begin{bmatrix}\n", - "\\boldsymbol{E}_{nh}(t) \\\\\n", - "\\boldsymbol{B}_{nh}(t) \\\\\n", - "F_{nh}(t) \\\\\n", - "G_{nh}(t)\n", - "\\end{bmatrix}\n", - "= -\\mu_0 c^2 e^{M t} \\left(\\int_{t_n}^t e^{-M s}\n", - "\\begin{bmatrix}\n", - "\\boldsymbol{J} \\\\\n", - "\\boldsymbol{0} \\\\\n", - "\\rho \\\\\n", - "0\n", - "\\end{bmatrix}\n", - "ds\\right) \\,.\n", - "$$" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "### Diagonalization of $M = P D P^{-1}$:" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "%%time\n", - "\n", - "# Compute matrices of eigenvectors and eigenvalues for diagonalization of M\n", - "P, D = M.diagonalize()\n", - "invP = P**(-1)\n", - "expD = exp(D)\n", - "check_diag(M, D, P, invP)\n", - "print('P = ')\n", - "display(P)\n", - "print('D = ')\n", - "display(D)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "### Diagonalization of $W_1 = M (t-t_n) = P_1 D_1 P_1^{-1}$:" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "%%time\n", - "\n", - "# Compute matrices of eigenvectors and eigenvalues for diagonalization of W1\n", - "P1 = P\n", - "D1 = D * (t-tn)\n", - "invP1 = invP\n", - "expD1 = exp(D1)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "### Diagonalization of $W_2 = M t = P_2 D_2 P_2^{-1}$:" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "%%time\n", - "\n", - "# Compute matrices of eigenvectors and eigenvalues for diagonalization of W2\n", - "P2 = P\n", - "D2 = D * t\n", - "invP2 = invP\n", - "expD2 = exp(D2)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "### Diagonalization of $W_3 = -M s = P_3 D_3 P_3^{-1}$:" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "%%time\n", - "\n", - "# Compute matrices of eigenvectors and eigenvalues for diagonalization of W3\n", - "P3 = P\n", - "D3 = (-1) * D * s\n", - "invP3 = invP\n", - "expD3 = exp(D3)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "### General solution (homogeneous system):\n", - "\n", - "$$\n", - "\\begin{bmatrix}\n", - "\\boldsymbol{E}_h(t) \\\\\n", - "\\boldsymbol{B}_h(t) \\\\\n", - "F_h(t) \\\\\n", - "G_h(t)\n", - "\\end{bmatrix}\n", - "= e^{M (t-t_n)}\n", - "\\begin{bmatrix}\n", - "\\boldsymbol{E}(t_n) \\\\\n", - "\\boldsymbol{B}(t_n) \\\\\n", - "F(t_n) \\\\\n", - "G(t_n)\n", - "\\end{bmatrix}\n", - "$$" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "%%time\n", - "\n", - "# Compute exp(W1) = exp(M*(t-tn))\n", - "expW1 = P1 * expD1 * invP1\n", - "\n", - "# Compute general solution at time t = tn+dt\n", - "EBFG_h = expW1 * EBFG \n", - "EBFG_h_new = EBFG_h.subs(t, tn+dt)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "### Definition of $\\boldsymbol{J}$ and $\\rho$:" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "# Define J\n", - "Jx_c0 = sp.symbols(r'\\gamma_{J_x}', real=True)\n", - "Jy_c0 = sp.symbols(r'\\gamma_{J_y}', real=True)\n", - "Jz_c0 = sp.symbols(r'\\gamma_{J_z}', real=True)\n", - "Jx = Jx_c0\n", - "Jy = Jy_c0\n", - "Jz = Jz_c0\n", - "if J_in_time == 'linear':\n", - " Jx_c1 = sp.symbols(r'\\beta_{J_x}', real=True)\n", - " Jy_c1 = sp.symbols(r'\\beta_{J_y}', real=True)\n", - " Jz_c1 = sp.symbols(r'\\beta_{J_z}', real=True)\n", - " Jx += Jx_c1*(s-tn)\n", - " Jy += Jy_c1*(s-tn)\n", - " Jz += Jz_c1*(s-tn)\n", - "if J_in_time == 'quadratic':\n", - " Jx_c1 = sp.symbols(r'\\beta_{J_x}', real=True)\n", - " Jy_c1 = sp.symbols(r'\\beta_{J_y}', real=True)\n", - " Jz_c1 = sp.symbols(r'\\beta_{J_z}', real=True)\n", - " Jx_c2 = sp.symbols(r'\\alpha_{J_x}', real=True)\n", - " Jy_c2 = sp.symbols(r'\\alpha_{J_y}', real=True)\n", - " Jz_c2 = sp.symbols(r'\\alpha_{J_z}', real=True)\n", - " Jx += Jx_c1*(s-tn) + Jx_c2*(s-tn)**2\n", - " Jy += Jy_c1*(s-tn) + Jy_c2*(s-tn)**2\n", - " Jz += Jz_c1*(s-tn) + Jz_c2*(s-tn)**2\n", - "\n", - "# Define rho\n", - "if divE_cleaning:\n", - " rho_c0 = sp.symbols(r'\\gamma_{\\rho}', real=True)\n", - " rho = rho_c0\n", - " if rho_in_time == 'linear':\n", - " rho_c1 = sp.symbols(r'\\beta_{\\rho}', real=True)\n", - " rho += rho_c1*(s-tn)\n", - " if rho_in_time == 'quadratic':\n", - " rho_c1 = sp.symbols(r'\\beta_{\\rho}', real=True)\n", - " rho_c2 = sp.symbols(r'\\alpha_{\\rho}', real=True)\n", - " rho += rho_c1*(s-tn) + rho_c2*(s-tn)**2" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "### Particular solution (non-homogeneous system):\n", - "\n", - "$$\n", - "\\begin{bmatrix}\n", - "\\boldsymbol{E}_{nh}(t) \\\\\n", - "\\boldsymbol{B}_{nh}(t) \\\\\n", - "F_{nh}(t) \\\\\n", - "G_{nh}(t)\n", - "\\end{bmatrix}\n", - "= -\\mu_0 c^2 e^{M t} \\left(\\int_{t_n}^t e^{-M s}\n", - "\\begin{bmatrix}\n", - "\\boldsymbol{J} \\\\\n", - "\\boldsymbol{0} \\\\\n", - "\\rho \\\\\n", - "0\n", - "\\end{bmatrix}\n", - "ds\\right)\n", - "$$" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": { - "scrolled": false - }, - "outputs": [], - "source": [ - "%%time \n", - "\n", - "# Define array of source terms\n", - "fields_list = [Jx, Jy, Jz, 0, 0, 0]\n", - "if divE_cleaning:\n", - " fields_list.append(rho)\n", - "if divB_cleaning:\n", - " fields_list.append(0)\n", - "S = zeros(dim, 1)\n", - "for i in range(S.shape[0]):\n", - " S[i] = -mu0*c**2 * fields_list[i]\n", - "\n", - "# Compute integral of exp(W3)*S over s (assuming |k| is not zero)\n", - "integral = zeros(dim, 1)\n", - "tmp = expD3 * invP3 * S\n", - "simple_mat(tmp)\n", - "for i in range(dim):\n", - " r = integrate(tmp[i], (s, tn, t))\n", - " integral[i] = r\n", - " \n", - "# Compute particular solution at time t = tn+dt\n", - "tmp = invP2 * P3\n", - "simple_mat(tmp)\n", - "EBFG_nh = P2 * expD2 * tmp * integral\n", - "EBFG_nh_new = EBFG_nh.subs(t, tn+dt)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "### Verification of the solution:" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "%%time\n", - "\n", - "for i in range(EBFG.shape[0]):\n", - " lhs = dEBFG_dt[i] + S[i]\n", - " lhs = lhs.subs(s, tn) # sources were written as functions of s\n", - " rhs = (EBFG_h[i] + EBFG_nh[i]).diff(t)\n", - " rhs = rhs.subs(t, tn) # results were written as functions of t\n", - " rhs = rhs.simplify()\n", - " diff = lhs - rhs\n", - " diff = diff.simplify()\n", - " assert (diff == 0), f'Integration of linear system of ODEs failed'" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "### Coefficients of PSATD equations (homogeneous system):" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": { - "scrolled": true - }, - "outputs": [], - "source": [ - "%%time\n", - "\n", - "L = ['Ex', 'Ey', 'Ez', 'Bx', 'By', 'Bz']\n", - "R = ['Ex', 'Ey', 'Ez', 'Bx', 'By', 'Bz']\n", - "if divE_cleaning:\n", - " L.append('F')\n", - " R.append('F')\n", - "if divB_cleaning:\n", - " L.append('G')\n", - " R.append('G')\n", - "\n", - "# Compute individual coefficients in the update equations\n", - "coeff_h = dict()\n", - "for i in range(dim):\n", - " for j in range(dim):\n", - " key = (L[i], R[j])\n", - " coeff_h[key] = EBFG_h_new[i].coeff(EBFG[j], 1).expand().simplify().rewrite(cos).trigsimp().simplify()\n", - " print(f'Coefficient of {L[i]} with respect to {R[j]}:')\n", - " display(coeff_h[key])" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "### Coefficients of PSATD equations (non-homogeneous system):" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": { - "scrolled": true - }, - "outputs": [], - "source": [ - "%%time\n", - "\n", - "L = ['Ex', 'Ey', 'Ez', 'Bx', 'By', 'Bz']\n", - "R = ['Jx_c0', 'Jy_c0', 'Jz_c0']\n", - "if J_in_time == 'linear':\n", - " R.append('Jx_c1')\n", - " R.append('Jy_c1')\n", - " R.append('Jz_c1')\n", - "if J_in_time == 'quadratic':\n", - " R.append('Jx_c1')\n", - " R.append('Jy_c1')\n", - " R.append('Jz_c1')\n", - " R.append('Jx_c2')\n", - " R.append('Jy_c2')\n", - " R.append('Jz_c2')\n", - "if divE_cleaning:\n", - " L.append('F')\n", - " R.append('rho_c0')\n", - " if rho_in_time == 'linear':\n", - " R.append('rho_c1')\n", - " if rho_in_time == 'quadratic':\n", - " R.append('rho_c1')\n", - " R.append('rho_c2')\n", - "if divB_cleaning:\n", - " L.append('G')\n", - "\n", - "cs = [Jx_c0, Jy_c0, Jz_c0]\n", - "if J_in_time == 'linear':\n", - " cs.append(Jx_c1)\n", - " cs.append(Jy_c1)\n", - " cs.append(Jz_c1)\n", - "if J_in_time == 'quadratic':\n", - " cs.append(Jx_c1)\n", - " cs.append(Jy_c1)\n", - " cs.append(Jz_c1)\n", - " cs.append(Jx_c2)\n", - " cs.append(Jy_c2)\n", - " cs.append(Jz_c2)\n", - "if divE_cleaning:\n", - " cs.append(rho_c0)\n", - " if rho_in_time == 'linear':\n", - " cs.append(rho_c1)\n", - " if rho_in_time == 'quadratic':\n", - " cs.append(rho_c1)\n", - " cs.append(rho_c2)\n", - " \n", - "# Compute individual coefficients in the update equation\n", - "coeff_nh = dict()\n", - "for i in range(len(L)):\n", - " for j in range(len(R)):\n", - " key = (L[i], R[j])\n", - " coeff_nh[key] = EBFG_nh_new[i].expand().coeff(cs[j], 1).expand().simplify().rewrite(cos).trigsimp().simplify()\n", - " print(f'Coefficient of {L[i]} with respect to {R[j]}:')\n", - " display(coeff_nh[key])" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "### Coefficients of PSATD equations:\n", - "\n", - "Display the coefficients of the update equations one by one. For example, `coeff_h[('Ex', 'By')]` displays the coefficient of $E^x$ with respect to $B^y$ (resulting from the solution of the homogeneous system, hence the `_h` suffix), while `coeff_nh[('Ex', 'Jx_c0')]` displays the coefficient of $E^x$ with respect to $\\gamma_{J_x}$ (resulting from the solution of the non-homogeneous system, hence the `_nh` suffix). Note that $\\gamma_{J_x}$ is denoted as `Jx_c0` in the notebook, as described in the beginning." - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": { - "scrolled": false - }, - "outputs": [], - "source": [ - "coeff_h[('Ex', 'By')]" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": { - "scrolled": false - }, - "outputs": [], - "source": [ - "coeff_nh[('Ex', 'Jx_c0')]" - ] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 3", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.8.10" - } - }, - "nbformat": 4, - "nbformat_minor": 4 -} diff --git a/Tools/Algorithms/stencil.py b/Tools/Algorithms/stencil.py deleted file mode 100644 index 6ae66e839..000000000 --- a/Tools/Algorithms/stencil.py +++ /dev/null @@ -1,457 +0,0 @@ -""" -Python script to compute the minimum number of guard cells for a given -error threshold, based on the measurement of the PSATD stencil extent -(that is, the minimum number of guard cells such that the stencil -measure is not larger than the error threshold). -Reference: https://doi.org/10.1016/j.cpc.2022.108457 - -Run the script simply with "python stencil.py" (or with "run stencil.py" -using IPython). The user can modify the input parameters set in the main -function at the end of the file. -""" - -import os - -import matplotlib.pyplot as plt -import numpy as np -from scipy.constants import c - -plt.style.use('tableau-colorblind10') -plt.rcParams.update({'font.size': 14}) - -sp = np.finfo(np.float32).eps -dp = np.finfo(np.float64).eps - -def get_Fornberg_coeffs(order, staggered): - """ - Compute the centered or staggered Fornberg coefficients at finite order. - - Parameters - ---------- - order : int - Finite order of the approximation. - staggered : bool - Whether to compute the centered or staggered Fornberg coefficients. - - Returns - ------- - coeffs : numpy.ndarray - Array of centered or staggered Fornberg coefficients. - """ - m = order//2 - coeffs = np.zeros(m+1) - - # Compute Fornberg coefficients by recurrence - if staggered: - prod = 1. - for k in range(1, m+1): - prod = prod*(m+k)/(4*k) - coeffs[0] = 4*m*prod**2 - for n in range(1, m+1): - coeffs[n] = -(((2*n-3)*(m+1-n))/((2*n-1)*(m-1+n))*coeffs[n-1]) - else: - coeffs[0] = -2. - for n in range(1, m+1): - coeffs[n] = -(m+1-n)/(m+n)*coeffs[n-1] - - return coeffs - -def modified_k(kx, dx, order, staggered): - """ - Compute the centered or staggered modified wave vector at finite order. - - Parameters - ---------- - kx : numpy.ndarray - Standard wave vector. - dx : float - Cell size in real space. - order : int - Finite order of the approximation. - staggered : bool - Whether to compute the centered or staggered modified wave vector. - - Returns - ------- - k_mod : numpy.ndarray - Centered or staggered modified wave vector. - """ - m = order//2 - coeffs = get_Fornberg_coeffs(order, staggered) - - # Array of values for n: from 1 to m - n = np.arange(1, m+1) - - # Array of values of sin - # (first axis corresponds to k and second axis to n) - if staggered: - sin_kn = (np.sin(kx[:,np.newaxis]*(n[np.newaxis,:]-0.5)*dx)/((n[np.newaxis,:]-0.5)*dx)) - else: - sin_kn = (np.sin(kx[:,np.newaxis]*n[np.newaxis,:]*dx)/(n[np.newaxis,:]*dx)) - - # Modified k - k_mod = np.tensordot(sin_kn, coeffs[1:], axes=(-1,-1)) - - return k_mod - -def func_cosine(om, w_c, dt): - """ - Compute the leading spectral coefficient of the general PSATD equations: - theta_c**2*cos(om*dt), where theta_c = exp(i*w_c*dt/2), w_c = v_gal*[kz]_c, - om_s = c*|[k]| (and [k] or [kz] denote the centered or staggered modified - wave vector or vector component). - - Parameters - ---------- - om : numpy.ndarray - Array of centered or staggered modified frequencies. - w_c : numpy.ndarray - Array of values of v_gal*[kz]_c. - dt : float - Time step. - - Returns - ------- - coeff : numpy.ndarray - Leading spectral coefficient of the general PSATD equations. - """ - theta_c = np.exp(1.j*w_c*dt*0.5) - coeff = theta_c**2*np.cos(om*dt) - return coeff - -def compute_stencils(coeff_nodal, coeff_stagg, axis): - """ - Compute nodal and staggered stencils along a given direction. - - Parameters - ---------- - coeff_nodal : numpy.ndarray - Leading spectral nodal coefficient of the general PSATD equations. - coeff_stagg : numpy.ndarray - Leading spectral staggered coefficient of the general PSATD equations. - axis : int - Axis or direction (must be 0, 1, or 2). - - Returns - ------- - (stencil_avg_nodal, stencil_avg_stagg) : tuple - Nodal and staggered stencils along a given direction. - """ - # Inverse FFTs of the spectral coefficient along the chosen axis - stencil_nodal = np.fft.ifft(coeff_nodal, axis=axis) - stencil_stagg = np.fft.ifft(coeff_stagg, axis=axis) - - # Average results over remaining axes in spectral space - if axis == 0: - # Averaged over ky and kz - stencil_avg_nodal = np.sum(np.sum(stencil_nodal, axis=2), axis=1) - stencil_avg_nodal /= (stencil_nodal.shape[2]*stencil_nodal.shape[1]) - stencil_avg_stagg = np.sum(np.sum(stencil_stagg, axis=2), axis=1) - stencil_avg_stagg /= (stencil_stagg.shape[2]*stencil_stagg.shape[1]) - elif axis == 1: - # Averaged over kx and kz - stencil_avg_nodal = np.sum(np.sum(stencil_nodal, axis=2), axis=0) - stencil_avg_nodal /= (stencil_nodal.shape[2]*stencil_nodal.shape[0]) - stencil_avg_stagg = np.sum(np.sum(stencil_stagg, axis=2), axis=0) - stencil_avg_stagg /= (stencil_stagg.shape[2]*stencil_stagg.shape[0]) - elif axis == 2: - # Averaged over kx and ky - stencil_avg_nodal = np.sum(np.sum(stencil_nodal, axis=1), axis=0) - stencil_avg_nodal /= (stencil_nodal.shape[1]*stencil_nodal.shape[0]) - stencil_avg_stagg = np.sum(np.sum(stencil_stagg, axis=1), axis=0) - stencil_avg_stagg /= (stencil_stagg.shape[1]*stencil_stagg.shape[0]) - - stencils = dict() - stencils['nodal'] = abs(stencil_avg_nodal) - stencils['stagg'] = abs(stencil_avg_stagg) - - return stencils - -def compute_all(dx, dy, dz, dt, nox, noy, noz, v_gal, nx=256, ny=256, nz=256): - """ - Compute nodal and staggered stencils along all directions. - - Parameters - ---------- - dx : float - Cell size along x. - dy : float - Cell size along y. - dz : float - Cell size along z. - dt : float - Time step. - nox : int - Spectral order along x. - noy : int - Spectral order along y. - noz : int - Spectral order along z. - v_gal : float - Galilean velocity. - nx : int, optional (default = 256) - Number of mesh points along x. - ny : int, optional (default = 256) - Number of mesh points along y. - nz : int, optional (default = 256) - Number of mesh points along z. - - Returns - ------- - (stencil_nodal, stencil_stagg) : tuple - Nodal and staggered stencils along all directions. - """ - # k vectors - kx_arr = 2*np.pi*np.fft.fftfreq(nx, dx) - ky_arr = 2*np.pi*np.fft.fftfreq(ny, dy) - kz_arr = 2*np.pi*np.fft.fftfreq(nz, dz) - - # Centered modified k vectors - kx_arr_c = modified_k(kx_arr, dx, nox, False) if nox != 'inf' else kx_arr - ky_arr_c = modified_k(ky_arr, dy, noy, False) if noy != 'inf' else ky_arr - kz_arr_c = modified_k(kz_arr, dz, noz, False) if noz != 'inf' else kz_arr - - # Staggered modified k vectors - kx_arr_s = modified_k(kx_arr, dx, nox, True) if nox != 'inf' else kx_arr - ky_arr_s = modified_k(ky_arr, dy, noy, True) if noy != 'inf' else ky_arr - kz_arr_s = modified_k(kz_arr, dz, noz, True) if noz != 'inf' else kz_arr - - # Mesh in k space - kx_c, ky_c, kz_c = np.meshgrid(kx_arr_c, ky_arr_c, kz_arr_c) - kx_s, ky_s, kz_s = np.meshgrid(kx_arr_s, ky_arr_s, kz_arr_s) - - # Frequencies - kk_c = np.sqrt(kx_c**2+ky_c**2+kz_c**2) - kk_s = np.sqrt(kx_s**2+ky_s**2+kz_s**2) - om_c = c*kk_c - om_s = c*kk_s - w_c = v_gal*kz_c - - # Spectral coefficient - coeff_nodal = func_cosine(om_c, w_c, dt) - coeff_stagg = func_cosine(om_s, w_c, dt) - - # Stencils - stencils = dict() - stencils['x'] = compute_stencils(coeff_nodal, coeff_stagg, axis=0) - stencils['y'] = compute_stencils(coeff_nodal, coeff_stagg, axis=1) - stencils['z'] = compute_stencils(coeff_nodal, coeff_stagg, axis=2) - - return stencils - -def compute_guard_cells(errmin, errmax, stencil): - """ - Compute the minimum number of guard cells for a given error threshold - (number of guard cells such that the stencil measure is not larger - than the error threshold). - - Parameters - ---------- - error : float - Error threshold. - stencil : numpy.ndarray - Stencil array. - - Returns - ------- - guard_cells : numpy.int64 - Number of cells. - """ - diff = stencil - errmin - v = next(d for d in diff if d < 0) - gcmin = np.argwhere(diff == v)[0,0] - diff = stencil - errmax - try: - v = next(d for d in diff if d < 0) - gcmax = np.argwhere(diff == v)[0,0] - 1 - except StopIteration: - gcmin, gcmax = compute_guard_cells(errmin, errmax*10, stencil) - return (gcmin, gcmax) - -def plot_stencil(cells, stencil_nodal, stencil_stagg, label, path, name): - """ - Plot stencil extent for nodal and staggered/hybrid solver, - as a function of the number of cells. - - Parameters - ---------- - cells : numpy.ndarray - Array of cell numbers. - stencil_nodal : numpy.ndarray - Stencil array for the nodal solver. - stencil_stagg : numpy.ndarray - Stencil array for the staggered or hybrid solver. - label : str - Label for plot annotations. - name : str - Label for figure name. - """ - fig = plt.figure(figsize=[10,6]) - ax = fig.add_subplot(111) - ax.plot(cells, stencil_nodal, linestyle='-', label='nodal') - ax.plot(cells, stencil_stagg, linestyle='-', label='staggered or hybrid') - # Plot single and double precision machine epsilons - ax.axhline(y=sp, c='grey', ls='dashed', label='machine epsilon (single precision)') - ax.axhline(y=dp, c='grey', ls='dotted', label='machine epsilon (double precision)') - # Shade regions between single and double precision machine epsilons - xmin, xmax = compute_guard_cells(sp, dp, stencil_nodal) - ax.fill_between(cells[xmin:xmax+1], stencil_nodal[xmin:xmax+1], alpha=0.5) - xmin, xmax = compute_guard_cells(sp, dp, stencil_stagg) - ax.fill_between(cells[xmin:xmax+1], stencil_stagg[xmin:xmax+1], alpha=0.5) - # - ax.set_yscale('log') - ax.set_xticks(cells, minor=True) - ax.grid(which='minor', linewidth=0.2) - ax.grid(which='major', linewidth=0.4) - ax.legend() - ax.set_xlabel('number of cells') - ax.set_ylabel('signal to be truncated') - ax.set_title(r'Stencil extent along ${:s}$'.format(label)) - fig.tight_layout() - fig_name = os.path.join(path, 'figure_stencil_' + label) - if name: - fig_name += '_' + name - fig.savefig(fig_name + '.png', dpi=150) - -def run_main(dx, dy, dz, dt, nox, noy, noz, gamma=1., galilean=False, path='.', name=''): - """ - Main function. - - Parameters - ---------- - dx : float - Cell size along x. - dy : float - Cell size along y. - dz : float - Cell size along z. - dt : float - Time step. - nox : int - Spectral order along x. - noy : int - Spectral order along y. - noz : int - Spectral order along z. - gamma : float, optional (default = 1.) - Lorentz factor. - galilean : bool, optional (default = False) - Galilean scheme. - path : str, optional (default = '.') - Path where figures are saved. - name : str, optional (default = '') - Common label for figure names. - """ - # Galilean velocity (default = 0.) - v_gal = 0. - if galilean: - v_gal = -np.sqrt(1.-1./gamma**2)*c - - # Display some output - print('\nCell size:') - print('- dx = {:g}'.format(dx)) - print('- dy = {:g}'.format(dy)) - print('- dz = {:g}'.format(dz)) - print('- dz/dx = {:g}'.format(dz/dx)) - print('- dz/dy = {:g}'.format(dz/dy)) - print('\nTime step:') - print('- dt = {:g}'.format(dt)) - print('- c*dt/dx = {:g}'.format(c*dt/dx)) - print('- c*dt/dy = {:g}'.format(c*dt/dy)) - print('- c*dt/dz = {:g}'.format(c*dt/dz)) - print('\nSpectral order:') - print('- nox = {:d}'.format(nox)) - print('- noy = {:d}'.format(noy)) - print('- noz = {:d}'.format(noz)) - print('\nLorentz boost, Galilean velocity:') - print('- gamma = {:g}'.format(gamma)) - print('- v_gal = {:g}'.format(v_gal)) - - stencils = compute_all(dx, dy, dz, dt, nox, noy, noz, v_gal) - - # Maximum number of cells - ncx = 65 - ncy = 65 - ncz = 65 - - # Array of cell numbers - cx = np.arange(ncx) - cy = np.arange(ncy) - cz = np.arange(ncz) - - # Arrays of stencils - stencils['x']['nodal'] = stencils['x']['nodal'][:ncx] - stencils['x']['stagg'] = stencils['x']['stagg'][:ncx] - stencils['y']['nodal'] = stencils['y']['nodal'][:ncy] - stencils['y']['stagg'] = stencils['y']['stagg'][:ncy] - stencils['z']['nodal'] = stencils['z']['nodal'][:ncz] - stencils['z']['stagg'] = stencils['z']['stagg'][:ncz] - - # Compute minimum number of guard cells for given error threshold - # (number of guard cells such that the stencil measure - # is not larger than the error threshold) - - # Plot stencils - plot_stencil(cx, stencils['x']['nodal'], stencils['x']['stagg'], 'x', path, name) - plot_stencil(cy, stencils['y']['nodal'], stencils['y']['stagg'], 'y', path, name) - plot_stencil(cz, stencils['z']['nodal'], stencils['z']['stagg'], 'z', path, name) - - # Compute min and max numbers of guard cells - gcmin_x_nodal, gcmax_x_nodal = compute_guard_cells(sp, dp, stencils['x']['nodal']) - gcmin_y_nodal, gcmax_y_nodal = compute_guard_cells(sp, dp, stencils['y']['nodal']) - gcmin_z_nodal, gcmax_z_nodal = compute_guard_cells(sp, dp, stencils['z']['nodal']) - # - gcmin_x_stagg, gcmax_x_stagg = compute_guard_cells(sp, dp, stencils['x']['stagg']) - gcmin_y_stagg, gcmax_y_stagg = compute_guard_cells(sp, dp, stencils['y']['stagg']) - gcmin_z_stagg, gcmax_z_stagg = compute_guard_cells(sp, dp, stencils['z']['stagg']) - - fig_path = os.path.abspath(path) - print(f'\nFigures saved in {fig_path}/.') - print('\nThe plots show the extent of the signal to be truncated (y-axis)' - + '\nby choosing a given number of cells (x-axis) for the ghost regions' - + '\nof each simulation grid, along x, y, and z.') - print('\nIt is recommended to choose a number of ghost cells that corresponds to' - + '\na truncation of the signal between single and double machine precision.' - + '\nThe more ghost cells, the more accurate, yet expensive, results.' - + '\nFor each stencil the region of accuracy between single and double precision' - + '\nis shaded to help you identify a suitable number of ghost cells.') - print('\nFor a nodal simulation, choose:') - print(f'- between {gcmin_x_nodal} and {gcmax_x_nodal} ghost cells along x') - print(f'- between {gcmin_y_nodal} and {gcmax_y_nodal} ghost cells along y') - print(f'- between {gcmin_z_nodal} and {gcmax_z_nodal} ghost cells along z') - print('\nFor a staggered or hybrid simulation, choose:') - print(f'- between {gcmin_x_stagg} and {gcmax_x_stagg} ghost cells along x') - print(f'- between {gcmin_y_stagg} and {gcmax_y_stagg} ghost cells along y') - print(f'- between {gcmin_z_stagg} and {gcmax_z_stagg} ghost cells along z') - print() - - return - -if __name__ == '__main__': - - # -- - # User can modify these input parameters - # -- - # Cell size - dx = 1e-06 - dy = 1e-06 - dz = 2e-06 - # Time step - dt = 1e-14 - # Spectral order - nox = 8 - noy = 8 - noz = 16 - # Lorentz boost - gamma = 30. - # Galilean flag - galilean = True - # Output path - path = '.' - # Output name tag (can be empty: '') - name = 'test' - # -- - - # Run main function (some arguments are optional, - # see definition of run_main function for help) - run_main(dx, dy, dz, dt, nox, noy, noz, gamma, galilean, path, name) diff --git a/Tools/Ascent/ascent_replay_warpx.ipynb b/Tools/Ascent/ascent_replay_warpx.ipynb deleted file mode 100644 index 636e9721c..000000000 --- a/Tools/Ascent/ascent_replay_warpx.ipynb +++ /dev/null @@ -1,310 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Replay Data\n", - "This notebook allows quick playing with Ascent actions on created \"conduit blueprint data\". See Ascent's [Extracts](https://ascent.readthedocs.io/en/latest/Actions/Extracts.html) docs for deeper details on Extracts." - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "import conduit\n", - "import conduit.blueprint\n", - "import conduit.relay\n", - "import ascent\n", - "\n", - "from IPython.display import Image\n", - "\n", - "import glob" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "#print(conduit.about())" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "# show existing conduit blueprint files\n", - "sim = \"./\"\n", - "glob.glob(sim + \"*root\")" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": { - "scrolled": true - }, - "outputs": [], - "source": [ - "# VisIt 2.13 or newer, when built with Conduit support, can visualize meshes from these files.\n", - "# Look at the Blueprint HDF5 extract with VisIt\n", - "#!visit -o conduit_blueprint.cycle_000400.root" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Prepare Data\n", - "Initialize Ascent and Load a Blueprint File" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "# this step can take a while if the simulation used high resolution\n", - "data = conduit.Node()\n", - "conduit.relay.io.blueprint.read_mesh(data, sim + \"conduit_blueprint.cycle_000400.root\")" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "# we publish this data now once to visualize it in multiple ways below\n", - "a = ascent.Ascent()\n", - "opts = conduit.Node()\n", - "opts[\"actions_file\"] = \"\" # work-around: ascent_actions.yaml file must not overwrite our replay action\n", - "#opts[\"exceptions\"] = \"forward\"\n", - "a.open(opts)\n", - "a.publish(data)" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "def rerender():\n", - " \"\"\"This is reads an updated Ascent Action and rerenders the image\"\"\"\n", - " actions = conduit.Node()\n", - " actions.load(\"replay_actions.yaml\")\n", - " a.execute(actions)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## Relay Example\n", - "The next two cells are as follows:\n", - "1. modify the Ascent action (examples: https://ascent.readthedocs.io/en/latest/Actions/Examples.html)\n", - "2. rerender\n", - "\n", - "By only modifying and executing only those two cells one can quickly iterate over new visualizations." - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "%%writefile replay_actions.yaml\n", - "\n", - "# this block are data pipelines\n", - "# each entry in pipelines: executes a series of functions from top to bottom,\n", - "# results of prior functions can be used in later calls of the same pipeline\n", - "-\n", - " action: \"add_pipelines\"\n", - " pipelines:\n", - " slice_field:\n", - " f1:\n", - " type: \"slice\"\n", - " params:\n", - " topology: topo\n", - " point: {x: 0.0, y: 0.0, z: 0.0}\n", - " normal: {x: 1.0, y: 1.0, z: 0.0}\n", - " \n", - " sampled_particles:\n", - " f1:\n", - " type: histsampling\n", - " params:\n", - " field: particle_electrons_uz\n", - " bins: 64\n", - " sample_rate: 0.90\n", - " f2:\n", - " type: \"clip\"\n", - " params:\n", - " topology: particle_electrons # particle data\n", - " multi_plane:\n", - " point1: {x: 0.0, y: 0.0, z: 0.0}\n", - " normal1: {x: 1.0, y: 0.0, z: 0.0}\n", - " point2: {x: 0.0, y: 0.0, z: 0.0}\n", - " normal2: {x: 0.7, y: -0.7, z: 0.0}\n", - "\n", - " clipped_volume:\n", - " f0:\n", - " type: \"contour\"\n", - " params:\n", - " field: \"Ez\"\n", - " levels: 10\n", - " f1:\n", - " type: \"clip\"\n", - " params:\n", - " topology: topo # name of the amr mesh\n", - " multi_plane:\n", - " point1: {x: 0.0, y: 0.0, z: 0.0}\n", - " normal1: {x: 1.0, y: 0.0, z: 0.0}\n", - " point2: {x: 0.0, y: 0.0, z: 0.0}\n", - " normal2: {x: 0.3, y: -0.3, z: 0.0}\n", - "\n", - " mag_clipped_volume_E:\n", - " f0: \n", - " type: \"composite_vector\"\n", - " params: \n", - " field1: \"Ex\"\n", - " field2: \"Ey\"\n", - " field3: \"Ez\"\n", - " output_name: \"E_vec\"\n", - " f1: \n", - " type: \"vector_magnitude\"\n", - " params: \n", - " field: \"E_vec\"\n", - " output_name: \"E_mag\"\n", - " f2:\n", - " type: \"contour\"\n", - " params:\n", - " field: \"E_mag\"\n", - " levels: 4\n", - " f3:\n", - " type: \"clip\"\n", - " params:\n", - " topology: topo # name of the amr mesh\n", - " multi_plane:\n", - " point1: {x: 0.0, y: 0.0, z: 0.0}\n", - " normal1: {x: 1.0, y: 0.0, z: 0.0}\n", - " point2: {x: 0.0, y: 0.0, z: 0.0}\n", - " normal2: {x: 0.7, y: -0.7, z: 0.0}\n", - "\n", - "# A scene is describes the things to be rendered and how\n", - "# here one selects either data directly or data that goes into a data pipeline;\n", - "# then, the result gets represented with a visualization \"type\" and according\n", - "# parameters such as colorbars and color ranges (aka transfer functions)\n", - "# reference: https://ascent.readthedocs.io/en/latest/Actions/Scenes.html\n", - "# color tables: https://ascent.readthedocs.io/en/latest/Actions/VTKmColorTables.html\n", - "-\n", - " action: \"add_scenes\"\n", - " scenes:\n", - " scene1:\n", - " plots:\n", - "# p0:\n", - "# type: \"pseudocolor\"\n", - "# field: \"particle_electrons_uz\"\n", - "# pipeline: \"sampled_particles\"\n", - " p1:\n", - " type: \"pseudocolor\"\n", - " field: \"Ez\"\n", - " pipeline: \"clipped_volume\"\n", - "# color_table: \n", - "# name: \"plasma\"\n", - "# reverse: true\n", - "# control_points: \n", - "# - \n", - "# type: \"alpha\"\n", - "# position: 0.0\n", - "# alpha: 0.5\n", - "# - \n", - "# type: \"alpha\"\n", - "# position: 1.0\n", - "# alpha: 0.5\n", - "# p2:\n", - "# type: \"pseudocolor\"\n", - "# field: \"E_mag\"\n", - "# pipeline: \"mag_clipped_volume_E\"\n", - "# color_table: \n", - "# name: \"Black-Body Radiation\"\n", - "# reverse: true\n", - " #p3:\n", - " # type: \"pseudocolor\"\n", - " # field: \"Ez\"\n", - " # pipeline: \"slice_field\"\n", - " # min_value: -3.0e11\n", - " # max_value: 3.0e11\n", - " renders:\n", - " image1:\n", - " image_width: 512\n", - " image_height: 512\n", - " bg_color: [1.0, 1.0, 1.0]\n", - " fg_color: [0.0, 0.0, 0.0]\n", - " image_prefix: \"./replay_%06d\"\n", - " camera:\n", - " azimuth: -70\n", - " elevation: 30\n", - " zoom: 1.5" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "rerender()\n", - "ascent.jupyter.AscentViewer(a).show()" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "#!ls *png" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "# Image(filename=\"lwfa_Ex_e-uz_000400.png\")\n", - "# print(conduit.about())" - ] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 3", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.6.3" - } - }, - "nbformat": 4, - "nbformat_minor": 4 -} diff --git a/Tools/DevUtils/compare_wx_w_3d.ipynb b/Tools/DevUtils/compare_wx_w_3d.ipynb deleted file mode 100644 index d4b0520dd..000000000 --- a/Tools/DevUtils/compare_wx_w_3d.ipynb +++ /dev/null @@ -1,232 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Overview\n", - "\n", - "This a notebook that inspects the results of a WarpX simulation and a Warp simulation at the same time. Typically used to compare the results of both codes for the same set of parameters.\n", - "\n", - "# Instructions\n", - "\n", - "- Enter the paths for the WarpX and the Warp simulations\n", - "- Execute the cells below one by one, by selecting them with your mouse and typing `Shift + Enter`" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": { - "collapsed": false - }, - "outputs": [], - "source": [ - "# Import statements\n", - "import sys\n", - "from tqdm import tqdm\n", - "import yt, glob\n", - "yt.funcs.mylog.setLevel(50)\n", - "from IPython.display import clear_output\n", - "import numpy as np\n", - "from ipywidgets import interact, RadioButtons, IntSlider\n", - "from openpmd_viewer import OpenPMDTimeSeries\n", - "from yt.units import volt\n", - "import matplotlib.pyplot as plt\n", - "%matplotlib" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": { - "collapsed": false - }, - "outputs": [], - "source": [ - "# Define path way for WarpX results and find iterations\n", - "path_warpx = '/Users/mthevenet/warpX_directory/res_warpx/valid_pwfa/'\n", - "file_list_warpx = glob.glob(path_warpx + 'plt?????')\n", - "iterations_warpx = [ int(file_name[len(file_name)-5:]) for file_name in file_list_warpx ]" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": { - "collapsed": false - }, - "outputs": [], - "source": [ - "# Define path way for Warp results and find iterations\n", - "path_warp = '/Users/mthevenet/warp_results/valid_pwfa/'\n", - "file_list_warp = glob.glob(path_warp + 'diags/hdf5/data????????.h5')\n", - "iterations_warp = [ int(file_name[len(file_name)-11:len(file_name)-3]) for file_name in file_list_warp ]" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Functions to plot the fields\n", - "\n", - "Note that the data are loaded with yt and plotted using matplotlib" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": { - "collapsed": false - }, - "outputs": [], - "source": [ - "def plot_field( iteration, field, slicing_direction='y'):\n", - " \n", - " # First dataset\n", - " ds = yt.load( path_warpx + '/plt%05d/' %iteration )\n", - " all_data_level_0 = ds.covering_grid(level=0, \n", - " left_edge=ds.domain_left_edge, dims=ds.domain_dimensions)\n", - " \n", - " # Second dataset\n", - "# ts = OpenPMDTimeSeries(path_warp + 'diags/hdf5/') \n", - " ds2 = yt.load( path_warp + 'diags/hdf5/data%08d.h5' %iteration )\n", - " all_data_level_02 = ds2.covering_grid(level=0, \n", - " left_edge=ds2.domain_left_edge, dims=ds2.domain_dimensions)\n", - "\n", - " # first dataset loaded via yt\n", - " left_edge = ds.domain_left_edge.convert_to_mks()*1e6\n", - " right_edge = ds.domain_right_edge.convert_to_mks()*1e6\n", - " if slicing_direction == 'x':\n", - " n = int( ds.domain_dimensions[0]//2 )\n", - " data2d = all_data_level_0[field][n, :, :]\n", - " extent = [ left_edge[2], right_edge[2], left_edge[1], right_edge[1] ]\n", - " elif slicing_direction == 'y':\n", - " n = int( ds.domain_dimensions[1]//2 )\n", - " data2d = all_data_level_0[field][:, n, :]\n", - " extent = [ left_edge[2], right_edge[2], left_edge[0], right_edge[0] ]\n", - " elif slicing_direction == 'z':\n", - " n = int( ds.domain_dimensions[2]//2 )\n", - " data2d = all_data_level_0[field][:, :, n]\n", - " extent = [ left_edge[1], right_edge[1], left_edge[0], right_edge[0] ]\n", - "\n", - " # second dataset loaded via yt\n", - " left_edge = ds2.domain_left_edge.convert_to_mks()*1e6\n", - " right_edge = ds2.domain_right_edge.convert_to_mks()*1e6\n", - " field_reformat = field[0].upper() + '_' + field[1]\n", - " if slicing_direction == 'x':\n", - " n = int( ds2.domain_dimensions[0]//2 )\n", - " data2d2 = all_data_level_02[field_reformat][n, :, :]\n", - " extent2 = [ left_edge[2], right_edge[2], left_edge[1], right_edge[1] ]\n", - " elif slicing_direction == 'y':\n", - " n = int( ds2.domain_dimensions[1]//2 )\n", - " data2d2 = all_data_level_02[field_reformat][:, n, :]\n", - " extent2 = [ left_edge[2], right_edge[2], left_edge[0], right_edge[0] ]\n", - " elif slicing_direction == 'z':\n", - " n = int( ds2.domain_dimensions[2]//2 )\n", - " data2d2 = all_data_level_02[field_reformat][:, :, n]\n", - " extent2 = [ left_edge[1], right_edge[1], left_edge[0], right_edge[0] ]\n", - "\n", - " if slicing_direction == 'x':\n", - " yaxis_label = 'y'\n", - " if slicing_direction == 'y':\n", - " yaxis_label = 'x'\n", - " if slicing_direction == 'z':\n", - " yaxis_label = 'y'\n", - "\n", - "# xlim = [5,25]\n", - "# ylim = [-20,20]\n", - "\n", - " plt.clf()\n", - " # first dataset\n", - " plt.subplot(2,1,1)\n", - " plt.title(\"WarpX %s at iteration %d\" %(field, iteration) )\n", - " plt.imshow( data2d, interpolation='nearest', cmap='viridis',\n", - " origin='lower', extent=extent, aspect='auto')\n", - " plt.ylabel(yaxis_label + ' (um)')\n", - " vmin, vmax = plt.gci().get_clim()\n", - " plt.colorbar()\n", - " if 'xlim' in locals():\n", - " plt.xlim(xlim)\n", - " if 'ylim' in locals():\n", - " plt.ylim(ylim)\n", - " plt.xticks([])\n", - " \n", - " # second dataset\n", - " plt.subplot(2,1,2)\n", - " plt.title(\"Warp %s at iteration %d\" %(field, iteration) )\n", - " plt.imshow( data2d2, interpolation='nearest', cmap='viridis',\n", - " origin='lower', extent=extent2, aspect='auto',vmin=vmin,vmax=vmax)\n", - " plt.colorbar()\n", - " if 'xlim' in locals():\n", - " plt.xlim(xlim)\n", - " if 'ylim' in locals():\n", - " plt.ylim(ylim)\n", - " plt.xlabel('z (um)')\n", - " plt.ylabel(yaxis_label + ' (um)')" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Interactive viewer" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": { - "collapsed": false - }, - "outputs": [], - "source": [ - "iterations = iterations_warp\n", - "interact(plot_field, \n", - " iteration = IntSlider(min=min(iterations), max=max(iterations), step=iterations[1]-iterations[0]),\n", - " field = RadioButtons( options=['jx', 'jy', 'jz', 'Ex', 'Ey', 'Ez'], value='jx'),\n", - " slicing_direction = RadioButtons( options=[ 'x', 'y', 'z'], value='x'))" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": { - "collapsed": true - }, - "outputs": [], - "source": [] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": { - "collapsed": true - }, - "outputs": [], - "source": [] - } - ], - "metadata": { - "anaconda-cloud": {}, - "kernelspec": { - "display_name": "Python 2", - "language": "python", - "name": "python2" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 2 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython2", - "version": "2.7.13" - } - }, - "nbformat": 4, - "nbformat_minor": 1 -} diff --git a/Tools/DevUtils/compute_domain.py b/Tools/DevUtils/compute_domain.py deleted file mode 100644 index d67cc86f5..000000000 --- a/Tools/DevUtils/compute_domain.py +++ /dev/null @@ -1,117 +0,0 @@ -# Copyright 2019-2020 Luca Fedeli, Maxence Thevenet -# -# This file is part of WarpX. -# -# License: BSD-3-Clause-LBNL - -import numpy as np - -''' -This Python script helps a user to parallelize a WarpX simulation. - -The user specifies the minimal size of the physical domain and the resolution -in each dimension, and the scripts computes: -- the number of cells and physical domain to satify the user-specified domain - size and resolution AND make sure that the number of cells along each - direction is a multiple of max_grid_size. -- a starting point on how to parallelize on Cori KNL (number of nodes, etc.). - -When running in a boosted frame, the script also has the option to -automatically compute the number of cells in z to satisfy dx>dz in the boosted -frame. - -Note that the script has no notion of blocking_factor. It is assumed that -blocking_factor = max_grid_size, and that all boxes have the same size. -''' - -# Update the lines below for your simulation -# ------------------------------------------ -# 2 elements for 2D, 3 elements for 3D -# Lower corner of the box -box_lo0 = np.array([-25.e-6, -25.e-6, -15.e-6]) -# Upper corner of the box -box_hi0 = np.array([ 25.e-6, 25.e-6, 60.e-6]) -# Cell size -dx = 1.e-6 -dz = dx -cell_size = np.array([dx, dx, dz]) -# Use this for simulations in a boosted frame if you -# want to enforce dz < dx / dx_over_dz_boosted_frame -compute_dz_boosted_frame = True -gamma_boost = 30. -dx_over_dz_boosted_frame = 1.1 # >1. is usually more stable -# ------------------------------------------ - -# similar to numpy.ceil, except the output data type is int -def intceil(num): - return np.ceil(num).astype(int) - -# Enlarge simulation boundaries to satisfy three conditions: -# - The resolution must be exactly the one provided by the user -# - The physical domain must cover the domain specified by box_lo0, box_hi0 -# - The number of cells must be a multiple of mgs (max_grid_size). -def adjust_bounds(box_lo0, box_hi0, box_ncell0, mgs): - cell_size = (box_hi0-box_lo0) / box_ncell0 - box_ncell = intceil(box_ncell0/mgs)*mgs - box_lo = box_ncell * cell_size * box_lo0 / (box_hi0 - box_lo0) - box_hi = box_ncell * cell_size * box_hi0 / (box_hi0 - box_lo0) - return box_lo, box_hi, box_ncell - -# Calculate parallelization for the simulation, given numerical parameters -# (number of cells, max_grid_size, number of threads per node etc.) -def nb_nodes_mpi(box_ncell,mgs,threadspernode,ompnumthreads,ngridpernode, ndim): - nmpipernode = threadspernode/ompnumthreads - ngridpermpi = ngridpernode/nmpipernode - box_ngrids = box_ncell/mgs - if ndim == 2: - ngrids = box_ngrids[0] * box_ngrids[1] - elif ndim == 3: - ngrids = np.prod(box_ngrids) - n_mpi = intceil( ngrids/ngridpermpi ) - n_node = intceil( n_mpi/nmpipernode ) - return n_node, n_mpi - -# Get number of dimensions (2 or 3) -ndim = box_lo0.size -if compute_dz_boosted_frame: - # Adjust dz so that dx/dz = dx_over_dz_boosted_frame in simulation frame - cell_size[-1] = cell_size[0] / dx_over_dz_boosted_frame / 2. / gamma_boost -# Given the resolution, compute number of cells a priori -box_ncell0 = ( box_hi0 - box_lo0 ) / cell_size - -if ndim == 2: - # Set of parameters suitable for a 2D simulation on Cori KNL - ngridpernode = 16. - ompnumthreads = 8. - mgs = 1024. - threadspernode = 64. # HyperThreading level = 1: no hyperthreading - distance_between_threads = int(68*4/threadspernode) - c_option = int( ompnumthreads*distance_between_threads ) -elif ndim == 3: - # Set of parameters suitable for a 3D simulation on Cori KNL - ngridpernode = 8. - ompnumthreads = 8. - mgs = 64. - threadspernode = 64. # HyperThreading level = 1: no hyperthreading - distance_between_threads = int(68*4/threadspernode) - c_option = int( ompnumthreads*distance_between_threads ) - -# Adjust simulation bounds -box_lo, box_hi, box_ncell = adjust_bounds(box_lo0, box_hi0, box_ncell0, mgs) - -# Calculate parallelization -n_node,n_mpi = nb_nodes_mpi(box_ncell, mgs, threadspernode, ompnumthreads, ngridpernode, ndim) - -# Print results -string_output = ' ### Parameters used ### \n' -string_output += 'ngridpernode = ' + str(ngridpernode) + '\n' -string_output += 'ompnumthreads = ' + str(ompnumthreads) + '\n' -string_output += 'mgs (max_grid_size) = ' + str(mgs) + '\n' -string_output += 'threadspernode ( = # MPI ranks per node * OMP_NUM_THREADS) = ' + str(threadspernode) + '\n' -string_output += 'ndim = ' + str(ndim) + '\n\n' -string_output += 'box_lo = ' + str(box_lo) + '\n' -string_output += 'box_hi = ' + str(box_hi) + '\n' -string_output += 'box_ncell = ' + str(box_ncell) + '\n' -string_output += 'n_node = ' + str(n_node) + '\n' -string_output += 'n_mpi = ' + str(n_mpi) + '\n' -print(string_output) diff --git a/Tools/DevUtils/update_copyright.sh b/Tools/DevUtils/update_copyright.sh deleted file mode 100755 index ccc0c7217..000000000 --- a/Tools/DevUtils/update_copyright.sh +++ /dev/null @@ -1,118 +0,0 @@ -#!/usr/bin/env bash - -# Copyright 2020 Maxence Thevenet -# -# This file is part of WarpX. -# -# License: BSD-3-Clause-LBNL - -# This file loops over all WarpX source files, uses git to get the list of -# contributors, and writes a copyright header at the beginning of each file -# with the list of contributors. -# -# To use it, execute from the WarpX directory. -# Warning: it'll delete and create file tmp.txt -# It uses the gnu-sed (sed on Linux, gsed on MacOS) - -rm -r tmp.txt -set -e - -# Loop over all source files -pattern="\.c$|\.cpp$|\.F90$|\.h$|\.H$|\.py$|"\ -"\.sh$|\.tex$|\.txt$|\.yml$|"\ -"CMakeLists\.txt|inputs" -for i in $(find . \ - -not -path "./.git/*" \ - -not -path "./.idea/*" \ - -not -path "./Docs/source/api/*" \ - -not -path "./Docs/build/*" \ - -not -path "./Docs/doxyxml/*" \ - -not -path "*wp_parse*" \ - -not -path "*LEGAL.txt" \ - -not -path "*LICENSE.txt" \ - -not -path "./tmp_build_dir/*" \ - -not -path "*/inputs*" \ - -not -path "*/PICMI_inputs*" \ - -not -path "./Tools/PerformanceTests/performance_log.txt" \ - -type f | \ - grep -P "${pattern}") -do - echo " --- " $i - # If Copyright information is present, remove it. - # WARNING: This only works for C++ files. - gsed -i '/^\/\* Copyright/,/\*\//{/^#/!{/^\$/!d}}' $i ; sleep 0.01 - # Get year of first modification of the file - year_line=`git log --format=%aD $i | tail -1` - year_first=($year_line) - year_first=${year_first[3]} - # Get year of last modification of the file - year_line=`git log --format=%aD $i | head -1` - year_last=($year_line) - year_last=${year_last[3]} - # Format year string, something like "2020" or "2016-2020" - if [ $year_first == $year_last ]; then year_string=$year_first; else year_string=$year_first-$year_last; fi - cp $i tmp.txt - # If bash or python or txt or yml file, comment character is # - if [ "${i: -2}" == "sh" ] || [ "${i: -2}" == "py" ] || [ "${i: -3}" == "txt" ] || [ "${i: -3}" == "yml" ]; then - echo "sh or py or txt" - pattern1="#" - pattern2="#" - pattern3=" -" - # If C or C++ file, comment characters are /*, * and */ - elif [ "${i: -1}" == "H" ] || [ "${i: -3}" == "cpp" ] || [ "${i: -1}" == "c" ] || [ "${i: -1}" == "h" ]; then - echo "cpp" - pattern1="/*" - pattern2=" *" - pattern3=" - */" - # If Fortran file, comment character is ! - elif [ "${i: -3}" == "F90" ]; then - echo "Fortran" - pattern1="!" - pattern2="!" - pattern3=" -" - # If Latex, comment character is % - elif [ "${i: -3}" == "tex" ]; then - echo "tex" - pattern1="%" - pattern2="%" - pattern3=" -" - else - echo "error: unknown file type" - exit - fi - # Get formatted authors list - # sorted, unique, delete authors "Tools" (used by ax3l), and remove newlines - authors_list=`git log --follow --pretty=format:'%aN' $i | sort | uniq | grep -v Tools | gsed 's/$/, /g'` - # Put 2 authors per line, to avoid very long lines. - authors_list=`echo $authors_list | gsed 's/\([^,]*,[^,]*,[^,]*\),/\1,\n'"$pattern2"'/g' | gsed s/,$//g` - # Copy current file + Copyright to tmp.txt - # rm -rf tmp.txt - cp $i tmp.txt - first_line=`head -n1 $i` - # If a shebang is present, keep it as first line - if [ "${first_line:0:2}" == "#!" ]; then - echo "keeping shebang" - echo "$first_line" > tmp.txt - echo "" >> tmp.txt - else - truncate -s 0 tmp.txt - fi - # Write copyright - echo "$pattern1 Copyright $year_string $authors_list -$pattern2 -$pattern2 This file is part of WarpX. -$pattern2 -$pattern2 License: BSD-3-Clause-LBNL$pattern3" >> tmp.txt - # If no shebang, put first line after Copyright - if [ "${first_line:0:2}" != "#!" ]; then - echo "$first_line" >> tmp.txt - fi - # Then copy the content of the file - tail -n +2 $i >> tmp.txt - # Then overwrite current file with tmp.txt - mv tmp.txt $i -done diff --git a/Tools/ExcitationFlagGenerator/Excitation_Flag_Generator.py b/Tools/ExcitationFlagGenerator/Excitation_Flag_Generator.py deleted file mode 100644 index b5c519b64..000000000 --- a/Tools/ExcitationFlagGenerator/Excitation_Flag_Generator.py +++ /dev/null @@ -1,85 +0,0 @@ -#################################################### -#################################################### -############ Excitation_Flag_Generator ########### -############## For ARTEMIS Simulations ############# -#################################################### -#################################################### - - -##### function to create string for input file ##### - -import sys -def listToString(finalstring): - str1 = "" - for ele in finalstring: - str1 += ele - return str1 - -##### open text file and read data ##### -print() -with open('exampledata_Excitation_Flag_Generator.txt') as myfile: - -##### formatting text file for extracting data ##### - - data = [(line.strip()).split() for line in myfile] - -##### derivative data ##### - - d_lists = data[0:3] - d_str = [val for sublist in d_lists for val in sublist] - d_float = [float(i) for i in d_str] - dx = d_float[0] - dy = d_float[1] - dz = d_float[2] - dx1 = dx/2 - dy1 = dy/2 - dz1 = dz/2 - -##### coordinate data ##### - - coordinate_data = data[3:] - ExString = [] - EyString = [] - EzString = [] - -##### testing coordinates to find a normal ##### - - for coordinate in coordinate_data: - x_lo = coordinate[0] - x_hi = coordinate[3] - y_lo = coordinate[1] - y_hi = coordinate[4] - z_lo = coordinate[2] - z_hi = coordinate[5] - datastring = f"(x >= {x_lo} - ({dx1})) * (x <= {x_hi} + ({dx1})) * (y >= {y_lo} - ({dy1})) * (y <= {y_hi} + ({dy1})) * (z >= {z_lo} - ({dz1})) * (z <= {z_hi} + ({dz1})) + " - if x_lo == x_hi and y_lo < y_hi and z_lo < z_hi: - print("normal in x") - EyString.append(datastring) - EzString.append(datastring) - if y_lo == y_hi and x_lo < x_hi and z_lo < z_hi: - print("normal in y") - ExString.append(datastring) - EzString.append(datastring) - if z_lo == z_hi and x_lo < x_hi and y_lo < y_hi: - print("normal in z") - ExString.append(datastring) - EyString.append(datastring) - if x_lo != x_hi and y_lo != y_hi and z_lo != z_hi: - print("Error: no match") - sys.exit() - if x_lo > x_hi or y_lo > y_hi or z_lo > z_hi: - print("Error: low coordinate is greater than high coordinate") - sys.exit() -##### Formats datastring to remove "+" at the end of the string ##### - - x = listToString(ExString)[:-3] - y = listToString(EyString)[:-3] - z = listToString(EzString)[:-3] - -##### Prints datastring for normal in x, y, z ##### - print() - print("warpx.Ex_excitation_flag_function(x,y,z) = " + '"' + x + '"') - print() - print("warpx.Ey_excitation_flag_function(x,y,z) = " + '"' + y + '"') - print() - print("warpx.Ez_excitation_flag_function(x,y,z) = " + '"' + z + '"') diff --git a/Tools/ExcitationFlagGenerator/README.txt b/Tools/ExcitationFlagGenerator/README.txt deleted file mode 100644 index 1468b870b..000000000 --- a/Tools/ExcitationFlagGenerator/README.txt +++ /dev/null @@ -1,26 +0,0 @@ -EXCITATION FLAG FUNCTION GENERATOR PYTHON SCRIPT - -This python script allows the user to create an excitation flag function for an ARTEMIS inputs file using coordinate data from a text file - -The format of the data text file is as follows: - -dx -dy -dz -x_lo y_lo z_lo x_hi y_hi z_hi - -whereas the coordinates correspond to a plane -whereas dx, dy, dz correspond to 250nm -: - -Excitation_Flag_Generator.py reads the data text file and determines if there are matches between lo and hi coordinates for x, y, z - -If there is a match of coordinates, the script will print that there is a normal in the corresponding axis. - -Every match will be sorted into a string for Ex, Ey, Ez for use in an ARTEMIS inputs file - -If there is no match of coordinates, the script will state "no match" and abort - -If a lo coordinate in text file is greater in value than a hi coordinate, the script will abort - -The output of the python script, the strings for Ex, Ey, Ez excitation flag functions, can be copied and pasted onto an inputs file diff --git a/Tools/ExcitationFlagGenerator/exampledata_Excitation_Flag_Generator.txt b/Tools/ExcitationFlagGenerator/exampledata_Excitation_Flag_Generator.txt deleted file mode 100644 index 52941fd51..000000000 --- a/Tools/ExcitationFlagGenerator/exampledata_Excitation_Flag_Generator.txt +++ /dev/null @@ -1,7 +0,0 @@ -0.00000025 -0.00000025 -0.00000025 -0.000004 -0.000016 -0.000004 0.000004 0.000016 0.000004 --0.000004 -0.000016 -0.000004 0.000004 0.000016 -0.000004 --0.000004 -0.000016 -0.000004 -0.000004 0.000016 0.000004 --0.000004 -0.000016 0.000004 0.000004 0.000016 0.000004 diff --git a/Tools/ExcitationFlagGenerator/inputs_3d_circuit_sample b/Tools/ExcitationFlagGenerator/inputs_3d_circuit_sample deleted file mode 100644 index 904da1c39..000000000 --- a/Tools/ExcitationFlagGenerator/inputs_3d_circuit_sample +++ /dev/null @@ -1,68 +0,0 @@ -# This is a E+B (use USE_LLG=FALSE, ie., no M field) simulation of a -# plane wave in a periodic domain - -################################ -####### GENERAL PARAMETERS ###### -################################# -max_step = 1 -amr.n_cell = 128 128 128 -amr.max_grid_size = 32 -amr.blocking_factor = 16 -geometry.coord_sys = 0 -geometry.is_periodic = 1 1 1 -geometry.prob_lo = -16.e-6 -16.e-6 -16.e-6 -geometry.prob_hi = 16.e-6 16.e-6 16.e-6 -amr.max_level = 0 - -################################# -############ NUMERICS ########### -################################# -warpx.verbose = 0 -warpx.use_filter = 0 -warpx.cfl = 0.9 -warpx.do_pml = 1 - -algo.em_solver_medium = macroscopic # vacuum/macroscopic -algo.macroscopic_sigma_method = laxwendroff # laxwendroff or backwardeuler -macroscopic.sigma_function(x,y,z) = "0.0" -macroscopic.epsilon_function(x,y,z) = "8.8541878128e-12" -macroscopic.mu_function(x,y,z) = "1.25663706212e-06" - -particles.nspecies = 0 - -################################# -############ FIELDS ############# -################################# - -my_constants.pi = 3.14159265359 -my_constants.L = 141.4213562373095e-6 -my_constants.c = 299792458. -my_constants.wavelength = 64.e-6 - -warpx.E_ext_grid_init_style = parse_E_ext_grid_function -warpx.Ez_external_grid_function(x,y,z) = "1.0" -warpx.Ex_external_grid_function(x,y,z) = "1.0" -warpx.Ey_external_grid_function(x,y,z) = "1.0" - -warpx.B_ext_grid_init_style = parse_B_ext_grid_function -warpx.Bx_external_grid_function(x,y,z)= "1.0" -warpx.By_external_grid_function(x,y,z)= "1.0" -warpx.Bz_external_grid_function(x,y,z) = "1.0" - -warpx.E_excitation_on_grid_style = parse_E_excitation_grid_function - -warpx.Ex_excitation_flag_function(x,y,z) = "(x >= -0.000004 - (1.25e-07)) * (x <= 0.000004 + (1.25e-07)) * (y >= -0.000016 - (1.25e-07)) * (y <= 0.000016 + (1.25e-07)) * (z >= -0.000004 - (1.25e-07)) * (z <= -0.000004 + (1.25e-07)) + (x >= -0.000004 - (1.25e-07)) * (x <= 0.000004 + (1.25e-07)) * (y >= -0.000016 - (1.25e-07)) * (y <= 0.000016 + (1.25e-07)) * (z >= 0.000004 - (1.25e-07)) * (z <= 0.000004 + (1.25e-07))" - -warpx.Ey_excitation_flag_function(x,y,z) = "(x >= 0.000004 - (1.25e-07)) * (x <= 0.000004 + (1.25e-07)) * (y >= -0.000016 - (1.25e-07)) * (y <= 0.000016 + (1.25e-07)) * (z >= -0.000004 - (1.25e-07)) * (z <= 0.000004 + (1.25e-07)) + (x >= -0.000004 - (1.25e-07)) * (x <= 0.000004 + (1.25e-07)) * (y >= -0.000016 - (1.25e-07)) * (y <= 0.000016 + (1.25e-07)) * (z >= -0.000004 - (1.25e-07)) * (z <= -0.000004 + (1.25e-07)) + (x >= -0.000004 - (1.25e-07)) * (x <= -0.000004 + (1.25e-07)) * (y >= -0.000016 - (1.25e-07)) * (y <= 0.000016 + (1.25e-07)) * (z >= -0.000004 - (1.25e-07)) * (z <= 0.000004 + (1.25e-07)) + (x >= -0.000004 - (1.25e-07)) * (x <= 0.000004 + (1.25e-07)) * (y >= -0.000016 - (1.25e-07)) * (y <= 0.000016 + (1.25e-07)) * (z >= 0.000004 - (1.25e-07)) * (z <= 0.000004 + (1.25e-07))" - -warpx.Ez_excitation_flag_function(x,y,z) = "(x >= 0.000004 - (1.25e-07)) * (x <= 0.000004 + (1.25e-07)) * (y >= -0.000016 - (1.25e-07)) * (y <= 0.000016 + (1.25e-07)) * (z >= -0.000004 - (1.25e-07)) * (z <= 0.000004 + (1.25e-07)) + (x >= -0.000004 - (1.25e-07)) * (x <= -0.000004 + (1.25e-07)) * (y >= -0.000016 - (1.25e-07)) * (y <= 0.000016 + (1.25e-07)) * (z >= -0.000004 - (1.25e-07)) * (z <= 0.000004 + (1.25e-07))" - -warpx.Ex_excitation_grid_function(x,y,z,t) = "0." -warpx.Ey_excitation_grid_function(x,y,z,t) = "0." -warpx.Ez_excitation_grid_function(x,y,z,t) = "0." - -# Diagnostics -diagnostics.diags_names = plt -plt.intervals = 1 -plt.fields_to_plot = Ex Ey Ez Bx By Bz -plt.diag_type = Full diff --git a/Tools/LibEnsemble/all_machine_specs.py b/Tools/LibEnsemble/all_machine_specs.py deleted file mode 100644 index 8dbc2879f..000000000 --- a/Tools/LibEnsemble/all_machine_specs.py +++ /dev/null @@ -1,26 +0,0 @@ -import os - -""" -This file is part of the suite of scripts to use LibEnsemble on top of WarpX -simulations. It contains a dictionary for machine-specific elements. -""" - - -local_specs = { - 'name': 'local', # Machine name - 'cores': 1, # Number of cores per simulation - 'sim_app': os.environ['HOME'] + '/warpx/Bin/main2d.gnu.TPROF.MPI.OMP.ex', - 'extra_args': '', # extra arguments passed to mpirun/mpiexec at execution - 'OMP_NUM_THREADS': '2', - 'sim_max': 3 # Maximum number of simulations -} - - -summit_specs = { - 'name': 'summit', # Machine name - 'sim_app': os.environ['HOME'] + '/warpx/Bin/main2d.gnu.TPROF.MPI.CUDA.ex', - # extra arguments passed to jsrun at execution - 'extra_args': '-n 1 -a 1 -g 1 -c 1 --bind=packed:1 --smpiargs="-gpu"', - 'OMP_NUM_THREADS': '1', - 'sim_max': 400 # Maximum number of simulations -} diff --git a/Tools/LibEnsemble/plot_results.py b/Tools/LibEnsemble/plot_results.py deleted file mode 100755 index 6c294fe36..000000000 --- a/Tools/LibEnsemble/plot_results.py +++ /dev/null @@ -1,128 +0,0 @@ -#!/usr/bin/env python - -""" -Plotting script for LibEnsemble run on WarpX simulations. -input: A directory which which the script will read the -latest .npy and .pickle files generated by LibEnsemble -""" - -import glob -import os -import pickle -import sys - -import matplotlib.pyplot as plt -import numpy as np - -# 'aposmm' or 'random' -generator_type = 'random' - -print("Reading latest .npy and .pickle files in " + sys.argv[1]) - -# Read latest .npy file, and store the result in results -# * means all if need specific format then *.csv -list_of_files = glob.glob(sys.argv[1] + '*npy') -latest_file = max(list_of_files, key=os.path.getctime) -results = np.load(latest_file) - -# Read latest .pickle file, and store the result in pickle_data -# * means all if need specific format then *.csv -list_of_files = glob.glob(sys.argv[1] + '*pickle') -latest_file = max(list_of_files, key=os.path.getctime) -with open(latest_file, 'rb') as f: - pickle_data = pickle.load(f) -if generator_type == 'aposmm': - nbatches = len(pickle_data[1]['run_order']) - -# Remove un-returned (i.e., not submitted) simulations -results = results[results['returned'] == 1] - -# Re-organize results into a dictionary. Each key is a field in libE_output, -# each value is an array with the value of this field for all WarpX simulations -names = results.dtype.names -results_dict = {} -for i in range(len(names)): - results_dict[names[i]] = np.array([task[i] for task in results]) - -# Sanity checks: exit if a simulation has null charge, as the script -# doesn't handle this (shouldn't be too hard to add though). -if np.min(results_dict['charge'] == 0.0): - sys.exit() -if np.min(results_dict['f'] == 0.0): - sys.exit() - -# Custom: which output parameters are plotted -# as a function of which input parameters -plot_output = ['f', 'emittance', 'charge', 'energy_avg', 'energy_std'] -plot_input = ['ramp_down_1', 'zlens_1', 'adjust_factor', 'ramp_down_2'] - -# For convenience, dictionary with pyplot.ylim -# tuples for all elements in plot_output -d_ylim = { - 'f': (3.e-7, 5.e-3), - 'emittance': (3.e-7, 5.e-3), - 'charge': (1.e-7, 1.e-5), - 'energy_avg': (5.e1, 5.e2), - 'energy_std': (1.e-2, 1.e-1) -} - -# For convenience, dictionary with units for all elements in plot_output -d_yunits = { - 'f': " (a.u.)", - 'emittance': " (m rad)", - 'charge': " (pC/m)", - 'energy_avg': " (MeV)", - 'energy_std': " (%)" -} - -# Print input and output parameters for the optimal run -print("Best run:") -ind_best = np.nanargmin(results_dict['f']) -for key in plot_input + plot_output: - print(key, results_dict[key][ind_best]) -print("charge_f/charge_i ", - results[ind_best]['charge']/np.nanmax(results_dict['charge'])) - -# And now plotting begins -plt.figure(figsize=(16, 10)) -plt.style.use('dark_background') -# Loop over all input parameters in plot_input -for icount, iname in enumerate(plot_input): - # Loop over all output parameters in plot_output - for count, name in enumerate(plot_output): - plt.subplot(len(plot_input), len(plot_output), - len(plot_output)*icount + count+1) - if generator_type == 'aposmm': - # Plot 1 point per run. Runs that are part of the same local - # minimum search are batched together and plotted with the - # same color. - for batch in pickle_data[1]['run_order']: - my_sims = np.isin(results_dict['sim_id'], - pickle_data[1]['run_order'][batch]) - plt.scatter(np.squeeze(results_dict[iname][my_sims]), - np.squeeze(results_dict[name][my_sims]), - s=2) - elif generator_type == 'random': - # Plot 1 point per run. Colorbar stands for sim ID - # (larger value = later run). - plt.scatter(np.squeeze(results_dict[iname]), - np.squeeze(results_dict[name]), - c=results_dict['sim_id'], s=2, cmap='viridis') - cbar = plt.colorbar() - cbar.ax.set_ylabel('start time (arb. units)') - else: - print("generator_type should be either random or aposmm") - sys.exit() - plt.yscale('log') - plt.xlim(np.min(results_dict[iname]), np.max(results_dict[iname])) - plt.ylim(d_ylim[name]) - plt.grid() - plt.title(name) - plt.xlabel(iname) - plt.ylabel(name + d_yunits[name]) - -plt.tight_layout() - -# Save figure -plt.savefig('results.pdf', bbox_inches='tight') -plt.savefig('results.png', bbox_inches='tight') diff --git a/Tools/LibEnsemble/read_sim_output.py b/Tools/LibEnsemble/read_sim_output.py deleted file mode 100644 index 5eabf1803..000000000 --- a/Tools/LibEnsemble/read_sim_output.py +++ /dev/null @@ -1,115 +0,0 @@ -import glob -import os -import shutil - -import numpy as np -import scipy.constants as scc -import yt - -""" -This file is part of the suite of scripts to use LibEnsemble on top of WarpX -simulations. It reads the output plotfiles of a simulation and returns beam -quantity relevant for the LibEnsemble optimizations ('f') as well as other -beam quantities for convenience. -""" - -yt.funcs.mylog.setLevel(50) - -def slice_emittance(x, xp, g, b, w): - xpgb = xp * g * b - xav = np.average(x, weights = w) - xpav = np.average(xpgb, weights = w) - xstd2 = np.average((x - xav)**2, weights = w) - xpstd2 = np.average((xpgb - xpav)**2, weights = w) - xp2 = (np.average((x - xav) * (xpgb-xpav), weights = w))**2 - em = np.sqrt(xstd2 * xpstd2 - xp2) - return em - -def _beam_properties(filepath): - """ - Reads plotfile filepath and compute and return beam parameters - - Parameters - ---------- - filepath : path to plotfile to read - """ - - # Read beam quantities from plotfile - ds = yt.load(filepath) - - if ('beam' in [i[0] for i in ds.field_list]): - ad = ds.all_data() - w = ad['beam', 'particle_weight'].v - if (w.shape[0] <= 200): - print('Insufficient particles in ',filepath) - return 0.0, 0.0, 0.0, 0.0 - else: - x = ad['beam', 'particle_position_x'].v - z = ad['beam', 'particle_position_y'].v - ux = ad['beam', 'particle_momentum_x'].v/scc.m_e/scc.c - uy = ad['beam', 'particle_momentum_y'].v/scc.m_e/scc.c - uz = ad['beam', 'particle_momentum_z'].v/scc.m_e/scc.c - - # Compute beam parameters - # Defined like that, the beam charge is > 0. - charge = np.sum(w) * scc.e - gamma = np.sqrt(1. + ux**2 + uy**2 + uz**2) - beta = np.sqrt(1.0 - 1.0 / gamma**2) - energy_MeV = scc.physical_constants["electron mass energy equivalent in MeV"][0] * (gamma - 1.) - energy_avg = np.average(energy_MeV, weights = w) - energy_std = np.sqrt(np.average((energy_MeV - energy_avg)**2, weights = w)) / energy_avg * 100 - nslices = 20 - zslices = np.linspace(np.min(z), np.max(z), nslices+1) - exlist = np.zeros(nslices) - for slicei in range(nslices): - cond = [(z > zslices[slicei]) & (z < zslices[slicei+1])][0] - wslice = w[cond] - if (wslice.shape[0] > 10): - xslice = x[cond] - xpslice = ux[cond]/uz[cond] - gslice = gamma[cond] - bslice = beta[cond] - exlist[slicei] = slice_emittance(xslice, xpslice, gslice, bslice, wslice) - emittance = np.mean(exlist) - return charge, energy_avg, energy_std, emittance - else: - print('No beam particles in ',filepath) - return 0.0, 0.0, 0.0, 0.0 - -def read_sim_output(workdir): - """ - Return optimizing quantity 'f' and other parameters for convenience. - - Parameters - ---------- - workdir : Path to directory where the simulation ran. - """ - # Get beam properties at the beginning of the run - file_list = glob.glob('diags/plotfiles/plt?????') - if (len(file_list) <2): - print(workdir,' did not have final plotfile') - return np.array([np.nan, np.nan, np.nan, np.nan, np.nan]) - file_list.sort() - datafile = file_list[0] - filepath = os.path.join(workdir, datafile) - charge_i, _, _, emittance_i = _beam_properties(filepath) - - # Get beam properties at the end of the run - datafile = file_list[-1] - filepath = os.path.join(workdir, datafile) - charge_f, energy_avg, energy_std, emittance_f = _beam_properties(filepath) - - if (charge_f > 0.0): - # delete simulation results, just to have smaller data - shutil.rmtree('diags') - - # Build a quantity to minimize (f) that encompasses - # emittance AND charge loss 1% charge loss has the - # same impact as doubling the initial emittance. - # we minimize f! - f = emittance_f + emittance_i*(1.-charge_f/charge_i)*100 - warpx_out = np.array([f, energy_std, energy_avg, charge_f, emittance_f]) - - return warpx_out - else: - return np.array([np.nan, np.nan, np.nan, np.nan, np.nan]) diff --git a/Tools/LibEnsemble/requirements.txt b/Tools/LibEnsemble/requirements.txt deleted file mode 100644 index 88217255e..000000000 --- a/Tools/LibEnsemble/requirements.txt +++ /dev/null @@ -1,7 +0,0 @@ -libensemble -matplotlib -nlopt -numpy -pytest -scipy -yt diff --git a/Tools/LibEnsemble/run_libensemble_on_warpx.py b/Tools/LibEnsemble/run_libensemble_on_warpx.py deleted file mode 100644 index dec8dfd54..000000000 --- a/Tools/LibEnsemble/run_libensemble_on_warpx.py +++ /dev/null @@ -1,222 +0,0 @@ -#!/usr/bin/env python - -""" -This file is part of the suite of scripts to use LibEnsemble on top of WarpX -simulations. It is the entry point script that runs LibEnsemble. Libensemble -then launches WarpX simulations. - -Execute locally via the following command: - python run_libensemble_on_warpx.py --comms local --nworkers 3 -On summit, use the submission script: - bsub summit_submit_mproc.sh - -The number of concurrent evaluations of the objective function will be -nworkers=1 as one worker is for the persistent gen_f. -""" - -# Either 'random' or 'aposmm' -generator_type = 'aposmm' -# Either 'local' or 'summit' -machine = 'local' - -import sys - -# Import libEnsemble modules -from libensemble.libE import libE -import numpy as np -from warpx_simf import run_warpx # Sim function from current directory - -if generator_type == 'random': - from libensemble.alloc_funcs.give_sim_work_first import \ - give_sim_work_first as alloc_f - from libensemble.gen_funcs.sampling import uniform_random_sample as gen_f -elif generator_type == 'aposmm': - import libensemble.gen_funcs - libensemble.gen_funcs.rc.aposmm_optimizers = 'nlopt' - from libensemble.alloc_funcs.persistent_aposmm_alloc import \ - persistent_aposmm_alloc as alloc_f - from libensemble.gen_funcs.persistent_aposmm import aposmm as gen_f -else: - print("you shouldn' hit that") - sys.exit() - -import all_machine_specs -from libensemble import libE_logger -from libensemble.executors.mpi_executor import MPIExecutor -from libensemble.tools import (add_unique_random_streams, parse_args, - save_libE_output) - -# Import machine-specific run parameters -if machine == 'local': - machine_specs = all_machine_specs.local_specs -elif machine == 'summit': - machine_specs = all_machine_specs.summit_specs -else: - print("you shouldn' hit that") - sys.exit() - -libE_logger.set_level('INFO') - -nworkers, is_master, libE_specs, _ = parse_args() - -# Set to full path of warp executable -sim_app = machine_specs['sim_app'] - -# Problem dimension. This is the number of input parameters exposed, -# that LibEnsemble will vary in order to minimize a single output parameter. -n = 4 - -exctr = MPIExecutor(central_mode=True) -exctr.register_calc(full_path=sim_app, calc_type='sim') - -# State the objective function, its arguments, output, and necessary parameters -# (and their sizes). Here, the 'user' field is for the user's (in this case, -# the simulation) convenience. Feel free to use it to pass number of nodes, -# number of ranks per note, time limit per simulation etc. -sim_specs = { - # Function whose output is being minimized. The parallel WarpX run is - # launched from run_WarpX. - 'sim_f': run_warpx, - # Name of input for sim_f, that LibEnsemble is allowed to modify. - # May be a 1D array. - 'in': ['x'], - 'out': [ - # f is the single float output that LibEnsemble minimizes. - ('f', float), - # All parameters below are not used for calculation, - # just output for convenience. - # Final relative energy spread. - ('energy_std', float, (1,)), - # Final average energy, in MeV. - ('energy_avg', float, (1,)), - # Final beam charge. - ('charge', float, (1,)), - # Final beam emittance. - ('emittance', float, (1,)), - # input parameter: length of first downramp. - ('ramp_down_1', float, (1,)), - # input parameter: Length of second downramp. - ('ramp_down_2', float, (1,)), - # input parameter: position of the focusing lens. - ('zlens_1', float, (1,)), - # Relative stength of the lens (1. is from - # back-of-the-envelope calculation) - ('adjust_factor', float, (1,)), - ], - 'user': { - # name of input file - 'input_filename': 'inputs', - # Run timeouts after 3 mins - 'sim_kill_minutes': 3, - # machine-specific parameters - 'machine_specs': machine_specs - } -} - -# State the generating function, its arguments, output, -# and necessary parameters. -if generator_type == 'random': - # Here, the 'user' field is for the user's (in this case, - # the RNG) convenience. - gen_specs = { - # Generator function. Will randomly generate new sim inputs 'x'. - 'gen_f': gen_f, - # Generator input. This is a RNG, no need for inputs. - 'in': [], - 'out': [ - # parameters to input into the simulation. - ('x', float, (n,)) - ], - 'user': { - # Total max number of sims running concurrently. - 'gen_batch_size': nworkers, - # Lower bound for the n parameters. - 'lb': np.array([2.e-3, 2.e-3, 0.005, .1]), - # Upper bound for the n parameters. - 'ub': np.array([2.e-2, 2.e-2, 0.028, 3.]), - } - } - - alloc_specs = { - # Allocator function, decides what a worker should do. - # We use a LibEnsemble allocator. - 'alloc_f': alloc_f, - 'out': [ - ('allocated', bool) - ], - 'user': { - # If true wait for all sims to process before generate more - 'batch_mode': True, - # Only one active generator at a time - 'num_active_gens': 1 - } - } - -elif generator_type == 'aposmm': - # Here, the 'user' field is for the user's (in this case, - # the optimizer) convenience. - gen_specs = { - # Generator function. Will randomly generate new sim inputs 'x'. - 'gen_f': gen_f, - 'in': [], - 'out': [ - # parameters to input into the simulation. - ('x', float, (n,)), - # x scaled to a unique cube. - ('x_on_cube', float, (n,)), - # unique ID of simulation. - ('sim_id', int), - # Whether this point is a local minimum. - ('local_min', bool), - # whether the point is from a local optimization run - # or a random sample point. - ('local_pt', bool) - ], - 'user': { - # Number of sims for initial random sampling. - # Optimizer starts afterwards. - 'initial_sample_size': max(nworkers-1, 1), - # APOSMM/NLOPT optimization method - 'localopt_method': 'LN_BOBYQA', - 'num_pts_first_pass': nworkers, - # Relative tolerance of inputs - 'xtol_rel': 1e-3, - # Absolute tolerance of output 'f'. Determines when - # local optimization stops. - 'ftol_abs': 3e-8, - # Lower bound for the n input parameters. - 'lb': np.array([2.e-3, 2.e-3, 0.005, .1]), - # Upper bound for the n input parameters. - 'ub': np.array([2.e-2, 2.e-2, 0.028, 3.]), - } - } - - alloc_specs = { - # Allocator function, decides what a worker should do. - # We use a LibEnsemble allocator. - 'alloc_f': alloc_f, - 'out': [('given_back', bool)], - 'user': {}} - -else: - print("you shouldn' hit that") - sys.exit() - -# Save H to file every N simulation evaluations -libE_specs['save_every_k_sims'] = 100 -# Sim directory to be copied for each worker -libE_specs['sim_input_dir'] = 'sim' - -sim_max = machine_specs['sim_max'] # Maximum number of simulations -exit_criteria = {'sim_max': sim_max} # Exit after running sim_max simulations - -# Create a different random number stream for each worker and the manager -persis_info = add_unique_random_streams({}, nworkers + 1) - -# Run LibEnsemble, and store results in history array H -H, persis_info, flag = libE(sim_specs, gen_specs, exit_criteria, - persis_info, alloc_specs, libE_specs) - -# Save results to numpy file -if is_master: - save_libE_output(H, persis_info, __file__, nworkers) diff --git a/Tools/LibEnsemble/sim/inputs b/Tools/LibEnsemble/sim/inputs deleted file mode 100644 index 03e9968e5..000000000 --- a/Tools/LibEnsemble/sim/inputs +++ /dev/null @@ -1,215 +0,0 @@ -################################# -########## MESH PATCH ########### -################################# -amr.max_level = 0 - -################################# -######### BOX PARAMETERS ######## -################################# -# warpx.zmax_plasma_to_compute_max_step = 0.33 -warpx.zmax_plasma_to_compute_max_step = -1. -# max_step = 3150 - -amr.n_cell = 32 2048 # 64 3072 - -amr.max_grid_size = 4096 -amr.blocking_factor = 16 - -geometry.dims = 2 -geometry.is_periodic = 0 0 -# physical domain when running in the lab frame -geometry.prob_lo = -0.00024190484157981564 -0.00016126989438654374 -geometry.prob_hi = 0.00024190484157981564 0.0 - -################################# -############ NUMERICS ########### -################################# -warpx.verbose = 1 -algo.current_deposition = esirkepov -algo.charge_deposition = standard -#algo.field_gathering = standard -algo.field_gathering = momentum-conserving -algo.particle_pusher = vay -algo.maxwell_solver = ckc -algo.load_balance_intervals = -1 -algo.particle_shape = 3 -warpx.use_filter = 1 -warpx.filter_npass_each_dir = 1 4 -warpx.cfl = .9999 -warpx.do_pml = 0 -warpx.do_dynamic_scheduling = 1 -# Moving window -warpx.do_moving_window = 1 -warpx.moving_window_dir = z -warpx.moving_window_v = 1.0 # in units of the speed of light - -################################# -####### BOOST PARAMETERS ######## -################################# -warpx.gamma_boost = 30.0 -warpx.boost_direction = z - -################################# -############ PLASMA ############# -################################# -particles.species_names = electrons ions electrons2 ions2 beam - -particles.use_fdtd_nci_corr = 1 -particles.rigid_injected_species = beam - -electrons.charge = -q_e -electrons.mass = m_e -electrons.injection_style = NUniformPerCell -electrons.num_particles_per_cell_each_dim = 1 1 -electrons.momentum_distribution_type = "at_rest" -electrons.xmin = -150.e-6 -electrons.xmax = 150.e-6 -electrons.ymin = -150.e-6 -electrons.ymax = 150.e-6 -electrons.zmin = 0.0 -electrons.zmax = 0.32 -electrons.profile = "predefined" -electrons.predefined_profile_name = "parabolic_channel" -# predefined_profile_params = z_start ramp_up plateau ramp_down rc n0 -electrons.predefined_profile_params = 0.0 .02 .297 .003 40.e-6 1.7e23 -electrons.do_continuous_injection = 1 - -ions.charge = q_e -ions.mass = m_p -ions.injection_style = NUniformPerCell -ions.num_particles_per_cell_each_dim = 1 1 -ions.momentum_distribution_type = "at_rest" -ions.xmin = -150.e-6 -ions.xmax = 150.e-6 -ions.ymin = -150.e-6 -ions.ymax = 150.e-6 -ions.zmin = 0.0 -ions.zmax = 0.32 -ions.profile = "predefined" -ions.predefined_profile_name = "parabolic_channel" -# predefined_profile_params = z_start ramp_up plateau ramp_down rc n0 -ions.predefined_profile_params = 0.0 .02 .297 .003 40.e-6 1.7e23 -ions.do_continuous_injection = 1 - -electrons2.charge = -q_e -electrons2.mass = m_e -electrons2.injection_style = NUniformPerCell -electrons2.num_particles_per_cell_each_dim = 1 1 1 -electrons2.momentum_distribution_type = "at_rest" -electrons2.xmin = -150.e-6 -electrons2.xmax = 150.e-6 -electrons2.ymin = -150.e-6 -electrons2.ymax = 150.e-6 -electrons2.zmin = 0.3485 -electrons2.zmax = 0.6685 -electrons2.profile = "predefined" -electrons2.predefined_profile_name = "parabolic_channel" -# predefined_profile_params = z_start ramp_up plateau ramp_down rc n0 -electrons2.predefined_profile_params = 0.3485 .02 .297 .003 40.e-6 1.7e23 -electrons2.do_continuous_injection = 1 - -ions2.charge = q_e -ions2.mass = m_p -ions2.injection_style = NUniformPerCell -ions2.num_particles_per_cell_each_dim = 1 1 1 -ions2.momentum_distribution_type = "at_rest" -ions2.xmin = -150.e-6 -ions2.xmax = 150.e-6 -ions2.ymin = -150.e-6 -ions2.ymax = 150.e-6 -ions2.zmin = 0.3485 -ions2.zmax = 0.6685 -ions2.profile = "predefined" -ions2.predefined_profile_name = "parabolic_channel" -# predefined_profile_params = z_start ramp_up plateau ramp_down rc n0 -ions2.predefined_profile_params = 0.3485 .02 .297 .003 40.e-6 1.7e23 -ions2.do_continuous_injection = 1 - -beam.charge = -q_e -beam.mass = m_e -beam.injection_style = "gaussian_beam" -beam.x_rms = 6.e-7 -beam.y_rms = 6.e-7 -beam.z_rms = 3.e-6 -beam.x_cut = 3. -beam.y_cut = 3. -beam.z_cut = 2. -beam.x_m = 0. -beam.y_m = 0. -beam.z_m = -98.e-6 -beam.npart = 100000 -beam.q_tot = -0.9e-12 -beam.momentum_distribution_type = "gaussian" -beam.ux_m = 0. -beam.uy_m = 0. -beam.uz_m = 1956.9469069265976 -beam.ux_th = 0.4166666666666667 -beam.uy_th = 0. -beam.uz_th = 39.138943248532286 -beam.zinject_plane = 0.02 -beam.rigid_advance = true - -################################# -######### Lens Mirror ########### -################################# - -my_constants.ga = 13330 -my_constants.zlen = 0.3375 -my_constants.dlen = 0.019 -my_constants.wlen = 0.002 -my_constants.mcce = 510999. -my_constants.gab = 30.0 -my_constants.vb = 299625860.344456 -my_constants.adjust_factor = 1. - -particles.E_ext_particle_init_style = parse_E_ext_particle_function -particles.Ex_external_particle_function(x,y,z,t) = "( adjust_factor * gab * 2 * mcce * ga * x / (wlen * dlen) ) * ((gab*(z+vb*t))>=zlen) * ((gab*(z+vb*t))<=(zlen+wlen))" -particles.Ey_external_particle_function(x,y,z,t) = "0." -particles.Ez_external_particle_function(x,y,z,t) = "0." - -particles.B_ext_particle_init_style = parse_B_ext_particle_function -particles.Bx_external_particle_function(x,y,z,t) = "0." -particles.By_external_particle_function(x,y,z,t) = "( - adjust_factor * vb * gab * 2 * mcce * ga * x / (wlen * dlen * clight * clight) ) * ((gab*(z+vb*t))>=zlen) * ((gab*(z+vb*t))<=(zlen+wlen))" -particles.Bz_external_particle_function(x,y,z,t) = "0." - -warpx.num_mirrors=2 -warpx.mirror_z = 0.321 0.6695 -warpx.mirror_z_width = 8.0e-6 8.0e-6 -warpx.mirror_z_npoints = 4 4 - -################################# -############# LASER ############# -################################# -lasers.names = laser1 laser2 - -laser1.profile = Gaussian -laser1.position = 0. 0. -1.e-9 # This point is on the laser plane -laser1.direction = 0. 0. 1. # The plane normal direction -laser1.polarization = 0. 1. 0. # The main polarization vector -laser1.e_max = 6.82274e12 # Maximum amplitude of the laser field (in V/m) -laser1.profile_waist = 50.e-6 # The waist of the laser (in meters) -laser1.profile_duration = 7.33841e-14 # The duration of the laser (in seconds) -laser1.profile_t_peak = 1.46764864e-13 # The time at which the laser reaches its peak (in seconds) -laser1.profile_focal_distance = 0.00875 # Focal distance from the antenna (in meters) -laser1.wavelength = 0.8e-6 # The wavelength of the laser (in meters) - -laser2.profile = Gaussian -laser2.position = 0. 0. 0.348499999 # This point is on the laser plane -laser2.direction = 0. 0. 1. # The plane normal direction -laser2.polarization = 0. 1. 0. # The main polarization vector -laser2.e_max = 6.82274e12 # Maximum amplitude of the laser field (in V/m) -laser2.profile_waist = 50.e-6 # The waist of the laser (in meters) -laser2.profile_duration = 7.33841e-14 # The duration of the laser (in seconds) -laser2.profile_t_peak = 1.1626176366295598e-09 # The time at which the laser reaches its peak (in seconds) -laser2.profile_focal_distance = 0.00875 # Focal distance from the antenna (in meters) -laser2.wavelength = 0.8e-6 # The wavelength of the laser (in meters) -laser2.do_continuous_injection = 1 # Lasers are initialized outside of initial box - -diagnostics.diags_names = diag -diag.file_prefix = diags/plotfiles/plt -diag.diag_type = Full -diag.intervals = 10000 -diag.species = electrons electrons2 beam -diag.electrons.variables = w -diag.electrons2.variables = w -diag.beam.variables = w ux uy uz diff --git a/Tools/LibEnsemble/summit_submit_mproc.sh b/Tools/LibEnsemble/summit_submit_mproc.sh deleted file mode 100755 index d83c57b0e..000000000 --- a/Tools/LibEnsemble/summit_submit_mproc.sh +++ /dev/null @@ -1,56 +0,0 @@ -#!/bin/bash -x -#BSUB -P -#BSUB -J libe_mproc -#BSUB -W 00:30 -#BSUB -nnodes 4 -#BSUB -alloc_flags "smt1" - -# Script to run libEnsemble using multiprocessing on launch nodes. -# Assumes Conda environment is set up. - -# To be run with central job management -# - Manager and workers run on launch node. -# - Workers submit tasks to the nodes in the job available. - -# Name of calling script- -export EXE=run_libensemble_on_warpx.py - -# Communication Method -export COMMS="--comms local" - -# Number of workers. -export NWORKERS="--nworkers 24" - -# Wallclock for libE. Slightly smaller than job wallclock -#export LIBE_WALLCLOCK=15 # Optional if pass to script - -# Name of Conda environment -export CONDA_ENV_NAME=libensemble - -export LIBE_PLOTS=true # Require plot scripts in $PLOT_DIR (see at end) -export PLOT_DIR=.. - -# Need these if not already loaded - -# module load python -# module load gcc -# module load cuda - -module unload xalt - -# Activate conda environment -export PYTHONNOUSERSITE=1 -. activate $CONDA_ENV_NAME - -# hash -d python # Check pick up python in conda env -hash -r # Check no commands hashed (pip/python...) - -# Launch libE. -#python $EXE $NUM_WORKERS $LIBE_WALLCLOCK > out.txt 2>&1 -python $EXE $COMMS $NWORKERS > out.txt 2>&1 - -if [[ $LIBE_PLOTS = "true" ]]; then - python $PLOT_DIR/plot_libe_calcs_util_v_time.py - python $PLOT_DIR/plot_libe_runs_util_v_time.py - python $PLOT_DIR/plot_libe_histogram.py -fi diff --git a/Tools/LibEnsemble/warpx_simf.py b/Tools/LibEnsemble/warpx_simf.py deleted file mode 100644 index 4a1f0f90d..000000000 --- a/Tools/LibEnsemble/warpx_simf.py +++ /dev/null @@ -1,110 +0,0 @@ -import os -import time - -from libensemble.executors.executor import Executor -from libensemble.message_numbers import TASK_FAILED, WORKER_DONE -import numpy as np -from read_sim_output import read_sim_output -from write_sim_input import write_sim_input - -""" -This file is part of the suite of scripts to use LibEnsemble on top of WarpX -simulations. It defines a sim_f function that takes LibEnsemble history and -input parameters, run a WarpX simulation and returns 'f'. -""" - - -def run_warpx(H, persis_info, sim_specs, libE_info): - """ - This function runs a WarpX simulation and returns quantity 'f' as well as - other physical quantities measured in the run for convenience. Status check - is done periodically on the simulation, provided by LibEnsemble. - """ - - # Setting up variables needed for input and output - # keys = variable names - # x = variable values - # libE_output = what will be returned to libE - - calc_status = 0 # Returns to worker - - input_file = sim_specs['user']['input_filename'] - time_limit = sim_specs['user']['sim_kill_minutes'] * 60.0 - machine_specs = sim_specs['user']['machine_specs'] - - exctr = Executor.executor # Get Executor - - # Modify WarpX input file with input parameters calculated by gen_f - # and passed to this sim_f. - write_sim_input(input_file, H['x']) - - # Passed to command line in addition to the executable. - # Here, only input file - app_args = input_file - os.environ["OMP_NUM_THREADS"] = machine_specs['OMP_NUM_THREADS'] - - # Launch the executor to actually run the WarpX simulation - if machine_specs['name'] == 'summit': - task = exctr.submit(calc_type='sim', - extra_args=machine_specs['extra_args'], - app_args=app_args, - stdout='out.txt', - stderr='err.txt', - wait_on_run=True) - else: - task = exctr.submit(calc_type='sim', - num_procs=machine_specs['cores'], - app_args=app_args, - stdout='out.txt', - stderr='err.txt', - wait_on_run=True) - - # Periodically check the status of the simulation - poll_interval = 1 # secs - while(not task.finished): - time.sleep(poll_interval) - task.poll() - if task.runtime > time_limit: - task.kill() # Timeout - - # Set calc_status with optional prints. - if task.finished: - if task.state == 'FINISHED': - calc_status = WORKER_DONE - elif task.state == 'FAILED': - print("Warning: Task {} failed: Error code {}" - .format(task.name, task.errcode)) - calc_status = TASK_FAILED - elif task.state == 'USER_KILLED': - print("Warning: Task {} has been killed" - .format(task.name)) - else: - print("Warning: Task {} in unknown state {}. Error code {}" - .format(task.name, task.state, task.errcode)) - - # Safety - time.sleep(0.2) - - # Get output from a run and delete output files - warpx_out = read_sim_output(task.workdir) - - # Excluding results - NaN - from runs where beam was lost - if (warpx_out[0] != warpx_out[0]): - print(task.workdir, ' output led to NaN values (beam was lost or run did not finish)') - - # Pass the sim output values to LibEnsemble. - # When optimization is ON, 'f' is then passed to the generating function - # gen_f to generate new inputs for next runs. - # All other parameters are here just for convenience. - libE_output = np.zeros(1, dtype=sim_specs['out']) - libE_output['f'] = warpx_out[0] - libE_output['energy_std'] = warpx_out[1] - libE_output['energy_avg'] = warpx_out[2] - libE_output['charge'] = warpx_out[3] - libE_output['emittance'] = warpx_out[4] - libE_output['ramp_down_1'] = H['x'][0][0] - libE_output['ramp_down_2'] = H['x'][0][1] - libE_output['zlens_1'] = H['x'][0][2] - libE_output['adjust_factor'] = H['x'][0][3] - - return libE_output, persis_info, calc_status diff --git a/Tools/LibEnsemble/write_sim_input.py b/Tools/LibEnsemble/write_sim_input.py deleted file mode 100644 index e4a639868..000000000 --- a/Tools/LibEnsemble/write_sim_input.py +++ /dev/null @@ -1,118 +0,0 @@ -import re - -import scipy.constants as scc - -""" -This file is part of the suite of scripts to use LibEnsemble on top of WarpX -simulations. It provides functions to modify some parameters in a WarpX -input file. -""" - - -def _set_value(str_text, str_line, val): - """ - This function search for str_line in str_text and overwrites the whole - matching line with str(val) - """ - str_text = re.sub('\n' + str_line + '.*', - '\n' + str_line + str(val), - str_text) - return str_text - - -def write_sim_input(input_file, x_values): - """ - This function modifies input_file to replace the values of some parameters - by values provided in x_values. - - Parameters - ---------- - input_file : WarpX input file. - x_values : Specific value of input x for this run. - """ - - # Parameters exposed to optimization - ramp_down_1 = x_values[0][0] - ramp_down_2 = x_values[0][1] - zlens_1 = x_values[0][2] - adjust_factor = x_values[0][3] - - # Fixed parameters - ramp_up_1 = 0.02 - plateau_1 = 0.297 - ramp_up_2 = ramp_up_1 - plateau_2 = plateau_1 - gap_12 = .0285 - - end_stage_1 = ramp_up_1 + plateau_1 + ramp_down_1 - beg_stage_2 = end_stage_1 + gap_12 - end_stage_2 = beg_stage_2 + ramp_up_2 + plateau_2 + ramp_down_2 - - # Updating mirrors position - mirror_z_1 = end_stage_1 + 1.0e-3 - mirror_z_2 = end_stage_2 + 1.0e-3 - - # Updating laser 2 configuration - z_antenna_2 = beg_stage_2 - 1.0e-9 #with value used for stage 1 - z_t_peak_2 = z_antenna_2 / scc.c + 2 * 7.33841e-14 # using pulse duration - - # End simulation when beam has just escaped the last stage - gamma_b = 30. - zmax_stop_run = end_stage_2 - 55.e-6 * gamma_b**2 * 2. - - with open(input_file) as file_handler: - output_text = file_handler.read() - - # Set end of stage 1 - output_text = _set_value( - output_text, 'electrons.zmax = ', str(end_stage_1)) - output_text = _set_value( - output_text, 'ions.zmax = ', str(end_stage_1)) - # Set length of final downramp of stage 1 - output_text = _set_value( - output_text, 'electrons.predefined_profile_params = ', - '0.0 .02 .297 ' + str(ramp_down_1) + ' 40.e-6 1.7e23') - output_text = _set_value( - output_text, 'ions.predefined_profile_params = ', - '0.0 .02 .297 ' + str(ramp_down_1) + ' 40.e-6 1.7e23') - # Set position of lens - output_text = _set_value( - output_text, 'my_constants.zlen = ', str(end_stage_1 + zlens_1)) - # Set beginning of stage 2 - output_text = _set_value( - output_text, 'electrons2.zmin = ', str(beg_stage_2)) - output_text = _set_value( - output_text, 'ions2.zmin = ', str(beg_stage_2)) - # Set end of stage 2 - output_text = _set_value( - output_text, 'electrons2.zmax = ', str(end_stage_2)) - output_text = _set_value( - output_text, 'ions2.zmax = ', str(end_stage_2)) - # Set length of final downramp of stage 2 - output_text = _set_value( - output_text, 'electrons2.predefined_profile_params = ', - str(beg_stage_2) + ' .02 .297 ' + str(ramp_down_2) + ' 40.e-6 1.7e23') - output_text = _set_value( - output_text, 'ions2.predefined_profile_params = ', - str(beg_stage_2) + ' .02 .297 ' + str(ramp_down_2) + ' 40.e-6 1.7e23') - # Set adjustment factor on lens strength - output_text = _set_value( - output_text, 'my_constants.adjust_factor = ', str(adjust_factor)) - # Set when to stop the run - output_text = _set_value( - output_text, 'warpx.zmax_plasma_to_compute_max_step = ', - str(zmax_stop_run)) - # Set mirrors position - output_text = _set_value( - output_text, 'warpx.mirror_z = ', str(mirror_z_1)+' '+str(mirror_z_2)) - # Set laser2 position - output_text = _set_value( - output_text, 'laser2.position = ', '0. 0. '+ str(z_antenna_2)) - # Set laser2 time until peak field is reached - output_text = _set_value( - output_text, 'laser2.profile_t_peak = ', str(z_t_peak_2)) - -# Write new input file - fout = open(input_file, 'w') - fout.write(output_text) - fout.close() diff --git a/Tools/PerformanceTests/automated_test_1_uniform_rest_32ppc b/Tools/PerformanceTests/automated_test_1_uniform_rest_32ppc deleted file mode 100644 index e5e722aa7..000000000 --- a/Tools/PerformanceTests/automated_test_1_uniform_rest_32ppc +++ /dev/null @@ -1,58 +0,0 @@ -# Maximum number of time steps: command-line argument -# number of grid points: command-line argument - -# Maximum allowable size of each subdomain in the problem domain; -# this is used to decompose the domain for parallel calculations. -amr.max_grid_size = 64 - -# Maximum level in hierarchy (for now must be 0, i.e., one level in total) -amr.max_level = 0 - -# Geometry -geometry.dims = 3 -geometry.prob_lo = -20.e-6 -20.e-6 -20.e-6 # physical domain -geometry.prob_hi = 20.e-6 20.e-6 20.e-6 - -# Boundaries -boundary.field_lo = pec pec periodic -boundary.field_hi = pec pec periodic -boundary.particle_lo = absorbing absorbing periodic -boundary.particle_hi = absorbing absorbing periodic - -# Verbosity -warpx.verbose = 1 - -algo.particle_shape = 3 - -# CFL -warpx.cfl = 1.0 - -particles.species_names = electrons ions - -electrons.charge = -q_e -electrons.mass = m_e -electrons.injection_style = "NUniformPerCell" -electrons.num_particles_per_cell_each_dim = 2 2 4 -electrons.profile = constant -electrons.density = 1.e20 # number of electrons per m^3 -electrons.momentum_distribution_type = "gaussian" -electrons.ux_th = 0.01 -electrons.uy_th = 0.01 -electrons.uz_th = 0.01 -electrons.ux_m = 0. -electrons.uy_m = 0. -electrons.uz_m = 0. - -ions.charge = q_e -ions.mass = m_p -ions.injection_style = "NUniformPerCell" -ions.num_particles_per_cell_each_dim = 2 2 4 -ions.profile = constant -ions.density = 1.e20 # number of electrons per m^3 -ions.momentum_distribution_type = "gaussian" -ions.ux_th = 0.01 -ions.uy_th = 0.01 -ions.uz_th = 0.01 -ions.ux_m = 0. -ions.uy_m = 0. -ions.uz_m = 0. diff --git a/Tools/PerformanceTests/automated_test_2_uniform_rest_1ppc b/Tools/PerformanceTests/automated_test_2_uniform_rest_1ppc deleted file mode 100644 index 610990ac1..000000000 --- a/Tools/PerformanceTests/automated_test_2_uniform_rest_1ppc +++ /dev/null @@ -1,44 +0,0 @@ -# Maximum number of time steps: command-line argument -# number of grid points: command-line argument - -# Maximum allowable size of each subdomain in the problem domain; -# this is used to decompose the domain for parallel calculations. -amr.max_grid_size = 32 - -# Maximum level in hierarchy (for now must be 0, i.e., one level in total) -amr.max_level = 0 - -# Geometry -geometry.dims = 3 -geometry.prob_lo = -20.e-6 -20.e-6 -20.e-6 # physical domain -geometry.prob_hi = 20.e-6 20.e-6 20.e-6 - -# Boundaries -boundary.field_lo = pec pec pec -boundary.field_hi = pec pec pec -boundary.particle_lo = absorbing absorbing absorbing -boundary.particle_hi = absorbing absorbing absorbing - -# Verbosity -warpx.verbose = 1 - -algo.particle_shape = 3 - -# CFL -warpx.cfl = 1.0 - -particles.species_names = electrons - -electrons.charge = -q_e -electrons.mass = m_e -electrons.injection_style = "NUniformPerCell" -electrons.num_particles_per_cell_each_dim = 1 1 1 -electrons.profile = constant -electrons.density = 1.e20 # number of electrons per m^3 -electrons.momentum_distribution_type = "gaussian" -electrons.ux_th = 0.01 -electrons.uy_th = 0.01 -electrons.uz_th = 0.01 -electrons.ux_m = 0. -electrons.uy_m = 0. -electrons.uz_m = 0. diff --git a/Tools/PerformanceTests/automated_test_3_uniform_drift_4ppc b/Tools/PerformanceTests/automated_test_3_uniform_drift_4ppc deleted file mode 100644 index 5a834cb41..000000000 --- a/Tools/PerformanceTests/automated_test_3_uniform_drift_4ppc +++ /dev/null @@ -1,59 +0,0 @@ -# Maximum number of time steps: command-line argument -# number of grid points: command-line argument - -# Maximum allowable size of each subdomain in the problem domain; -# this is used to decompose the domain for parallel calculations. -amr.max_grid_size = 64 - -# Maximum level in hierarchy (for now must be 0, i.e., one level in total) -amr.max_level = 0 - -# Geometry -geometry.dims = 3 -geometry.prob_lo = -20.e-6 -20.e-6 -20.e-6 # physical domain -geometry.prob_hi = 20.e-6 20.e-6 20.e-6 - -# Boundaries -boundary.field_lo = pec pec periodic -boundary.field_hi = pec pec periodic -boundary.particle_lo = absorbing absorbing periodic -boundary.particle_hi = absorbing absorbing periodic - -# Verbosity -warpx.verbose = 1 - -# Algorithms -algo.particle_shape = 3 - -# CFL -warpx.cfl = 1.0 - -particles.species_names = electrons ions - -electrons.charge = -q_e -electrons.mass = m_e -electrons.injection_style = "NUniformPerCell" -electrons.num_particles_per_cell_each_dim = 2 2 4 -electrons.profile = constant -electrons.density = 1.e20 # number of electrons per m^3 -electrons.momentum_distribution_type = "gaussian" -electrons.ux_th = 0.01 -electrons.uy_th = 0.01 -electrons.uz_th = 0.01 -electrons.ux_m = 0. -electrons.uy_m = 0. -electrons.uz_m = 100. - -ions.charge = q_e -ions.mass = m_p -ions.injection_style = "NUniformPerCell" -ions.num_particles_per_cell_each_dim = 2 2 4 -ions.profile = constant -ions.density = 1.e20 # number of electrons per m^3 -ions.momentum_distribution_type = "gaussian" -ions.ux_th = 0.01 -ions.uy_th = 0.01 -ions.uz_th = 0.01 -ions.ux_m = 0. -ions.uy_m = 0. -ions.uz_m = 100. diff --git a/Tools/PerformanceTests/automated_test_4_labdiags_2ppc b/Tools/PerformanceTests/automated_test_4_labdiags_2ppc deleted file mode 100644 index f49d92acf..000000000 --- a/Tools/PerformanceTests/automated_test_4_labdiags_2ppc +++ /dev/null @@ -1,79 +0,0 @@ -# Maximum number of time steps: command-line argument -# number of grid points: command-line argument - -amr.max_grid_size = 64 - -# Maximum level in hierarchy (for now must be 0, i.e., one level in total) -amr.max_level = 0 - -# Geometry -geometry.dims = 3 -geometry.prob_lo = -150.e-6 -150.e-6 -80.e-6 # physical domain -geometry.prob_hi = 150.e-6 150.e-6 0. - -# Boundaries -boundary.field_lo = pec pec pec -boundary.field_hi = pec pec pec -boundary.particle_lo = absorbing absorbing absorbing -boundary.particle_hi = absorbing absorbing absorbing - -# Verbosity -warpx.verbose = 1 - -# Numerics -algo.particle_shape = 3 -warpx.use_filter = 1 -warpx.cfl = 1.0 - -# Moving window -warpx.do_moving_window = 1 -warpx.moving_window_dir = z -warpx.moving_window_v = 1.0 # in units of the speed of light - -# Boosted frame -warpx.gamma_boost = 15. -warpx.boost_direction = z - -# Species -particles.species_names = electrons ions - -electrons.charge = -q_e -electrons.mass = m_e -electrons.injection_style = "NUniformPerCell" -electrons.xmin = -150.e-6 -electrons.xmax = 150.e-6 -electrons.ymin = -150.e-6 -electrons.ymax = 150.e-6 -electrons.zmin = 0.e-6 -electrons.num_particles_per_cell_each_dim = 1 1 1 -electrons.profile = constant -electrons.density = 1. -electrons.momentum_distribution_type = "at_rest" -electrons.do_continuous_injection = 1 - -ions.charge = q_e -ions.mass = m_p -ions.injection_style = "NUniformPerCell" -ions.xmin = -150.e-6 -ions.xmax = 150.e-6 -ions.ymin = -150.e-6 -ions.ymax = 150.e-6 -ions.zmin = 0.e-6 -ions.num_particles_per_cell_each_dim = 1 1 1 -ions.profile = constant -ions.density = 1. -ions.momentum_distribution_type = "at_rest" -ions.do_continuous_injection = 1 - -# Laser -lasers.names = laser -laser.profile = Gaussian -laser.position = 0. 0. -1.e-6 # This point is on the laser plane -laser.direction = 0. 0. 1. # The plane normal direction -laser.polarization = 1. 0. 0. # The main polarization vector -laser.e_max = 8.e12 # Maximum amplitude of the laser field (in V/m) -laser.profile_waist = 5.e-5 # The waist of the laser (in meters) -laser.profile_duration = 16.7e-15 # The duration of the laser (in seconds) -laser.profile_t_peak = 33.4e-15 # The time at which the laser reaches its peak (in seconds) -laser.profile_focal_distance = 0.e-6 # Focal distance from the antenna (in meters) -laser.wavelength = 0.8e-6 # The wavelength of the laser (in meters) diff --git a/Tools/PerformanceTests/automated_test_5_loadimbalance b/Tools/PerformanceTests/automated_test_5_loadimbalance deleted file mode 100644 index 76b1a53ef..000000000 --- a/Tools/PerformanceTests/automated_test_5_loadimbalance +++ /dev/null @@ -1,59 +0,0 @@ -# Maximum number of time steps: command-line argument -# number of grid points: command-line argument - -# Maximum allowable size of each subdomain in the problem domain; -# this is used to decompose the domain for parallel calculations. -amr.max_grid_size = 32 - -# Maximum level in hierarchy (for now must be 0, i.e., one level in total) -amr.max_level = 0 - -# Geometry -geometry.dims = 3 -geometry.prob_lo = -20.e-6 -20.e-6 -20.e-6 # physical domain -geometry.prob_hi = 20.e-6 20.e-6 20.e-6 - -# Boundaries -boundary.field_lo = pec pec periodic -boundary.field_hi = pec pec periodic -boundary.particle_lo = absorbing absorbing periodic -boundary.particle_hi = absorbing absorbing periodic - -warpx.verbose = 1 -algo.load_balance_intervals = -5 -algo.particle_shape = 3 - -# CFL -warpx.cfl = 1.0 - -particles.species_names = electrons ions - -electrons.charge = -q_e -electrons.mass = m_e -electrons.injection_style = "NUniformPerCell" -electrons.num_particles_per_cell_each_dim = 2 2 4 -electrons.profile = constant -electrons.density = 1.e20 # number of electrons per m^3 -electrons.momentum_distribution_type = "gaussian" -electrons.zmax = 0. -electrons.ux_th = 0.01 -electrons.uy_th = 0.01 -electrons.uz_th = 0.01 -electrons.ux_m = 0. -electrons.uy_m = 0. -electrons.uz_m = 0. - -ions.charge = q_e -ions.mass = m_p -ions.injection_style = "NUniformPerCell" -ions.num_particles_per_cell_each_dim = 2 2 4 -ions.profile = constant -ions.density = 1.e20 # number of electrons per m^3 -ions.momentum_distribution_type = "gaussian" -ions.zmax = 0. -ions.ux_th = 0.01 -ions.uy_th = 0.01 -ions.uz_th = 0.01 -ions.ux_m = 0. -ions.uy_m = 0. -ions.uz_m = 0. diff --git a/Tools/PerformanceTests/automated_test_6_output_2ppc b/Tools/PerformanceTests/automated_test_6_output_2ppc deleted file mode 100644 index afd4a6df3..000000000 --- a/Tools/PerformanceTests/automated_test_6_output_2ppc +++ /dev/null @@ -1,64 +0,0 @@ -# Maximum number of time steps: command-line argument -# number of grid points: command-line argument - -# Maximum allowable size of each subdomain in the problem domain; -# this is used to decompose the domain for parallel calculations. -amr.max_grid_size = 64 - -# Maximum level in hierarchy (for now must be 0, i.e., one level in total) -amr.max_level = 0 - -# Geometry -geometry.dims = 3 -geometry.prob_lo = -20.e-6 -20.e-6 -20.e-6 # physical domain -geometry.prob_hi = 20.e-6 20.e-6 20.e-6 - -# Boundaries -boundary.field_lo = pec pec pec -boundary.field_hi = pec pec pec -boundary.particle_lo = absorbing absorbing absorbing -boundary.particle_hi = absorbing absorbing absorbing - -# Verbosity -warpx.verbose = 1 - -algo.particle_shape = 3 - -# CFL -warpx.cfl = 1.0 - -particles.species_names = electrons ions - -electrons.charge = -q_e -electrons.mass = m_e -electrons.injection_style = "NUniformPerCell" -electrons.num_particles_per_cell_each_dim = 1 1 1 -electrons.profile = constant -electrons.density = 1.e20 # number of electrons per m^3 -electrons.momentum_distribution_type = "gaussian" -electrons.ux_th = 0.01 -electrons.uy_th = 0.01 -electrons.uz_th = 0.01 -electrons.ux_m = 0. -electrons.uy_m = 0. -electrons.uz_m = 0. - -ions.charge = q_e -ions.mass = m_p -ions.injection_style = "NUniformPerCell" -ions.num_particles_per_cell_each_dim = 1 1 1 -ions.profile = constant -ions.density = 1.e20 # number of electrons per m^3 -ions.momentum_distribution_type = "gaussian" -ions.ux_th = 0.01 -ions.uy_th = 0.01 -ions.uz_th = 0.01 -ions.ux_m = 0. -ions.uy_m = 0. -ions.uz_m = 0. - -# Diagnostics -diagnostics.diags_names = diag1 -diag1.intervals = 1 -diag1.file_prefix = "./diags/plt" -diag1.diag_type = Full diff --git a/Tools/PerformanceTests/cori.py b/Tools/PerformanceTests/cori.py deleted file mode 100644 index 046767713..000000000 --- a/Tools/PerformanceTests/cori.py +++ /dev/null @@ -1,171 +0,0 @@ -# Copyright 2019 Axel Huebl, Luca Fedeli, Maxence Thevenet -# -# -# This file is part of WarpX. -# -# License: BSD-3-Clause-LBNL - -import copy -import os - -from functions_perftest import test_element - -module_name = {'cpu': 'haswell.', 'knl': 'mic-knl.', 'gpu':'.'} - -def executable_name(compiler, architecture): - return 'perf_tests3d.' + compiler + \ - '.' + module_name[architecture] + 'TPROF.MTMPI.OMP.QED.ex' - -def get_config_command(compiler, architecture): - config_command = '' - config_command += 'module unload darshan;' - if architecture == 'knl': - if compiler == 'intel': - config_command += 'module unload PrgEnv-gnu;' - config_command += 'module load PrgEnv-intel;' - elif compiler == 'gnu': - config_command += 'module unload PrgEnv-intel;' - config_command += 'module load PrgEnv-gnu;' - config_command += 'module unload craype-haswell;' - config_command += 'module load craype-mic-knl;' - elif architecture == 'cpu': - if compiler == 'intel': - config_command += 'module unload PrgEnv-gnu;' - config_command += 'module load PrgEnv-intel;' - elif compiler == 'gnu': - config_command += 'module unload PrgEnv-intel;' - config_command += 'module load PrgEnv-gnu;' - config_command += 'module unload craype-mic-knl;' - config_command += 'module load craype-haswell;' - return config_command - -# This function runs a batch script with -# dependencies to perform the analysis -# after all performance tests are done. -def process_analysis(automated, cwd, compiler, architecture, n_node_list, start_date, path_source, path_results): - dependencies = '' - f_log = open(cwd + 'log_jobids_tmp.txt' ,'r') - for line in f_log.readlines(): - dependencies += line.split()[3] + ':' - - batch_string = '''#!/bin/bash -#SBATCH --job-name=warpx_1node_read -#SBATCH --time=00:07:00 -#SBATCH -C knl -#SBATCH -N 1 -#SBATCH -S 4 -#SBATCH -q regular -#SBATCH -e read_error.txt -#SBATCH -o read_output.txt -#SBATCH --mail-type=end -#SBATCH --account=m2852 -module load h5py-parallel -''' - batch_string += 'python run_automated.py --compiler=' + \ - compiler + ' --architecture=' + architecture + \ - ' --mode=read' + \ - ' --n_node_list=' + '"' + n_node_list + '"' + \ - ' --start_date=' + start_date + \ - ' --path_source=' + path_source + \ - ' --path_results=' + path_results - if automated == True: - batch_string += ' --automated' - batch_string += '\n' - batch_file = 'slurm_perfread' - f_exe = open(batch_file,'w') - f_exe.write(batch_string) - f_exe.close() - os.system('chmod 700 ' + batch_file) - print( 'process_analysis line: ' + 'sbatch --dependency afterok:' + dependencies[0:-1] + ' ' + batch_file) - os.system('sbatch --dependency afterok:' + dependencies[0:-1] + ' ' + batch_file) - -# Calculate simulation time. Take 5 min + 5 min / simulation -def time_min(nb_simulations): - return 5. + nb_simulations*5. - -def get_submit_job_command(): - return ' sbatch ' - -def get_batch_string(test_list, job_time_min, Cname, n_node): - - job_time_str = str(int(job_time_min/60)) + ':' + str(int(job_time_min%60)) + ':00' - - batch_string = '' - batch_string += '#!/bin/bash\n' - batch_string += '#SBATCH --job-name=' + test_list[0].input_file + '\n' - batch_string += '#SBATCH --time=' + job_time_str + '\n' - batch_string += '#SBATCH -C ' + Cname + '\n' - batch_string += '#SBATCH -N ' + str(n_node) + '\n' - batch_string += '#SBATCH -q regular\n' - batch_string += '#SBATCH -e error.txt\n' - batch_string += '#SBATCH --account=m2852\n' - batch_string += 'module unload PrgEnv-gnu\n' - batch_string += 'module load PrgEnv-intel\n' - return batch_string - -def get_run_string(current_test, architecture, n_node, count, bin_name, runtime_param_string): - srun_string = '' - srun_string += 'export OMP_NUM_THREADS=' + str(current_test.n_omp) + '\n' - # number of logical cores per MPI process - if architecture == 'cpu': - cflag_value = max(1, int(32/current_test.n_mpi_per_node) * 2) # Follow NERSC directives - elif architecture == 'knl': - cflag_value = max(1, int(64/current_test.n_mpi_per_node) * 4) # Follow NERSC directives - output_filename = 'out_' + '_'.join([current_test.input_file, str(n_node), str(current_test.n_mpi_per_node), str(current_test.n_omp), str(count)]) + '.txt' - srun_string += 'srun --cpu_bind=cores '+ \ - ' -n ' + str(n_node*current_test.n_mpi_per_node) + \ - ' -c ' + str(cflag_value) + \ - ' ./' + bin_name + \ - ' ' + current_test.input_file + \ - runtime_param_string + \ - ' > ' + output_filename + '\n' - return srun_string - -def get_test_list(n_repeat): - test_list_unq = [] - # n_node is kept to None and passed in functions as an external argument - # That way, several test_element_instance run with the same n_node on the same batch job - test_list_unq.append( test_element(input_file='automated_test_1_uniform_rest_32ppc', - n_mpi_per_node=8, - n_omp=8, - n_cell=[128, 128, 128], - max_grid_size=64, - blocking_factor=32, - n_step=10) ) - test_list_unq.append( test_element(input_file='automated_test_2_uniform_rest_1ppc', - n_mpi_per_node=8, - n_omp=8, - n_cell=[256, 256, 512], - max_grid_size=64, - blocking_factor=32, - n_step=10) ) - test_list_unq.append( test_element(input_file='automated_test_3_uniform_drift_4ppc', - n_mpi_per_node=8, - n_omp=8, - n_cell=[128, 128, 128], - max_grid_size=64, - blocking_factor=32, - n_step=10) ) - test_list_unq.append( test_element(input_file='automated_test_4_labdiags_2ppc', - n_mpi_per_node=8, - n_omp=8, - n_cell=[64, 64, 128], - max_grid_size=64, - blocking_factor=32, - n_step=50) ) - test_list_unq.append( test_element(input_file='automated_test_5_loadimbalance', - n_mpi_per_node=8, - n_omp=8, - n_cell=[128, 128, 128], - max_grid_size=64, - blocking_factor=32, - n_step=10) ) - test_list_unq.append( test_element(input_file='automated_test_6_output_2ppc', - n_mpi_per_node=8, - n_omp=8, - n_cell=[128, 256, 256], - max_grid_size=64, - blocking_factor=32, - n_step=1) ) - test_list = [copy.deepcopy(item) for item in test_list_unq for _ in range(n_repeat) ] - return test_list diff --git a/Tools/PerformanceTests/functions_perftest.py b/Tools/PerformanceTests/functions_perftest.py deleted file mode 100644 index 938bcb974..000000000 --- a/Tools/PerformanceTests/functions_perftest.py +++ /dev/null @@ -1,255 +0,0 @@ -# Copyright 2018-2019 Axel Huebl, Luca Fedeli, Maxence Thevenet -# Remi Lehe -# -# This file is part of WarpX. -# -# License: BSD-3-Clause-LBNL - -import copy -import os -import re -import shutil - -import git -import numpy as np -import pandas as pd - -# import cori -# import summit - -# Each instance of this class contains information for a single test. -class test_element(): - def __init__(self, input_file=None, n_node=None, n_mpi_per_node=None, - n_omp=None, n_cell=None, n_step=None, max_grid_size=None, - blocking_factor=None): - self.input_file = input_file - self.n_node = n_node - self.n_mpi_per_node = n_mpi_per_node - self.n_omp = n_omp - self.n_cell = n_cell - self.n_step = n_step - self.max_grid_size = max_grid_size - self.blocking_factor = blocking_factor - - def scale_n_cell(self, n_node=0): - n_cell_scaled = copy.deepcopy(self.n_cell) - index_dim = 0 - while n_node > 1: - n_cell_scaled[index_dim] *= 2 - n_node /= 2 - index_dim = (index_dim+1) % 3 - self.n_cell = n_cell_scaled - -def scale_n_cell(ncell, n_node): - ncell_scaled = ncell[:] - index_dim = 0 - while n_node > 1: - ncell_scaled[index_dim] *= 2 - n_node /= 2 - index_dim = (index_dim+1) % 3 - return ncell_scaled - -def store_git_hash(repo_path=None, filename=None, name=None): - repo = git.Repo(path=repo_path) - sha = repo.head.object.hexsha - file_handler = open( filename, 'a+' ) - file_handler.write( name + ':' + sha + ' ') - file_handler.close() - -def get_file_content(filename=None): - file_handler = open( filename, 'r' ) - file_content = file_handler.read() - file_handler.close() - return file_content - -def run_batch(run_name, res_dir, bin_name, config_command, architecture='knl',\ - Cname='knl', n_node=1, n_mpi=1, n_omp=1): - # Clean res_dir - if os.path.exists(res_dir): - shutil.rmtree(res_dir) - os.makedirs(res_dir) - # Copy files to res_dir - cwd = os.environ['WARPX'] + '/Tools/PerformanceTests/' - bin_dir = cwd + 'Bin/' - shutil.copy(bin_dir + bin_name, res_dir) - shutil.copyfile(cwd + run_name, res_dir + 'inputs') - os.chdir(res_dir) - batch_string = '' - batch_string += '#!/bin/bash\n' - batch_string += '#SBATCH --job-name=' + run_name + str(n_node) + str(n_mpi) + str(n_omp) + '\n' - batch_string += '#SBATCH --time=00:23:00\n' - batch_string += '#SBATCH -C ' + Cname + '\n' - batch_string += '#SBATCH -N ' + str(n_node) + '\n' - batch_string += '#SBATCH -q regular\n' - batch_string += '#SBATCH -e error.txt\n' - batch_string += '#SBATCH --account=m2852\n' - batch_string += 'export OMP_NUM_THREADS=' + str(n_omp) + '\n' - if architecture == 'cpu': - cflag_value = max(1, int(32/n_mpi) * 2) # Follow NERSC directives - batch_string += 'srun --cpu_bind=cores '+ \ - ' -n ' + str(n_node*n_mpi) + \ - ' -c ' + str(cflag_value) + \ - ' ./' + bin_name + ' inputs > perf_output.txt' - elif architecture == 'knl': - # number of logical cores per MPI process - cflag_value = max(1, int(64/n_mpi) * 4) # Follow NERSC directives - batch_string += 'srun --cpu_bind=cores ' + \ - ' -n ' + str(n_node*n_mpi) + \ - ' -c ' + str(cflag_value) + \ - ' ./' + bin_name + ' inputs > perf_output.txt\n' - batch_file = 'slurm' - f_exe = open(batch_file,'w') - f_exe.write(batch_string) - f_exe.close() - os.system('chmod 700 ' + bin_name) - os.system(config_command + 'sbatch ' + batch_file + ' >> ' + cwd + 'log_jobids_tmp.txt') - return 0 - -def run_batch_nnode(test_list, res_dir, cwd, bin_name, config_command, batch_string, submit_job_command): - # Clean res_dir - if os.path.exists(res_dir): - shutil.rmtree(res_dir, ignore_errors=True) - os.makedirs(res_dir) - # Copy files to res_dir - bin_dir = cwd + 'Bin/' - shutil.copy(bin_dir + bin_name, res_dir) - os.chdir(res_dir) - - for count, current_test in enumerate(test_list): - shutil.copy(cwd + current_test.input_file, res_dir) - batch_file = 'batch_script.sh' - f_exe = open(batch_file,'w') - f_exe.write(batch_string) - f_exe.close() - os.system('chmod 700 ' + bin_name) - os.system(config_command + submit_job_command + batch_file +\ - ' >> ' + cwd + 'log_jobids_tmp.txt') - -# Read output file and return init time and 1-step time -def read_run_perf(filename, n_steps): - timing_list = [] - # Search inclusive time to get simulation step time - partition_limit = 'NCalls Incl. Min Incl. Avg Incl. Max Max %' - with open(filename) as file_handler: - output_text = file_handler.read() - # Get total simulation time - line_match_totaltime = re.search('TinyProfiler total time across processes.*', output_text) - total_time = float(line_match_totaltime.group(0).split()[8]) - search_area = output_text.partition(partition_limit)[2] - line_match_looptime = re.search('\nWarpX::Evolve().*', search_area) - time_wo_initialization = float(line_match_looptime.group(0).split()[3]) - timing_list += [str(total_time - time_wo_initialization)] - timing_list += [str(time_wo_initialization/n_steps)] - partition_limit1 = 'NCalls Excl. Min Excl. Avg Excl. Max Max %' - partition_limit2 = 'NCalls Incl. Min Incl. Avg Incl. Max Max %' - file_handler.close() - with open(filename) as file_handler: - output_text = file_handler.read() - # Search EXCLISUSIVE routine timings - search_area = output_text.partition(partition_limit1)[2].partition(partition_limit2)[0] - pattern_list = ['\nParticleContainer::Redistribute().*',\ - '\nFabArray::FillBoundary().*',\ - '\nFabArray::ParallelCopy().*',\ - '\nPPC::CurrentDeposition.*',\ - '\nPPC::FieldGather.*',\ - '\nPPC::ParticlePush.*',\ - '\nPPC::Evolve::Copy.*',\ - '\nWarpX::EvolveEM().*',\ - 'Checkpoint().*',\ - 'WriteParticles().*',\ - '\nVisMF::Write(FabArray).*',\ - '\nWriteMultiLevelPlotfile().*',\ - '\nParticleContainer::RedistributeMPI().*'] - for pattern in pattern_list: - timing = '0' - line_match = re.search(pattern, search_area) - if line_match is not None: - timing = [str(float(line_match.group(0).split()[3])/n_steps)] - timing_list += timing - return timing_list - -# Write time into logfile -def write_perf_logfile(log_file, log_line): - f_log = open(log_file, 'a') - f_log.write(log_line) - f_log.close() - return 0 - -def get_nsteps(run_name): - with open(run_name) as file_handler: - run_name_text = file_handler.read() - line_match_nsteps = re.search('\nmax_step.*', run_name_text) - nsteps = float(line_match_nsteps.group(0).split()[2]) - return nsteps - -def extract_dataframe(filename, n_steps): - # Get init time and total time through Inclusive time - partition_limit_start = 'NCalls Incl. Min Incl. Avg Incl. Max Max %' - print(filename) - with open(filename) as file_handler: - output_text = file_handler.read() - # get total simulation time - line_match_totaltime = re.search('TinyProfiler total time across processes.*', output_text) - total_time = float(line_match_totaltime.group(0).split()[8]) - # get time performing steps as Inclusive WarpX::Evolve() time - search_area = output_text.partition(partition_limit_start)[2] - line_match_looptime = re.search('\nWarpX::Evolve().*', search_area) - time_wo_initialization = float(line_match_looptime.group(0).split()[3]) - # New, might break something - line_match_WritePlotFile = re.search('\nDiagnostics::FilterComputePackFlush().*', search_area) - if line_match_WritePlotFile is not None: - time_WritePlotFile = float(line_match_WritePlotFile.group(0).split()[3]) - else: - time_WritePlotFile = 0. - # Get timers for all routines - # Where to start and stop in the output_file - partition_limit_start = 'NCalls Excl. Min Excl. Avg Excl. Max Max %' - partition_limit_end = 'NCalls Incl. Min Incl. Avg Incl. Max Max %' - # Put file content in a string - with open(filename) as file_handler: - output_text = file_handler.read() - # Keep only profiling data - search_area = output_text.partition(partition_limit_start)[2]\ - .partition(partition_limit_end)[0] - list_string = search_area.split('\n')[2:-4] - time_array = np.zeros(len(list_string)) - column_list= [] - for i in np.arange(len(list_string)): - column_list.append(list_string[i].split()[0]) - time_array[i] = float(list_string[i].split()[3]) - df = pd.DataFrame(columns=column_list) - df.loc[0] = time_array - df['time_initialization'] = total_time - time_wo_initialization - df['time_running'] = time_wo_initialization - df['time_WritePlotFile'] = time_WritePlotFile - # df['string_output'] = partition_limit_start + '\n' + search_area - return df - -# Run a performance test in an interactive allocation -# def run_interactive(run_name, res_dir, n_node=1, n_mpi=1, n_omp=1): -# # Clean res_dir # -# if os.path.exists(res_dir): -# shutil.rmtree(res_dir) -# os.makedirs(res_dir) -# # Copy files to res_dir # -# shutil.copyfile(bin_dir + bin_name, res_dir + bin_name) -# shutil.copyfile(cwd + run_name, res_dir + 'inputs') -# os.chdir(res_dir) -# if args.architecture == 'cpu': -# cflag_value = max(1, int(32/n_mpi) * 2) # Follow NERSC directives # -# exec_command = 'export OMP_NUM_THREADS=' + str(n_omp) + ';' +\ -# 'srun --cpu_bind=cores ' + \ -# ' -n ' + str(n_node*n_mpi) + \ -# ' -c ' + str(cflag_value) + \ -# ' ./' + bin_name + ' inputs > perf_output.txt' -# elif args.architecture == 'knl': -# # number of logical cores per MPI process # -# cflag_value = max(1,int(68/n_mpi) * 4) # Follow NERSC directives # -# exec_command = 'export OMP_NUM_THREADS=' + str(n_omp) + ';' +\ -# 'srun --cpu_bind=cores ' + \ -# ' -n ' + str(n_node*n_mpi) + \ -# ' -c ' + str(cflag_value) + \ -# ' ./' + bin_name + ' inputs > perf_output.txt' -# os.system('chmod 700 ' + bin_name) -# os.system(config_command + exec_command) -# return 0 diff --git a/Tools/PerformanceTests/performance_log.txt b/Tools/PerformanceTests/performance_log.txt deleted file mode 100644 index 7f2d24534..000000000 --- a/Tools/PerformanceTests/performance_log.txt +++ /dev/null @@ -1,81 +0,0 @@ -## year month day run_name compiler architecture n_node n_mpi n_omp time_initialization time_one_iteration Redistribute FillBoundary ParallelCopy CurrentDeposition FieldGather ParthiclePush Copy EvolveEM Checkpoint WriteParticles Write_FabArray WriteMultiLevelPlotfile(unit: second) RedistributeMPI -2018 01 31 automated_test_1_uniform_rest_32ppc intel knl 1 16 8 3.14 0.3986 0.1713 0.01719 0.01615 0.06987 0.03636 0.01901 0.01999 0.003602 0 0 0 0 0.007262 -2018 01 31 automated_test_1_uniform_rest_32ppc intel knl 1 16 8 3.39 0.4009 0.1712 0.01676 0.01583 0.07061 0.03684 0.01926 0.02011 0.003687 0 0 0 0 0.007841 -2018 01 31 automated_test_1_uniform_rest_32ppc intel knl 1 16 8 2.91 0.4024 0.1716 0.01826 0.01918 0.0703 0.0363 0.01912 0.01989 0.003017 0 0 0 0 0.007256 -2018 01 31 automated_test_1_uniform_rest_32ppc intel knl 1 16 8 3.21 0.3997 0.1717 0.01706 0.0162 0.07026 0.03655 0.01928 0.01999 0.003687 0 0 0 0 0.006799 -2018 01 31 automated_test_2_uniform_rest_1ppc intel knl 1 16 8 0.89 0.4779 0.04441 0.1143 0.09117 0.1072 0.01254 0.003702 0.004217 0.01247 0 0 0 0 0.003441 -2018 01 31 automated_test_2_uniform_rest_1ppc intel knl 1 16 8 1.58 0.4626 0.04424 0.1048 0.0851 0.1073 0.01259 0.003767 0.004282 0.01311 0 0 0 0 0.002798 -2018 01 31 automated_test_2_uniform_rest_1ppc intel knl 1 16 8 1.63 0.4616 0.04441 0.1033 0.08398 0.1079 0.01312 0.003802 0.004224 0.01278 0 0 0 0 0.003188 -2018 01 31 automated_test_2_uniform_rest_1ppc intel knl 1 16 8 1.72 0.461 0.04419 0.1038 0.08424 0.1074 0.01257 0.003799 0.0043 0.01318 0 0 0 0 0.002816 -2018 01 31 automated_test_1_uniform_rest_32ppc intel knl 1 16 8 3.32 0.3986 0.1712 0.01804 0.01697 0.06999 0.03615 0.01842 0.01896 0.003445 0 0 0 0 0.00738 -2018 01 31 automated_test_1_uniform_rest_32ppc intel knl 1 16 8 3.17 0.3974 0.1711 0.01722 0.01587 0.07016 0.03642 0.01844 0.01902 0.003431 0 0 0 0 0.007332 -2018 01 31 automated_test_1_uniform_rest_32ppc intel knl 1 16 8 2.88 0.3946 0.1709 0.01686 0.01562 0.06972 0.03595 0.01848 0.01916 0.003269 0 0 0 0 0.006887 -2018 01 31 automated_test_1_uniform_rest_32ppc intel knl 1 16 8 2.95 0.4094 0.1708 0.01761 0.01632 0.07001 0.03651 0.01863 0.01906 0.003314 0 0 0 0 0.01898 -2018 01 31 automated_test_2_uniform_rest_1ppc intel knl 1 16 8 1.3 0.4787 0.04447 0.1139 0.09124 0.108 0.01287 0.003811 0.004205 0.01249 0 0 0 0 0.003045 -2018 01 31 automated_test_2_uniform_rest_1ppc intel knl 1 16 8 3.16 0.4578 0.04412 0.1015 0.08339 0.1078 0.01301 0.003919 0.004182 0.0125 0 0 0 0 0.002701 -2018 01 31 automated_test_2_uniform_rest_1ppc intel knl 1 16 8 2.78 0.4679 0.04418 0.1035 0.08456 0.1079 0.01303 0.003902 0.004214 0.0127 0 0 0 0 0.009118 -2018 01 31 automated_test_2_uniform_rest_1ppc intel knl 1 16 8 1.12 0.4613 0.04425 0.1043 0.08517 0.1073 0.01242 0.003797 0.004221 0.01239 0 0 0 0 0.003665 -2018 01 31 automated_test_3_uniform_drift_4ppc intel knl 1 16 8 0.48 0.1237 0.03056 0.01622 0.01468 0.02039 0.005016 0.003737 0.002632 0.00326 0 0 0 0 0.006871 -2018 01 31 automated_test_3_uniform_drift_4ppc intel knl 1 16 8 0.79 0.1287 0.0308 0.01706 0.01715 0.02042 0.005452 0.003636 0.002797 0.003143 0 0 0 0 0.007324 -2018 01 31 automated_test_3_uniform_drift_4ppc intel knl 1 16 8 0.9 0.1296 0.03084 0.01711 0.01731 0.02053 0.005379 0.003641 0.002843 0.003137 0 0 0 0 0.008151 -2018 01 31 automated_test_3_uniform_drift_4ppc intel knl 1 16 8 0.9 0.1323 0.03081 0.01703 0.01736 0.02065 0.005339 0.003638 0.002751 0.004008 0 0 0 0 0.01015 -2018 01 31 automated_test_4_labdiags_2ppc intel knl 1 16 8 0.85 0.2896 0.03832 0.06449 0.07493 0.003507 0.002987 0.0001515 0.0001762 0.007921 0.0371 0.001537 0 0.0004387 0.03832 -2018 01 31 automated_test_4_labdiags_2ppc intel knl 1 16 8 1.12 0.2895 0.03845 0.06423 0.07481 0.003489 0.002994 0.000152 0.0001779 0.00834 0.0357 0.001545 0 0.0005249 0.03845 -2018 01 31 automated_test_4_labdiags_2ppc intel knl 1 16 8 0.76 0.3243 0.03804 0.0646 0.07462 0.003483 0.002991 0.0001508 0.0001769 0.008051 0.05983 0.001565 0 0.005392 0.03804 -2018 01 31 automated_test_4_labdiags_2ppc intel knl 1 16 8 0.74 0.3143 0.03941 0.06478 0.07547 0.003486 0.003007 0.0001518 0.0001808 0.007845 0.05079 0.001543 0 0.0007033 0.03941 -2018 01 31 automated_test_5_loadimbalance intel knl 1 16 8 9.2 0.3845 0.08558 0.1042 0.1332 0 0 0 0 0.01226 0 0 0 0 0.08558 -2018 01 31 automated_test_5_loadimbalance intel knl 1 16 8 9.19 0.3864 0.085 0.1051 0.134 0 0 0 0 0.01202 0 0 0 0 0.085 -2018 01 31 automated_test_5_loadimbalance intel knl 1 16 8 8.98 0.3912 0.08665 0.1061 0.1356 0 0 0 0 0.01193 0 0 0 0 0.08665 -2018 01 31 automated_test_5_loadimbalance intel knl 1 16 8 9.03 0.3826 0.08484 0.1031 0.1329 0 0 0 0 0.01205 0 0 0 0 0.08484 -2018 01 31 automated_test_6_output_2ppc intel knl 1 16 8 3.6 1.086 0.0898 0.1311 0.09441 0.1345 0.027 0.008783 0.009792 0.02151 0.08454 0.04962 0 0.0008218 0.005303 -2018 01 31 automated_test_6_output_2ppc intel knl 1 16 8 4.7 1.136 0.09059 0.1437 0.09535 0.1358 0.02915 0.009238 0.01002 0.02315 0.09088 0.05006 0 0.01081 0.005381 -2018 01 31 automated_test_6_output_2ppc intel knl 1 16 8 4.0 1.132 0.09145 0.1377 0.09592 0.1365 0.02817 0.009353 0.0103 0.02447 0.066 0.05309 0 0.02047 0.009196 -2018 01 31 automated_test_6_output_2ppc intel knl 1 16 8 3.8 1.135 0.09088 0.1308 0.09623 0.135 0.02762 0.008839 0.009758 0.02561 0.1144 0.04874 0 0.0008693 0.008112 -2018 02 13 automated_test_1_uniform_rest_32ppc intel knl 1 16 8 3.87 0.4053 0.1754 0.01914 0.01871 0.0691 0.03648 0.01879 0.0193 0.003268 0 0 0 0 0.007445 -2018 02 13 automated_test_1_uniform_rest_32ppc intel knl 1 16 8 4.38 0.405 0.1741 0.01901 0.01839 0.07034 0.03718 0.01894 0.0195 0.003845 0 0 0 0 0.007187 -2018 02 13 automated_test_1_uniform_rest_32ppc intel knl 1 16 8 3.79 0.3999 0.1739 0.01859 0.01631 0.06918 0.0367 0.01906 0.01952 0.003278 0 0 0 0 0.006658 -2018 02 13 automated_test_1_uniform_rest_32ppc intel knl 1 16 8 3.93 0.4044 0.1746 0.01854 0.01695 0.06975 0.03721 0.0191 0.01941 0.003979 0 0 0 0 0.007381 -2018 02 13 automated_test_2_uniform_rest_1ppc intel knl 1 16 8 1.83 0.4773 0.04582 0.1089 0.08772 0.1072 0.01304 0.003335 0.004231 0.01385 0 0 0 0 0.002991 -2018 02 13 automated_test_2_uniform_rest_1ppc intel knl 1 16 8 1.51 0.4654 0.04556 0.1027 0.08351 0.1068 0.01292 0.003114 0.004249 0.01356 0 0 0 0 0.002748 -2018 02 13 automated_test_2_uniform_rest_1ppc intel knl 1 16 8 1.62 0.4755 0.0457 0.1082 0.08761 0.1069 0.0131 0.003205 0.00431 0.01388 0 0 0 0 0.002738 -2018 02 13 automated_test_2_uniform_rest_1ppc intel knl 1 16 8 1.44 0.4798 0.04561 0.1133 0.08962 0.1064 0.01246 0.003076 0.004241 0.01318 0 0 0 0 0.003164 -2018 02 13 automated_test_3_uniform_drift_4ppc intel knl 1 16 8 0.92 0.1282 0.03185 0.01747 0.01557 0.01956 0.005103 0.003455 0.00274 0.00346 0 0 0 0 0.007196 -2018 02 13 automated_test_3_uniform_drift_4ppc intel knl 1 16 8 0.97 0.1301 0.03157 0.01788 0.01732 0.01957 0.00508 0.003335 0.002803 0.003454 0 0 0 0 0.007446 -2018 02 13 automated_test_3_uniform_drift_4ppc intel knl 1 16 8 0.91 0.1289 0.03137 0.01765 0.0155 0.02026 0.005636 0.003513 0.002716 0.003381 0 0 0 0 0.007087 -2018 02 13 automated_test_3_uniform_drift_4ppc intel knl 1 16 8 0.64 0.1308 0.03142 0.0181 0.01777 0.01953 0.005204 0.003371 0.002782 0.003057 0 0 0 0 0.007769 -2018 02 13 automated_test_4_labdiags_2ppc intel knl 1 16 8 3.19 0.3005 0.0383 0.06396 0.07274 0.003502 0.003005 0.0001628 0.0001839 0.008869 0.04427 0.001522 0 0.0005522 0.0383 -2018 02 13 automated_test_4_labdiags_2ppc intel knl 1 16 8 1.41 0.2945 0.0389 0.06251 0.0723 0.003508 0.003009 0.000164 0.0001825 0.009131 0.04042 0.001538 0 0.0005936 0.0389 -2018 02 13 automated_test_4_labdiags_2ppc intel knl 1 16 8 1.32 0.3066 0.0387 0.06558 0.07547 0.003463 0.003017 0.0001631 0.0001837 0.008431 0.04955 0.001555 0 0.000454 0.0387 -2018 02 13 automated_test_4_labdiags_2ppc intel knl 1 16 8 0.71 0.3391 0.03987 0.06534 0.07626 0.003475 0.003004 0.0001643 0.0001821 0.008152 0.06677 0.001534 0 0.01029 0.03987 -2018 02 13 automated_test_5_loadimbalance intel knl 1 16 8 9.68 0.3956 0.08701 0.1051 0.1352 0 0 0 0 0.01387 0 0 0 0 0.08701 -2018 02 13 automated_test_5_loadimbalance intel knl 1 16 8 10.65 0.3987 0.0866 0.1051 0.1332 0 0 0 0 0.0191 0 0 0 0 0.0866 -2018 02 13 automated_test_5_loadimbalance intel knl 1 16 8 10.11 0.4013 0.08782 0.1087 0.1359 0 0 0 0 0.01379 0 0 0 0 0.08782 -2018 02 13 automated_test_5_loadimbalance intel knl 1 16 8 9.94 0.39 0.08702 0.1028 0.132 0 0 0 0 0.0142 0 0 0 0 0.08702 -2018 02 13 automated_test_6_output_2ppc intel knl 1 16 8 1.292 0.2639 0.01424 0.03424 0.01742 0.01893 0.003449 0.001364 0.001712 0.009362 0.04053 0.01765 0 0.002558 0.001185 -2018 02 13 automated_test_6_output_2ppc intel knl 1 16 8 0.779 0.3155 0.01125 0.03605 0.01628 0.02431 0.009672 0.002843 0.001334 0.008876 0.05925 0.02047 0 0.001897 0.0006917 -2018 02 13 automated_test_6_output_2ppc intel knl 1 16 8 0.635 0.2568 0.01083 0.03443 0.01592 0.01963 0.003027 0.001439 0.001286 0.009288 0.03879 0.01815 0 0.001509 0.0007743 -2018 02 13 automated_test_6_output_2ppc intel knl 1 16 8 1.371 0.2648 0.01401 0.03376 0.01593 0.01936 0.003443 0.001351 0.00169 0.01161 0.03936 0.01785 0 0.002107 0.001171 -2018 02 20 automated_test_1_uniform_rest_32ppc intel knl 1 16 8 3.7 0.4573 0.01159 0.02139 0.02206 0.06934 0.03845 0.0192 0.02062 0.003496 0 0 0 0 0.01159 -2018 02 20 automated_test_1_uniform_rest_32ppc intel knl 1 16 8 3.45 0.4603 0.01356 0.02085 0.02488 0.06946 0.03777 0.01908 0.02031 0.003356 0 0 0 0 0.01356 -2018 02 20 automated_test_1_uniform_rest_32ppc intel knl 1 16 8 3.72 0.4552 0.01245 0.02003 0.02013 0.06874 0.03766 0.01907 0.0203 0.003667 0 0 0 0 0.01245 -2018 02 20 automated_test_1_uniform_rest_32ppc intel knl 1 16 8 2.94 0.4557 0.01381 0.01979 0.02053 0.0687 0.03694 0.01886 0.02012 0.006396 0 0 0 0 0.01381 -2018 02 20 automated_test_2_uniform_rest_1ppc intel knl 1 16 8 1.33 0.4937 0.005316 0.1103 0.09802 0.1071 0.01258 0.00326 0.004435 0.01347 0 0 0 0 0.005316 -2018 02 20 automated_test_2_uniform_rest_1ppc intel knl 1 16 8 1.27 0.5063 0.004948 0.1213 0.1019 0.1067 0.01183 0.003056 0.004479 0.01327 0 0 0 0 0.004948 -2018 02 20 automated_test_2_uniform_rest_1ppc intel knl 1 16 8 2.2 0.4983 0.005787 0.1141 0.1002 0.1067 0.0121 0.00307 0.00445 0.01343 0 0 0 0 0.005787 -2018 02 20 automated_test_2_uniform_rest_1ppc intel knl 1 16 8 1.39 0.5018 0.005339 0.1152 0.1007 0.1073 0.01249 0.003196 0.004484 0.01348 0 0 0 0 0.005339 -2018 02 20 automated_test_3_uniform_drift_4ppc intel knl 1 16 8 0.98 0.1342 0.007843 0.01855 0.01798 0.01936 0.005198 0.003471 0.002626 0.003161 0 0 0 0 0.007843 -2018 02 20 automated_test_3_uniform_drift_4ppc intel knl 1 16 8 0.63 0.1367 0.008055 0.01917 0.01818 0.01992 0.006097 0.003388 0.002639 0.003079 0 0 0 0 0.008055 -2018 02 20 automated_test_3_uniform_drift_4ppc intel knl 1 16 8 0.66 0.1365 0.008017 0.0196 0.01819 0.01979 0.005769 0.00331 0.002668 0.003111 0 0 0 0 0.008017 -2018 02 20 automated_test_3_uniform_drift_4ppc intel knl 1 16 8 0.89 0.1367 0.008249 0.01947 0.01818 0.01956 0.005585 0.003341 0.002697 0.003217 0 0 0 0 0.008249 -2018 02 20 automated_test_4_labdiags_2ppc intel knl 1 16 8 1.14 0.3087 0.04174 0.0637 0.0734 0.00345 0.002967 0.0001664 0.0001849 0.008714 0.05156 0.001539 0 0.0004984 0.04174 -2018 02 20 automated_test_4_labdiags_2ppc intel knl 1 16 8 1.21 0.3407 0.07513 0.07261 0.0713 0.003428 0.002994 0.0001638 0.0001848 0.009408 0.003442 0.00173 0 0.0005256 0.07513 -2018 02 20 automated_test_4_labdiags_2ppc intel knl 1 16 8 1.73 0.347 0.04077 0.06476 0.07148 0.00345 0.002998 0.0001637 0.0001829 0.009379 0.03947 0.001574 0 0.04989 0.04077 -2018 02 20 automated_test_4_labdiags_2ppc intel knl 1 16 8 1.52 0.3469 0.04088 0.06365 0.07183 0.003493 0.002957 0.0001659 0.0001827 0.009064 0.04694 0.001959 0 0.04099 0.04088 -2018 02 20 automated_test_5_loadimbalance intel knl 1 16 8 9.92 0.4206 0.08811 0.1186 0.1402 0 0 0 0 0.01443 0 0 0 0 0.08811 -2018 02 20 automated_test_5_loadimbalance intel knl 1 16 8 9.12 0.3884 0.08626 0.1027 0.1305 0 0 0 0 0.01368 0 0 0 0 0.08626 -2018 02 20 automated_test_5_loadimbalance intel knl 1 16 8 9.91 0.4097 0.08598 0.1119 0.1381 0 0 0 0 0.01414 0 0 0 0 0.08598 -2018 02 20 automated_test_5_loadimbalance intel knl 1 16 8 9.63 0.4257 0.0876 0.1213 0.1441 0 0 0 0 0.01422 0 0 0 0 0.0876 -2018 02 20 automated_test_6_output_2ppc intel knl 1 16 8 1.23 0.274 0.003227 0.03782 0.01724 0.01945 0.003219 0.001468 0.0014 0.01094 0.03943 0.0175 0 0.00509 0.001122 -2018 02 20 automated_test_6_output_2ppc intel knl 1 16 8 2.076 0.3023 0.002995 0.035 0.01619 0.02462 0.01126 0.006984 0.001548 0.01009 0.04604 0.01734 0 0.08398 0.001151 -2018 02 20 automated_test_6_output_2ppc intel knl 1 16 8 1.378 0.273 0.004545 0.03721 0.01754 0.02039 0.003415 0.00145 0.001561 0.01058 0.04009 0.01763 0 0.002519 0.001187 -2018 02 20 automated_test_6_output_2ppc intel knl 1 16 8 1.61 0.2911 0.004065 0.03726 0.01782 0.02439 0.01289 0.003463 0.001689 0.008778 0.03975 0.01723 0 0.00247 0.00129 diff --git a/Tools/PerformanceTests/run_alltests.py b/Tools/PerformanceTests/run_alltests.py deleted file mode 100644 index af99df194..000000000 --- a/Tools/PerformanceTests/run_alltests.py +++ /dev/null @@ -1,353 +0,0 @@ -# Copyright 2017-2020 Luca Fedeli, Maxence Thevenet, Remi Lehe -# -# -# This file is part of WarpX. -# -# License: BSD-3-Clause-LBNL - -import argparse -import datetime -import os -import re -import shutil -import time - -from functions_perftest import * - -# This script runs automated performance tests for WarpX. -# It runs tests in list test_list defined below, and write -# results in file performance_log.txt in warpx/Tools/PerformanceTests/ - -# ---- User's manual ---- -# Before running performance tests, make sure you have the latest version -# of performance_log.txt -# A typical execution reads: -# > python run_alltests.py --no-recompile --compiler=gnu --architecture=cpu --mode=run --log_file='my_performance_log.txt' -# These are default values, and will give the same result as -# > python run_alltests.py -# To add a new test item, extent the test_list with a line like -# test_list.extend([['my_input_file', n_node, n_mpi, n_omp]]*3) -# - my_input_file must be in warpx/Tools/PerformanceTests -# - the test will run 3 times, to have some statistics -# - the test must take <1h or it will timeout - -# ---- Developer's manual ---- -# This script can run in two modes: -# - 'run' mode: for each test item, a batch job is executed. -# create folder '$SCRATCH/performance_warpx/' -# recompile the code if option --recompile is used -# loop over test_list and submit one batch script per item -# Submit a batch job that executes the script in read mode -# This last job runs once all others are completed -# - 'read' mode: Get performance data from all test items -# create performance log file if does not exist -# loop over test_file -# read initialization time and step time -# write data into the performance log file -# push file performance_log.txt on the repo - -# Define the list of tests to run -# ------------------------------- -# each element of test_list contains -# [str runname, int n_node, int n_mpi PER NODE, int n_omp] -test_list = [] -n_repeat = 3 - -test_list.extend([['ompscaling_32ppc' , 1, 1, 1]]*n_repeat) -test_list.extend([['ompscaling_32ppc' , 1, 1, 2]]*n_repeat) -test_list.extend([['ompscaling_32ppc' , 1, 1, 4]]*n_repeat) -test_list.extend([['ompscaling_32ppc' , 1, 1, 8]]*n_repeat) -test_list.extend([['ompscaling_32ppc' , 1, 1, 16]]*n_repeat) -test_list.extend([['ompscaling_32ppc' , 1, 1, 32]]*n_repeat) -test_list.extend([['ompscaling_32ppc' , 1, 1, 64]]*n_repeat) -test_list.extend([['ompscaling_32ppc' , 1, 1,128]]*n_repeat) -test_list.extend([['ompscaling_32ppc' , 1, 1,256]]*n_repeat) - -#test_list.extend([['mil_weak1_0ppc_1' , 1, 8, 8]]*n_repeat) -#test_list.extend([['mil_weak1_0ppc_8' , 8, 8, 8]]*n_repeat) -#test_list.extend([['mil_weak1_0ppc_64' , 64, 8, 8]]*n_repeat) -#test_list.extend([['mil_weak1_0ppc_512' , 512, 8, 8]]*n_repeat) -#test_list.extend([['mil_weak1_0ppc_1024' , 1024, 8, 8]]*n_repeat) -#test_list.extend([['mil_weak1_0ppc_2048' , 2048, 8, 8]]*n_repeat) -#test_list.extend([['mil_weak1_0ppc_4096' , 4096, 8, 8]]*n_repeat) - -#test_list.extend([['mil_weak1_32ppc_1' , 1, 8, 8]]*n_repeat) -#test_list.extend([['mil_weak1_32ppc_8' , 8, 8, 8]]*n_repeat) -#test_list.extend([['mil_weak1_32ppc_64' , 64, 8, 8]]*n_repeat) -#test_list.extend([['mil_weak1_32ppc_512' , 512, 8, 8]]*n_repeat) -#test_list.extend([['mil_weak1_32ppc_1024' , 1024, 8, 8]]*n_repeat) -#test_list.extend([['mil_weak1_32ppc_2048' , 2048, 8, 8]]*n_repeat) -#test_list.extend([['mil_weak1_32ppc_4096' , 4096, 8, 8]]*n_repeat) - -#test_list.extend([['strong_32ppc1' , 1, 8, 8]]*n_repeat) -#test_list.extend([['strong_32ppc1' , 8, 8, 8]]*n_repeat) -#test_list.extend([['strong_32ppc1' , 64, 8, 8]]*n_repeat) -#test_list.extend([['strong_32ppc1' , 128, 8, 8]]*n_repeat) -#test_list.extend([['strong_32ppc128' , 128, 8, 8]]*n_repeat) -#test_list.extend([['strong_32ppc128' , 256, 8, 8]]*n_repeat) -#test_list.extend([['strong_32ppc128' , 512, 8, 8]]*n_repeat) -#test_list.extend([['strong_32ppc128' , 1024, 8, 8]]*n_repeat) -#test_list.extend([['strong_32ppc128' , 2048, 8, 8]]*n_repeat) -#test_list.extend([['strong_32ppc128' , 4096, 8, 8]]*n_repeat) - -#test_list.extend([['strong1_0ppc_1' , 1, 8, 8]]*n_repeat) -#test_list.extend([['strong1_0ppc_1' , 8, 8, 8]]*n_repeat) -#test_list.extend([['strong1_0ppc_1' , 64, 8, 8]]*n_repeat) -#test_list.extend([['strong1_0ppc_1' , 128, 8, 8]]*n_repeat) -#test_list.extend([['strong1_0ppc_1' , 256, 8, 8]]*n_repeat) - -#test_list.extend([['strong1_0ppc_128' , 128, 8, 8]]*n_repeat) -#test_list.extend([['strong1_0ppc_128' , 256, 8, 8]]*n_repeat) -#test_list.extend([['strong1_0ppc_128' , 512, 8, 8]]*n_repeat) -#test_list.extend([['strong1_0ppc_128' , 1024, 8, 8]]*n_repeat) -#test_list.extend([['strong1_0ppc_128' , 2048, 8, 8]]*n_repeat) -#test_list.extend([['strong1_0ppc_128' , 4096, 8, 8]]*n_repeat) - -n_tests = len(test_list) - -# Read command-line arguments -# --------------------------- -# Create parser and read arguments -parser = argparse.ArgumentParser( - description='Run performance tests and write results in files') -parser.add_argument('--recompile', dest='recompile', action='store_true', default=False) -parser.add_argument('--no-recompile', dest='recompile', action='store_false', default=False) -parser.add_argument('--commit', dest='commit', action='store_true', default=False) -parser.add_argument( '--compiler', choices=['gnu', 'intel'], default='gnu', - help='which compiler to use') -parser.add_argument( '--architecture', choices=['cpu', 'knl'], default='cpu', - help='which architecture to cross-compile for NERSC machines') -parser.add_argument( '--mode', choices=['run', 'read'], default='run', - help='whether to run perftests or read their perf output. run calls read') -parser.add_argument( '--log_file', dest = 'log_file', default='my_performance_log.txt', - help='name of log file where data will be written. ignored if option --commit is used') -parser.add_argument( '--n_steps', dest = 'n_steps', default=None, - help='Number of time steps in the simulation. Should be read automatically from the input file') - -args = parser.parse_args() - -log_file = args.log_file -if args.commit == True: - log_file = 'performance_log.txt' - -# Dictionaries -# compiler names. Used for WarpX executable name -compiler_name = {'intel': 'intel', 'gnu': 'gcc'} -# architecture. Used for WarpX executable name -module_name = {'cpu': 'haswell', 'knl': 'mic-knl'} -# architecture. Used in batch scripts -module_Cname = {'cpu': 'haswell', 'knl': 'knl,quad,cache'} -# Define environment variables -cwd = os.getcwd() + '/' -res_dir_base = os.environ['SCRATCH'] + '/performance_warpx/' -bin_dir = cwd + 'Bin/' -bin_name = 'perf_tests3d.' + args.compiler + '.' + module_name[args.architecture] + '.TPROF.MTMPI.OMP.QED.ex' -log_dir = cwd - -perf_database_file = cwd + 'perf_database_warpx.h5' -do_rename = False -store_test = False - -day = time.strftime('%d') -month = time.strftime('%m') -year = time.strftime('%Y') - -# Initialize tests -# ---------------- -if args.mode == 'run': -# Set default options for compilation and execution - config_command = '' - config_command += 'module unload darshan;' - config_command += 'module load craype-hugepages4M;' - if args.architecture == 'knl': - if args.compiler == 'intel': - config_command += 'module unload PrgEnv-gnu;' - config_command += 'module load PrgEnv-intel;' - elif args.compiler == 'gnu': - config_command += 'module unload PrgEnv-intel;' - config_command += 'module load PrgEnv-gnu;' - config_command += 'module unload craype-haswell;' - config_command += 'module load craype-mic-knl;' - elif args.architecture == 'cpu': - if args.compiler == 'intel': - config_command += 'module unload PrgEnv-gnu;' - config_command += 'module load PrgEnv-intel;' - elif args.compiler == 'gnu': - config_command += 'module unload PrgEnv-intel;' - config_command += 'module load PrgEnv-gnu;' - config_command += 'module unload craype-mic-knl;' - config_command += 'module load craype-haswell;' - # Create main result directory if does not exist - if not os.path.exists(res_dir_base): - os.mkdir(res_dir_base) - -# Recompile if requested -if args.recompile == True: - with open(cwd + 'GNUmakefile_perftest') as makefile_handler: - makefile_text = makefile_handler.read() - makefile_text = re.sub('\nCOMP.*', '\nCOMP=%s' %compiler_name[args.compiler], makefile_text) - with open(cwd + 'GNUmakefile_perftest', 'w') as makefile_handler: - makefile_handler.write( makefile_text ) - os.system(config_command + " make -f GNUmakefile_perftest realclean ; " + " rm -r tmp_build_dir *.mod; make -j 8 -f GNUmakefile_perftest") - -# Define functions to run a test and analyse results -# -------------------------------------------------- -def process_analysis(): - dependencies = '' - f_log = open(cwd + 'log_jobids_tmp.txt','r') - for count, current_run in enumerate(test_list): - line = f_log.readline() - print(line) - dependencies += line.split()[3] + ':' - batch_string = '' - batch_string += '#!/bin/bash\n' - batch_string += '#SBATCH --job-name=warpx_read\n' - batch_string += '#SBATCH --time=00:05:00\n' - batch_string += '#SBATCH -C ' + module_Cname[args.architecture] + '\n' - batch_string += '#SBATCH -N 1\n' - batch_string += '#SBATCH -S 4\n' - batch_string += '#SBATCH -q regular\n' - batch_string += '#SBATCH -e read_error.txt\n' - batch_string += '#SBATCH -o read_output.txt\n' - batch_string += '#SBATCH --mail-type=end\n' - batch_string += '#SBATCH --account=m2852\n' - batch_string += 'python ' + __file__ + ' --no-recompile --compiler=' + \ - args.compiler + ' --architecture=' + args.architecture + \ - ' --mode=read' + ' --log_file=' + log_file - if args.commit == True: - batch_string += ' --commit' - batch_string += '\n' - batch_file = 'slurm_perfread' - f_exe = open(batch_file,'w') - f_exe.write(batch_string) - f_exe.close() - os.system('chmod 700 ' + batch_file) - os.system('sbatch --dependency afterok:' + dependencies[0:-1] + ' ' + batch_file) - return 0 - -# Loop over the tests and return run time + details -# ------------------------------------------------- -if args.mode == 'run': - # Remove file log_jobids_tmp.txt if exists. - # This file contains the jobid of every perf test - # It is used to manage the analysis script dependencies - if os.path.isfile(cwd + 'log_jobids_tmp.txt'): - os.remove(cwd + 'log_jobids_tmp.txt') - for count, current_run in enumerate(test_list): - # Results folder - print('run ' + str(current_run)) - run_name = current_run[0] - n_node = current_run[1] - n_mpi = current_run[2] - n_omp = current_run[3] - n_steps = get_nsteps(cwd + run_name) - res_dir = res_dir_base - res_dir += '_'.join([run_name, args.compiler,\ - args.architecture, str(n_node), str(n_mpi),\ - str(n_omp), str(count)]) + '/' - # Run the simulation. - # If you are currently in an interactive session and want to run interactive, - # just replace run_batch with run_interactive - run_batch(run_name, res_dir, bin_name, config_command, architecture=args.architecture, \ - Cname=module_Cname[args.architecture], n_node=n_node, n_mpi=n_mpi, n_omp=n_omp) - os.chdir(cwd) - process_analysis() - -if args.mode == 'read': - # Create log_file for performance tests if does not exist - if not os.path.isfile(log_dir + log_file): - log_line = '## year month day run_name compiler architecture n_node n_mpi ' +\ - 'n_omp time_initialization time_one_iteration Redistribute '+\ - 'FillBoundary ParallelCopy CurrentDeposition FieldGather '+\ - 'ParthiclePush Copy EvolveEM Checkpoint '+\ - 'WriteParticles Write_FabArray '+\ - 'WriteMultiLevelPlotfile '+\ - 'RedistributeMPI(unit: second)\n' - f_log = open(log_dir + log_file, 'a') - f_log.write(log_line) - f_log.close() - for count, current_run in enumerate(test_list): - # Results folder - print('read ' + str(current_run)) - run_name = current_run[0] - n_node = current_run[1] - n_mpi = current_run[2] - n_omp = current_run[3] - if args.n_steps is None: - n_steps = get_nsteps(cwd + run_name) - else: - n_steps = int(args.n_steps) - res_dir = res_dir_base - res_dir += '_'.join([run_name, args.compiler,\ - args.architecture, str(n_node), str(n_mpi),\ - str(n_omp), str(count)]) + '/' - # Read to store in text file - # -------------------------- - output_filename = 'perf_output.txt' - timing_list = read_run_perf(res_dir + output_filename, n_steps) - # Write performance data to the performance log file - log_line = ' '.join([year, month, day, run_name, args.compiler,\ - args.architecture, str(n_node), str(n_mpi),\ - str(n_omp)] + timing_list + ['\n']) - write_perf_logfile(log_dir + log_file, log_line) - - # Read data for all test to put in hdf5 a database - # ------------------------------------------------ - # This is an hdf5 file containing ALL the simulation parameters and results. Might be too large for a repo - df_newline = extract_dataframe(res_dir + 'perf_output.txt', n_steps) - # Add all simulation parameters to the dataframe - df_newline['run_name'] = run_name - df_newline['n_node'] = n_node - df_newline['n_mpi'] = n_mpi - df_newline['n_omp'] = n_omp - df_newline['n_steps'] = n_steps - df_newline['rep'] = count - df_newline['date'] = datetime.datetime.now() - input_file = open(cwd + run_name, 'r') - input_file_content = input_file.read() - input_file.close() - df_newline['inputs_content'] = input_file_content - if os.path.exists(perf_database_file): - df_base = pd.read_hdf(perf_database_file, 'all_data') - updated_df = df_base.append(df_newline, ignore_index=True) - else: - updated_df = df_newline - updated_df.to_hdf(perf_database_file, key='all_data', mode='w') - - # Store test parameters for record if requested - if store_test == True: - dir_record_base = './perf_warpx_record/' - if not os.path.exists(dir_record_base): - os.mkdir(dir_record_base) - count = 0 - dir_record = dir_record_base + '_'.join([year, month, day]) + '_0' - while os.path.exists(dir_record): - dir_record = dir_record[:-1] + str(count) - os.mkdir(dir_record) - shutil.copy(__file__, dir_record) - shutil.copy(log_dir + log_file, dir_record) - for count, current_run in enumerate(test_list): - shutil.copy(current_run[0], dir_record) - - if do_rename == True: - # Rename files if requested - for count, current_run in enumerate(test_list): - run_name = current_run[0] - n_node = current_run[1] - n_mpi = current_run[2] - n_omp = current_run[3] - res_dir = res_dir_base - res_dir += '_'.join([run_name, args.compiler,\ - args.architecture, str(n_node), str(n_mpi),\ - str(n_omp), str(count)]) + '/' - res_dir_arch = res_dir_base - res_dir_arch += '_'.join([year, month, day, run_name, args.compiler,\ - args.architecture, str(n_node), str(n_mpi), \ - str(n_omp), str(count)]) + '/' - os.rename(res_dir, res_dir_arch) - - # Commit results to the Repo - if args.commit == True: - os.system('git add ' + log_dir + log_file + ';'\ - 'git commit -m "performance tests";'\ - 'git push -u origin development') diff --git a/Tools/PerformanceTests/run_alltests_1node.py b/Tools/PerformanceTests/run_alltests_1node.py deleted file mode 100644 index 54900e9e0..000000000 --- a/Tools/PerformanceTests/run_alltests_1node.py +++ /dev/null @@ -1,362 +0,0 @@ -# Copyright 2018-2020 Luca Fedeli, Maxence Thevenet -# -# This file is part of WarpX. -# -# License: BSD-3-Clause-LBNL - -import argparse -import datetime -import os -import re -import shutil -import time - -from functions_perftest import * - -# This script runs automated performance tests for WarpX. -# It runs tests in list test_list defined below, and write -# results in file performance_log.txt in warpx/Tools/PerformanceTests/ - -# ---- User's manual ---- -# Before running performance tests, make sure you have the latest version -# of performance_log.txt - -# ---- Running a custom set of performance tests ---- -# > python run_alltests_1node.py --no-recompile --compiler=intel -# > --architecture=knl --mode=run --input_file=uniform_plasma -# > --n_node=1 --log_file='my_performance_log.txt' - -# ---- Running the pre-drefined automated tests ---- -# Compile and run: -# > python run_alltests_1node.py --automated --recompile -# Just run: -# > python run_alltests_1node.py --automated - -# To add a new test item, extent the test_list with a line like -# test_list.extend([['my_input_file', n_node, n_mpi, n_omp]]*n_repeat) -# - my_input_file must be in warpx/Tools/PerformanceTests - -# ---- Developer's manual ---- -# This script can run in two modes: -# - 'run' mode: for each test item, a batch job is executed. -# create folder '$SCRATCH/performance_warpx/' -# recompile the code if option --recompile is used -# loop over test_list and submit one batch script per item -# Submit a batch job that executes the script in read mode -# This last job runs once all others are completed -# - 'read' mode: Get performance data from all test items -# create performance log file if does not exist -# loop over test_file -# read initialization time and step time -# write data into the performance log file -# push file performance_log.txt on the repo - -# Read command-line arguments -# --------------------------- -# Create parser and read arguments -parser = argparse.ArgumentParser( - description='Run performance tests and write results in files') -parser.add_argument('--recompile', dest='recompile', action='store_true', default=False) -parser.add_argument('--no-recompile', dest='recompile', action='store_false', default=False) -parser.add_argument('--commit', dest='commit', action='store_true', default=False) -parser.add_argument( '--compiler', choices=['gnu', 'intel'], default='intel', - help='which compiler to use') -parser.add_argument( '--architecture', choices=['cpu', 'knl'], default='knl', - help='which architecture to cross-compile for NERSC machines') -parser.add_argument( '--mode', choices=['run', 'read'], default='run', - help='whether to run perftests or read their perf output. run calls read') -parser.add_argument( '--log_file', dest = 'log_file', default='my_performance_log.txt', - help='name of log file where data will be written. ignored if option --commit is used') -parser.add_argument('--n_node', dest='n_node', default=1, help='nomber of nodes for the runs') -parser.add_argument('--input_file', dest='input_file', default='input_file.pixr', - type=str, help='input file to run') -parser.add_argument('--automated', dest='automated', action='store_true', default=False, - help='Use to run the automated test list') - -args = parser.parse_args() -log_file = args.log_file -do_commit = args.commit -run_name = args.input_file - -# list of tests to run and analyse. -# Note: This is overwritten if option --automated is used -# each element of test_list contains -# [str input_file, int n_node, int n_mpi PER NODE, int n_omp] -test_list = [] -n_repeat = 2 -filename1 = args.input_file -test_list.extend([[filename1, 1, 128, 1]]*n_repeat) -test_list.extend([[filename1, 1, 64, 2]]*n_repeat) - -# Nothing should be changed after this line -# if flag --automated is used, test_list and do_commit are -# overwritten - -if args.automated == True: - test_list = [] - n_repeat = 2 - test_list.extend([['automated_test_1_uniform_rest_32ppc', 1, 16, 8]]*n_repeat) - test_list.extend([['automated_test_2_uniform_rest_1ppc', 1, 16, 8]]*n_repeat) - test_list.extend([['automated_test_3_uniform_drift_4ppc', 1, 16, 8]]*n_repeat) - test_list.extend([['automated_test_4_labdiags_2ppc', 1, 16, 8]]*n_repeat) - test_list.extend([['automated_test_5_loadimbalance', 1, 16, 8]]*n_repeat) - test_list.extend([['automated_test_6_output_2ppc', 1, 16, 8]]*n_repeat) - do_commit = False - run_name = 'automated_tests' - -n_tests = len(test_list) -if do_commit == True: - log_file = 'performance_log.txt' - -# Dictionaries -# compiler names. Used for WarpX executable name -compiler_name = {'intel': 'intel', 'gnu': 'gcc'} -# architecture. Used for WarpX executable name -module_name = {'cpu': 'haswell', 'knl': 'mic-knl'} -# architecture. Used in batch scripts -module_Cname = {'cpu': 'haswell', 'knl': 'knl,quad,cache'} -# Define environment variables -cwd = os.getcwd() + '/' -res_dir_base = os.environ['SCRATCH'] + '/performance_warpx/' -bin_dir = cwd + 'Bin/' -bin_name = 'perf_tests3d.' + args.compiler + '.' + module_name[args.architecture] + '.TPROF.MTMPI.OMP.QED.ex' -log_dir = cwd - -day = time.strftime('%d') -month = time.strftime('%m') -year = time.strftime('%Y') -n_node = int(args.n_node) - -perf_database_file = cwd + 'perf_database_warpx.h5' - -# Initialize tests -# ---------------- -if args.mode == 'run': -# Set default options for compilation and execution - config_command = '' - config_command += 'module unload darshan;' - config_command += 'module load craype-hugepages4M;' - if args.architecture == 'knl': - if args.compiler == 'intel': - config_command += 'module unload PrgEnv-gnu;' - config_command += 'module load PrgEnv-intel;' - elif args.compiler == 'gnu': - config_command += 'module unload PrgEnv-intel;' - config_command += 'module load PrgEnv-gnu;' - config_command += 'module unload craype-haswell;' - config_command += 'module load craype-mic-knl;' - elif args.architecture == 'cpu': - if args.compiler == 'intel': - config_command += 'module unload PrgEnv-gnu;' - config_command += 'module load PrgEnv-intel;' - elif args.compiler == 'gnu': - config_command += 'module unload PrgEnv-intel;' - config_command += 'module load PrgEnv-gnu;' - config_command += 'module unload craype-mic-knl;' - config_command += 'module load craype-haswell;' - # Create main result directory if does not exist - if not os.path.exists(res_dir_base): - os.mkdir(res_dir_base) - -# Recompile if requested -if args.recompile == True: - with open(cwd + 'GNUmakefile_perftest') as makefile_handler: - makefile_text = makefile_handler.read() - makefile_text = re.sub('\nCOMP.*', '\nCOMP=%s' %compiler_name[args.compiler], makefile_text) - with open(cwd + 'GNUmakefile_perftest', 'w') as makefile_handler: - makefile_handler.write( makefile_text ) - os.system(config_command + " make -f GNUmakefile_perftest realclean ; " + " rm -r tmp_build_dir *.mod; make -j 8 -f GNUmakefile_perftest") - -# This function runs a batch script with dependencies to perform the analysis -# when performance runs are done. -def process_analysis(): - dependencies = '' - f_log = open(cwd + 'log_jobids_tmp.txt','r') - line = f_log.readline() - print(line) - dependencies += line.split()[3] + ':' - batch_string = '' - batch_string += '#!/bin/bash\n' - batch_string += '#SBATCH --job-name=warpx_1node_read\n' - batch_string += '#SBATCH --time=00:05:00\n' - batch_string += '#SBATCH -C haswell\n' - batch_string += '#SBATCH -N 1\n' - batch_string += '#SBATCH -S 4\n' - batch_string += '#SBATCH -q regular\n' - batch_string += '#SBATCH -e read_error.txt\n' - batch_string += '#SBATCH -o read_output.txt\n' - batch_string += '#SBATCH --mail-type=end\n' - batch_string += '#SBATCH --account=m2852\n' - batch_string += 'python ' + __file__ + ' --no-recompile --compiler=' + \ - args.compiler + ' --architecture=' + args.architecture + \ - ' --mode=read' + ' --log_file=' + log_file + \ - ' --input_file=' + args.input_file - if do_commit == True: - batch_string += ' --commit' - if args.automated == True: - batch_string += ' --automated' - batch_string += '\n' - batch_file = 'slurm_perfread' - f_exe = open(batch_file,'w') - f_exe.write(batch_string) - f_exe.close() - os.system('chmod 700 ' + batch_file) - os.system('sbatch --dependency afterok:' + dependencies[0:-1] + ' ' + batch_file) - return 0 - -# Loop over the tests and return run time + details -# ------------------------------------------------- -if args.mode == 'run': - # Remove file log_jobids_tmp.txt if exists. - # This file contains the jobid of every perf test - # It is used to manage the analysis script dependencies - if os.path.isfile(cwd + 'log_jobids_tmp.txt'): - os.remove(cwd + 'log_jobids_tmp.txt') - res_dir = res_dir_base - res_dir += '_'.join([run_name, args.compiler,\ - args.architecture, str(n_node)]) + '/' - # Run the simulation. - run_batch_nnode(test_list, res_dir, bin_name, config_command,\ - architecture=args.architecture, Cname=module_Cname[args.architecture], \ - n_node=n_node) - os.chdir(cwd) - process_analysis() - -if args.mode == 'read': - # Create log_file for performance tests if does not exist - if not os.path.isfile(log_dir + log_file): - log_line = '## year month day input_file compiler architecture n_node n_mpi ' +\ - 'n_omp time_initialization time_one_iteration Redistribute '+\ - 'FillBoundary ParallelCopy CurrentDeposition FieldGather '+\ - 'ParthiclePush Copy EvolveEM Checkpoint '+\ - 'WriteParticles Write_FabArray '+\ - 'WriteMultiLevelPlotfile(unit: second) '+\ - 'RedistributeMPI\n' - f_log = open(log_dir + log_file, 'a') - f_log.write(log_line) - f_log.close() - for count, current_run in enumerate(test_list): - # Results folder - print('read ' + str(current_run)) - input_file = current_run[0] - # Do not read n_node = current_run[1], it is an external parameter - n_mpi = current_run[2] - n_omp = current_run[3] - n_steps = get_nsteps(cwd + input_file) - print('n_steps = ' + str(n_steps)) - res_dir = res_dir_base - res_dir += '_'.join([run_name, args.compiler,\ - args.architecture, str(n_node)]) + '/' - # Read performance data from the output file - output_filename = 'out_' + '_'.join([input_file, str(n_node), str(n_mpi), str(n_omp), str(count)]) + '.txt' - timing_list = read_run_perf(res_dir + output_filename, n_steps) - # Write performance data to the performance log file - log_line = ' '.join([year, month, day, input_file, args.compiler,\ - args.architecture, str(n_node), str(n_mpi),\ - str(n_omp)] + timing_list + ['\n']) - write_perf_logfile(log_dir + log_file, log_line) - # Read data for all test to put in hdf5 a database - # ------------------------------------------------ - # This is an hdf5 file containing ALL the simulation parameters and results. Might be too large for a repo - df_newline = extract_dataframe(res_dir + output_filename, n_steps) - # Add all simulation parameters to the dataframe - df_newline['run_name'] = run_name - df_newline['n_node'] = n_node - df_newline['n_mpi'] = n_mpi - df_newline['n_omp'] = n_omp - df_newline['n_steps'] = n_steps - df_newline['rep'] = count - df_newline['date'] = datetime.datetime.now() - input_file_open = open(cwd + input_file, 'r') - input_file_content = input_file_open.read() - input_file_open.close() - df_newline['inputs_content'] = input_file_content - if os.path.exists(perf_database_file): - df_base = pd.read_hdf(perf_database_file, 'all_data') - updated_df = df_base.append(df_newline, ignore_index=True) - else: - updated_df = df_newline - updated_df.to_hdf(perf_database_file, key='all_data', mode='w') - - # Store test parameters fot record - dir_record_base = './perf_warpx_record/' - if not os.path.exists(dir_record_base): - os.mkdir(dir_record_base) - count = 0 - dir_record = dir_record_base + '_'.join([year, month, day]) + '_0' - while os.path.exists(dir_record): - count += 1 - dir_record = dir_record[:-1] + str(count) - os.mkdir(dir_record) - shutil.copy(__file__, dir_record) - shutil.copy(log_dir + log_file, dir_record) - for count, current_run in enumerate(test_list): - shutil.copy(current_run[0], dir_record) - - # Rename directory with precise date for archive purpose - res_dir_arch = res_dir_base - res_dir_arch += '_'.join([year, month, day, run_name, args.compiler,\ - args.architecture, str(n_node)]) + '/' - os.rename(res_dir, res_dir_arch) - - # Commit results to the Repo - if do_commit == True: - os.system('git add ' + log_dir + log_file + ';'\ - 'git commit -m "performance tests";'\ - 'git push -u origin development') - - # Plot file - import matplotlib - import numpy as np - matplotlib.use('Agg') - import matplotlib.pyplot as plt - filename0 = 'my_performance_log' - filename = filename0 + '.txt' - fontsize = 14 - matplotlib.rcParams.update({'font.size': fontsize}) - nsteps = 100. - nrepeat = 4 - legends = [ 'n_node', 'n_mpi', 'n_omp', 'time_initialization', 'time_one_iteration', \ - 'Redistribute', 'FillBoundary', 'ParallelCopy', 'CurrentDeposition', \ - 'FieldGather', 'ParthiclePush', 'Copy', 'EvolveEM', 'Checkpoint', \ - 'WriteParticles', 'Write_FabArray', 'WriteMultiLevelPlotfile', \ - 'RedistributeMPI'] - date = np.loadtxt( filename, usecols = np.arange(0, 3 )) - data = np.loadtxt( filename, usecols = np.arange(6, 6+len(legends)) ) - # Read run name - with open(filename) as f: - namelist_tmp = zip(*[line.split() for line in f])[3] - # Remove first line = comments - namelist = list(namelist_tmp[1:]) - selector_list = ['automated_test_1_uniform_rest_32ppc',\ - 'automated_test_2_uniform_rest_1ppc',\ - 'automated_test_3_uniform_drift_4ppc',\ - 'automated_test_4_labdiags_2ppc',\ - 'automated_test_5_loadimbalance',\ - 'automated_test_6_output_2ppc'] - selector_string = selector_list[0] - selector = [idx for idx in range(len(namelist)) if selector_string in namelist[idx]] - lin_date = date[:,0]+date[:,1]/12.+date[:,2]/366. - unique_lin_date = np.unique(lin_date) - my_xticks = unique_lin_date -# cmap = plt.get_cmap("tab20") - cycle = plt.rcParams['axes.prop_cycle'].by_key()['color'] - for selector_string in selector_list: - selector = [idx for idx in range(len(namelist)) if selector_string in namelist[idx]] - plt.figure(num=0, figsize=(8,4)) - plt.clf() - plt.title('warpx ' + selector_string) - for i in np.arange(data.shape[1]): - icolors = i-3 - if i>3 and (data[selector,i] > 5./100*data[selector,4]).any(): - plt.plot(lin_date[selector], data[selector,i],'+', ms=6, \ - mew=2, label=legends[i] ) - # plt.plot(lin_date[selector], data[selector,i],'+', ms=6, \ - # mew=2, label=legends[i], color=cmap(i) ) - plt.xlabel('date') - plt.ylabel('time/step (s)') - plt.grid() - plt.legend(loc='best') - plt.legend(bbox_to_anchor=(1.1, 1.05)) - plt.savefig( selector_string + '.pdf', bbox_inches='tight') - plt.savefig( selector_string + '.png', bbox_inches='tight') diff --git a/Tools/PerformanceTests/run_automated.py b/Tools/PerformanceTests/run_automated.py deleted file mode 100644 index 14ce0fed2..000000000 --- a/Tools/PerformanceTests/run_automated.py +++ /dev/null @@ -1,332 +0,0 @@ -# Copyright 2018-2019 Axel Huebl, Luca Fedeli, Maxence Thevenet -# -# -# This file is part of WarpX. -# -# License: BSD-3-Clause-LBNL - -import argparse -import copy -import datetime -import os -import shutil -import sys -import time - -from functions_perftest import (extract_dataframe, get_file_content, - run_batch_nnode, store_git_hash) -import git -import pandas as pd - -# Get name of supercomputer and import configuration functions from -# machine-specific file -if os.getenv("LMOD_SYSTEM_NAME") == 'summit': - machine = 'summit' - from summit import (executable_name, get_batch_string, get_config_command, - get_run_string, get_submit_job_command, get_test_list, - process_analysis, time_min) -if os.getenv("NERSC_HOST") == 'cori': - machine = 'cori' - from cori import (executable_name, get_batch_string, get_config_command, - get_run_string, get_submit_job_command, get_test_list, - process_analysis, time_min) - -# typical use: python run_automated.py --n_node_list='1,8,16,32' --automated -# Assume warpx, picsar, amrex and perf_logs repos ar in the same directory and -# environment variable AUTOMATED_PERF_TESTS contains the path to this directory - -# requirements: -# - python packages: gitpython and pandas -# - AUTOMATED_PERF_TESTS: environment variables where warpx, -# amrex and picsar are installed ($AUTOMATED_PERF_TESTS/warpx etc.) -# - SCRATCH: environment variable where performance results are written. -# This script will create folder $SCRATCH/performance_warpx/ - -if "AUTOMATED_PERF_TESTS" not in os.environ: - raise ValueError("environment variable AUTOMATED_PERF_TESTS is not defined.\n" - "It should contain the path to the directory where WarpX, " - "AMReX and PICSAR repos are.") -if "SCRATCH" not in os.environ: - raise ValueError("environment variable SCRATCH is not defined.\n" - "This script will create $SCRATCH/performance_warpx/ " - "to store performance results.") -# Handle parser -############### -parser = argparse.ArgumentParser( description='Run performance tests and write results in files' ) -parser.add_argument('--recompile', - dest='recompile', - action='store_true', - default=False) -parser.add_argument('--commit', - dest='commit', - action='store_true', - default=False) -parser.add_argument('--automated', - dest='automated', - action='store_true', - default=False, - help='Use to run the automated test list') -parser.add_argument('--n_node_list', - dest='n_node_list', - default=[], - help='list ofnumber of nodes for the runs', type=str) -parser.add_argument('--start_date', - dest='start_date' ) -parser.add_argument('--compiler', - choices=['gnu', 'intel', 'pgi'], - default='intel', - help='which compiler to use') -parser.add_argument('--architecture', - choices=['cpu', 'knl', 'gpu'], - default='knl', - help='which architecture to cross-compile for NERSC machines') -parser.add_argument('--mode', - choices=['run', 'read', 'browse_output_files'], - default='run', - help='whether to run perftests or read their perf output. run calls read') -parser.add_argument('--path_source', - default=None, - help='path to parent folder containing amrex, picsar and warpx folders') -parser.add_argument('--path_results', - default=None, - help='path to result directory, where simulations run') - -args = parser.parse_args() -n_node_list_string = args.n_node_list.split(',') -n_node_list = [int(i) for i in n_node_list_string] -start_date = args.start_date - -# Set behavior variables -######################## -run_name = 'custom_perftest' -perf_database_file = 'my_tests_database.h5' -rename_archive = False -store_full_input = False -update_perf_log_repo = False -push_on_perf_log_repo = False -recompile = args.recompile -pull_3_repos = False -recompile = True -compiler = args.compiler -architecture = args.architecture -source_dir_base = args.path_source -res_dir_base = args.path_results - -browse_output_files = False -if args.mode == 'browse_output_files': - browse_output_file = True -if args.mode == 'read': - browse_output_files = True - -if args.automated == True: - run_name = 'automated_tests' - perf_database_file = machine + '_results.h5' - rename_archive = True - store_full_input = False - update_perf_log_repo = True - push_on_perf_log_repo = False - pull_3_repos = True - recompile = True - source_dir_base = os.environ['AUTOMATED_PERF_TESTS'] - res_dir_base = os.environ['SCRATCH'] + '/performance_warpx/' - if machine == 'summit': - compiler = 'gnu' - architecture = 'gpu' - -# List of tests to perform -# ------------------------ -# Each test runs n_repeat times -n_repeat = 2 -# test_list is machine-specific -test_list = get_test_list(n_repeat) - -# Define directories -# ------------------ -warpx_dir = source_dir_base + '/warpx/' -picsar_dir = source_dir_base + '/picsar/' -amrex_dir = source_dir_base + '/amrex/' -perf_logs_repo = source_dir_base + 'perf_logs/' - -# Define dictionaries -# ------------------- -compiler_name = {'intel': 'intel', 'gnu': 'gcc', 'pgi':'pgi'} -module_Cname = {'cpu': 'haswell', 'knl': 'knl,quad,cache', 'gpu':''} -csv_file = {'cori':'cori_knl.csv', 'summit':'summit.csv'} -# cwd = os.getcwd() + '/' -cwd = warpx_dir + 'Tools/PerformanceTests/' - -path_hdf5 = cwd -if args.automated: - path_hdf5 = perf_logs_repo + '/logs_hdf5/' - -bin_dir = cwd + 'Bin/' -bin_name = executable_name(compiler, architecture) - -log_dir = cwd -day = time.strftime('%d') -month = time.strftime('%m') -year = time.strftime('%Y') - -# Initialize tests -# ---------------- -if args.mode == 'run': - start_date = datetime.datetime.now().strftime("%Y_%m_%d_%H_%M_%S") - # Set default options for compilation and execution - config_command = get_config_command(compiler, architecture) - # Create main result directory if does not exist - if not os.path.exists(res_dir_base): - os.mkdir(res_dir_base) - - # Recompile if requested - # ---------------------- - if recompile == True: - if pull_3_repos == True: - git_repo = git.cmd.Git( picsar_dir ) - git_repo.pull() - git_repo = git.cmd.Git( amrex_dir ) - git_repo.pull() - git_repo = git.cmd.Git( warpx_dir ) - git_repo.pull() - - # Copy WarpX/GNUmakefile to current directory and recompile - # with specific options for automated performance tests. - # This way, performance test compilation does not mess with user's - # compilation - shutil.copyfile("../../GNUmakefile","./GNUmakefile") - make_realclean_command = " make realclean WARPX_HOME=../.. " \ - "AMREX_HOME=../../../amrex/ PICSAR_HOME=../../../picsar/ " \ - "EBASE=perf_tests COMP=%s" %compiler_name[compiler] + ";" - make_command = "make -j 16 WARPX_HOME=../.. " \ - "AMREX_HOME=../../../amrex/ PICSAR_HOME=../../../picsar/ " \ - "EBASE=perf_tests COMP=%s" %compiler_name[compiler] - if machine == 'summit': - make_command += ' USE_GPU=TRUE ' - os.system(config_command + make_realclean_command + \ - "rm -r tmp_build_dir *.mod; " + make_command ) - - # Store git hashes for WarpX, AMReX and PICSAR into file, so that - # they can be read when running the analysis. - if os.path.exists( cwd + 'store_git_hashes.txt' ): - os.remove( cwd + 'store_git_hashes.txt' ) - store_git_hash(repo_path=picsar_dir, filename=cwd + 'store_git_hashes.txt', name='picsar') - store_git_hash(repo_path=amrex_dir , filename=cwd + 'store_git_hashes.txt', name='amrex' ) - store_git_hash(repo_path=warpx_dir , filename=cwd + 'store_git_hashes.txt', name='warpx' ) - -# Loop over the tests and run all simulations: -# One batch job submitted per n_node. Several -# tests run within the same batch job. -# -------------------------------------------- -if args.mode == 'run': - if os.path.exists( 'log_jobids_tmp.txt' ): - os.remove( 'log_jobids_tmp.txt' ) - # loop on n_node. One batch script per n_node - for n_node in n_node_list: - res_dir = res_dir_base - res_dir += '_'.join([run_name, compiler, architecture, str(n_node)]) + '/' - runtime_param_list = [] - # Deep copy as we change the attribute n_cell of - # each instance of class test_element - test_list_n_node = copy.deepcopy(test_list) - job_time_min = time_min(len(test_list)) - batch_string = get_batch_string(test_list_n_node, job_time_min, module_Cname[architecture], n_node) - # Loop on tests - for count, current_run in enumerate(test_list_n_node): - current_run.scale_n_cell(n_node) - runtime_param_string = ' amr.n_cell=' + ' '.join(str(i) for i in current_run.n_cell) - runtime_param_string += ' amr.max_grid_size=' + str(current_run.max_grid_size) - runtime_param_string += ' amr.blocking_factor=' + str(current_run.blocking_factor) - runtime_param_string += ' max_step=' + str( current_run.n_step ) - # runtime_param_list.append( runtime_param_string ) - run_string = get_run_string(current_run, architecture, n_node, count, bin_name, runtime_param_string) - batch_string += run_string - batch_string += 'rm -rf plotfiles lab_frame_data diags\n' - - submit_job_command = get_submit_job_command() - # Run the simulations. - run_batch_nnode(test_list_n_node, res_dir, cwd, bin_name, config_command, batch_string, submit_job_command) - os.chdir(cwd) - # submit batch for analysis - if os.path.exists( 'read_error.txt' ): - os.remove( 'read_error.txt' ) - if os.path.exists( 'read_output.txt' ): - os.remove( 'read_output.txt' ) - process_analysis(args.automated, cwd, compiler, architecture, - args.n_node_list, start_date, source_dir_base, res_dir_base) - -# read the output file from each test and store timers in -# hdf5 file with pandas format -# ------------------------------------------------------- -for n_node in n_node_list: - print(n_node) - if browse_output_files: - res_dir = res_dir_base - res_dir += '_'.join([run_name, compiler,\ - architecture, str(n_node)]) + '/' - for count, current_run in enumerate(test_list): - # Read performance data from the output file - output_filename = 'out_' + '_'.join([current_run.input_file, str(n_node), str(current_run.n_mpi_per_node), str(current_run.n_omp), str(count)]) + '.txt' - # Read data for all test to put in hdf5 a database - # This is an hdf5 file containing ALL the simulation - # parameters and results. Might be too large for a repo - df_newline = extract_dataframe(res_dir + output_filename, current_run.n_step) - # Add all simulation parameters to the dataframe - df_newline['git_hashes'] = get_file_content(filename=cwd+'store_git_hashes.txt') - df_newline['start_date'] = start_date - df_newline['run_name'] = run_name - df_newline['input_file'] = current_run.input_file - df_newline['n_node'] = n_node - df_newline['n_mpi_per_node'] = current_run.n_mpi_per_node - df_newline['n_omp'] = current_run.n_omp - df_newline['n_steps'] = current_run.n_step - df_newline['rep'] = count%n_repeat - df_newline['date'] = datetime.datetime.now() - if store_full_input: - df_newline['inputs_content'] = get_file_content( filename=cwd+current_run.input_file ) - # Load file perf_database_file if exists, and - # append with results from this scan - if os.path.exists(path_hdf5 + perf_database_file): - df_base = pd.read_hdf(path_hdf5 + perf_database_file, 'all_data') - updated_df = df_base.append(df_newline, ignore_index=True) - else: - updated_df = df_newline - # Write dataframe to file perf_database_file - # (overwrite if file exists) - updated_df.to_hdf(path_hdf5 + perf_database_file, key='all_data', mode='w', format='table') - -# Extract sub-set of pandas data frame, write it to -# csv file and copy this file to perf_logs repo -# ------------------------------------------------- -if args.mode=='read' and update_perf_log_repo: - # get perf_logs repo - git_repo = git.Repo( perf_logs_repo ) - if push_on_perf_log_repo: - git_repo.git.stash('save') - git_repo.git.pull() - os.chdir( perf_logs_repo ) - sys.path.append('./') - import write_csv - git_repo.git.add('./logs_csv/' + csv_file[machine]) - git_repo.git.add('./logs_hdf5/' + perf_database_file) - index = git_repo.index - index.commit("automated tests") - -# Rename all result directories for archiving purposes: -# include date in the name, and a counter to avoid over-writing -for n_node in n_node_list: - if browse_output_files: - res_dir = res_dir_base - res_dir += '_'.join([run_name, compiler,\ - architecture, str(n_node)]) + '/' - # Rename directory with precise date+hour for archive purpose - if rename_archive == True: - loc_counter = 0 - res_dir_arch = res_dir_base - res_dir_arch += '_'.join([year, month, day, run_name, compiler,\ - architecture, str(n_node), str(loc_counter)]) + '/' - while os.path.exists( res_dir_arch ): - loc_counter += 1 - res_dir_arch = res_dir_base - res_dir_arch += '_'.join([year, month, day, run_name, compiler,\ - architecture, str(n_node), str(loc_counter)]) + '/' - print("renaming " + res_dir + " -> " + res_dir_arch) - os.rename( res_dir, res_dir_arch ) diff --git a/Tools/PerformanceTests/summit.py b/Tools/PerformanceTests/summit.py deleted file mode 100644 index cb0200e19..000000000 --- a/Tools/PerformanceTests/summit.py +++ /dev/null @@ -1,146 +0,0 @@ -# Copyright 2019 Axel Huebl, Luca Fedeli, Maxence Thevenet -# -# -# This file is part of WarpX. -# -# License: BSD-3-Clause-LBNL - -# requirements: -# - module load python/3.7.0-anaconda3-5.3.0 - -import copy -import os - -from functions_perftest import test_element - - -def executable_name(compiler,architecture): - return 'perf_tests3d.' + compiler + '.TPROF.MTMPI.CUDA.QED.GPUCLOCK.ex' - -def get_config_command(compiler, architecture): - config_command = '' - config_command += 'module load gcc;' - config_command += 'module load cuda;' - return config_command - -# This function runs a batch script with -# dependencies to perform the analysis -# after all performance tests are done. -def process_analysis(automated, cwd, compiler, architecture, n_node_list, start_date, path_source, path_results): - - batch_string = '''#!/bin/bash -#BSUB -P APH114 -#BSUB -W 00:10 -#BSUB -nnodes 1 -#BSUB -J perf_test -#BSUB -o read_output.txt -#BSUB -e read_error.txt -''' - f_log = open(cwd + 'log_jobids_tmp.txt' ,'r') - for line in f_log.readlines(): - dependency = line.split()[1][1:-1] - batch_string += '#BSUB -w ended(' + dependency + ')\n' - - batch_string += 'python run_automated.py --compiler=' + \ - compiler + ' --architecture=' + architecture + \ - ' --mode=read' + \ - ' --n_node_list=' + '"' + n_node_list + '"' + \ - ' --start_date=' + start_date + \ - ' --path_source=' + path_source + \ - ' --path_results=' + path_results - if automated == True: - batch_string += ' --automated' - batch_string += '\n' - batch_file = 'bsub_perfread' - f_exe = open(batch_file,'w') - f_exe.write(batch_string) - f_exe.close() - os.system('chmod 700 ' + batch_file) - print( 'process_analysis line: ' + 'bsub ' + batch_file) - os.system('bsub ' + batch_file) - -# Calculate simulation time. Take 2 min + 2 min / simulation -def time_min(nb_simulations): - return 2. + nb_simulations*2. - -def get_submit_job_command(): - return ' bsub ' - -def get_batch_string(test_list, job_time_min, Cname, n_node): - - job_time_str = str(int(job_time_min/60)) + ':' + str(int(job_time_min%60)) - - batch_string = '' - batch_string += '#!/bin/bash\n' - batch_string += '#BSUB -P APH114\n' - batch_string += '#BSUB -W ' + job_time_str + '\n' - batch_string += '#BSUB -nnodes ' + str(n_node) + '\n' - batch_string += '#BSUB -J ' + test_list[0].input_file + '\n' - batch_string += '#BSUB -e error.txt\n' - batch_string += 'module load gcc\n' - batch_string += 'module load cuda\n' - return batch_string - -def get_run_string(current_test, architecture, n_node, count, bin_name, runtime_param_string): - - output_filename = 'out_' + '_'.join([current_test.input_file, str(n_node), str(current_test.n_mpi_per_node), str(current_test.n_omp), str(count)]) + '.txt' - - ngpu = str(current_test.n_mpi_per_node) - srun_string = '' - srun_string += 'jsrun ' - srun_string += ' -n ' + str(n_node) - srun_string += ' -a ' + ngpu + ' -g ' + ngpu + ' -c ' + ngpu + ' --bind=packed:1 ' - srun_string += ' ./' + bin_name + ' ' - srun_string += current_test.input_file + ' ' - srun_string += runtime_param_string - srun_string += ' > ' + output_filename + '\n' - return srun_string - -def get_test_list(n_repeat): - test_list_unq = [] - # n_node is kept to None and passed in functions as an external argument - # That way, several test_element_instance run with the same n_node on the same batch job - test_list_unq.append( test_element(input_file='automated_test_1_uniform_rest_32ppc', - n_mpi_per_node=6, - n_omp=1, - n_cell=[128, 128, 192], - max_grid_size=256, - blocking_factor=32, - n_step=10) ) - test_list_unq.append( test_element(input_file='automated_test_2_uniform_rest_1ppc', - n_mpi_per_node=6, - n_omp=1, - n_cell=[256, 512, 768], - max_grid_size=512, - blocking_factor=256, - n_step=10) ) - test_list_unq.append( test_element(input_file='automated_test_3_uniform_drift_4ppc', - n_mpi_per_node=6, - n_omp=1, - n_cell=[128, 128, 384], - max_grid_size=256, - blocking_factor=64, - n_step=10) ) - test_list_unq.append( test_element(input_file='automated_test_4_labdiags_2ppc', - n_mpi_per_node=6, - n_omp=1, - n_cell=[384, 256, 512], - max_grid_size=256, - blocking_factor=128, - n_step=50) ) - test_list_unq.append( test_element(input_file='automated_test_5_loadimbalance', - n_mpi_per_node=6, - n_omp=1, - n_cell=[64, 64, 192], - max_grid_size=64, - blocking_factor=32, - n_step=10) ) - test_list_unq.append( test_element(input_file='automated_test_6_output_2ppc', - n_mpi_per_node=6, - n_omp=1, - n_cell=[384, 256, 512], - max_grid_size=256, - blocking_factor=64, - n_step=1) ) - test_list = [copy.deepcopy(item) for item in test_list_unq for _ in range(n_repeat) ] - return test_list diff --git a/Tools/PostProcessing/Visualization.ipynb b/Tools/PostProcessing/Visualization.ipynb deleted file mode 100644 index ef05b69c2..000000000 --- a/Tools/PostProcessing/Visualization.ipynb +++ /dev/null @@ -1,142 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Overview\n", - "\n", - "This a notebook that inspects the results of a WarpX simulation." - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "# Import statements\n", - "import yt ; yt.funcs.mylog.setLevel(50)\n", - "import numpy as np\n", - "import scipy.constants as scc\n", - "import matplotlib.pyplot as plt\n", - "%matplotlib notebook" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## Read data in the simulation frame" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Instruction\n", - "\n", - "Enter the path of the data you wish to visualize below. Then execute the cells one by one, by selecting them with your mouse and typing `Shift + Enter`" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "diag_name = 'diag' # E.g., diagnostics.diags_names = diag\n", - "iteration = 0\n", - "plotfile = './diags/{}{:05d}'.format(diag_name, iteration)\n", - "field = 'Ex'\n", - "species = 'electron'\n", - "ds = yt.load( plotfile ) # Load the plotfile\n", - "# ds.field_list # Print all available quantities" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "### Plot data with yt" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "sl = yt.SlicePlot(ds, 2, field, aspect=.2) # Create a sliceplot object\n", - "sl.annotate_particles(width=(10.e-6, 'm'), p_size=2, ptype=species, col='black')\n", - "sl.annotate_grids() # Show grids\n", - "sl.show() # Show the plot" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "### Store quantities in numpy arrays, and plot with matplotlib" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "# Get field quantities\n", - "all_data_level_0 = ds.covering_grid(level=0,left_edge=ds.domain_left_edge, dims=ds.domain_dimensions)\n", - "Bx = all_data_level_0['boxlib', field].v.squeeze()\n", - "Dx = ds.domain_width/ds.domain_dimensions\n", - "extent = [ds.domain_left_edge[ds.dimensionality-1], ds.domain_right_edge[ds.dimensionality-1],\n", - " ds.domain_left_edge[0], ds.domain_right_edge[0] ]\n", - "\n", - "# Get particle quantities\n", - "ad = ds.all_data()\n", - "x = ad[species, 'particle_position_x'].v\n", - "z = ad[species, 'particle_position_z'].v\n", - "\n", - "# Plot image\n", - "plt.figure()\n", - "plt.imshow(Bx[:,Bx.shape[1]//2,:], extent=extent, aspect='auto')\n", - "plt.scatter(z,x,s=.1,c='k')" - ] - } - ], - "metadata": { - "anaconda-cloud": {}, - "kernelspec": { - "display_name": "Python 3 (ipykernel)", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.9.10" - }, - "widgets": { - "state": { - "11d243e9f5074fe1b115949d174d59de": { - "views": [ - { - "cell_index": 6 - } - ] - } - }, - "version": "1.2.0" - } - }, - "nbformat": 4, - "nbformat_minor": 1 -} diff --git a/Tools/PostProcessing/cori_postproc_script.sh b/Tools/PostProcessing/cori_postproc_script.sh deleted file mode 100644 index 38d726ef5..000000000 --- a/Tools/PostProcessing/cori_postproc_script.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/bash - -# Copyright 2019 Maxence Thevenet -# -# This file is part of WarpX. -# -# License: BSD-3-Clause-LBNL - -#SBATCH --job-name=postproc -#SBATCH --time=00:20:00 -#SBATCH -C haswell -#SBATCH -N 8 -#SBATCH -q regular -#SBATCH -e postproce.txt -#SBATCH -o postproco.txt -#SBATCH --mail-type=end -#SBATCH --account=m2852 - -export OMP_NUM_THREADS=1 - -# Requires python3 and yt > 3.5 -srun -n 32 -c 16 python plot_parallel.py --path --plotlib=yt --parallel diff --git a/Tools/PostProcessing/plot_distribution_mapping.py b/Tools/PostProcessing/plot_distribution_mapping.py deleted file mode 100644 index 35fc2c197..000000000 --- a/Tools/PostProcessing/plot_distribution_mapping.py +++ /dev/null @@ -1,169 +0,0 @@ -# Standard imports -from collections import defaultdict -from itertools import product -import os - -# High-performance math -import numpy as np - - -class SimData: - """ - Structure for easy access to load costs reduced diagnostics - """ - def __init__(self, directory, prange, is_3D): - """ - Set data-containing dir, data range; load data - """ - self.is_3D = is_3D - self._get_costs_reduced_diagnostics(directory, prange) - - def __call__(self, i): - """ - Set data for current timestep - """ - if not self.data_fields: - print("No data_fields!") - return - - if not i in self.keys: - print("Index is out of range!") - print("Valid keys are ", self.keys) - return - - # Set field values at output i - self.values = [] - for attr in list(self.data_fields[i].keys()): - setattr(self, attr, self.data_fields[i][attr]) - self.values.append(attr) - - # Data_fields index currently set - self.idx = i - - - def _get_costs_reduced_diagnostics(self, directory, prange): - """ - Read costs reduced diagnostics - """ - # Load data - self.directory, self.prange = directory, prange - if not os.path.exists(directory): - print("Directory " + directory + " does not exist") - return - - data_fields = defaultdict(dict) - self.data_fields, self.keys = data_fields, list(prange) - - data = np.genfromtxt(directory) - if len(data.shape) == 1: - data = data.reshape(-1, data.shape[0]) - - steps = data[:,0].astype(int) - - times = data[:,1] - data = data[:,2:] - - # Compute the number of datafields saved per box - n_data_fields = 0 - with open(directory) as f: - h = f.readlines()[0] - unique_headers=[''.join([l for l in w if not l.isdigit()]) - for w in h.split()][2::] - - # Either 9 or 10 depending if GPU - n_data_fields = 9 if len(set(unique_headers))%9 == 0 else 10 - f.close() - - # From data header, data layout is: - # [step, time, - # cost_box_0, proc_box_0, lev_box_0, i_low_box_0, j_low_box_0, - # k_low_box_0, num_cells_0, num_macro_particles_0, - # (, gpu_ID_box_0 if GPU run), hostname_box_0, - # cost_box_1, proc_box_1, lev_box_1, i_low_box_1, j_low_box_1, - # k_low_box_1, num_cells_1, num_macro_particles_1, - # (, gpu_ID_box_1 if GPU run), hostname_box_1 - # ... - # cost_box_n, proc_box_n, lev_box_n, i_low_box_n, j_low_box_n, - # k_low_box_n, num_cells_n, num_macro_particles_n, - # (, gpu_ID_box_n if GPU run), hostname_box_n - i, j, k = (data[0,3::n_data_fields], - data[0,4::n_data_fields], - data[0,5::n_data_fields]) - - i_blocks = np.diff(np.array(sorted(i.astype(int)))) - j_blocks = np.diff(np.array(sorted(j.astype(int)))) - k_blocks = np.diff(np.array(sorted(k.astype(int)))) - - i_non_zero = i_blocks[i_blocks != 0] - j_non_zero = j_blocks[j_blocks != 0] - k_non_zero = k_blocks[k_blocks != 0] - - # only one block in a dir - or smalles block size - i_blocking_factor = 1 if len(i_non_zero) == 0 else i_non_zero.min() - j_blocking_factor = 1 if len(j_non_zero) == 0 else j_non_zero.min() - k_blocking_factor = 1 if len(k_non_zero) == 0 else k_non_zero.min() - - imax = i.astype(int).max()//i_blocking_factor - jmax = j.astype(int).max()//j_blocking_factor - kmax = k.astype(int).max()//k_blocking_factor - - for key in self.keys: - row = np.where(key == steps)[0][0] - costs = data[row, 0::n_data_fields].astype(float) - ranks = data[row, 1::n_data_fields].astype(int) - icoords = i.astype(int)//i_blocking_factor - jcoords = j.astype(int)//j_blocking_factor - kcoords = k.astype(int)//k_blocking_factor - - # Fill in cost array - shape = (kmax+1, jmax+1, imax+1)[:2+self.is_3D] - coords = [coord[:2+self.is_3D] for coord in zip(kcoords, jcoords, icoords)] - - cost_arr = np.full(shape, 0.0) - rank_arr = np.full(shape, -1) - for nc, cost in enumerate(costs): - coord = coords[nc] - cost_arr[coord] += cost - rank_arr[coord] = ranks[nc] - - # For non-uniform blocks: fill with the corresponding cost/rank - visited = np.full(shape, False) - def dfs(corner, pos, prev): - # Exit conditions - if any([pos[i]>=shape[i] for i in range(len(shape))]): return - edges = list(rank_arr[corner[0]:pos[0]+1, pos[1], pos[2]]) \ - + list(rank_arr[pos[0], corner[1]:pos[1]+1, pos[2]]) \ - + list(rank_arr[pos[0], pos[1], corner[2]:pos[2]+1]) \ - if self.is_3D else \ - list(rank_arr[corner[0]:pos[0]+1, pos[1]]) \ - + list(rank_arr[pos[0], corner[1]:pos[1]+1]) - if visited[pos] or not set(edges).issubset(set([prev, -1])): return - - visited[pos] = True - if rank_arr[pos] not in [-1, prev]: prev, corner = rank_arr[pos], pos - else: rank_arr[pos] = prev - - args = [[0, 1] for _ in range(len(shape))] - neighbors = [tuple(np.array(pos) + np.array(p)) for p in product(*args) - if not p == (0,)*len(shape)] - for n in neighbors: dfs(corner, n, prev) - - for corner in coords: dfs(corner, corner, rank_arr[corner]) - - self.data_fields[key]['cost_arr'] = cost_arr - self.data_fields[key]['rank_arr'] = rank_arr - - # Compute load balance efficiency - rank_to_cost_map = {r:0. for r in set(ranks)} - for c, r in zip(costs, ranks): rank_to_cost_map[r] += c - - efficiencies = np.array(list(rank_to_cost_map.values())) - efficiencies /= efficiencies.max() - self.data_fields[key]['ranks'] = np.array(list(rank_to_cost_map.keys())) - self.data_fields[key]['lb_efficiencies'] = efficiencies - self.data_fields[key]['lb_efficiency'] = efficiencies.mean() - self.data_fields[key]['lb_efficiency_max'] = efficiencies.max() - self.data_fields[key]['lb_efficiency_min'] = efficiencies.min() - self.data_fields[key]['t'] = times[row] - self.data_fields[key]['step'] = steps[row] - # ... diff --git a/Tools/PostProcessing/plot_nci_growth_rate.ipynb b/Tools/PostProcessing/plot_nci_growth_rate.ipynb deleted file mode 100644 index 559d52502..000000000 --- a/Tools/PostProcessing/plot_nci_growth_rate.ipynb +++ /dev/null @@ -1,309 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Overview\n", - "\n", - "This notebook calculates and plots: \n", - "* $E_z$ field distribution at time_start and time_end;\n", - "* total EM energy evolution in time;\n", - "* NCI growth rate, $Im( \\omega )/\\omega_{p,r}$, calculated between time_start and time_end (within the linear growth of the total energy).\n" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": { - "collapsed": true - }, - "outputs": [], - "source": [ - "import matplotlib.pyplot as plt\n", - "from scipy.constants import c\n", - "import numpy as np\n", - "import scipy.constants as scc\n", - "import yt ; yt.funcs.mylog.setLevel(50)\n", - "import glob\n", - "%matplotlib inline" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Plot NCI growth rate\n" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": { - "collapsed": true - }, - "outputs": [], - "source": [ - "path_wx = 'path to diags folder'" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": { - "collapsed": true - }, - "outputs": [], - "source": [ - "file_list_warpx = glob.glob(path_wx + 'diag1?????')\n", - "iterations_warpx = [ int(file_name[len(file_name)-5:]) for file_name in file_list_warpx ]" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": { - "collapsed": true - }, - "outputs": [], - "source": [ - "def calculate_parameters(path):\n", - " iteration=200\n", - " dsx = yt.load( path + 'diag1%05d/' %iteration )\n", - " dxx = dsx.domain_width/dsx.domain_dimensions\n", - " dx=dxx[0];\n", - " dx = 1.*dx.ndarray_view()\n", - "\n", - " dz=dxx[1];\n", - " \n", - " dz = 1.*dz.ndarray_view()\n", - " cell_volume_x = np.prod(dxx)\n", - "\n", - " ds1 = yt.load(path+'/diag100100/')\n", - " ds2 = yt.load(path+'/diag100200/')\n", - " \n", - " cur_t1 = ds1.current_time\n", - " cur_t2 = ds2.current_time \n", - " cur_t2.to_ndarray\n", - " dt = (cur_t2-cur_t1)/100\n", - " dt = 1.*dt.ndarray_view();\n", - " return dx, dz, dt" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "dx, dz, dt = calculate_parameters(path_wx)\n", - "print(dx,dz,dt)" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": { - "collapsed": true - }, - "outputs": [], - "source": [ - "def get_fourier_transform_wx( path, fieldcomp, \n", - " iteration, plot=False, remove_last=True ):\n", - " \"\"\"\n", - " Calculate the Fourier transform of the field at a given iteration\n", - " \"\"\"\n", - " \n", - " ds = yt.load(path + '/diag1%05d/' %iteration )\n", - "\n", - " grid = ds.index.grids[0]\n", - " F = grid[fieldcomp]\n", - " F = F.ndarray_view()\n", - "\n", - " \n", - " if remove_last:\n", - " F = F[:-1,:-1]\n", - " F = F[:,:,0]\n", - "\n", - " kxmax = np.pi/dx\n", - " kzmax = np.pi/dz\n", - " Nx = F.shape[0]\n", - " Nz = F.shape[1]\n", - " spectralF = np.fft.fftshift( np.fft.fft2(F) )[int(Nx/2):, int(Nz/2):]\n", - "\n", - " if plot:\n", - " plt.imshow( np.log(abs(spectralF)), origin='lower',\n", - " extent=[0, kxmax, 0, kzmax] )\n", - " plt.colorbar()\n", - " \n", - " return( spectralF, kxmax, kzmax )" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": { - "collapsed": true - }, - "outputs": [], - "source": [ - "def growth_rate_between_wx( path, iteration1, iteration2, \n", - " remove_last=False, threshold=-13 ):\n", - " \"\"\"\n", - " Calculate the difference in spectral amplitude between two iterations, \n", - " return the growth rate\n", - " \n", - " \"\"\"\n", - " spec1, kxmax, kzmax = \\\n", - " get_fourier_transform_wx( path, 'Ez', iteration=iteration1, remove_last=remove_last )\n", - " spec1 = np.where( abs(spec1) > np.exp(threshold), spec1, np.exp(threshold) )\n", - " \n", - "\n", - " spec2, kxmax, kzmax = \\\n", - " get_fourier_transform_wx( path, 'Ez', iteration=iteration2, remove_last=remove_last )\n", - " \n", - " spec2 = np.where( abs(spec2) > np.exp(threshold), spec2, np.exp(threshold) )\n", - " diff_growth = np.log( abs(spec2) ) - np.log( abs(spec1) )\n", - "\n", - " diff_time = (iteration2-iteration1)*dt;\n", - " growth_rate = diff_growth/diff_time/c;\n", - "\n", - " return( growth_rate, [0, kxmax, 0, kzmax] )" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": { - "collapsed": true - }, - "outputs": [], - "source": [ - "def energy( ts ):\n", - " Ex= ts.index.grids[0]['boxlib', 'Ex'].squeeze().v\n", - " Ey= ts.index.grids[0]['boxlib', 'Ey'].squeeze().v\n", - " Ez= ts.index.grids[0]['boxlib', 'Ez'].squeeze().v\n", - " \n", - " Bx= ts.index.grids[0]['boxlib', 'Ex'].squeeze().v\n", - " By= ts.index.grids[0]['boxlib', 'Ey'].squeeze().v\n", - " Bz= ts.index.grids[0]['boxlib', 'Ez'].squeeze().v\n", - "\n", - " energyE = scc.epsilon_0*np.sum(Ex**2+Ey**2+Ez**2)\n", - " energyB= np.sum(Bx**2+By**2+Bz**2)/scc.mu_0 \n", - " energy = energyE + energyB\n", - " return energy" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "energy_list = []\n", - "for iter in iterations_warpx:\n", - " path = path_wx + '/diag1%05d/' %iter\n", - " ds = yt.load( path) \n", - " energy_list.append( energy(ds) )" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "iteration_start = 1700\n", - "iteration_end= 1900\n", - "iter_delta = iterations_warpx[2] - iterations_warpx[1]\n", - "\n", - "\n", - "ds_start = yt.load(path_wx + 'diag1%05d/' %iteration_start)\n", - "Ez_start= ds.index.grids[0]['boxlib', 'Ez'].squeeze().v\n", - "\n", - "ds_end = yt.load(path_wx + 'diag1%05d/' %iteration_end)\n", - "Ez_end= ds_end.index.grids[0]['boxlib', 'Ez'].squeeze().v\n", - "\n", - "gr_wx, extent = growth_rate_between_wx(path_wx, iteration_start, iteration_end )\n", - "\n", - "\n", - "fs = 13\n", - "vmax = 0.05\n", - "vmin=-vmax\n", - "cmap_special = 'bwr'" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "fig, (ax1, ax2) = plt.subplots( ncols=2, figsize=(10,4.) )\n", - "\n", - "fs=14\n", - "cmap = \"viridis\"\n", - "aspect='auto'\n", - "\n", - "img1 = ax1.imshow(Ez_start,aspect=aspect, cmap=cmap, extent=extent)\n", - "ax1.set_title('$t_{step}=$%i' % iteration_start, size=fs)\n", - "ax1.set_xlabel(' $k_{p,r} z$ ',size=fs)\n", - "ax1.set_ylabel(' $k_{p,r} x $ ',size=fs)\n", - "fig.colorbar(img1, ax=ax1, label = '$E_z, [V/m]$')\n", - "\n", - "img2 = ax2.imshow(Ez_end,aspect=aspect, cmap=cmap, extent=extent)\n", - "ax2.set_title('$t_{step}=$%i' % iteration_end,size=fs)\n", - "ax2.set_xlabel(' $k_{p,r} z$ ',size=fs)\n", - "ax2.set_ylabel(' $k_{p,r} x $ ',size=fs)\n", - "fig.colorbar(img2, ax=ax2, label = '$E_z, [V/m]$')\n", - "plt.tight_layout()" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "fig, (ax1, ax2) = plt.subplots( ncols=2,nrows=1, figsize=(13,5.) )\n", - "\n", - "fs=14\n", - "\n", - "img1 = ax1.semilogy(iterations_warpx,energy_list)\n", - "ax1.semilogy(iteration_start,energy_list[iteration_start/iter_delta],'ro')\n", - "ax1.semilogy(iteration_end,energy_list[iteration_end/iter_delta],'ro')\n", - "ax1.grid()\n", - "ax1.legend()\n", - "ax1.set_xlabel('time step',size=fs)\n", - "ax1.set_ylabel('Total EM energy',size=fs)\n", - "\n", - "img2 = ax2.imshow( gr_wx, origin='lower' ,cmap='bwr', vmax=0.05, vmin=-vmax, interpolation='nearest', extent=[0, 1, 0, 1] )\n", - "ax2.set_title('NCI growth rate',size=fs)\n", - "ax2.set_xlabel('$k_{p,r} z$ ',size=fs)\n", - "ax2.set_ylabel('$k_{p,r} x $ ',size=fs)\n", - "fig.colorbar(img2, ax=ax2, label = '$Im(\\omega)/\\omega_{p,r}$')" - ] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 2", - "language": "python", - "name": "python2" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 2 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython2", - "version": "2.7.13" - } - }, - "nbformat": 4, - "nbformat_minor": 1 -} diff --git a/Tools/PostProcessing/plot_parallel.py b/Tools/PostProcessing/plot_parallel.py deleted file mode 100644 index e4b75c0e4..000000000 --- a/Tools/PostProcessing/plot_parallel.py +++ /dev/null @@ -1,291 +0,0 @@ -# Copyright 2019 David Grote, Maxence Thevenet -# -# This file is part of WarpX. -# -# License: BSD-3-Clause-LBNL - -import argparse -import glob -import os -import sys - -import matplotlib -import yt - -yt.funcs.mylog.setLevel(50) -import matplotlib.pyplot as plt -import numpy as np - -''' -This script loops over all WarpX plotfiles in a directory and, for each -plotfile, saves an image showing the field and particles. - -Requires yt>3.5 and Python3 - -It can be run serial: - -> python plot_parallel.py --path --serial - -or parallel - -> mpirun -np 32 python plot_parallel.py --path - -When running parallel, the plotfiles are distributed as evenly as possible -between MPI ranks. - -This script also proposes options to plot quantities over all timesteps. -That quantity from of all plotfiles is gathered to rank 0, and the evolution -is plotted. The default operation is the max of a specified field. -For example, " --plot_evolution Ey" will plot the max of Ey. -Also, "--plot_particle_evolution species" for the given species, will plot the RMS x versus the average z. - -To get help, run -> python plot_parallel --help -''' - -# Parse command line for options. -parser = argparse.ArgumentParser() -parser.add_argument('--path', default=None, - help='path to plotfiles, defaults to diags/plotfiles. Plotfiles names must be plt?????') -parser.add_argument('--image_dir', default=None, - help='path where images are placed, defaults to diags/plotfiles or path if specified.') -parser.add_argument('--plotlib', default='yt', - choices=['yt','matplotlib'], - help='Plotting library to use') -parser.add_argument('--field', default='Ez', - help='Which field to plot, e.g., Ez, By, jx or rho. The central slice in y is plotted') -parser.add_argument('--pjump', default=20, - help='When plotlib=matplotlib, we plot every pjump particle') -parser.add_argument('--vmax', type=float, default=None, - help='If specified, the colormap will have bounds [-vmax, vmax]') -parser.add_argument('--slicewidth', default=10.e-6, - help='Only particles with -slicewidth/2 1: - global_z = np.empty_like(z) - global_q = np.empty_like(q) - comm_world.Reduce(z, global_z, op=MPI.MAX) - comm_world.Reduce(q, global_q, op=MPI.MAX) - return global_z, global_q - else: - return z, q - -### Analysis ### - -# Get list of plotfiles -file_list = glob.glob(os.path.join(path, 'plt?????')) -file_list.sort() -nfiles = len(file_list) - -# Get list of particle speciess to plot -pslist = get_species(file_list); - -rank = 0 -size = 1 -if not args.serial: - try: - from mpi4py import MPI - comm_world = MPI.COMM_WORLD - rank = comm_world.Get_rank() - size = comm_world.Get_size() - except ImportError: - pass - -if rank == 0: - print('number of MPI ranks: %d'%size) - print('Number of plotfiles: %s'%nfiles) - print('list of species: ', pslist) - -if plot_evolution is not None: - # Fill with a value less than any possible value - zwin = np.full(nfiles, np.finfo(float).min) - quantity = np.full(nfiles, np.finfo(float).min) -if plot_particle_evolution is not None: - # Fill with a value less than any possible value - zbar = np.full(nfiles, np.finfo(float).min) - xstd = np.full(nfiles, np.finfo(float).min) - -# Loop over files, splitting plotfile list among MPI ranks -# - plot field snapshot -# - store window position and field max in arrays -for count, filename in enumerate(file_list): - if count%size != rank: - continue - - plot_snapshot( filename ) - if plot_evolution is not None: - zwin[count], quantity[count] = get_evolution_quantity( filename, plot_evolution ) - if plot_particle_evolution is not None: - zbar[count], xstd[count] = get_particle_evolution_quantity(filename, plot_particle_evolution) - -if plot_evolution is not None: - zwin, quantity = reduce_evolved_quantity(zwin, quantity) - if rank == 0: - plot_evolved_quantity(zwin, quantity) - -if plot_particle_evolution is not None: - zbar, xstd = reduce_evolved_quantity(zbar, xstd) - if rank == 0: - plot_particle_evolved_quantity(zbar, xstd) diff --git a/Tools/PostProcessing/plot_particle_path.py b/Tools/PostProcessing/plot_particle_path.py deleted file mode 100644 index 9bf7f896c..000000000 --- a/Tools/PostProcessing/plot_particle_path.py +++ /dev/null @@ -1,152 +0,0 @@ -# Copyright 2019 Andrew Myers, Jean-Luc Vay, Maxence Thevenet -# Remi Lehe, Weiqun Zhang -# -# This file is part of WarpX. -# -# License: BSD-3-Clause-LBNL - -import numpy as np - - -class AMReXParticleHeader(object): - ''' - - This class is designed to parse and store the information - contained in an AMReX particle header file. - - Usage: - - header = AMReXParticleHeader("plt00000/particle0/Header") - print(header.num_particles) - print(header.version_string) - - etc... - - ''' - - def __init__(self, header_filename): - - self.real_component_names = [] - self.int_component_names = [] - with open(header_filename, "r") as f: - self.version_string = f.readline().strip() - - particle_real_type = self.version_string.split('_')[-1] - if particle_real_type == 'double': - self.real_type = np.float64 - elif particle_real_type == 'single': - self.real_type = np.float32 - else: - raise RuntimeError("Did not recognize particle real type.") - self.int_type = np.int32 - - self.dim = int(f.readline().strip()) - self.num_int_base = 2 - self.num_real_base = self.dim - self.num_real_extra = int(f.readline().strip()) - for i in range(self.num_real_extra): - self.real_component_names.append(f.readline().strip()) - self.num_int_extra = int(f.readline().strip()) - for i in range(self.num_int_extra): - self.int_component_names.append(f.readline().strip()) - self.num_int = self.num_int_base + self.num_int_extra - self.num_real = self.num_real_base + self.num_real_extra - self.is_checkpoint = bool(int(f.readline().strip())) - self.num_particles = int(f.readline().strip()) - self.max_next_id = int(f.readline().strip()) - self.finest_level = int(f.readline().strip()) - self.num_levels = self.finest_level + 1 - - if not self.is_checkpoint: - self.num_int_base = 0 - self.num_int_extra = 0 - self.num_int = 0 - - self.grids_per_level = np.zeros(self.num_levels, dtype='int64') - self.grids = [] - for level_num in range(self.num_levels): - self.grids_per_level[level_num] = int(f.readline().strip()) - self.grids.append([]) - - for level_num in range(self.num_levels): - for grid_num in range(self.grids_per_level[level_num]): - entry = [int(val) for val in f.readline().strip().split()] - self.grids[level_num].append(tuple(entry)) - - -def read_particle_data(fn, ptype="particle0"): - ''' - - This function returns the particle data stored in a particular - plot file and particle type. It returns two numpy arrays, the - first containing the particle integer data, and the second the - particle real data. For example, if a dataset has 3000 particles, - which have two integer and five real components, this function will - return two numpy arrays, one with the shape (3000, 2) and the other - with the shape (3000, 5). - - Usage: - - idata, rdata = read_particle_data("plt00000", "particle0") - - ''' - base_fn = fn + "/" + ptype - header = AMReXParticleHeader(base_fn + "/Header") - - idtype = "(%d,)i4" % header.num_int - if header.real_type == np.float64: - fdtype = "(%d,)f8" % header.num_real - elif header.real_type == np.float32: - fdtype = "(%d,)f4" % header.num_real - - idata = np.empty((header.num_particles, header.num_int )) - rdata = np.empty((header.num_particles, header.num_real)) - - ip = 0 - for lvl, level_grids in enumerate(header.grids): - for (which, count, where) in level_grids: - if count == 0: continue - fn = base_fn + "/Level_%d/DATA_%04d" % (lvl, which) - - with open(fn, 'rb') as f: - f.seek(where) - ints = np.fromfile(f, dtype = idtype, count=count) - floats = np.fromfile(f, dtype = fdtype, count=count) - - idata[ip:ip+count] = ints - rdata[ip:ip+count] = floats - ip += count - - return idata, rdata - - -if __name__ == "__main__": - import glob - - import pylab as plt - - x0 = [] - y0 = [] - x1 = [] - y1 = [] - - fn_list = glob.glob("plt?????") - fn_list.sort() - - for fn in fn_list: - idata, rdata = read_particle_data(fn, ptype="particle0") - x0.append(rdata[0][0]) - y0.append(rdata[0][1]) - idata, rdata = read_particle_data(fn, ptype="particle1") - x1.append(rdata[0][0]) - y1.append(rdata[0][1]) - - fig = plt.gcf() - fig.set_size_inches(8, 8) - plt.plot(x0, y0, 'r.') - plt.plot(x1, y1, 'b.') - plt.axis((-2., 2., -2., 2.)) - ax = plt.gca() - ax.set_xlabel(r'$x$') - ax.set_ylabel(r'$y$') - plt.savefig('particles.png') diff --git a/Tools/PostProcessing/plot_timestep_duration.py b/Tools/PostProcessing/plot_timestep_duration.py deleted file mode 100755 index 9858eb6a4..000000000 --- a/Tools/PostProcessing/plot_timestep_duration.py +++ /dev/null @@ -1,99 +0,0 @@ -#!/usr/bin/env python3 - -import argparse -import re - -import matplotlib.pyplot as plt -import numpy as np - - -def extract_data(filename): - - regex_step = re.compile( - r"STEP [0-9]* ends.*\n.* Avg\. per step = ([0-9]*[.])?[0-9]+ s", re.MULTILINE) - - string_data = [] - - print("Processing " + filename + " ...", end='') - with open(filename) as f: - text = f.read() - - string_data = [s.group(0) for s in regex_step.finditer(text)] - - regex_real = re.compile( - r" -?[\d.]+(?:e-?\d+)?", re.MULTILINE) - - time_data = np.zeros([len(string_data), 6]) - for i, ss in enumerate(string_data): - numbers = regex_real.findall(ss) - time_data[i,:] = np.array(numbers) - - print("...done!") - return time_data - - -def plot_timestep_duration(time_data, name): - fig_name = name + "_ts_duration.png" - print("Generating " + fig_name + "...", end='') - - plt.rcParams.update({'font.size': 20}) - plt.rcParams['axes.linewidth'] = 3 - - f, ax = plt.subplots(figsize=(12,6)) - - ax.set_ylabel("timestep duration [s]") - ax.set_xlabel("step [#]") - - ax.semilogy(time_data[:,0], time_data[:,4]) - - ax.spines['bottom'].set_color('gray') - ax.spines['top'].set_visible(False) - ax.spines['left'].set_color('gray') - ax.spines['right'].set_visible(False) - - plt.tight_layout() - - plt.savefig(fig_name, transparent=False, dpi=300) - print("...done!") - - -def plot_cumulative_duration(time_data, name): - fig_name = name + "_cumulative_duration.png" - print("Generating " + fig_name + "...", end='') - - plt.rcParams.update({'font.size': 20}) - plt.rcParams['axes.linewidth'] = 3 - - f, ax = plt.subplots(figsize=(12,6)) - - ax.set_ylabel("cumulative duration [s]") - ax.set_xlabel("step [#]") - - ax.plot(time_data[:,0], np.cumsum(time_data[:,4])) - - ax.spines['bottom'].set_color('gray') - ax.spines['top'].set_visible(False) - ax.spines['left'].set_color('gray') - ax.spines['right'].set_visible(False) - - plt.tight_layout() - - plt.savefig(name + "_cumulative_duration.png", transparent=False, dpi=300) - print("...done!") - - -def do_plot_timestep_duration(): - parser = argparse.ArgumentParser(description='Generates plots of timestep duration from WarpX standard output logs') - parser.add_argument('file_name', metavar='file_name', type=str, nargs=1, - help='the name of the WarpX output log to process') - - args = parser.parse_args() - log_file_name = args.file_name[0] - - time_data = extract_data(log_file_name) - - plot_timestep_duration(time_data, log_file_name) - plot_cumulative_duration(time_data, log_file_name) - -if __name__ == "__main__": - do_plot_timestep_duration() diff --git a/Tools/PostProcessing/read_raw_data.py b/Tools/PostProcessing/read_raw_data.py deleted file mode 100644 index c34ea11d3..000000000 --- a/Tools/PostProcessing/read_raw_data.py +++ /dev/null @@ -1,302 +0,0 @@ -# Copyright 2017-2019 Andrew Myers, Axel Huebl, Maxence Thevenet -# Remi Lehe -# -# This file is part of WarpX. -# -# License: BSD-3-Clause-LBNL - -from collections import namedtuple -from glob import glob - -import numpy as np - -HeaderInfo = namedtuple('HeaderInfo', ['version', 'how', 'ncomp', 'nghost']) - -def read_data(plt_file): - ''' - - This function reads the raw (i.e. not averaged to cell centers) data - from a WarpX plt file. The plt file must have been written with the - plot_raw_fields option turned on, so that it contains a raw_data - sub-directory. This is only really useful for single-level data. - - Arguments: - - plt_file : An AMReX plt_file file. Must contain a raw_data directory. - - Returns: - - A list of dictionaries where the keys are field name strings and the values - are numpy arrays. Each entry in the list corresponds to a different level. - - Example: - - >>> data = read_data("plt00016") - >>> print(data.keys()) - >>> print(data['Ex'].shape) - - ''' - all_data = [] - raw_files = sorted(glob(plt_file + "/raw_fields/Level_*/")) - for raw_file in raw_files: - field_names = _get_field_names(raw_file) - - data = {} - for field in field_names: - data[field] = _read_field(raw_file, field) - - all_data.append(data) - - return all_data - - -def _get_field_names(raw_file): - header_files = glob(raw_file + "*_H") - return [hf.split("/")[-1][:-2] for hf in header_files] - - -def _string_to_numpy_array(s): - return np.array([int(v) for v in s[1:-1].split(",")], dtype=np.int64) - - -def _line_to_numpy_arrays(line): - lo_corner = _string_to_numpy_array(line[0][1:]) - hi_corner = _string_to_numpy_array(line[1][:]) - node_type = _string_to_numpy_array(line[2][:-1]) - return lo_corner, hi_corner, node_type - - -def _read_local_Header(header_file, dim): - with open(header_file, "r") as f: - t_snapshot = float(f.readline()) - if dim==2: - nx, nz = [int(x) for x in f.readline().split()] - ny = 1 - xmin, zmin = [float(x) for x in f.readline().split()] - ymin = 0 - xmax, zmax = [float(x) for x in f.readline().split()] - ymax = 0 - if dim==3: - nx, ny, nz = [int(x) for x in f.readline().split()] - xmin, ymin, zmin = [float(x) for x in f.readline().split()] - xmax, ymax, zmax = [float(x) for x in f.readline().split()] - field_names = f.readline().split() - - local_info = { - 't_snapshot' : t_snapshot, - 'field_names' : field_names, - 'xmin' : xmin, - 'ymin' : ymin, - 'zmin' : zmin, - 'xmax' : xmax, - 'ymax' : ymax, - 'zmax' : zmax, - 'nx' : nx, - 'ny' : ny, - 'nz' : nz - } - return local_info -## ------------------------------------------------------------ -## USE THIS INSTEAD OF THE PREVIOUS FUNCTION IF Header contains -## (x,y,z) min and max vectors instead of zmin and zmax -## ------------------------------------------------------------ -# def _read_local_Header(header_file): -# with open(header_file, "r") as f: -# t_snapshot = float(f.readline()) -# axes_lo = [float(x) for x in f.readline().split()] -# axes_hi = [float(x) for x in f.readline().split()] -# local_info = { -# 't_snapshot' : t_snapshot, -# 'axes_lo' : axes_lo, -# 'axes_hi' : axes_hi -# } -# return local_info - - -def _read_global_Header(header_file): - with open(header_file, "r") as f: - - nshapshots = int(f.readline()) - dt_between_snapshots = float(f.readline()) - gamma_boost = float(f.readline()) - beta_boost = float(f.readline()) - - global_info = { - 'nshapshots' : nshapshots, - 'dt_between_snapshots' : dt_between_snapshots, - 'gamma_boost' : gamma_boost, - 'beta_boost' : beta_boost - } - - return global_info - - -def _read_header(header_file): - with open(header_file, "r") as f: - - version = int(f.readline()) - how = int(f.readline()) - ncomp = int(f.readline()) - # If the number of ghost cells is the same in all directions, - # s is a string of the form '16\n'. - # If the number of ghost cells varies depending on the direction, - # s is a string of the form '(9,8)\n' in 2D or '(9,8,9)\n' in 3D. - s = f.readline() - s = s.replace('(', '') # remove left parenthesis '(', if any - s = s.replace(')', '') # remove right parenthesis ')', if any - nghost = np.fromstring(s, dtype = int, sep = ',') # convert from string to numpy array - - header = HeaderInfo(version, how, ncomp, nghost) - - # skip the next line - f.readline() - - # read boxes - boxes = [] - for line in f: - clean_line = line.strip().split() - if clean_line == [')']: - break - lo_corner, hi_corner, node_type = _line_to_numpy_arrays(clean_line) - boxes.append((lo_corner - nghost, - hi_corner + nghost, - node_type)) - - # read the file and offset position for the corresponding box - file_names = [] - offsets = [] - for line in f: - if line.startswith("FabOnDisk:"): - clean_line = line.strip().split() - file_names.append(clean_line[1]) - offsets.append(int(clean_line[2])) - - return boxes, file_names, offsets, header - - -def _combine_boxes(boxes): - lo_corners, hi_corners = zip(*[(box[0], box[1]) for box in boxes]) - domain_lo = np.min(lo_corners, axis=0) - domain_hi = np.max(hi_corners, axis=0) - return domain_lo, domain_hi - - -def _read_field(raw_file, field_name): - - header_file = raw_file + field_name + "_H" - boxes, file_names, offsets, header = _read_header(header_file) - - dom_lo, dom_hi = _combine_boxes(boxes) - data_shape = dom_hi - dom_lo + 1 - if header.ncomp > 1: - data_shape = np.append(data_shape, header.ncomp) - data = np.zeros(data_shape) - - for box, fn, offset in zip(boxes, file_names, offsets): - lo = box[0] - dom_lo - hi = box[1] - dom_lo - shape = hi - lo + 1 - if header.ncomp > 1: - shape = np.append(shape, header.ncomp) - with open(raw_file + fn, "rb") as f: - f.seek(offset) - if (header.version == 1): - f.readline() # skip the first line - arr = np.fromfile(f, 'float64', np.product(shape)) - arr = arr.reshape(shape, order='F') - box_shape = [slice(l,h+1) for l, h in zip(lo, hi)] - if header.ncomp > 1: - box_shape += [slice(None)] - data[tuple(box_shape)] = arr - - return data - - - -def _read_buffer(snapshot, header_fn, _component_names): - - boxes, file_names, offsets, header = _read_header(header_fn) - - dom_lo, dom_hi = _combine_boxes(boxes) - - all_data = {} - for i in range(header.ncomp): - all_data[_component_names[i]] = np.zeros(dom_hi - dom_lo + 1) - - for box, fn, offset in zip(boxes, file_names, offsets): - lo = box[0] - dom_lo - hi = box[1] - dom_lo - shape = hi - lo + 1 - size = np.product(shape) - with open(snapshot + "/Level_0/" + fn, "rb") as f: - f.seek(offset) - if (header.version == 1): - f.readline() # skip the first line - arr = np.fromfile(f, 'float64', header.ncomp*size) - for i in range(header.ncomp): - comp_data = arr[i*size:(i+1)*size].reshape(shape, order='F') - data = all_data[_component_names[i]] - data[tuple([slice(l,h+1) for l, h in zip(lo, hi)])] = comp_data - all_data[_component_names[i]] = data - return all_data - -def read_reduced_diags(filename, delimiter=' '): - ''' - Read data written by WarpX Reduced Diagnostics, and return them into Python objects - input: - - filename name of file to open - - delimiter (optional, default ',') delimiter between fields in header. - output: - - metadata_dict dictionary where first key is the type of metadata, second is the field - - data dictionary with data - ''' - # Read header line - unformatted_header = list( np.genfromtxt( filename, comments="@", max_rows=1, dtype="str", delimiter=delimiter) ) - # From header line, get field name, units and column number - field_names = [s[s.find("]")+1:s.find("(")] for s in unformatted_header] - field_units = [s[s.find("(")+1:s.find(")")] for s in unformatted_header] - field_column = [s[s.find("[")+1:s.find("]")] for s in unformatted_header] - # Load data and re-format to a dictionary - data = np.loadtxt( filename, delimiter=delimiter ) - if data.ndim == 1: - data_dict = {key: np.atleast_1d(data[i]) for i, key in enumerate(field_names)} - else: - data_dict = {key: data[:,i] for i, key in enumerate(field_names)} - # Put header data into a dictionary - metadata_dict = {} - metadata_dict['units'] = {key: field_units[i] for i, key in enumerate(field_names)} - metadata_dict['column'] = {key: field_column[i] for i, key in enumerate(field_names)} - return metadata_dict, data_dict - -def read_reduced_diags_histogram(filename, delimiter=' '): - ''' - Modified based on read_reduced_diags - Two extra return objects: - - bin_value: the values of bins - - bin_data: the histogram data values of bins - ''' - # Read header line - unformatted_header = list( np.genfromtxt( filename, comments="@", max_rows=1, dtype="str", delimiter=delimiter) ) - # From header line, get field name, units and column number - field_names = [s[s.find("]")+1:s.find("(")] for s in unformatted_header] - field_names[2:] = [s[s.find("b"):s.find("=")] for s in field_names[2:]] - field_units = [s[s.find("(")+1:s.find(")")] for s in unformatted_header] - field_column = [s[s.find("[")+1:s.find("]")] for s in unformatted_header] - field_bin = [s[s.find("=")+1:s.find("(")] for s in unformatted_header] - # Load data and re-format to a dictionary - data = np.loadtxt( filename, delimiter=delimiter ) - if data.ndim == 1: - data_dict = {key: data[i] for i, key in enumerate(field_names)} - else: - data_dict = {key: data[:,i] for i, key in enumerate(field_names)} - # Put header data into a dictionary - metadata_dict = {} - metadata_dict['units'] = {key: field_units[i] for i, key in enumerate(field_names)} - metadata_dict['column'] = {key: field_column[i] for i, key in enumerate(field_names)} - # Save bin values - bin_value = np.asarray(field_bin[2:], dtype=np.float64, order='C') - if data.ndim == 1: - bin_data = data[2:] - else: - bin_data = data[:,2:] - return metadata_dict, data_dict, bin_value, bin_data diff --git a/Tools/PostProcessing/video_yt.py b/Tools/PostProcessing/video_yt.py deleted file mode 100644 index 61046b3c0..000000000 --- a/Tools/PostProcessing/video_yt.py +++ /dev/null @@ -1,129 +0,0 @@ -#! /usr/bin/env python -# Copyright 2017-2020 Luca Fedeli, Maxence Thevenet -# -# This file is part of WarpX. -# -# License: BSD-3-Clause-LBNL - -''' -This script loops over 3D plotfiles plt*****, generates a 3D rendering -of the data with fields and particles, and saves one image per plotfile to -plt_****_img.png. It was written for a laser-wakefield acceleration -simulation, and contains a lot of custom values (for transparency, -color intensity etc.), so feel free to modify it to meet your needs. - -Execute the file with -> python video_yt.py -or -> mpirun -np 4 python video_yt.py -to generate the images. It can be quite slow for even moderately large -plotfiles. -''' - -import glob - -# Import statements -import yt - -yt.enable_parallelism() -import numpy as np - -field = 'Ez' -my_max = int(5.e9) # Field maximum amplitude -do_particles = True -species0 = 'beam' -species1 = 'electrons' -do_patch = False # if want to plot an MR patch -resolution = (512, 512) -camera_position = np.array([15., 20., -5.])*yt.units.micrometer -file_list = glob.glob('./diags/plotfiles/plt?????') - -clight = 299792458.0 # must be the same value as in WarpX - -def plot_species(species, ad, radii, transparency, abs_xmax): - # Color for each of these particles - colors_vect = [1., 1., 1., .05] # the last value is overwritten later - x = ad[species,'particle_position_x'].v - y = ad[species,'particle_position_y'].v - z = ad[species,'particle_position_z'].v - selector = np.abs(x) < abs_xmax - x = x[selector] ; y = y[selector] ; z = z[selector] - vertices = np.column_stack((x,y,z)) - colors = np.tile(colors_vect,(vertices.shape[0], 1)) - colors[:,3] = transparency - point = yt.visualization.volume_rendering.render_source.PointSource(vertices, colors=colors, radii=radii) - return point - -# Create the 3d image for 1 timestep -# filename is the name of the folder (e.g. plt00000) -def img_onestep(filename): - # Load the data - ds = yt.load( filename ) - ad = ds.all_data() - - # Calculate the z position of the box. - # You can use ds.domain_right_edge[2] instead. However, if a moving window - # was used in the simulation, the rendering shows some jitter. - # This is because a cell is added in z at some iterations but not all. - # These lines calculate this jitter z_shift and remove it from the camera position and focus - iteration=int(filename[-5:]) - dt = 1./clight * 1./np.sqrt((1./ad['dx'][-1]**2 + 1./ad['dy'][-1]**2 + 1./ad['dz'][-1]**2)) - z_front = dt * float(iteration) * clight - z_shift = z_front-ds.domain_right_edge[2] - - # Create a yt source object for the level1 patch - if do_patch: - box_patch = yt.visualization.volume_rendering.render_source.BoxSource( - left_edge=ds.index.grids[1].LeftEdge+np.array([0., 0., z_shift])*yt.units.meter, - right_edge=ds.index.grids[1].RightEdge+np.array([0., 0., z_shift])*yt.units.meter, - color=[1.,0.1,0.1,.01]) - - # Handle 2 populations of particles: beam and plasma electrons - if do_particles: - point0 = plot_species(species0, ad, 2, .01, 1.) - point1 = plot_species(species1, ad, 1, .002, 20.e-6) - sc = yt.create_scene(ds, field=field) - - # Set camera properties - cam = sc.camera - dom_length = ds.domain_width[2].v - cam.set_width(ds.quan(dom_length, yt.units.meter)) - cam.position = ds.domain_center + camera_position + np.array([0., 0., z_shift])*yt.units.meter - cam.focus = ds.domain_center + np.array([0., 0., z_shift])*yt.units.meter - cam.resolution = resolution - # Field rendering properties - source = sc[0] - source.set_field(field) - source.set_log(False) - source.use_ghost_zones = True - bounds = (-my_max, my_max) - tf = yt.ColorTransferFunction(bounds) - w = (.01*my_max)**2 - # Define the transfer function for 3d rendering - # 3 isocontours for negative field values - # The sharpness of the contour is controlled by argument width - tf.add_gaussian(-.04 *my_max, width=8*w, height=[0.1, 0.1, 1.0, 0.02]) - tf.add_gaussian(-.2 *my_max, width=5*w, height=[0.1, 0.1, 1.0, 0.05]) - tf.add_gaussian(-.6 *my_max, width=w, height=[0.0, 0.0, 1.0, 0.3]) - # 3 isocontours for positive field values - tf.add_gaussian(.04 *my_max, width=8*w, height=[1.0, 1.0, 0.2, 0.02]) - tf.add_gaussian(.2 *my_max, width=5*w, height=[1.0, 1.0, 0.2, 0.05]) - tf.add_gaussian(.6 *my_max, width=w, height=[1.0, 1.0, 0.0, 0.3]) - source.tfh.tf = tf - source.tfh.bounds = bounds - source.tfh.set_log(False) - source.tfh.tf.grey_opacity = True - if do_particles: - sc.add_source(point0) - sc.add_source(point1) - if do_patch: - sc.add_source(box_patch) - sc.save('./img_' + filename[-8:] + '.png', sigma_clip=1.) - -# Get plt folders in current folder and loop over them. -file_list.sort() -for filename in file_list[5:]: - # disabled test: do not plot image if already exists - # if os.path.isfile(filename + '.png') is False: - print(filename) - img_onestep(filename) diff --git a/Tools/PostProcessing/yt3d_mpi.py b/Tools/PostProcessing/yt3d_mpi.py deleted file mode 100644 index 20054756d..000000000 --- a/Tools/PostProcessing/yt3d_mpi.py +++ /dev/null @@ -1,150 +0,0 @@ -# Copyright 2018-2019 Maxence Thevenet -# -# This file is part of WarpX. -# -# License: BSD-3-Clause-LBNL - -''' -This script loops over 3D plotfiles plt*****, generates a 3D rendering -of the data with fields and particles, and saves one image per plotfile to -img_*****.png. It was written for a beam-driven wakefield acceleration -simulation, and contains a lot of custom values (for transparency, -color intensity etc.), so feel free to modify it to meet your needs. - -Execute the file with e.g. -> mpirun -np 12 python yt3d_mpi.py -to generate the images. It can be quite slow for even moderately large -plotfiles. -''' - -import glob - -from mpi4py import MPI -import numpy as np -import scipy.constants as scc -import yt - -yt.funcs.mylog.setLevel(50) - -# my_max = 1.e11 # for smooth rendering -my_max = 5.e10 # for layered rendering -species_to_plot = ['plasma_e', 'beam', 'driver'] -# For each species, provide [red, green, blue, alpha] between 0. and 1. -species_colors = { 'plasma_e': [1., 1., 1., .15], - 'beam' : [1., 1., 1., .2 ], - 'driver' : [1., 1., 1., .2 ] } -# provide these to avoid jitter when using a moving window -use_moving_window = True -plot_mr_patch = False -rendering_type = 'layers' # 'layers' or 'smooth' -maxwell_solver = 'ckc' # 'ckc' or 'yee' -cfl = 0.99 -file_list = glob.glob('plotfiles/plt?????') - -bounds = ( -my_max, my_max ) -z_shift = 0. -w = (.01*my_max)**2 - -def jitter_shift(ds, ad, cfl, iteration): - if maxwell_solver == 'yee': - dt = 1./scc.c * 1./np.sqrt((1./ad['dx'][-1]**2 + 1./ad['dy'][-1]**2 + 1./ad['dz'][-1]**2)) - elif maxwell_solver == 'ckc': - dt = cfl * min( [ ad['dx'][-1], ad['dy'][-1], ad['dz'][-1] ] ) / scc.c - z_front = dt * float(iteration) * scc.c + 7.5e-6*yt.units.meter - z_shift = z_front-ds.domain_right_edge[2] - return z_shift - -def get_species_ytpoints(ad, species, color_vec): - xp = ad[species,'particle_position_x'].v - yp = ad[species,'particle_position_y'].v - zp = ad[species,'particle_position_z'].v - if species == 'plasma_e': - selection = np.abs(xp)<2.e-6 - zp = zp[selection] - yp = yp[selection] - xp = xp[selection] - vertices = np.column_stack((xp,yp,zp)) - colors = np.tile(color_vec,(vertices.shape[0], 1)) - points = yt.visualization.volume_rendering.render_source.PointSource(vertices, colors=colors, radii=1) - return points - -def img_onestep(filename): - ds = yt.load( filename ) - ad = ds.all_data() - iteration=int(filename[-5:]) - sc = yt.create_scene(ds, field='Ez') - if use_moving_window: - z_shift = jitter_shift( ds, ad, cfl, iteration ) - array_shift = z_shift * np.array([0., 0., 1.]) - if plot_mr_patch: - box_patch = yt.visualization.volume_rendering.render_source.BoxSource( - left_edge =ds.index.grids[1].LeftEdge +array_shift, - right_edge=ds.index.grids[1].RightEdge+array_shift, - color=[1.,0.1,0.1,.01] ) - sc.add_source(box_patch) - ######################## - ### volume rendering ### - ######################## - source = sc[0] - source.use_ghost_zones = True - source.grey_opacity = True - source.set_log(False) - tf = yt.ColorTransferFunction(bounds) - if rendering_type == 'smooth': - tf.add_gaussian(-my_max/4, width=15**2*w, height=[0.0, 0.0, 1.0, 1]) - tf.add_gaussian( my_max/4, width=15**2*w, height=[1.0, 0.0, 0.0, 1]) - if rendering_type == 'layers': - # NEGATIVE - tf.add_gaussian(-.04 *my_max, width=8*w, height=[0.1, 0.1, 1.0, 0.2]) - tf.add_gaussian(-.2 *my_max, width=5*w, height=[0.1, 0.1, 1.0, 0.5]) - tf.add_gaussian(-.6 *my_max, width=w, height=[0.0, 0.0, 1.0, 1.]) - # POSITIVE - tf.add_gaussian(.04 *my_max, width=8*w, height=[1.0, 1.0, 0.2, 0.2]) - tf.add_gaussian(.2 *my_max, width=5*w, height=[1.0, 1.0, 0.2, 0.5]) - tf.add_gaussian(.6 *my_max, width=w, height=[1.0, 1.0, 0.0, 1.]) - - ###################### - ### plot particles ### - ###################### - species_points = {} - for species in species_to_plot: - species_points[ species ] = get_species_ytpoints(ad, - species, species_colors[species]) - sc.add_source( species_points[ species ] ) - source.tfh.tf = tf - source.tfh.bounds = bounds - ######################### - ### camera properties ### - ######################### - cam = sc.camera - cam.resolution = (2048, 2048) - cam.width = .00018*yt.units.meter - cam.focus = ds.domain_center + \ - np.array([0., 0., 10.e-6 ])*yt.units.meter + \ - array_shift - cam.position = ds.domain_center + \ - np.array([15., 15., -5. ])*yt.units.micrometer + \ - array_shift - cam.normal_vector = [-0.3, -0.3, -.2] - cam.switch_orientation() - # save image - if rendering_type == 'smooth': - sc.save('img_' + str(my_number_list[count]).zfill(5), sigma_clip=5.) - if rendering_type == 'layers': - sc.save('img_' + str(my_number_list[count]).zfill(5), sigma_clip=2.) - -file_list.sort() -# Total number of files -nfiles = len(file_list) -# Each file has a unique number -number_list = range(nfiles) -comm_world = MPI.COMM_WORLD -me = comm_world.Get_rank() -nrank = comm_world.Get_size() -# List of files to process for current proc -my_list = file_list[ (me*nfiles)/nrank : ((me+1)*nfiles)/nrank ] -# List if file numbers for current proc -my_number_list = number_list[ (me*nfiles)/nrank : ((me+1)*nfiles)/nrank ] -for count, filename in enumerate(my_list): - print('processing ' + filename) - img_onestep(filename) diff --git a/Tools/Release/newVersion.sh b/Tools/Release/newVersion.sh deleted file mode 100755 index 3523c3730..000000000 --- a/Tools/Release/newVersion.sh +++ /dev/null @@ -1,148 +0,0 @@ -#!/usr/bin/env bash -# -# Copyright 2021 Axel Huebl -# -# This file is part of WarpX. -# - -# This file is a maintainer tool to bump the versions inside WarpX' -# source directory at all places where necessary. -# -# Note: this script is only tested with GNUtools (Linux) - -set -eu -o pipefail - - -# Maintainer Inputs ########################################################### - -echo "Hi there, this is a WarpX maintainer tool to update the source" -echo "code of WarpX to a new version number on all places where" -echo "necessary." -echo "For it to work, you need write access on the source directory and" -echo "you should be working in a clean git branch without ongoing" -echo "rebase/merge/conflict resolves and without unstaged changes." - -# check source dir -REPO_DIR=$(cd $(dirname ${BASH_SOURCE})/../../ && pwd) -echo -echo "Your current source directory is: ${REPO_DIR}" -echo - -read -p "Are you sure you want to continue? [y/N] " -r -echo - -if [[ ! ${REPLY} =~ ^[Yy]$ ]] -then - echo "You did not confirm with 'y', aborting." - exit 1 -fi - -echo "We will now run a few sed commands on your source directory." -echo "Please answer the following questions about the version number" -echo "you want to set first:" -echo - -read -p "MAJOR version? (e.g. year: $(date +%y)) " -r -MAJOR=${REPLY} -echo -read -p "MINOR version? (e.g. month: $(date +%m)) " -r -MINOR=${REPLY} -echo -read -p "PATCH version? (e.g. usually empty) " -r -PATCH=${REPLY} -echo -read -p "SUFFIX? (e.g. rc2, dev, ... usually empty) " -r -SUFFIX=${REPLY} -echo - -if [[ -n "${SUFFIX}" ]] -then - SUFFIX_STR="-$SUFFIX" -else - SUFFIX_STR="" -fi -if [[ ! -n "${PATCH}" ]] -then - PATCH="" -fi - -VERSION_STR_NOSUFFIX="${MAJOR}.${MINOR}${PATCH}" -VERSION_STR="${MAJOR}.${MINOR}${PATCH}${SUFFIX_STR}" - -echo -echo "Your new version is: ${VERSION_STR}" -echo - -read -p "Is this information correct? Will now start updating! [y/N] " -r -echo - -if [[ ! ${REPLY} =~ ^[Yy]$ ]] -then - echo "You did not confirm with 'y', aborting." - exit 1 -fi - - -# Updates ##################################################################### - -# CMake scripts -# CMakeLists.txt: project(WarpX VERSION YY.MM) -sed -i -E "s/"\ -"(project\(WarpX VERSION[[:blank:]]+)(.*)(\))/"\ -"\1${VERSION_STR_NOSUFFIX}\3/g" \ - ${REPO_DIR}/CMakeLists.txt - -# cmake/dependencies/AMReX.cmake: -# set(WarpX_amrex_branch "development" ... (future) -# find_package(AMReX YY.MM CONFIG ... -sed -i -E "s/"\ -"(find_package\(AMReX[[:blank:]]+)(.*)([[:blank:]]+CONFIG.+)/"\ -"\1${VERSION_STR_NOSUFFIX}\3/g" \ - ${REPO_DIR}/cmake/dependencies/AMReX.cmake - -# cmake/dependencies/PICSAR.cmake (future) - -# setup.py: version = '21.02', -sed -i -E "s/"\ -"([[:blank:]]*version[[:blank:]]*=[[:blank:]]*')(.*)('.+)/"\ -"\1${VERSION_STR}\3/g" \ - ${REPO_DIR}/setup.py - -# Python/setup.py: version = '21.02', -sed -i -E "s/"\ -"([[:blank:]]*version[[:blank:]]*=[[:blank:]]*')(.*)('.+)/"\ -"\1${VERSION_STR}\3/g" \ - ${REPO_DIR}/Python/setup.py - -# sphinx / RTD -# docs/source/conf.py -sed -i "s/"\ -"[[:blank:]]*version[[:blank:]]*=[[:blank:]]*u.*/"\ -"version = u'${VERSION_STR_NOSUFFIX}'/g" \ - ${REPO_DIR}/Docs/source/conf.py -sed -i "s/"\ -"[[:blank:]]*release[[:blank:]]*=[[:blank:]]*u.*/"\ -"release = u'${VERSION_STR}'/g" \ - ${REPO_DIR}/Docs/source/conf.py - -# LICENSE -# LICENSE.txt: WarpX vYY.MM Copyright (c) 20YY, The Regents of ... -sed -i -E "s/"\ -"(WarpX v)(.*)([[:blank:]]+Copyright \(c\) 2018-)(.*)(, The Regents of.*)/"\ -"\1${VERSION_STR_NOSUFFIX}\3$(date +%Y)\5/g" \ - ${REPO_DIR}/LICENSE.txt - -# README.md -# README.md: WarpX Copyright (c) 2018-2021, The Regents of ... -sed -i -E "s/"\ -"(WarpX Copyright \(c\) 2018-)(.*)(, The Regents of.*)/"\ -"\1$(date +%Y)\3/g" \ - ${REPO_DIR}/README.md - - -# Epilog ###################################################################### - -echo -echo "Done. Please check your source, e.g. via" -echo " git diff" -echo "now and commit the changes if no errors occured." diff --git a/Tools/Release/requirements.txt b/Tools/Release/requirements.txt deleted file mode 100644 index 5ddc7784c..000000000 --- a/Tools/Release/requirements.txt +++ /dev/null @@ -1 +0,0 @@ -requests~=2.0 diff --git a/Tools/Release/updateAMReX.py b/Tools/Release/updateAMReX.py deleted file mode 100755 index 4f2d84e4e..000000000 --- a/Tools/Release/updateAMReX.py +++ /dev/null @@ -1,178 +0,0 @@ -#!/usr/bin/env python3 -# -# Copyright 2021 Axel Huebl -# -# This file is part of WarpX. -# - -# This file is a maintainer tool to bump the AMReX version that we pull in -# when building WarpX. -# -import datetime -from pathlib import Path -import re -import sys - -import requests - -try: - from configupdater import ConfigUpdater -except ImportError: - print("Warning: Cannot update .ini files without 'configupdater'") - print("Consider running 'python -m pip install configupdater'") - ConfigUpdater = None - sys.exit(1) - - -# Maintainer Inputs ########################################################### - -print("""Hi there, this is a WarpX maintainer tool to update the source -code of WarpX to a new commit/release of AMReX. -For it to work, you need write access on the source directory and -you should be working in a clean git branch without ongoing -rebase/merge/conflict resolves and without unstaged changes.""") - -# check source dir -REPO_DIR = Path(__file__).parent.parent.parent.absolute() -print(f"\nYour current source directory is: {REPO_DIR}") - -REPLY = input("Are you sure you want to continue? [y/N] ") -print() -if not REPLY in ["Y", "y"]: - print("You did not confirm with 'y', aborting.") - sys.exit(1) - - -# Current Versions ############################################################ - -# AMReX development HEAD -amrex_gh = requests.get('https://api.github.com/repos/AMReX-Codes/amrex/commits/development') -amrex_HEAD = amrex_gh.json()["sha"] - -# WarpX references to AMReX: cmake/dependencies/AMReX.cmake -amrex_cmake_path = str(REPO_DIR.joinpath("cmake/dependencies/AMReX.cmake")) -# branch/commit/tag (git fetcher) version -# set(WarpX_amrex_branch "development" ... -amrex_branch = f"unknown (format issue in {amrex_cmake_path})" -with open(amrex_cmake_path, encoding='utf-8') as f: - r_minimal = re.findall(r'.*set\(WarpX_amrex_branch\s+"(.+)"\s+.*', - f.read(), re.MULTILINE) - if len(r_minimal) >= 1: - amrex_branch = r_minimal[0] - -# minimal (external) version -# find_package(AMReX YY.MM CONFIG ... -amrex_minimal = f"unknown (format issue in {amrex_cmake_path})" -with open(amrex_cmake_path, encoding='utf-8') as f: - r_minimal = re.findall(r'.*find_package\(AMReX\s+(.+)\s+CONFIG\s+.*', - f.read(), re.MULTILINE) - if len(r_minimal) >= 1: - amrex_minimal = r_minimal[0] - - -# Ask for new ################################################################# - -print("""We will now run a few sed commands on your source directory. -Please answer the following questions about the version number -you want to require from AMReX:\n""") - -print(f"Currently, WarpX builds against this AMReX commit/branch/sha: {amrex_branch}") -print(f"AMReX HEAD commit (development branch): {amrex_HEAD}") -amrex_new_branch = input(f"Update AMReX commit/branch/sha: ").strip() -if not amrex_new_branch: - amrex_new_branch = amrex_branch - print(f"--> Nothing entered, will keep: {amrex_branch}") -print() - -print(f"Currently, a pre-installed AMReX is required at least at version: {amrex_minimal}") -today = datetime.date.today().strftime("%y.%m") -amrex_new_minimal = input(f"New minimal AMReX version (e.g. {today})? ").strip() -if not amrex_new_minimal: - amrex_new_minimal = amrex_minimal - print(f"--> Nothing entered, will keep: {amrex_minimal}") - -print() -print(f"New AMReX commit/branch/sha: {amrex_new_branch}") -print(f"New minimal AMReX version: {amrex_new_minimal}\n") - -REPLY = input("Is this information correct? Will now start updating! [y/N] ") -print() -if not REPLY in ["Y", "y"]: - print("You did not confirm with 'y', aborting.") - sys.exit(1) - - -# Updates ##################################################################### - -# run_test.sh (used also for Azure Pipelines) -run_test_path = str(REPO_DIR.joinpath("run_test.sh")) -with open(run_test_path, encoding='utf-8') as f: - run_test_content = f.read() - # branch/commit/tag (git fetcher) version - # cd amrex && git checkout COMMIT_TAG_OR_BRANCH && cd - - run_test_content = re.sub( - r'(.*cd\s+amrex.+git checkout\s+--detach\s+)(.+)(\s+&&\s.*)', - r'\g<1>{}\g<3>'.format(amrex_new_branch), - run_test_content, flags = re.MULTILINE) - -with open(run_test_path, "w", encoding='utf-8') as f: - f.write(run_test_content) - -# CI: legacy build check in .github/workflows/cuda.yml -ci_gnumake_path = str(REPO_DIR.joinpath(".github/workflows/cuda.yml")) -with open(ci_gnumake_path, encoding='utf-8') as f: - ci_gnumake_content = f.read() - # branch/commit/tag (git fetcher) version - # cd ../amrex && git checkout COMMIT_TAG_OR_BRANCH && cd - - ci_gnumake_content = re.sub( - r'(.*cd\s+\.\./amrex.+git checkout\s+--detach\s+)(.+)(\s+&&\s.*)', - r'\g<1>{}\g<3>'.format(amrex_new_branch), - ci_gnumake_content, flags = re.MULTILINE) - -with open(ci_gnumake_path, "w", encoding='utf-8') as f: - f.write(ci_gnumake_content) - -if ConfigUpdater is not None: - # WarpX-tests.ini - tests_ini_path = str(REPO_DIR.joinpath("Regression/WarpX-tests.ini")) - cp = ConfigUpdater() - cp.optionxform = str - cp.read(tests_ini_path) - cp['AMReX']['branch'].value = amrex_new_branch - cp.update_file() - - # WarpX-GPU-tests.ini - tests_gpu_ini_path = str(REPO_DIR.joinpath("Regression/WarpX-GPU-tests.ini")) - cp = ConfigUpdater() - cp.optionxform = str - cp.read(tests_gpu_ini_path) - cp['AMReX']['branch'].value = amrex_new_branch - cp.update_file() - -# WarpX references to AMReX: cmake/dependencies/AMReX.cmake -with open(amrex_cmake_path, encoding='utf-8') as f: - amrex_cmake_content = f.read() - - # branch/commit/tag (git fetcher) version - # set(WarpX_amrex_branch "development" ... - amrex_cmake_content = re.sub( - r'(.*set\(WarpX_amrex_branch\s+")(.+)("\s+.*)', - r'\g<1>{}\g<3>'.format(amrex_new_branch), - amrex_cmake_content, flags = re.MULTILINE) - - # minimal (external) version - # find_package(AMReX YY.MM CONFIG ... - amrex_cmake_content = re.sub( - r'(.*find_package\(AMReX\s+)(.+)(\s+CONFIG\s+.*)', - r'\g<1>{}\g<3>'.format(amrex_new_minimal), - amrex_cmake_content, flags = re.MULTILINE) - -with open(amrex_cmake_path, "w", encoding='utf-8') as f: - f.write(amrex_cmake_content) - - -# Epilogue #################################################################### - -print("""Done. Please check your source, e.g. via - git diff -now and commit the changes if no errors occurred.""") diff --git a/Tools/Release/updatePICSAR.py b/Tools/Release/updatePICSAR.py deleted file mode 100755 index ce1efec0a..000000000 --- a/Tools/Release/updatePICSAR.py +++ /dev/null @@ -1,124 +0,0 @@ -#!/usr/bin/env python3 -# -# Copyright 2021 Axel Huebl -# -# This file is part of WarpX. -# - -# This file is a maintainer tool to bump the PICSAR version that we pull in -# when building WarpX. -# -import datetime -from pathlib import Path -import re -import sys - -import requests - -# Maintainer Inputs ########################################################### - -print("""Hi there, this is a WarpX maintainer tool to update the source -code of WarpX to a new commit/release of PICSAR. -For it to work, you need write access on the source directory and -you should be working in a clean git branch without ongoing -rebase/merge/conflict resolves and without unstaged changes.""") - -# check source dir -REPO_DIR = Path(__file__).parent.parent.parent.absolute() -print(f"\nYour current source directory is: {REPO_DIR}") - -REPLY = input("Are you sure you want to continue? [y/N] ") -print() -if not REPLY in ["Y", "y"]: - print("You did not confirm with 'y', aborting.") - sys.exit(1) - - -# Current Versions ############################################################ - -# PICSAR development HEAD -PICSAR_gh = requests.get('https://api.github.com/repos/ECP-WarpX/picsar/commits/development') -PICSAR_HEAD = PICSAR_gh.json()["sha"] - -# WarpX references to PICSAR: cmake/dependencies/PICSAR.cmake -PICSAR_cmake_path = str(REPO_DIR.joinpath("cmake/dependencies/PICSAR.cmake")) -# branch/commit/tag (git fetcher) version -# set(WarpX_picsar_branch "development" ... -PICSAR_branch = f"unknown (format issue in {PICSAR_cmake_path})" -with open(PICSAR_cmake_path, encoding='utf-8') as f: - r_minimal = re.findall(r'.*set\(WarpX_picsar_branch\s+"(.+)"\s+.*', - f.read(), re.MULTILINE) - if len(r_minimal) >= 1: - PICSAR_branch = r_minimal[0] - -# minimal (external) version -# find_package(PICSAR YY.MM CONFIG ... -PICSAR_minimal = f"unknown (format issue in {PICSAR_cmake_path})" -with open(PICSAR_cmake_path, encoding='utf-8') as f: - r_minimal = re.findall(r'.*find_package\(PICSAR\s+(.+)\s+CONFIG\s+.*', - f.read(), re.MULTILINE) - if len(r_minimal) >= 1: - PICSAR_minimal = r_minimal[0] - - -# Ask for new ################################################################# - -print("""We will now run a few sed commands on your source directory. -Please answer the following questions about the version number -you want to require from PICSAR:\n""") - -print(f"Currently, WarpX builds against this PICSAR commit/branch/sha: {PICSAR_branch}") -print(f"PICSAR HEAD commit (development branch): {PICSAR_HEAD}") -PICSAR_new_branch = input(f"Update PICSAR commit/branch/sha: ").strip() -if not PICSAR_new_branch: - PICSAR_new_branch = PICSAR_branch - print(f"--> Nothing entered, will keep: {PICSAR_branch}") -print() - -print(f"Currently, a pre-installed PICSAR is required at least at version: {PICSAR_minimal}") -today = datetime.date.today().strftime("%y.%m") -PICSAR_new_minimal = input(f"New minimal PICSAR version (e.g. {today})? ").strip() -if not PICSAR_new_minimal: - PICSAR_new_minimal = PICSAR_minimal - print(f"--> Nothing entered, will keep: {PICSAR_minimal}") - -print() -print(f"New PICSAR commit/branch/sha: {PICSAR_new_branch}") -print(f"New minimal PICSAR version: {PICSAR_new_minimal}\n") - -REPLY = input("Is this information correct? Will now start updating! [y/N] ") -print() -if not REPLY in ["Y", "y"]: - print("You did not confirm with 'y', aborting.") - sys.exit(1) - - -# Updates ##################################################################### - -# WarpX references to PICSAR: cmake/dependencies/PICSAR.cmake -with open(PICSAR_cmake_path, encoding='utf-8') as f: - PICSAR_cmake_content = f.read() - - # branch/commit/tag (git fetcher) version - # set(WarpX_picsar_branch "development" ... - PICSAR_cmake_content = re.sub( - r'(.*set\(WarpX_picsar_branch\s+")(.+)("\s+.*)', - r'\g<1>{}\g<3>'.format(PICSAR_new_branch), - PICSAR_cmake_content, flags = re.MULTILINE) - - # minimal (external) version - # find_package(PICSAR YY.MM CONFIG ... - PICSAR_cmake_content = re.sub( - r'(.*find_package\(PICSAR\s+)(.+)(\s+CONFIG\s+.*)', - r'\g<1>{}\g<3>'.format(PICSAR_new_minimal), - PICSAR_cmake_content, flags = re.MULTILINE) - -with open(PICSAR_cmake_path, "w", encoding='utf-8') as f: - f.write(PICSAR_cmake_content) - - -# Epilogue #################################################################### - -print("""Done. Please check your source, e.g. via - git diff -now and commit the changes if no errors occurred.""") diff --git a/Tools/machines/cori-nersc/cori_gpu.sbatch b/Tools/machines/cori-nersc/cori_gpu.sbatch deleted file mode 100644 index 7ccfcbf27..000000000 --- a/Tools/machines/cori-nersc/cori_gpu.sbatch +++ /dev/null @@ -1,54 +0,0 @@ -#!/bin/bash -l - -# Copyright 2021 Axel Huebl -# This file is part of WarpX. -# License: BSD-3-Clause-LBNL -# -# Ref: -# - https://docs-dev.nersc.gov/cgpu/hardware/ -# - https://docs-dev.nersc.gov/cgpu/access/ -# - https://docs-dev.nersc.gov/cgpu/usage/#controlling-task-and-gpu-binding - -# Just increase this number of you need more nodes. -#SBATCH -N 2 -#SBATCH -t 03:00:00 -#SBATCH -J -#SBATCH -A m1759 -#SBATCH -q regular -#SBATCH -C gpu -# 8 V100 GPUs (16 GB) per node -#SBATCH --gres=gpu:8 -#SBATCH --exclusive -# one MPI rank per GPU (a quarter-socket) -#SBATCH --tasks-per-node=8 -# request all logical (virtual) cores per quarter-socket -#SBATCH --cpus-per-task=10 -#SBATCH -e WarpX.e%j -#SBATCH -o WarpX.o%j - - -# each Cori GPU node has 2 sockets of Intel Xeon Gold 6148 ('Skylake') @ 2.40 GHz -export WARPX_NMPI_PER_NODE=8 - -# each MPI rank per half-socket has 10 physical cores -# or 20 logical (virtual) cores -# we split half-sockets again by 2 to have one MPI rank per GPU -# over-subscribing each physical core with 2x -# hyperthreading leads to often to slight speedup on Intel -# the settings below make sure threads are close to the -# controlling MPI rank (process) per half socket and -# distribute equally over close-by physical cores and, -# for N>20, also equally over close-by logical cores -export OMP_PROC_BIND=spread -export OMP_PLACES=threads -export OMP_NUM_THREADS=10 - -# for async_io support: (optional) -export MPICH_MAX_THREAD_SAFETY=multiple - -EXE="" - -srun --cpu_bind=cores --gpus-per-task=1 --gpu-bind=map_gpu:0,1,2,3,4,5,6,7 \ - -n $(( ${SLURM_JOB_NUM_NODES} * ${WARPX_NMPI_PER_NODE} )) \ - ${EXE} \ - > output.txt diff --git a/Tools/machines/cori-nersc/cori_haswell.sbatch b/Tools/machines/cori-nersc/cori_haswell.sbatch deleted file mode 100644 index bce5bfcaa..000000000 --- a/Tools/machines/cori-nersc/cori_haswell.sbatch +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash -l - -# Just increase this number of you need more nodes. -#SBATCH -N 1 -#SBATCH -t 03:00:00 -#SBATCH -q regular -#SBATCH -C haswell -#SBATCH -J -#SBATCH -A -#SBATCH -e error.txt -#SBATCH -o output.txt -# one MPI rank per half-socket (see below) -#SBATCH --tasks-per-node=4 -# request all logical (virtual) cores per half-socket -#SBATCH --cpus-per-task=16 - - -# each Cori Haswell node has 2 sockets of Intel Xeon E5-2698 v3 -# each Xeon CPU is divided into 2 bus rings that each have direct L3 access -export WARPX_NMPI_PER_NODE=4 - -# each MPI rank per half-socket has 8 physical cores -# or 16 logical (virtual) cores -# over-subscribing each physical core with 2x -# hyperthreading leads to a slight (3.5%) speedup -# the settings below make sure threads are close to the -# controlling MPI rank (process) per half socket and -# distribute equally over close-by physical cores and, -# for N>8, also equally over close-by logical cores -export OMP_PROC_BIND=spread -export OMP_PLACES=threads -export OMP_NUM_THREADS=16 - -# for async_io support: (optional) -export MPICH_MAX_THREAD_SAFETY=multiple - -EXE="" - -srun --cpu_bind=cores -n $(( ${SLURM_JOB_NUM_NODES} * ${WARPX_NMPI_PER_NODE} )) \ - ${EXE} \ - > output.txt diff --git a/Tools/machines/cori-nersc/cori_knl.sbatch b/Tools/machines/cori-nersc/cori_knl.sbatch deleted file mode 100644 index 3c9698275..000000000 --- a/Tools/machines/cori-nersc/cori_knl.sbatch +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/bash -l - -# Copyright 2019 Maxence Thevenet -# -# This file is part of WarpX. -# -# License: BSD-3-Clause-LBNL - - -#SBATCH -N 2 -#SBATCH -t 01:00:00 -#SBATCH -q regular -#SBATCH -C knl -#SBATCH -S 4 -#SBATCH -J -#SBATCH -A -#SBATCH -e WarpX.e%j -#SBATCH -o WarpX.o%j - -export OMP_PLACES=threads -export OMP_PROC_BIND=spread - -# KNLs have 4 hyperthreads max -export CORI_MAX_HYPETHREAD_LEVEL=4 -# We use 64 cores out of the 68 available on Cori KNL, -# and leave 4 to the system (see "#SBATCH -S 4" above). -export CORI_NCORES_PER_NODE=64 - -# Typically use 8 MPI ranks per node without hyperthreading, -# i.e., OMP_NUM_THREADS=8 -export WARPX_NMPI_PER_NODE=8 -export WARPX_HYPERTHREAD_LEVEL=1 - -# Compute OMP_NUM_THREADS and the thread count (-c option) -export CORI_NHYPERTHREADS_MAX=$(( ${CORI_MAX_HYPETHREAD_LEVEL} * ${CORI_NCORES_PER_NODE} )) -export WARPX_NTHREADS_PER_NODE=$(( ${WARPX_HYPERTHREAD_LEVEL} * ${CORI_NCORES_PER_NODE} )) -export OMP_NUM_THREADS=$(( ${WARPX_NTHREADS_PER_NODE} / ${WARPX_NMPI_PER_NODE} )) -export WARPX_THREAD_COUNT=$(( ${CORI_NHYPERTHREADS_MAX} / ${WARPX_NMPI_PER_NODE} )) - -# for async_io support: (optional) -export MPICH_MAX_THREAD_SAFETY=multiple - -srun --cpu_bind=cores -n $(( ${SLURM_JOB_NUM_NODES} * ${WARPX_NMPI_PER_NODE} )) -c ${WARPX_THREAD_COUNT} \ - \ - > output.txt diff --git a/Tools/machines/cori-nersc/gpu_warpx.profile.example b/Tools/machines/cori-nersc/gpu_warpx.profile.example deleted file mode 100644 index 0d9d364cb..000000000 --- a/Tools/machines/cori-nersc/gpu_warpx.profile.example +++ /dev/null @@ -1,32 +0,0 @@ -export proj="m1759" - -module purge -module load modules -module load cgpu -module load esslurm -module load gcc/8.3.0 cuda/11.4.0 cmake/3.22.1 -module load openmpi - -export CMAKE_PREFIX_PATH=$HOME/sw/cori_gpu/c-blosc-1.12.1-install:$CMAKE_PREFIX_PATH -export CMAKE_PREFIX_PATH=$HOME/sw/cori_gpu/adios2-2.7.1-install:$CMAKE_PREFIX_PATH - -if [ -d "$HOME/sw/cori_gpu/venvs/cori_gpu_warpx" ] -then - source $HOME/sw/cori_gpu/venvs/cori_gpu_warpx/bin/activate -fi - -# compiler environment hints -export CC=$(which gcc) -export CXX=$(which g++) -export FC=$(which gfortran) -export CUDACXX=$(which nvcc) -export CUDAHOSTCXX=$(which g++) - -# optimize CUDA compilation for V100 -export AMREX_CUDA_ARCH=7.0 - -# allocate a GPU, e.g. to compile on -# 10 logical cores (5 physical), 1 GPU -function getNode() { - salloc -C gpu -N 1 -t 30 -c 10 --gres=gpu:1 -A $proj -} diff --git a/Tools/machines/cori-nersc/haswell_warpx.profile.example b/Tools/machines/cori-nersc/haswell_warpx.profile.example deleted file mode 100644 index b0ac225cc..000000000 --- a/Tools/machines/cori-nersc/haswell_warpx.profile.example +++ /dev/null @@ -1,17 +0,0 @@ -module swap PrgEnv-intel PrgEnv-gnu -module load cmake/3.22.1 -module switch cray-libsci cray-libsci/20.09.1 -module load cray-hdf5-parallel/1.10.5.2 -module load cray-fftw/3.3.8.10 -module load cray-python/3.9.7.1 - -export PKG_CONFIG_PATH=$FFTW_DIR/pkgconfig:$PKG_CONFIG_PATH -export CMAKE_PREFIX_PATH=$HOME/sw/haswell/c-blosc-1.12.1-install:$CMAKE_PREFIX_PATH -export CMAKE_PREFIX_PATH=$HOME/sw/haswell/adios2-2.7.1-install:$CMAKE_PREFIX_PATH -export CMAKE_PREFIX_PATH=$HOME/sw/haswell/blaspp-master-install:$CMAKE_PREFIX_PATH -export CMAKE_PREFIX_PATH=$HOME/sw/haswell/lapackpp-master-install:$CMAKE_PREFIX_PATH - -if [ -d "$HOME/sw/haswell/venvs/haswell_warpx" ] -then - source $HOME/sw/haswell/venvs/haswell_warpx/bin/activate -fi diff --git a/Tools/machines/cori-nersc/knl_warpx.profile.example b/Tools/machines/cori-nersc/knl_warpx.profile.example deleted file mode 100644 index 093c7f627..000000000 --- a/Tools/machines/cori-nersc/knl_warpx.profile.example +++ /dev/null @@ -1,21 +0,0 @@ -module swap craype-haswell craype-mic-knl -module swap PrgEnv-intel PrgEnv-gnu -module load cmake/3.22.1 -module switch cray-libsci cray-libsci/20.09.1 -module load cray-hdf5-parallel/1.10.5.2 -module load cray-fftw/3.3.8.10 -module load cray-python/3.9.7.1 - -export PKG_CONFIG_PATH=$FFTW_DIR/pkgconfig:$PKG_CONFIG_PATH -export CMAKE_PREFIX_PATH=$HOME/sw/knl/c-blosc-1.12.1-install:$CMAKE_PREFIX_PATH -export CMAKE_PREFIX_PATH=$HOME/sw/knl/adios2-2.7.1-install:$CMAKE_PREFIX_PATH -export CMAKE_PREFIX_PATH=$HOME/sw/knl/blaspp-master-install:$CMAKE_PREFIX_PATH -export CMAKE_PREFIX_PATH=$HOME/sw/knl/lapackpp-master-install:$CMAKE_PREFIX_PATH - -if [ -d "$HOME/sw/knl/venvs/knl_warpx" ] -then - source $HOME/sw/knl/venvs/knl_warpx/bin/activate -fi - -export CXXFLAGS="-march=knl" -export CFLAGS="-march=knl" diff --git a/Tools/machines/crusher-olcf/crusher_warpx.profile.example b/Tools/machines/crusher-olcf/crusher_warpx.profile.example deleted file mode 100644 index 6fe8ef6f4..000000000 --- a/Tools/machines/crusher-olcf/crusher_warpx.profile.example +++ /dev/null @@ -1,63 +0,0 @@ -# please set your project account -# note: WarpX ECP members use aph114_crusher -#export proj= - -# required dependencies -module load cpe/22.08 -module load cmake/3.23.2 -module load craype-accel-amd-gfx90a -module load rocm/5.3.0 -module load cray-mpich/8.1.23 -module load cce/15.0.0 # must be loaded after rocm - -# optional: faster builds -module load ccache -module load ninja - -# optional: just an additional text editor -module load nano - -# optional: for PSATD in RZ geometry support (not yet available) -#module load blaspp -#module load lapackpp -export CMAKE_PREFIX_PATH=$HOME/sw/crusher/blaspp-master:$CMAKE_PREFIX_PATH -export CMAKE_PREFIX_PATH=$HOME/sw/crusher/lapackpp-master:$CMAKE_PREFIX_PATH -export LD_LIBRARY_PATH=$HOME/sw/crusher/blaspp-master/lib64:$LD_LIBRARY_PATH -export LD_LIBRARY_PATH=$HOME/sw/crusher/lapackpp-master/lib64:$LD_LIBRARY_PATH - -# optional: for QED lookup table generation support -#module load boost/1.78.0-cxx17 - -# optional: for openPMD support -module load adios2/2.8.3 -module load cray-hdf5-parallel/1.12.2.1 - -# optional: for Python bindings or libEnsemble -module load cray-python/3.9.12.1 - -# suggested by HPE -module unload xalt/1.3.0 - -# fix system defaults: do not escape $ with a \ on tab completion -shopt -s direxpand - -# an alias to request an interactive batch node for one hour -# for paralle execution, start on the batch node: srun -alias getNode="salloc -A $proj -J warpx -t 01:00:00 -p batch -N 1 -c 8 --ntasks-per-node=8" -# an alias to run a command on a batch node for up to 30min -# usage: runNode -alias runNode="srun -A $proj -J warpx -t 00:30:00 -p batch -N 1 -c 8 --ntasks-per-node=8" - -# GPU-aware MPI -export MPICH_GPU_SUPPORT_ENABLED=1 - -# optimize ROCm/HIP compilation for MI250X -export AMREX_AMD_ARCH=gfx90a - -# compiler environment hints -export CC=$(which cc) -export CXX=$(which CC) -export FC=$(which ftn) -export CFLAGS="-I${ROCM_PATH}/include" -export CXXFLAGS="-I${ROCM_PATH}/include" -#export LDFLAGS="-L${ROCM_PATH}/lib -lamdhip64" diff --git a/Tools/machines/crusher-olcf/submit.sh b/Tools/machines/crusher-olcf/submit.sh deleted file mode 100644 index 84e80e5f3..000000000 --- a/Tools/machines/crusher-olcf/submit.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/usr/bin/env bash - -#SBATCH -A -# note: WarpX ECP members use aph114 -#SBATCH -J warpx -#SBATCH -o %x-%j.out -#SBATCH -t 00:10:00 -#SBATCH -p batch -#SBATCH --ntasks-per-node=8 -# broken since 01/2023 -#S BATCH --cpus-per-task=8 -#SBATCH --gpus-per-task=1 -#SBATCH --gpu-bind=closest -#SBATCH -N 1 - -# From the documentation: -# Each Crusher compute node consists of [1x] 64-core AMD EPYC 7A53 -# "Optimized 3rd Gen EPYC" CPU (with 2 hardware threads per physical core) with -# access to 512 GB of DDR4 memory. -# Each node also contains [4x] AMD MI250X, each with 2 Graphics Compute Dies -# (GCDs) for a total of 8 GCDs per node. The programmer can think of the 8 GCDs -# as 8 separate GPUs, each having 64 GB of high-bandwidth memory (HBM2E). - -# note (5-16-22, OLCFHELP-6888) -# this environment setting is currently needed on Crusher to work-around a -# known issue with Libfabric -#export FI_MR_CACHE_MAX_COUNT=0 # libfabric disable caching -# or, less invasive: -export FI_MR_CACHE_MONITOR=memhooks # alternative cache monitor - -# note (9-2-22, OLCFDEV-1079) -# this environment setting is needed to avoid that rocFFT writes a cache in -# the home directory, which does not scale. -export ROCFFT_RTC_CACHE_PATH=/dev/null - -export OMP_NUM_THREADS=8 -srun ./warpx inputs > output.txt diff --git a/Tools/machines/desktop/spack-debian-cuda.yaml b/Tools/machines/desktop/spack-debian-cuda.yaml deleted file mode 120000 index f396febb4..000000000 --- a/Tools/machines/desktop/spack-debian-cuda.yaml +++ /dev/null @@ -1 +0,0 @@ -spack-ubuntu-cuda.yaml \ No newline at end of file diff --git a/Tools/machines/desktop/spack-debian-openmp.yaml b/Tools/machines/desktop/spack-debian-openmp.yaml deleted file mode 120000 index 16868de7e..000000000 --- a/Tools/machines/desktop/spack-debian-openmp.yaml +++ /dev/null @@ -1 +0,0 @@ -spack-ubuntu-openmp.yaml \ No newline at end of file diff --git a/Tools/machines/desktop/spack-debian-rocm.yaml b/Tools/machines/desktop/spack-debian-rocm.yaml deleted file mode 120000 index 59dee26a0..000000000 --- a/Tools/machines/desktop/spack-debian-rocm.yaml +++ /dev/null @@ -1 +0,0 @@ -spack-ubuntu-rocm.yaml \ No newline at end of file diff --git a/Tools/machines/desktop/spack-macos-openmp.yaml b/Tools/machines/desktop/spack-macos-openmp.yaml deleted file mode 100644 index 820cf7069..000000000 --- a/Tools/machines/desktop/spack-macos-openmp.yaml +++ /dev/null @@ -1,120 +0,0 @@ -# This is a Spack environment file. -# -# This environment can be used to install all dependencies to build the manual -# locally. -# -# Activating and installing this environment will provide all dependencies -# that are needed for full-feature development. -# https://spack.readthedocs.io/en/latest/environments.html -# -# Inside the directory of this file -# spack env create warpx-openmp-dev spack-macos-openmp.yaml -# spack env activate warpx-openmp-dev -# spack install # only needed the first time -# -spack: - specs: - - adios2 ~fortran - - ascent +adios2 +python ~fortran - - blaspp ~cuda +openmp ~rocm - - boost - - ccache - - cmake - - conduit ~fortran - - fftw - - hdf5 ~fortran - - lapackpp ~cuda ~rocm ^blaspp ~cuda +openmp ~rocm - - mpi - - llvm-openmp - - pkgconfig - - python - - py-cython - - py-h5py - - py-libensemble +nlopt - - py-mpi4py - - py-numpy - - py-pip - - py-setuptools - - py-wheel - - sensei +ascent ~catalyst +python -# not yet ready for macOS prime time -# https://github.com/spack/spack/issues/32283 -# https://github.com/spack/spack/pull/32285 -# https://github.com/spack/spack/pull/32284 -# - ecp-data-vis-sdk +adios2 +ascent +hdf5 +sensei -# skipped to save time: 3D post-processing -# - paraview +adios2 +python3 +qt -# skipped to save time, because they are faster installed via pip afterwards -# python3 -m pip install jupyter matplotlib numpy openpmd-api openpmd-viewer pandas scipy yt -# - py-jupyter -# - py-matplotlib +animation +fonts +latex +movies backend=macosx -# - openpmd-api +python -# - py-openpmd-viewer +numba +jupyter -# - py-pandas -# - py-pyqt5 -# - py-scipy -# - py-yt - - packages: - all: - variants: +mpi ~fortran ~cuda ~rocm - # BLAS/LAPACK: the default (accelerate) pulls veclibfort@0.4.2 for - # py-numpy, which fails to build on M1 - # MPI: the default (openmpi) triggers annoying firewall warnings when - # running executables - providers: - blas: [openblas] - lapack: [openblas] - mpi: [mpich] - # default blocks at HDF5 1.8, resulting in unmergable solution - conduit: - variants: ~hdf5_compat ~fortran - # otherwise concretization error between ccache and all other variants - zstd: - variants: +programs - - compilers: - # macOS - # preparation: you first need to install xcode (app store) and gcc (homebrew) and gpg2 (homebrew) - - compiler: - spec: apple-clang@13.1.6 - paths: - cc: /usr/bin/clang - cxx: /usr/bin/clang++ - f77: /opt/homebrew/bin/gfortran - fc: /opt/homebrew/bin/gfortran - flags: {} - operating_system: monterey - target: aarch64 - modules: [] - environment: {} - extra_rpaths: [] - - compiler: - spec: apple-clang@13.1.6 - paths: - cc: /usr/bin/clang - cxx: /usr/bin/clang++ - f77: /opt/homebrew/bin/gfortran - fc: /opt/homebrew/bin/gfortran - flags: {} - operating_system: monterey - target: x86_64 - modules: [] - environment: {} - extra_rpaths: [] - - # binary caches - mirrors: - E4S: https://cache.e4s.io - LLNL: https://mirror.spack.io -# needs boto3 -# E4Smac: s3://spack-binaries/develop/e4s-mac - - # do not try to reuse existing packages, which can confuse the concretizer - concretizer: - reuse: false - unify: true - - # limit the build parallelism (default: call virtual cores) -# config: -# build_jobs: 6 diff --git a/Tools/machines/desktop/spack-ubuntu-cuda.yaml b/Tools/machines/desktop/spack-ubuntu-cuda.yaml deleted file mode 100644 index 08d0c95ee..000000000 --- a/Tools/machines/desktop/spack-ubuntu-cuda.yaml +++ /dev/null @@ -1,149 +0,0 @@ -# This is a Spack environment file. -# -# This environment can be used to install all dependencies to build the manual -# locally. -# -# Activating and installing this environment will provide all dependencies -# that are needed for full-feature development. -# https://spack.readthedocs.io/en/latest/environments.html -# -# Inside the directory of this file -# spack env create warpx-cuda-dev spack-ubuntu-cuda.yaml -# spack env activate warpx-cuda-dev -# spack install # only needed the first time -# -spack: - specs: - # https://github.com/ornladios/ADIOS2/issues/3332 - - adios2 ~cuda - - ascent +adios2 +python ~fortran ~shared - - blaspp - - boost - - ccache - - cmake - - conduit ~fortran - - cuda - - fftw - - hdf5 - - lapackpp - - mpi - - pkgconfig - - python - - py-cython - - py-h5py - - py-libensemble +nlopt - - py-mpi4py - - py-numpy - - py-pip - - py-setuptools - - py-wheel - - sensei +ascent ~catalyst +python - - vtk-m ~shared -# This always enables DevilRay, which builds too long on CUDA and we mainly use VTK-m -# - ecp-data-vis-sdk +adios2 +ascent +hdf5 +sensei -# skipped to save time: 3D post-processing -# - paraview +adios2 +python3 +qt -# skipped to save time, because they are faster installed via pip afterwards -# python3 -m pip install jupyter matplotlib numpy openpmd-api openpmd-viewer pandas scipy yt -# - py-jupyter -# - py-matplotlib +animation +fonts +latex +movies -# - openpmd-api +python -# - py-openpmd-viewer +numba +jupyter -# - py-pandas -# - py-pyqt5 -# - py-scipy -# - py-yt - - packages: - all: - # note: add +cuda cuda_arch=70 - # or respective CUDA capability instead of 70 to variants below - variants: +mpi ~fortran +cuda cuda_arch=70 - # default blocks at HDF5 1.8, resulting in unmergable solution - conduit: - variants: ~hdf5_compat - - compilers: - # Ubuntu - - compiler: - spec: gcc@11.2.0 - paths: - cc: /usr/bin/gcc - cxx: /usr/bin/g++ - f77: /usr/bin/gfortran - fc: /usr/bin/gfortran - flags: {} - operating_system: ubuntu22.04 - target: x86_64 - modules: [] - environment: {} - extra_rpaths: [] - - compiler: - spec: gcc@9.4.0 - paths: - cc: /usr/bin/gcc - cxx: /usr/bin/g++ - f77: /usr/bin/gfortran - fc: /usr/bin/gfortran - flags: {} - operating_system: ubuntu20.04 - target: x86_64 - modules: [] - environment: {} - extra_rpaths: [] - # Debian - - compiler: - # g++-10 gcc-10 gfortran-10 (or 11) for CUDA 11.7.0 - spec: gcc@10.4.0 - paths: - cc: /usr/bin/gcc-10 - cxx: /usr/bin/g++-10 - f77: /usr/bin/gfortran-10 - fc: /usr/bin/gfortran-10 - flags: {} - # unstable/sid - operating_system: debianunstable - target: x86_64 - modules: [] - environment: {} - extra_rpaths: [] - - compiler: - spec: gcc@10.2.1 - paths: - cc: /usr/bin/gcc - cxx: /usr/bin/g++ - f77: /usr/bin/gfortran - fc: /usr/bin/gfortran - flags: {} - operating_system: debian11 - target: x86_64 - modules: [] - environment: {} - extra_rpaths: [] - - compiler: - spec: gcc@8.3.0 - paths: - cc: /usr/bin/gcc - cxx: /usr/bin/g++ - f77: /usr/bin/gfortran - fc: /usr/bin/gfortran - flags: {} - operating_system: debian10 - target: x86_64 - modules: [] - environment: {} - extra_rpaths: [] - - # binary caches - mirrors: - E4S: https://cache.e4s.io - LLNL: https://mirror.spack.io - - # do not try to reuse existing packages, which can confuse the concretizer - concretizer: - reuse: false - unify: true - - # limit the build parallelism (default: call virtual cores) -# config: -# build_jobs: 6 diff --git a/Tools/machines/desktop/spack-ubuntu-openmp.yaml b/Tools/machines/desktop/spack-ubuntu-openmp.yaml deleted file mode 100644 index b658f1e00..000000000 --- a/Tools/machines/desktop/spack-ubuntu-openmp.yaml +++ /dev/null @@ -1,139 +0,0 @@ -# This is a Spack environment file. -# -# This environment can be used to install all dependencies to build the manual -# locally. -# -# Activating and installing this environment will provide all dependencies -# that are needed for full-feature development. -# https://spack.readthedocs.io/en/latest/environments.html -# -# Inside the directory of this file -# spack env create warpx-openmp-dev spack-ubuntu-openmp.yaml -# spack env activate warpx-openmp-dev -# spack install # only needed the first time -# -spack: - specs: - - adios2 - - blaspp ~cuda +openmp ~rocm - - boost - - ccache - - cmake - - ecp-data-vis-sdk +adios2 +ascent +hdf5 +sensei - - fftw - - hdf5 - - lapackpp ~cuda ~rocm ^blaspp ~cuda +openmp ~rocm - - mpi - - pkgconfig - - python - - py-cython - - py-h5py - - py-libensemble +nlopt - - py-mpi4py - - py-numpy - - py-pip - - py-setuptools - - py-wheel -# skipped to save time: 3D post-processing -# - paraview +adios2 +python3 +qt -# skipped to save time, because they are faster installed via pip afterwards -# python3 -m pip install jupyter matplotlib numpy openpmd-api openpmd-viewer pandas scipy yt -# - py-jupyter -# - py-matplotlib +animation +fonts +latex +movies -# - openpmd-api +python -# - py-openpmd-viewer +numba +jupyter -# - py-pandas -# - py-pyqt5 -# - py-scipy -# - py-yt - - packages: - all: - variants: +mpi ~fortran ~cuda ~rocm - # default blocks at HDF5 1.8, resulting in unmergable solution - conduit: - variants: ~hdf5_compat - - compilers: - # Ubuntu - - compiler: - spec: gcc@11.2.0 - paths: - cc: /usr/bin/gcc - cxx: /usr/bin/g++ - f77: /usr/bin/gfortran - fc: /usr/bin/gfortran - flags: {} - operating_system: ubuntu22.04 - target: x86_64 - modules: [] - environment: {} - extra_rpaths: [] - - compiler: - spec: gcc@9.4.0 - paths: - cc: /usr/bin/gcc - cxx: /usr/bin/g++ - f77: /usr/bin/gfortran - fc: /usr/bin/gfortran - flags: {} - operating_system: ubuntu20.04 - target: x86_64 - modules: [] - environment: {} - extra_rpaths: [] - # Debian - - compiler: - spec: gcc@12.2.0 - paths: - cc: /usr/bin/gcc - cxx: /usr/bin/g++ - f77: /usr/bin/gfortran - fc: /usr/bin/gfortran - flags: {} - # unstable/sid - operating_system: debianunstable - target: x86_64 - modules: [] - environment: {} - extra_rpaths: [] - - compiler: - spec: gcc@10.2.1 - paths: - cc: /usr/bin/gcc - cxx: /usr/bin/g++ - f77: /usr/bin/gfortran - fc: /usr/bin/gfortran - flags: {} - operating_system: debian11 - target: x86_64 - modules: [] - environment: {} - extra_rpaths: [] - - compiler: - spec: gcc@8.3.0 - paths: - cc: /usr/bin/gcc - cxx: /usr/bin/g++ - f77: /usr/bin/gfortran - fc: /usr/bin/gfortran - flags: {} - operating_system: debian10 - target: x86_64 - modules: [] - environment: {} - extra_rpaths: [] - - # binary caches - mirrors: - E4S: https://cache.e4s.io - LLNL: https://mirror.spack.io - - # do not try to reuse existing packages, which can confuse the concretizer - concretizer: - reuse: false - unify: true - - # limit the build parallelism (default: call virtual cores) -# config: -# build_jobs: 6 diff --git a/Tools/machines/desktop/spack-ubuntu-rocm.yaml b/Tools/machines/desktop/spack-ubuntu-rocm.yaml deleted file mode 100644 index 45c9b0f77..000000000 --- a/Tools/machines/desktop/spack-ubuntu-rocm.yaml +++ /dev/null @@ -1,143 +0,0 @@ -# This is a Spack environment file. -# -# This environment can be used to install all dependencies to build the manual -# locally. -# -# Activating and installing this environment will provide all dependencies -# that are needed for full-feature development. -# https://spack.readthedocs.io/en/latest/environments.html -# -# Inside the directory of this file -# spack env create warpx-rocm-dev spack-ubuntu-rocm.yaml -# spack env activate warpx-rocm-dev -# spack install # only needed the first time -# -spack: - specs: - - adios2 - - blaspp - - boost - - ccache - - cmake - - ecp-data-vis-sdk +adios2 +ascent +hdf5 +sensei - - hdf5 - - hip - - lapackpp - - llvm-amdgpu - - mpi - - pkgconfig - - python - - py-cython - - py-h5py - - py-libensemble +nlopt - - py-mpi4py - - py-numpy - - py-pip - - py-setuptools - - py-wheel - - rocfft - - rocprim - - rocrand -# skipped to save time: 3D post-processing -# - paraview +adios2 +python3 +qt -# skipped to save time, because they are faster installed via pip afterwards -# python3 -m pip install jupyter matplotlib numpy openpmd-api openpmd-viewer pandas scipy yt -# - py-jupyter -# - py-matplotlib +animation +fonts +latex +movies -# - openpmd-api +python -# - py-openpmd-viewer +numba +jupyter -# - py-pandas -# - py-pyqt5 -# - py-scipy -# - py-yt - - packages: - all: - variants: +mpi ~fortran +rocm - # default blocks at HDF5 1.8, resulting in unmergable solution - conduit: - variants: ~hdf5_compat - - compilers: - # Ubuntu - - compiler: - spec: gcc@11.2.0 - paths: - cc: /usr/bin/gcc - cxx: /usr/bin/g++ - f77: /usr/bin/gfortran - fc: /usr/bin/gfortran - flags: {} - operating_system: ubuntu22.04 - target: x86_64 - modules: [] - environment: {} - extra_rpaths: [] - - compiler: - spec: gcc@9.4.0 - paths: - cc: /usr/bin/gcc - cxx: /usr/bin/g++ - f77: /usr/bin/gfortran - fc: /usr/bin/gfortran - flags: {} - operating_system: ubuntu20.04 - target: x86_64 - modules: [] - environment: {} - extra_rpaths: [] - # Debian - - compiler: - spec: gcc@12.2.0 - paths: - cc: /usr/bin/gcc - cxx: /usr/bin/g++ - f77: /usr/bin/gfortran - fc: /usr/bin/gfortran - flags: {} - # unstable/sid - operating_system: debianunstable - target: x86_64 - modules: [] - environment: {} - extra_rpaths: [] - - compiler: - spec: gcc@10.2.1 - paths: - cc: /usr/bin/gcc - cxx: /usr/bin/g++ - f77: /usr/bin/gfortran - fc: /usr/bin/gfortran - flags: {} - operating_system: debian11 - target: x86_64 - modules: [] - environment: {} - extra_rpaths: [] - - compiler: - spec: gcc@8.3.0 - paths: - cc: /usr/bin/gcc - cxx: /usr/bin/g++ - f77: /usr/bin/gfortran - fc: /usr/bin/gfortran - flags: {} - operating_system: debian10 - target: x86_64 - modules: [] - environment: {} - extra_rpaths: [] - - # binary caches - mirrors: - E4S: https://cache.e4s.io - LLNL: https://mirror.spack.io - - # do not try to reuse existing packages, which can confuse the concretizer - concretizer: - reuse: false - unify: true - - # limit the build parallelism (default: call virtual cores) -# config: -# build_jobs: 6 diff --git a/Tools/machines/frontier-olcf/frontier_warpx.profile.example b/Tools/machines/frontier-olcf/frontier_warpx.profile.example deleted file mode 100644 index f5d090701..000000000 --- a/Tools/machines/frontier-olcf/frontier_warpx.profile.example +++ /dev/null @@ -1,58 +0,0 @@ -# please set your project account -#export proj=APH114-frontier - -# required dependencies -module load cmake/3.23.2 -module load craype-accel-amd-gfx90a -module load rocm/5.2.0 # waiting for 5.5 for next bump -module load cray-mpich -module load cce/15.0.0 # must be loaded after rocm - -# optional: faster builds -module load ccache -module load ninja - -# optional: just an additional text editor -module load nano - -# optional: for PSATD in RZ geometry support (not yet available) -#module load cray-libsci_acc/22.06.1.2 -#module load blaspp -#module load lapackpp - -# optional: for QED lookup table generation support -module load boost/1.79.0-cxx17 - -# optional: for openPMD support -module load adios2/2.8.3 -module load cray-hdf5-parallel/1.12.2.3 - -# optional: for Python bindings or libEnsemble -module load cray-python/3.9.13.1 - -# fix system defaults: do not escape $ with a \ on tab completion -shopt -s direxpand - -# make output group-readable by default -umask 0027 - -# an alias to request an interactive batch node for one hour -# for paralle execution, start on the batch node: srun -alias getNode="salloc -A $proj -J warpx -t 01:00:00 -p batch -N 1 --ntasks-per-node=8 --gpus-per-task=1 --gpu-bind=closest" -# an alias to run a command on a batch node for up to 30min -# usage: runNode -alias runNode="srun -A $proj -J warpx -t 00:30:00 -p batch -N 1 --ntasks-per-node=8 --gpus-per-task=1 --gpu-bind=closest" - -# GPU-aware MPI -export MPICH_GPU_SUPPORT_ENABLED=1 - -# optimize ROCm/HIP compilation for MI250X -export AMREX_AMD_ARCH=gfx90a - -# compiler environment hints -export CC=$(which cc) -export CXX=$(which CC) -export FC=$(which ftn) -export CFLAGS="-I${ROCM_PATH}/include" -export CXXFLAGS="-I${ROCM_PATH}/include -Wno-pass-failed" -export LDFLAGS="-L${ROCM_PATH}/lib -lamdhip64" diff --git a/Tools/machines/frontier-olcf/submit.sh b/Tools/machines/frontier-olcf/submit.sh deleted file mode 100644 index f5b52a712..000000000 --- a/Tools/machines/frontier-olcf/submit.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/usr/bin/env bash - -#SBATCH -A -#SBATCH -J warpx -#SBATCH -o %x-%j.out -#SBATCH -t 00:10:00 -#SBATCH -p batch -# Currently not configured on Frontier: -#S BATCH --ntasks-per-node=8 -#S BATCH --cpus-per-task=8 -#S BATCH --gpus-per-task=1 -#S BATCH --gpu-bind=closest -#SBATCH -N 20 - -# load cray libs and ROCm libs -#export LD_LIBRARY_PATH=${CRAY_LD_LIBRARY_PATH}:${LD_LIBRARY_PATH} - -# From the documentation: -# Each Frontier compute node consists of [1x] 64-core AMD EPYC 7A53 -# "Optimized 3rd Gen EPYC" CPU (with 2 hardware threads per physical core) with -# access to 512 GB of DDR4 memory. -# Each node also contains [4x] AMD MI250X, each with 2 Graphics Compute Dies -# (GCDs) for a total of 8 GCDs per node. The programmer can think of the 8 GCDs -# as 8 separate GPUs, each having 64 GB of high-bandwidth memory (HBM2E). - -# note (5-16-22 and 7-12-22) -# this environment setting is currently needed on Frontier to work-around a -# known issue with Libfabric (both in the May and June PE) -#export FI_MR_CACHE_MAX_COUNT=0 # libfabric disable caching -# or, less invasive: -export FI_MR_CACHE_MONITOR=memhooks # alternative cache monitor - -# note (9-2-22, OLCFDEV-1079) -# this environment setting is needed to avoid that rocFFT writes a cache in -# the home directory, which does not scale. -export ROCFFT_RTC_CACHE_PATH=/dev/null - -export OMP_NUM_THREADS=1 -export WARPX_NMPI_PER_NODE=8 -export TOTAL_NMPI=$(( ${SLURM_JOB_NUM_NODES} * ${WARPX_NMPI_PER_NODE} )) -srun -N${SLURM_JOB_NUM_NODES} -n${TOTAL_NMPI} --ntasks-per-node=${WARPX_NMPI_PER_NODE} \ - ./warpx inputs > output.txt diff --git a/Tools/machines/fugaku-riken/submit.sh b/Tools/machines/fugaku-riken/submit.sh deleted file mode 100644 index caf254ba2..000000000 --- a/Tools/machines/fugaku-riken/submit.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/bash -#PJM -L "node=48" -#PJM -L "rscgrp=small" -#PJM -L "elapse=0:30:00" -#PJM -s -#PJM -L "freq=2200,eco_state=2" -#PJM --mpi "max-proc-per-node=12" -#PJM -x PJM_LLIO_GFSCACHE=/vol0004:/vol0003 -#PJM --llio localtmp-size=10Gi -#PJM --llio sharedtmp-size=10Gi - -export NODES=48 -export MPI_RANKS=$((NODES * 12)) -export OMP_NUM_THREADS=4 - -export EXE="./warpx" -export INPUT="i.3d" - -export XOS_MMM_L_PAGING_POLICY=demand:demand:demand - -llio_transfer ${EXE} - -mpiexec -stdout-proc ./output.%j/%/1000r/stdout -stderr-proc ./output.%j/%/1000r/stderr -n ${MPI_RANKS} ${EXE} ${INPUT} - -llio_transfer --purge ${EXE} diff --git a/Tools/machines/juwels-jsc/juwels.sbatch b/Tools/machines/juwels-jsc/juwels.sbatch deleted file mode 100644 index 870e727e1..000000000 --- a/Tools/machines/juwels-jsc/juwels.sbatch +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/bash -l - -#SBATCH -A $proj -#SBATCH --partition=booster -#SBATCH --nodes=2 -#SBATCH --ntasks=8 -#SBATCH --ntasks-per-node=4 -#SBATCH --gres=gpu:4 -#SBATCH --time=00:05:00 -#SBATCH --job-name=warpx -#SBATCH --output=warpx-%j-%N.txt -#SBATCH --error=warpx-%j-%N.err - -export OMP_NUM_THREADS=1 -export OMPI_MCA_io=romio321 # for HDF5 support in openPMD - -# you can comment this out if you sourced the warpx.profile -# files before running sbatch: -module load GCC -module load OpenMPI -module load CUDA/11.3 -module load HDF5 -module load Python - -srun -n 8 --cpu_bind=sockets $HOME/src/warpx/build/bin/warpx.3d.MPI.CUDA.DP.OPMD.QED inputs diff --git a/Tools/machines/juwels-jsc/juwels_warpx.profile.example b/Tools/machines/juwels-jsc/juwels_warpx.profile.example deleted file mode 100644 index c5c71a822..000000000 --- a/Tools/machines/juwels-jsc/juwels_warpx.profile.example +++ /dev/null @@ -1,22 +0,0 @@ -# please set your project account -#export proj= - -# required dependencies -module load ccache -module load CMake -module load GCC -module load CUDA/11.3 -module load OpenMPI -module load FFTW -module load HDF5 -module load Python - -# JUWELS' job scheduler may not map ranks to GPUs, -# so we give a hint to AMReX about the node layout. -# This is usually done in Make. files in AMReX -# but there is no such file for JSC yet. -export GPUS_PER_SOCKET=2 -export GPUS_PER_NODE=4 - -# optimize CUDA compilation for V100 (7.0) or for A100 (8.0) -export AMREX_CUDA_ARCH=8.0 diff --git a/Tools/machines/lassen-llnl/lassen.bsub b/Tools/machines/lassen-llnl/lassen.bsub deleted file mode 100644 index 5196acfb4..000000000 --- a/Tools/machines/lassen-llnl/lassen.bsub +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/bash - -# Copyright 2020-2022 Axel Huebl -# -# This file is part of WarpX. -# -# License: BSD-3-Clause-LBNL -# -# Refs.: -# https://jsrunvisualizer.olcf.ornl.gov/?s4f0o11n6c7g1r11d1b1l0= -# https://hpc.llnl.gov/training/tutorials/using-lcs-sierra-system#quick16 - -#BSUB -G -#BSUB -W 00:10 -#BSUB -nnodes 2 -#BSUB -alloc_flags smt4 -#BSUB -J WarpX -#BSUB -o WarpXo.%J -#BSUB -e WarpXe.%J - -# Work-around OpenMPI bug with chunked HDF5 -# https://github.com/open-mpi/ompi/issues/7795 -export OMPI_MCA_io=ompio - -# Work-around for broken IBM "libcollectives" MPI_Allgatherv -# https://github.com/ECP-WarpX/WarpX/pull/2874 -export OMPI_MCA_coll_ibm_skip_allgatherv=true - -# ROMIO has a hint for GPFS named IBM_largeblock_io which optimizes I/O with operations on large blocks -export IBM_largeblock_io=true - -# MPI-I/O: ROMIO hints for parallel HDF5 performance -export ROMIO_HINTS=./romio-hints -# number of hosts: unique node names minus batch node -NUM_HOSTS=$(( $(echo $LSB_HOSTS | tr ' ' '\n' | uniq | wc -l) - 1 )) -cat > romio-hints << EOL - romio_cb_write enable - romio_ds_write enable - cb_buffer_size 16777216 - cb_nodes ${NUM_HOSTS} -EOL - -# OpenMPI file locks are slow and not needed -# https://github.com/open-mpi/ompi/issues/10053 -export OMPI_MCA_sharedfp=^lockedfile,individual - -# HDF5: disable slow locks (promise not to open half-written files) -export HDF5_USE_FILE_LOCKING=FALSE - -# OpenMP: 1 thread per MPI rank -export OMP_NUM_THREADS=1 - -# store out task host mapping: helps identify broken nodes at scale -jsrun -r 4 -a1 -g 1 -c 7 -e prepended hostname > task_host_mapping.txt - -# run WarpX -jsrun -r 4 -a 1 -g 1 -c 7 -l GPU-CPU -d packed -b rs -e prepended -M "-gpu" > output.txt diff --git a/Tools/machines/lassen-llnl/lassen_warpx.profile.example b/Tools/machines/lassen-llnl/lassen_warpx.profile.example deleted file mode 100644 index 61e8f9716..000000000 --- a/Tools/machines/lassen-llnl/lassen_warpx.profile.example +++ /dev/null @@ -1,45 +0,0 @@ -# please set your project account -#export proj= - -# required dependencies -module load cmake/3.21.1 -module load gcc/8.3.1 -module load cuda/11.2.0 - -# optional: for PSATD support -module load fftw/3.3.8 - -# optional: for QED lookup table generation support -module load boost/1.70.0 - -# optional: for openPMD support -module load hdf5-parallel/1.12.2 -export CMAKE_PREFIX_PATH=$HOME/sw/lassen/c-blosc-1.21.1:$CMAKE_PREFIX_PATH -export CMAKE_PREFIX_PATH=$HOME/sw/lassen/adios2-2.7.1:$CMAKE_PREFIX_PATH -export LD_LIBRARY_PATH=$HOME/sw/lassen/c-blosc-1.21.1/lib64:$LD_LIBRARY_PATH -export LD_LIBRARY_PATH=$HOME/sw/lassen/adios2-2.7.1/lib64:$LD_LIBRARY_PATH - -# optional: for PSATD in RZ geometry support -export CMAKE_PREFIX_PATH=$HOME/sw/lassen/blaspp-master:$CMAKE_PREFIX_PATH -export CMAKE_PREFIX_PATH=$HOME/sw/lassen/lapackpp-master:$CMAKE_PREFIX_PATH -export LD_LIBRARY_PATH=$HOME/sw/lassen/blaspp-master/lib64:$LD_LIBRARY_PATH -export LD_LIBRARY_PATH=$HOME/sw/lassen/lapackpp-master/lib64:$LD_LIBRARY_PATH - -# optional: for Python bindings -module load python/3.8.2 - -# optional: an alias to request an interactive node for two hours -alias getNode="bsub -G $proj -W 2:00 -nnodes 1 -Is /bin/bash" - -# fix system defaults: do not escape $ with a \ on tab completion -shopt -s direxpand - -# optimize CUDA compilation for V100 -export AMREX_CUDA_ARCH=7.0 - -# compiler environment hints -export CC=$(which gcc) -export CXX=$(which g++) -export FC=$(which gfortran) -export CUDACXX=$(which nvcc) -export CUDAHOSTCXX=$(which g++) diff --git a/Tools/machines/lawrencium-lbnl/lawrencium_v100.sbatch b/Tools/machines/lawrencium-lbnl/lawrencium_v100.sbatch deleted file mode 100644 index 379f33f59..000000000 --- a/Tools/machines/lawrencium-lbnl/lawrencium_v100.sbatch +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/bash -l - -# Copyright 2023 The WarpX Community -# -# Author: Axel Huebl -# License: BSD-3-Clause-LBNL - -#SBATCH -t 00:10:00 -#SBATCH -N 2 -#SBATCH --job-name=WarpX -#SBATCH --account= -#SBATCH --qos=es_normal -# 2xV100 nodes -#SBATCH --partition=es1 -#SBATCH --constraint=es1_v100 -#SBATCH --gres=gpu:1 -#SBATCH --cpus-per-task=4 -#SBATCH -o WarpX.o%j -#SBATCH -e WarpX.e%j -#S BATCH --mail-type=all -#S BATCH --mail-user=yourmail@lbl.gov - -# executable & inputs file or python interpreter & PICMI script here -EXE=./warpx -INPUTS=inputs_3d - -srun ${EXE} ${INPUTS} \ - > output_${SLURM_JOB_ID}.txt diff --git a/Tools/machines/lawrencium-lbnl/lawrencium_warpx.profile.example b/Tools/machines/lawrencium-lbnl/lawrencium_warpx.profile.example deleted file mode 100644 index 9b9bf709e..000000000 --- a/Tools/machines/lawrencium-lbnl/lawrencium_warpx.profile.example +++ /dev/null @@ -1,54 +0,0 @@ -# please set your project account -#export proj="" # change me, e.g., ac_blast - -# required dependencies -module load cmake/3.24.1 -module load cuda/11.4 -module load gcc/7.4.0 -module load openmpi/4.0.1-gcc - -# optional: for QED support with detailed tables -module load boost/1.70.0-gcc - -# optional: for openPMD and PSATD+RZ support -module load hdf5/1.10.5-gcc-p -module load lapack/3.8.0-gcc -# CPU only: -#module load fftw/3.3.8-gcc - -export CMAKE_PREFIX_PATH=$HOME/sw/v100/c-blosc-1.21.1:$CMAKE_PREFIX_PATH -export CMAKE_PREFIX_PATH=$HOME/sw/v100/adios2-2.8.3:$CMAKE_PREFIX_PATH -export CMAKE_PREFIX_PATH=$HOME/sw/v100/blaspp-master:$CMAKE_PREFIX_PATH -export CMAKE_PREFIX_PATH=$HOME/sw/v100/lapackpp-master:$CMAKE_PREFIX_PATH - -# optional: CCache -#module load ccache # missing - -# optional: for Python bindings or libEnsemble -module load python/3.8.8 - -if [ -d "$HOME/sw/v100/venvs/warpx" ] -then - source $HOME/sw/v100/venvs/warpx/bin/activate -fi - -# an alias to request an interactive batch node for one hour -# for parallel execution, start on the batch node: srun -alias getNode="salloc -N 1 -t 1:00:00 --qos=es_debug --partition=es1 --constraint=es1_v100 --gres=gpu:1 --cpus-per-task=4 -A $proj" -# an alias to run a command on a batch node for up to 30min -# usage: runNode -alias runNode="srun -N 1 -t 1:00:00 --qos=es_debug --partition=es1 --constraint=es1_v100 --gres=gpu:1 --cpus-per-task=4 -A $proj" - -# optimize CUDA compilation for 1080 Ti (deprecated) -#export AMREX_CUDA_ARCH=6.1 -# optimize CUDA compilation for V100 -export AMREX_CUDA_ARCH=7.0 -# optimize CUDA compilation for 2080 Ti -#export AMREX_CUDA_ARCH=7.5 - -# compiler environment hints -export CXX=$(which g++) -export CC=$(which gcc) -export FC=$(which gfortran) -export CUDACXX=$(which nvcc) -export CUDAHOSTCXX=${CXX} diff --git a/Tools/machines/lumi-csc/lumi_warpx.profile.example b/Tools/machines/lumi-csc/lumi_warpx.profile.example deleted file mode 100644 index 4d30d6325..000000000 --- a/Tools/machines/lumi-csc/lumi_warpx.profile.example +++ /dev/null @@ -1,53 +0,0 @@ -# please set your project account -#export proj= - -# optional: just an additional text editor -# module load nano - -# required dependencies -module load CrayEnv -module load craype-accel-amd-gfx90a -module load cray-mpich -module load rocm -module load buildtools/22.08 - -# optional: faster re-builds -#module load ccache - -# optional: for PSATD in RZ geometry support -# TODO: BLAS++, LAPACK++ - -# optional: for QED lookup table generation support -# TODO: BOOST - -# optional: for openPMD support -# TODO: HDF5, ADIOS2 - -# optional: Ascent in situ support -# TODO - -# optional: for Python bindings or libEnsemble -# TODO - -if [ -d "$HOME/sw/venvs/warpx-lumi" ] -then - source $HOME/sw/venvs/warpx-lumi/bin/activate -fi - -# an alias to request an interactive batch node for two hours -# for paralle execution, start on the batch node: jsrun -#alias getNode="..." -# an alias to run a command on a batch node for up to 30min -# usage: nrun -#alias runNode="..." - -# GPU-aware MPI -export MPICH_GPU_SUPPORT_ENABLED=1 - -# optimize ROCm/HIP compilation for MI250X -export AMREX_AMD_ARCH=gfx90a - -# compiler environment hints -export CC=$(which cc) -export CXX=$(which CC) -export FC=$(which ftn) diff --git a/Tools/machines/lumi-csc/submit.sh b/Tools/machines/lumi-csc/submit.sh deleted file mode 100644 index c42198339..000000000 --- a/Tools/machines/lumi-csc/submit.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/bash - -#SBATCH -A -#SBATCH -J warpx -#SBATCH -o %x-%j.out -#SBATCH -t 00:10:00 -# Early access to the GPU partition -#SBATCH -p eap -#SBATCH --nodes=2 -#SBATCH --ntasks-per-node=8 -#SBATCH --cpus-per-task=1 -#SBATCH --gpus-per-node=8 -#SBATCH --gpu-bind=closest - -export MPICH_GPU_SUPPORT_ENABLED=1 - -# note (12-12-22) -# this environment setting is currently needed on LUMI to work-around a -# known issue with Libfabric -#export FI_MR_CACHE_MAX_COUNT=0 # libfabric disable caching -# or, less invasive: -export FI_MR_CACHE_MONITOR=memhooks # alternative cache monitor - -# note (9-2-22, OLCFDEV-1079) -# this environment setting is needed to avoid that rocFFT writes a cache in -# the home directory, which does not scale. -export ROCFFT_RTC_CACHE_PATH=/dev/null - -export OMP_NUM_THREADS=1 -srun ../warpx inputs > outputs diff --git a/Tools/machines/lxplus-cern/lxplus_warpx.profile.example b/Tools/machines/lxplus-cern/lxplus_warpx.profile.example deleted file mode 100644 index 3f3770fac..000000000 --- a/Tools/machines/lxplus-cern/lxplus_warpx.profile.example +++ /dev/null @@ -1,41 +0,0 @@ -# set env variable storing the path to the work directory -export WORK=/afs/cern.ch/work/${USER:0:1}/$USER/ - -# clone warpx -if [ ! -d "$WORK/warpx" ] -then - git clone https://github.com/ECP-WarpX/WarpX.git $WORK/warpx -fi - -# activate the compiler -source /cvmfs/sft.cern.ch/lcg/releases/gcc/11.2.0-ad950/x86_64-centos7/setup.sh - -# download and activate spack -if [ ! -d "$WORK/spack" ] -then - git clone -c feature.manyFiles=true https://github.com/spack/spack.git $WORK/spack - source $WORK/spack/share/spack/setup-env.sh - - # add the compiler to spack - spack compiler find /cvmfs/sft.cern.ch/lcg/releases/gcc/11.2.0-ad950/x86_64-centos7/bin - - # create and activate the spack environment - export SPACK_STACK_USE_PYTHON=1 - export SPACK_STACK_USE_CUDA=1 - spack env create warpx-lxplus-cuda-py $WORK/WarpX/Tools/machines/lxplus-cern/spack.yaml - spack env activate warpx-lxplus-cuda-py - spack install -else - # activate the spack environment - source $WORK/spack/share/spack/setup-env.sh - spack env activate warpx-lxplus-cuda-py -fi - -export AMREX_CUDA_ARCH="7.0;7.5" - -# compiler environment hints -export CC=$(which gcc) -export CXX=$(which g++) -export FC=$(which gfortran) -export CUDACXX=$(which nvcc) -export CUDAHOSTCXX=$(which g++) diff --git a/Tools/machines/lxplus-cern/spack.yaml b/Tools/machines/lxplus-cern/spack.yaml deleted file mode 100644 index 399714e97..000000000 --- a/Tools/machines/lxplus-cern/spack.yaml +++ /dev/null @@ -1,59 +0,0 @@ -spack: - # variations of this environment can be controlled via environment variables during `spack env create` - definitions: - # CUDA - - cuda: [] - - cuda: [cuda, blaspp +cuda, lapackpp ^blaspp +cuda] - when: env.get("SPACK_STACK_USE_CUDA", "1") == "1" - - cuda: [cuda, blaspp, lapackpp] - when: env.get("SPACK_STACK_USE_CUDA", "1") != "1" - - # basic Python dependencies for WarpX Python PICMI bindings - - python: [] - - python: [python, py-pip, openpmd-api +python] - when: env.get("SPACK_STACK_USE_PYTHON", "1") == "1" - - python: [openpmd-api] - when: env.get("SPACK_STACK_USE_PYTHON", "1") != "1" - specs: - - adios2 - - ccache - - cmake - - fftw - - hdf5 - - mpi - - pkgconfig - - $cuda - - $python - - packages: - all: - # since lxplus has multiple CPU micro-architectures, we do not tune for a specific one - # in the future, if highest on-CPU performance is needed, we should not limit this to generic x86_64, - # otherwise the compiler will not use recent vector operations, among other recent CPU hardware features. - target: [x86_64] - compiler: [gcc@11.2.0] - variants: ~fortran - providers: - mpi: [openmpi] - ncurses: - # This is needed for any build of ncurses on lxplus, due to its AFS filesystem - variants: +symlinks - - compilers: - - compiler: - environment: {} - extra_rpaths: [] - spec: gcc@11.2.0 - paths: - cc: /cvmfs/sft.cern.ch/lcg/releases/gcc/11.2.0-ad950/x86_64-centos7/bin/gcc - cxx: /cvmfs/sft.cern.ch/lcg/releases/gcc/11.2.0-ad950/x86_64-centos7/bin/g++ - f77: /cvmfs/sft.cern.ch/lcg/releases/gcc/11.2.0-ad950/x86_64-centos7/bin/gfortran - fc: /cvmfs/sft.cern.ch/lcg/releases/gcc/11.2.0-ad950/x86_64-centos7/bin/gfortran - flags: {} - operating_system: centos7 - target: x86_64 - modules: [] - config: - build_jobs: 6 - # Spack defaults will try to set permissions in a way which is forbidden on the LXPLUS file system (AFS) - allow_sgid: false diff --git a/Tools/machines/ookami-sbu/ookami_warpx.profile.example b/Tools/machines/ookami-sbu/ookami_warpx.profile.example deleted file mode 100644 index 321e3ce1d..000000000 --- a/Tools/machines/ookami-sbu/ookami_warpx.profile.example +++ /dev/null @@ -1,27 +0,0 @@ -# please set your project account (not relevant yet) -#export proj= - -# required dependencies -module load cmake/3.19.0 -module load gcc/10.3.0 -module load openmpi/gcc10/4.1.0 - -# optional: faster builds (not available yet) -#module load ccache -#module load ninja - -# optional: for PSATD support (not available yet) -#module load fftw - -# optional: for QED lookup table generation support (not available yet) -#module load boost - -# optional: for openPMD support -#module load adios2 # not available yet -#module load hdf5 # only serial - -# compiler environment hints -export CC=$(which gcc) -export CXX=$(which g++) -export FC=$(which gfortran) -export CXXFLAGS="-mcpu=a64fx" diff --git a/Tools/machines/perlmutter-nersc/perlmutter_cpu.sbatch b/Tools/machines/perlmutter-nersc/perlmutter_cpu.sbatch deleted file mode 100644 index a1687b2a3..000000000 --- a/Tools/machines/perlmutter-nersc/perlmutter_cpu.sbatch +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/bash -l - -# Copyright 2021-2023 WarpX -# -# This file is part of WarpX. -# -# Authors: Axel Huebl -# License: BSD-3-Clause-LBNL - -#SBATCH -t 00:10:00 -#SBATCH -N 2 -#SBATCH -J WarpX -#SBATCH -A -#SBATCH -q regular -#SBATCH -C cpu -#SBATCH --ntasks-per-node=16 -#SBATCH --exclusive -#SBATCH -o WarpX.o%j -#SBATCH -e WarpX.e%j - -# executable & inputs file or python interpreter & PICMI script here -EXE=./warpx -INPUTS=inputs_small - -# each CPU node on Perlmutter (NERSC) has 64 hardware cores with -# 2x Hyperthreading/SMP -# https://en.wikichip.org/wiki/amd/epyc/7763 -# https://www.amd.com/en/products/cpu/amd-epyc-7763 -# Each CPU is made up of 8 chiplets, each sharing 32MB L3 cache. -# This will be our MPI rank assignment (2x8 is 16 ranks/node). - -# threads for OpenMP and threaded compressors per MPI rank -export SRUN_CPUS_PER_TASK=16 # 8 cores per chiplet, 2x SMP -export OMP_PLACES=threads -export OMP_PROC_BIND=spread - -srun --cpu-bind=cores \ - ${EXE} ${INPUTS} \ - > output.txt diff --git a/Tools/machines/perlmutter-nersc/perlmutter_cpu_warpx.profile.example b/Tools/machines/perlmutter-nersc/perlmutter_cpu_warpx.profile.example deleted file mode 100644 index 3ceaef113..000000000 --- a/Tools/machines/perlmutter-nersc/perlmutter_cpu_warpx.profile.example +++ /dev/null @@ -1,50 +0,0 @@ -# please set your project account -#export proj="" # change me - -# required dependencies -module load cpu -module load cmake/3.22.0 -module load cray-fftw/3.3.10.3 - -# optional: for QED support with detailed tables -export BOOST_ROOT=/global/common/software/spackecp/perlmutter/e4s-22.05/78535/spack/opt/spack/cray-sles15-zen3/gcc-11.2.0/boost-1.79.0-lmdngktoeuwdi6ty55noznunah2mvk5w - -# optional: for openPMD and PSATD+RZ support -module load cray-hdf5-parallel/1.12.2.1 -export CMAKE_PREFIX_PATH=${CFS}/${proj%_g}/${USER}/sw/perlmutter/cpu/c-blosc-1.21.1:$CMAKE_PREFIX_PATH -export CMAKE_PREFIX_PATH=${CFS}/${proj%_g}/${USER}/sw/perlmutter/cpu/adios2-2.8.3:$CMAKE_PREFIX_PATH -export CMAKE_PREFIX_PATH=${CFS}/${proj%_g}/${USER}/sw/perlmutter/cpu/blaspp-master:$CMAKE_PREFIX_PATH -export CMAKE_PREFIX_PATH=${CFS}/${proj%_g}/${USER}/sw/perlmutter/cpu/lapackpp-master:$CMAKE_PREFIX_PATH - -export LD_LIBRARY_PATH=${CFS}/${proj%_g}/${USER}/sw/perlmutter/cpu/c-blosc-1.21.1/lib64:$LD_LIBRARY_PATH -export LD_LIBRARY_PATH=${CFS}/${proj%_g}/${USER}/sw/perlmutter/cpu/adios2-2.8.3/lib64:$LD_LIBRARY_PATH -export LD_LIBRARY_PATH=${CFS}/${proj%_g}/${USER}/sw/perlmutter/cpu/blaspp-master/lib64:$LD_LIBRARY_PATH -export LD_LIBRARY_PATH=${CFS}/${proj%_g}/${USER}/sw/perlmutter/cpu/lapackpp-master/lib64:$LD_LIBRARY_PATH - -# optional: CCache -export PATH=/global/common/software/spackecp/perlmutter/e4s-22.05/78535/spack/opt/spack/cray-sles15-zen3/gcc-11.2.0/ccache-4.5.1-ybl7xefvggn6hov4dsdxxnztji74tolj/bin:$PATH - -# optional: for Python bindings or libEnsemble -module load cray-python/3.9.13.1 - -if [ -d "${CFS}/${proj%_g}/${USER}/sw/perlmutter/cpu/venvs/warpx" ] -then - source ${CFS}/${proj%_g}/${USER}/sw/perlmutter/cpu/venvs/warpx/bin/activate -fi - -# an alias to request an interactive batch node for one hour -# for parallel execution, start on the batch node: srun -alias getNode="salloc --nodes 1 --qos interactive --time 01:00:00 --constraint cpu --account=$proj" -# an alias to run a command on a batch node for up to 30min -# usage: runNode -alias runNode="srun --nodes 1 --qos interactive --time 01:00:00 --constraint cpu $proj" - -# optimize CPU microarchitecture for AMD EPYC 3rd Gen (Milan/Zen3) -# note: the cc/CC/ftn wrappers below add those -export CXXFLAGS="-march=znver3" -export CFLAGS="-march=znver3" - -# compiler environment hints -export CC=cc -export CXX=CC -export FC=ftn diff --git a/Tools/machines/perlmutter-nersc/perlmutter_gpu.sbatch b/Tools/machines/perlmutter-nersc/perlmutter_gpu.sbatch deleted file mode 100644 index 1744e6193..000000000 --- a/Tools/machines/perlmutter-nersc/perlmutter_gpu.sbatch +++ /dev/null @@ -1,44 +0,0 @@ -#!/bin/bash -l - -# Copyright 2021-2023 Axel Huebl, Kevin Gott -# -# This file is part of WarpX. -# -# License: BSD-3-Clause-LBNL - -#SBATCH -t 00:10:00 -#SBATCH -N 2 -#SBATCH -J WarpX -# note: must end on _g -#SBATCH -A -#SBATCH -q regular -# A100 40GB (most nodes) -#SBATCH -C gpu -# A100 80GB (256 nodes) -#S BATCH -C gpu&hbm80g -#SBATCH --exclusive -#SBATCH --gpu-bind=none -#SBATCH --gpus-per-node=4 -#SBATCH -o WarpX.o%j -#SBATCH -e WarpX.e%j - -# executable & inputs file or python interpreter & PICMI script here -EXE=./warpx -INPUTS=inputs_small - -# pin to closest NIC to GPU -export MPICH_OFI_NIC_POLICY=GPU - -# threads for OpenMP and threaded compressors per MPI rank -export SRUN_CPUS_PER_TASK=32 - -# depends on https://github.com/ECP-WarpX/WarpX/issues/2009 -#GPU_AWARE_MPI="amrex.the_arena_is_managed=0 amrex.use_gpu_aware_mpi=1" -GPU_AWARE_MPI="" - -# CUDA visible devices are ordered inverse to local task IDs -# Reference: nvidia-smi topo -m -srun --cpu-bind=cores bash -c " - export CUDA_VISIBLE_DEVICES=\$((3-SLURM_LOCALID)); - ${EXE} ${INPUTS} ${GPU_AWARE_MPI}" \ - > output.txt diff --git a/Tools/machines/perlmutter-nersc/perlmutter_gpu_warpx.profile.example b/Tools/machines/perlmutter-nersc/perlmutter_gpu_warpx.profile.example deleted file mode 100644 index f0cfe993b..000000000 --- a/Tools/machines/perlmutter-nersc/perlmutter_gpu_warpx.profile.example +++ /dev/null @@ -1,56 +0,0 @@ -# please set your project account -#export proj="_g" # change me - -# required dependencies -module load cmake/3.22.0 - -# optional: for QED support with detailed tables -export BOOST_ROOT=/global/common/software/spackecp/perlmutter/e4s-22.05/78535/spack/opt/spack/cray-sles15-zen3/gcc-11.2.0/boost-1.79.0-lmdngktoeuwdi6ty55noznunah2mvk5w - -# optional: for openPMD and PSATD+RZ support -module load cray-hdf5-parallel/1.12.2.1 -export CMAKE_PREFIX_PATH=${CFS}/${proj%_g}/${USER}/sw/perlmutter/gpu/c-blosc-1.21.1:$CMAKE_PREFIX_PATH -export CMAKE_PREFIX_PATH=${CFS}/${proj%_g}/${USER}/sw/perlmutter/gpu/adios2-2.8.3:$CMAKE_PREFIX_PATH -export CMAKE_PREFIX_PATH=${CFS}/${proj%_g}/${USER}/sw/perlmutter/gpu/blaspp-master:$CMAKE_PREFIX_PATH -export CMAKE_PREFIX_PATH=${CFS}/${proj%_g}/${USER}/sw/perlmutter/gpu/lapackpp-master:$CMAKE_PREFIX_PATH - -export LD_LIBRARY_PATH=${CFS}/${proj%_g}/${USER}/sw/perlmutter/gpu/c-blosc-1.21.1/lib64:$LD_LIBRARY_PATH -export LD_LIBRARY_PATH=${CFS}/${proj%_g}/${USER}/sw/perlmutter/gpu/adios2-2.8.3/lib64:$LD_LIBRARY_PATH -export LD_LIBRARY_PATH=${CFS}/${proj%_g}/${USER}/sw/perlmutter/gpu/blaspp-master/lib64:$LD_LIBRARY_PATH -export LD_LIBRARY_PATH=${CFS}/${proj%_g}/${USER}/sw/perlmutter/gpu/lapackpp-master/lib64:$LD_LIBRARY_PATH - -# optional: CCache -export PATH=/global/common/software/spackecp/perlmutter/e4s-22.05/78535/spack/opt/spack/cray-sles15-zen3/gcc-11.2.0/ccache-4.5.1-ybl7xefvggn6hov4dsdxxnztji74tolj/bin:$PATH - -# optional: for Python bindings or libEnsemble -module load cray-python/3.9.13.1 - -if [ -d "${CFS}/${proj%_g}/${USER}/sw/perlmutter/gpu/venvs/warpx" ] -then - source ${CFS}/${proj%_g}/${USER}/sw/perlmutter/gpu/venvs/warpx/bin/activate -fi - -# an alias to request an interactive batch node for one hour -# for parallel execution, start on the batch node: srun -alias getNode="salloc -N 1 --ntasks-per-node=4 -t 1:00:00 -q interactive -C gpu --gpu-bind=single:1 -c 32 -G 4 -A $proj" -# an alias to run a command on a batch node for up to 30min -# usage: runNode -alias runNode="srun -N 1 --ntasks-per-node=4 -t 0:30:00 -q interactive -C gpu --gpu-bind=single:1 -c 32 -G 4 -A $proj" - -# necessary to use CUDA-Aware MPI and run a job -export CRAY_ACCEL_TARGET=nvidia80 - -# optimize CUDA compilation for A100 -export AMREX_CUDA_ARCH=8.0 - -# optimize CPU microarchitecture for AMD EPYC 3rd Gen (Milan/Zen3) -# note: the cc/CC/ftn wrappers below add those -export CXXFLAGS="-march=znver3" -export CFLAGS="-march=znver3" - -# compiler environment hints -export CC=cc -export CXX=CC -export FC=ftn -export CUDACXX=$(which nvcc) -export CUDAHOSTCXX=CC diff --git a/Tools/machines/quartz-llnl/quartz.sbatch b/Tools/machines/quartz-llnl/quartz.sbatch deleted file mode 100644 index 4c1a82ff8..000000000 --- a/Tools/machines/quartz-llnl/quartz.sbatch +++ /dev/null @@ -1,40 +0,0 @@ -#!/bin/bash -l - -# Just increase this number of you need more nodes. -#SBATCH -N 2 -#SBATCH -t 24:00:00 -#SBATCH -A - -#SBATCH -J WarpX -#SBATCH -q pbatch -#SBATCH --qos=normal -#SBATCH --license=lustre1,lustre2 -#SBATCH --export=ALL -#SBATCH -e error.txt -#SBATCH -o output.txt -# one MPI rank per half-socket (see below) -#SBATCH --tasks-per-node=2 -# request all logical (virtual) cores per half-socket -#SBATCH --cpus-per-task=18 - - -# each Quartz node has 1 socket of Intel Xeon E5-2695 v4 -# each Xeon CPU is divided into 2 bus rings that each have direct L3 access -export WARPX_NMPI_PER_NODE=2 - -# each MPI rank per half-socket has 9 physical cores -# or 18 logical (virtual) cores -# over-subscribing each physical core with 2x -# hyperthreading led to a slight (3.5%) speedup on Cori's Intel Xeon E5-2698 v3, -# so we do the same here -# the settings below make sure threads are close to the -# controlling MPI rank (process) per half socket and -# distribute equally over close-by physical cores and, -# for N>9, also equally over close-by logical cores -export OMP_PROC_BIND=spread -export OMP_PLACES=threads -export OMP_NUM_THREADS=18 - -EXE="" # e.g. ./warpx - -srun --cpu_bind=cores -n $(( ${SLURM_JOB_NUM_NODES} * ${WARPX_NMPI_PER_NODE} )) ${EXE} diff --git a/Tools/machines/quartz-llnl/quartz_warpx.profile.example b/Tools/machines/quartz-llnl/quartz_warpx.profile.example deleted file mode 100644 index 370e4a601..000000000 --- a/Tools/machines/quartz-llnl/quartz_warpx.profile.example +++ /dev/null @@ -1,37 +0,0 @@ -# please set your project account -#export proj= - -# required dependencies -module load cmake/3.20.2 -module load intel/2021.4 -module load mvapich2/2.3 - -# optional: for PSATD support -module load fftw/3.3.8 - -# optional: for QED lookup table generation support -module load boost/1.73.0 - -# optional: for openPMD support -# TODO ADIOS2 -module load hdf5-parallel/1.10.2 - -# optional: for PSATD in RZ geometry support -# TODO: blaspp lapackpp - -# optional: for Python bindings -module load python/3.8.2 - -# optional: an alias to request an interactive node for two hours -alias getNode="srun --time=0:30:00 --nodes=1 --ntasks-per-node=2 --cpus-per-task=18 -p pdebug --pty bash" - -# fix system defaults: do not escape $ with a \ on tab completion -shopt -s direxpand - -# compiler environment hints -export CC=$(which icc) -export CXX=$(which icpc) -export FC=$(which ifort) -# we need a newer libstdc++: -export CFLAGS="-gcc-name=/usr/tce/packages/gcc/gcc-8.3.1/bin/gcc ${CFLAGS}" -export CXXFLAGS="-gxx-name=/usr/tce/packages/gcc/gcc-8.3.1/bin/g++ ${CXXFLAGS}" diff --git a/Tools/machines/spock-olcf/spock_mi100.sbatch b/Tools/machines/spock-olcf/spock_mi100.sbatch deleted file mode 100644 index 4ee09201b..000000000 --- a/Tools/machines/spock-olcf/spock_mi100.sbatch +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash - -#SBATCH -A -#SBATCH -J warpx -#SBATCH -o %x-%j.out -#SBATCH -t 00:10:00 -#SBATCH -p ecp -#SBATCH -N 1 - -export OMP_NUM_THREADS=1 -srun -n 4 -c 2 --ntasks-per-node=4 ./warpx inputs > output.txt diff --git a/Tools/machines/spock-olcf/spock_warpx.profile.example b/Tools/machines/spock-olcf/spock_warpx.profile.example deleted file mode 100644 index 6b10656c3..000000000 --- a/Tools/machines/spock-olcf/spock_warpx.profile.example +++ /dev/null @@ -1,29 +0,0 @@ -# please set your project account -#export proj= - -# required dependencies -module load cmake/3.20.2 -module load craype-accel-amd-gfx908 -module load rocm/4.3.0 - -# optional: faster builds -module load ccache -module load ninja - -# optional: just an additional text editor -module load nano - -# optional: an alias to request an interactive node for one hour -alias getNode="salloc -A $proj -J warpx -t 01:00:00 -p ecp -N 1" - -# fix system defaults: do not escape $ with a \ on tab completion -shopt -s direxpand - -# optimize CUDA compilation for MI100 -export AMREX_AMD_ARCH=gfx908 - -# compiler environment hints -export CC=$ROCM_PATH/llvm/bin/clang -export CXX=$(which hipcc) -export LDFLAGS="-L${CRAYLIBS_X86_64} $(CC --cray-print-opts=libs) -lmpi" -# GPU aware MPI: ${PE_MPICH_GTL_DIR_gfx908} -lmpi_gtl_hsa diff --git a/Tools/machines/summit-olcf/summit_power9.bsub b/Tools/machines/summit-olcf/summit_power9.bsub deleted file mode 100644 index 7586b2281..000000000 --- a/Tools/machines/summit-olcf/summit_power9.bsub +++ /dev/null @@ -1,52 +0,0 @@ -#!/bin/bash - -# Copyright 2019-2020 Maxence Thevenet, Axel Huebl, Michael Rowan -# -# This file is part of WarpX. -# -# License: BSD-3-Clause-LBNL -# -# Refs.: -# https://jsrunvisualizer.olcf.ornl.gov/?s1f0o121n2c21g0r11d1b1l0= - -#BSUB -P -#BSUB -W 00:10 -#BSUB -nnodes 1 -#BSUB -alloc_flags "smt1" -#BSUB -J WarpX -#BSUB -o WarpXo.%J -#BSUB -e WarpXe.%J - -# make output group-readable by default -umask 0027 - -# fix problems with collectives since RHEL8 update: OLCFHELP-3545 -# disable all the IBM optimized barriers and drop back to HCOLL or OMPI's barrier implementations -export OMPI_MCA_coll_ibm_skip_barrier=true - -# libfabric 1.6+: limit the visible devices -# Needed for ADIOS2 SST staging/streaming workflows since RHEL8 update -# https://github.com/ornladios/ADIOS2/issues/2887 -#export FABRIC_IFACE=mlx5_0 # ADIOS SST: select interface (1 NIC on Summit) -#export FI_OFI_RXM_USE_SRX=1 # libfabric: use shared receive context from MSG provider - -# ROMIO has a hint for GPFS named IBM_largeblock_io which optimizes I/O with operations on large blocks -export IBM_largeblock_io=true - -# MPI-I/O: ROMIO hints for parallel HDF5 performance -export OMPI_MCA_io=romio321 -export ROMIO_HINTS=./romio-hints -# number of hosts: unique node names minus batch node -NUM_HOSTS=$(( $(echo $LSB_HOSTS | tr ' ' '\n' | uniq | wc -l) - 1 )) -cat > romio-hints << EOL - romio_cb_write enable - romio_ds_write enable - cb_buffer_size 16777216 - cb_nodes ${NUM_HOSTS} -EOL - -# OpenMP: 21 threads per MPI rank -export OMP_NUM_THREADS=21 - -# run WarpX -jsrun -n 2 -a 1 -c 21 -r 2 -l CPU-CPU -d packed -b rs > output.txt diff --git a/Tools/machines/summit-olcf/summit_profiling.bsub b/Tools/machines/summit-olcf/summit_profiling.bsub deleted file mode 100755 index 167ae9d31..000000000 --- a/Tools/machines/summit-olcf/summit_profiling.bsub +++ /dev/null @@ -1,62 +0,0 @@ -#!/bin/bash - -# Copyright 2019 Andrew Myers, Maxence Thevenet -# -# This file is part of WarpX. -# -# License: BSD-3-Clause-LBNL - -#BSUB -P GEN109 -#BSUB -W 0:10 -#BSUB -nnodes 1 -#BSUB -J WarpX -#BSUB -o WarpXo.%J -#BSUB -e WarpXe.%J - -# make output group-readable by default -umask 0027 - -# fix problems with collectives since RHEL8 update: OLCFHELP-3545 -# disable all the IBM optimized barriers and drop back to HCOLL or OMPI's barrier implementations -export OMPI_MCA_coll_ibm_skip_barrier=true - -#module load pgi -#module load cuda/9.1.85 -#module list -set -x - -omp=1 -export OMP_NUM_THREADS=${omp} -#EXE="../main3d.pgi.DEBUG.TPROF.MPI.ACC.CUDA.ex" -EXE="../main3d.pgi.TPROF.MPI.ACC.CUDA.ex" -#JSRUN="jsrun -n 4 -a 1 -g 1 -c 1 --bind=packed:${omp} " -#JSRUN="jsrun -n 1 -a 4 -g 4 -c 4 --bind=packed:${omp} " -JSRUN="jsrun -n 1 -a 1 -g 1 -c 1 --bind=packed:${omp} " - -rundir="${LSB_JOBNAME}-${LSB_JOBID}" -mkdir $rundir -cp $0 $rundir -cp inputs $rundir -cd $rundir - -# 1. Run normally -${JSRUN} --smpiargs="-gpu" ${EXE} inputs - -# 2. Run under cuda-memcheck -# ${JSRUN} --smpiargs="-gpu" cuda-memcheck ${EXE} inputs &> memcheck.txt - -# 3. Run under nvprof and direct all stdout and stderr to nvprof.txt -#${JSRUN} --smpiargs="-gpu" nvprof --profile-child-processes ${EXE} inputs &> nvprof.txt - -# 4. Run under nvprof and store performance data in a nvvp file -# Can be converted to text using nvprof -i nvprof-timeline-%p.nvvp -#${JSRUN} --smpiargs="-gpu" nvprof --profile-child-processes -o nvprof-timeline-%p.nvvp ${EXE} inputs - -# COLLECT PERFORMANCE METRICS - THIS IS MUCH SLOWER. Set nsteps=2 in the inputs files -# 5. Run under nvprof and collect metrics for a subset of kernels -#${JSRUN} --smpiargs="-gpu" nvprof --profile-child-processes --kernels '(deposit_current|gather_\w+_field|push_\w+_boris)' --analysis-metrics -o nvprof-metrics-kernel-%p.nvvp ${EXE} inputs - -# 6. Run under nvprof and collect metrics for all kernels -- much slower! -#${JSRUN} --smpiargs="-gpu" nvprof --profile-child-processes --analysis-metrics -o nvprof-metrics-%p.nvvp ${EXE} inputs - -cp ../WarpX*.${LSB_JOBID} . diff --git a/Tools/machines/summit-olcf/summit_v100.bsub b/Tools/machines/summit-olcf/summit_v100.bsub deleted file mode 100644 index 480d53753..000000000 --- a/Tools/machines/summit-olcf/summit_v100.bsub +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/bash - -# Copyright 2019-2020 Maxence Thevenet, Axel Huebl -# -# This file is part of WarpX. -# -# License: BSD-3-Clause-LBNL -# -# Refs.: -# https://jsrunvisualizer.olcf.ornl.gov/?s4f0o11n6c7g1r11d1b1l0= -# https://docs.olcf.ornl.gov/systems/summit_user_guide.html#cuda-aware-mpi - -#BSUB -P -#BSUB -W 00:10 -#BSUB -nnodes 2 -#BSUB -alloc_flags smt4 -#BSUB -J WarpX -#BSUB -o WarpXo.%J -#BSUB -e WarpXe.%J - -# make output group-readable by default -umask 0027 - -# fix problems with collectives since RHEL8 update: OLCFHELP-3545 -# disable all the IBM optimized barriers and drop back to HCOLL or OMPI's barrier implementations -export OMPI_MCA_coll_ibm_skip_barrier=true - -# libfabric 1.6+: limit the visible devices -# Needed for ADIOS2 SST staging/streaming workflows since RHEL8 update -# https://github.com/ornladios/ADIOS2/issues/2887 -#export FABRIC_IFACE=mlx5_0 # ADIOS SST: select interface (1 NIC on Summit) -#export FI_OFI_RXM_USE_SRX=1 # libfabric: use shared receive context from MSG provider - -# ROMIO has a hint for GPFS named IBM_largeblock_io which optimizes I/O with operations on large blocks -export IBM_largeblock_io=true - -# MPI-I/O: ROMIO hints for parallel HDF5 performance -export OMPI_MCA_io=romio321 -export ROMIO_HINTS=./romio-hints -# number of hosts: unique node names minus batch node -NUM_HOSTS=$(( $(echo $LSB_HOSTS | tr ' ' '\n' | uniq | wc -l) - 1 )) -cat > romio-hints << EOL - romio_cb_write enable - romio_ds_write enable - cb_buffer_size 16777216 - cb_nodes ${NUM_HOSTS} -EOL - -# OpenMP: 1 thread per MPI rank -export OMP_NUM_THREADS=1 - -# run WarpX -jsrun -r 6 -a 1 -g 1 -c 7 -l GPU-CPU -d packed -b rs --smpiargs="-gpu" > output.txt diff --git a/Tools/machines/summit-olcf/summit_warpx.profile.example b/Tools/machines/summit-olcf/summit_warpx.profile.example deleted file mode 100644 index 6b3a0b394..000000000 --- a/Tools/machines/summit-olcf/summit_warpx.profile.example +++ /dev/null @@ -1,75 +0,0 @@ -# please set your project account -#export proj= - -# optional: just an additional text editor -module load nano - -# required dependencies -module load cmake/3.20.2 -module load gcc/9.3.0 -module load cuda/11.3.1 - -# optional: faster re-builds -module load ccache - -# optional: for PSATD in RZ geometry support -export CMAKE_PREFIX_PATH=$HOME/sw/summit/blaspp-master:$CMAKE_PREFIX_PATH -export CMAKE_PREFIX_PATH=$HOME/sw/summit/lapackpp-master:$CMAKE_PREFIX_PATH -export LD_LIBRARY_PATH=$HOME/sw/summit/blaspp-master/lib64:$LD_LIBRARY_PATH -export LD_LIBRARY_PATH=$HOME/sw/summit/lapackpp-master/lib64:$LD_LIBRARY_PATH - -# optional: for QED lookup table generation support -module load boost/1.76.0 - -# optional: for openPMD support -module load adios2/2.7.1 -module load hdf5/1.12.2 - -# optional: for openPMD support (GNUmake only) -#module load ums -#module load ums-aph114 -#module load openpmd-api/0.15.1 - -# often unstable at runtime with dependencies -module unload darshan-runtime - -# optional: Ascent in situ support -# note: build WarpX with CMake -export Ascent_DIR=/sw/summit/ums/ums010/ascent/0.8.0_warpx/summit/cuda/gnu/ascent-install/ - -# optional: for Python bindings or libEnsemble -module load python/3.8.10 -module load freetype/2.10.4 # matplotlib - -# dependencies for numpy, blaspp & lapackpp -module load openblas/0.3.5-omp -export BLAS=${OLCF_OPENBLAS_ROOT}/lib/libopenblas.so -export LAPACK=${OLCF_OPENBLAS_ROOT}/lib/libopenblas.so - -if [ -d "$HOME/sw/venvs/warpx" ] -then - source $HOME/sw/venvs/warpx/bin/activate -fi - -# an alias to request an interactive batch node for two hours -# for paralle execution, start on the batch node: jsrun -alias getNode="bsub -q debug -P $proj -W 2:00 -nnodes 1 -Is /bin/bash" -# an alias to run a command on a batch node for up to 30min -# usage: nrun -alias runNode="bsub -q debug -P $proj -W 0:30 -nnodes 1 -I" - -# fix system defaults: do not escape $ with a \ on tab completion -shopt -s direxpand - -# make output group-readable by default -umask 0027 - -# optimize CUDA compilation for V100 -export AMREX_CUDA_ARCH=7.0 - -# compiler environment hints -export CC=$(which gcc) -export CXX=$(which g++) -export FC=$(which gfortran) -export CUDACXX=$(which nvcc) -export CUDAHOSTCXX=$(which g++) diff --git a/Tools/machines/taurus-zih/taurus.sbatch b/Tools/machines/taurus-zih/taurus.sbatch deleted file mode 100644 index b50bd6273..000000000 --- a/Tools/machines/taurus-zih/taurus.sbatch +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/bash -l - -# Copyright 2023 Axel Huebl, Thomas Miethlinger -# -# This file is part of WarpX. -# -# License: BSD-3-Clause-LBNL - -#SBATCH -t 00:10:00 -#SBATCH -N 1 -#SBATCH -J WarpX -#SBATCH -p alpha -#SBATCH --exclusive -#SBATCH --cpus-per-task=6 -#SBATCH --mem-per-cpu=2048 -#SBATCH --gres=gpu:1 -#SBATCH --gpu-bind=single:1 -#SBATCH -o WarpX.o%j -#SBATCH -e WarpX.e%j - -# executable & inputs file or python interpreter & PICMI script here -EXE=./warpx -INPUTS=inputs_small - -# run -srun ${EXE} ${INPUTS} \ - > output.txt diff --git a/Tools/machines/taurus-zih/taurus_warpx.profile.example b/Tools/machines/taurus-zih/taurus_warpx.profile.example deleted file mode 100644 index f564f696c..000000000 --- a/Tools/machines/taurus-zih/taurus_warpx.profile.example +++ /dev/null @@ -1,39 +0,0 @@ -# please set your project account -#export proj="" # change me - -# required dependencies -module load modenv/hiera -module load foss/2021b -module load CUDA/11.8.0 -module load CMake/3.22.1 - -# optional: for QED support with detailed tables -#module load Boost # TODO - -# optional: for openPMD and PSATD+RZ support -module load HDF5/1.13.1 - -# optional: for Python bindings or libEnsemble -#module load python # TODO -# -#if [ -d "$HOME/sw/taurus/venvs/warpx" ] -#then -# source $HOME/sw/taurus/venvs/warpx/bin/activate -#fi - -# an alias to request an interactive batch node for one hour -# for parallel execution, start on the batch node: srun -alias getNode="salloc --time=2:00:00 -N1 -n1 --cpus-per-task=6 --mem-per-cpu=2048 --gres=gpu:1 --gpu-bind=single:1 -p alpha-interactive --pty bash" -# an alias to run a command on a batch node for up to 30min -# usage: runNode -alias runNode="srun --time=2:00:00 -N1 -n1 --cpus-per-task=6 --mem-per-cpu=2048 --gres=gpu:1 --gpu-bind=single:1 -p alpha-interactive --pty bash" - -# optimize CUDA compilation for A100 -export AMREX_CUDA_ARCH=8.0 - -# compiler environment hints -#export CC=$(which gcc) -#export CXX=$(which g++) -#export FC=$(which gfortran) -#export CUDACXX=$(which nvcc) -#export CUDAHOSTCXX=${CXX} diff --git a/Tools/optimas/requirements.txt b/Tools/optimas/requirements.txt deleted file mode 100644 index 9662a5d4a..000000000 --- a/Tools/optimas/requirements.txt +++ /dev/null @@ -1,8 +0,0 @@ -# optimas -# https://github.com/optimas-org/optimas/blob/main/requirements.txt -ax-platform >= 0.2.9 -jinja2 -libensemble >= 0.9.2 -pandas -# https://pytorch.org/get-started/locally/ -torch diff --git a/cmake/WarpXFunctions.cmake b/cmake/WarpXFunctions.cmake index 85c15092b..cfe3bacde 100644 --- a/cmake/WarpXFunctions.cmake +++ b/cmake/WarpXFunctions.cmake @@ -1,6 +1,6 @@ # Set C++17 for the whole build if not otherwise requested # -# This is the easiest way to push up a C++17 requirement for AMReX, PICSAR and +# This is the easiest way to push up a C++17 requirement for AMReX and # openPMD-api until they increase their requirement. # macro(set_cxx17_superbuild) @@ -240,14 +240,6 @@ function(set_warpx_binary_name) set_property(TARGET ${tgt} APPEND_STRING PROPERTY OUTPUT_NAME ".EB") endif() - if(WarpX_QED) - set_property(TARGET ${tgt} APPEND_STRING PROPERTY OUTPUT_NAME ".QED") - endif() - - if(WarpX_QED_TABLE_GEN) - set_property(TARGET ${tgt} APPEND_STRING PROPERTY OUTPUT_NAME ".GENQEDTABLES") - endif() - if(WarpX_SENSEI) set_property(TARGET ${tgt} APPEND_STRING PROPERTY OUTPUT_NAME ".SENSEI") endif() @@ -389,9 +381,7 @@ function(warpx_print_summary) message(" PRECISION: ${WarpX_PRECISION}") message(" PARTICLE PRECISION: ${WarpX_PARTICLE_PRECISION}") message(" OPENPMD: ${WarpX_OPENPMD}") - message(" QED: ${WarpX_QED}") message(" LLG: ${WarpX_MAG_LLG}") - message(" QED table generation: ${WarpX_QED_TABLE_GEN}") message(" SENSEI: ${WarpX_SENSEI}") message("") endfunction() diff --git a/cmake/dependencies/AMReX.cmake b/cmake/dependencies/AMReX.cmake index 5c44510b0..e64636d2a 100644 --- a/cmake/dependencies/AMReX.cmake +++ b/cmake/dependencies/AMReX.cmake @@ -243,7 +243,6 @@ set(WarpX_amrex_repo "https://github.com/AMReX-Codes/amrex.git" # Parse AMReX version and commit information file(READ "${WarpX_SOURCE_DIR}/dependencies.json" dependencies_data) -string(JSON amrex_version GET "${dependencies_data}" version_amrex) string(JSON amrex_commit GET "${dependencies_data}" commit_amrex) set(WarpX_amrex_branch ${amrex_commit} diff --git a/cmake/dependencies/PICSAR.cmake b/cmake/dependencies/PICSAR.cmake deleted file mode 100644 index 4a54b1e50..000000000 --- a/cmake/dependencies/PICSAR.cmake +++ /dev/null @@ -1,119 +0,0 @@ -function(find_picsar) - if(WarpX_picsar_src) - message(STATUS "Compiling local PICSAR ...") - message(STATUS "PICSAR source path: ${WarpX_picsar_src}") - elseif(WarpX_picsar_internal) - message(STATUS "Downloading PICSAR ...") - message(STATUS "PICSAR repository: ${WarpX_picsar_repo} (${WarpX_picsar_branch})") - include(FetchContent) - endif() - if(WarpX_picsar_internal OR WarpX_picsar_src) - set(CMAKE_POLICY_DEFAULT_CMP0077 NEW) - - # Enable or disable QED lookup tables generation - - # If table generation is enabled, enable or disable - # openMP support depending on WarpX_COMPUTE - if(WarpX_QED_TABLE_GEN) - set(PXRMP_QED_TABLEGEN ON CACHE INTERNAL "") - if(WarpX_COMPUTE STREQUAL OMP) - set(PXRMP_QED_OMP ON CACHE INTERNAL "") - else() - set(PXRMP_QED_OMP OFF CACHE INTERNAL "") - endif() - else() - set(PXRMP_QED_TABLEGEN OFF CACHE INTERNAL "") - set(PXRMP_QED_OMP OFF CACHE INTERNAL "") - endif() - - # Always disable tests - set (PXRMP_QED_TEST OFF CACHE INTERNAL "") - - if(WarpX_COMPUTE STREQUAL SYCL) - set (PXRMP_DPCPP_FIX ON CACHE INTERNAL "") - endif() - - if(WarpX_picsar_src) - add_subdirectory( - ${WarpX_picsar_src}/multi_physics/QED - _deps/localpicsar-build/ - ) - get_source_version(PXRMP_QED ${WarpX_picsar_src}) - else() - FetchContent_Declare(fetchedpicsar - GIT_REPOSITORY ${WarpX_picsar_repo} - GIT_TAG ${WarpX_picsar_branch} - BUILD_IN_SOURCE 0 - ) - FetchContent_GetProperties(fetchedpicsar) - - if(NOT fetchedpicsar_POPULATED) - FetchContent_Populate(fetchedpicsar) - add_subdirectory( - ${fetchedpicsar_SOURCE_DIR}/multi_physics/QED - ${fetchedpicsar_BINARY_DIR} - ) - endif() - get_source_version(PXRMP_QED ${fetchedpicsar_SOURCE_DIR}) - if(NOT PXRMP_QED_GIT_VERSION) - set(PXRMP_QED_GIT_VERSION "${WarpX_picsar_branch}" CACHE INTERNAL "") - endif() - - # advanced fetch options - mark_as_advanced(FETCHCONTENT_BASE_DIR) - mark_as_advanced(FETCHCONTENT_FULLY_DISCONNECTED) - mark_as_advanced(FETCHCONTENT_QUIET) - mark_as_advanced(FETCHCONTENT_SOURCE_DIR_FETCHEDPICSAR) - mark_as_advanced(FETCHCONTENT_UPDATES_DISCONNECTED) - mark_as_advanced(FETCHCONTENT_UPDATES_DISCONNECTED_FETCHEDPICSAR) - endif() - - # PICSAR options not relevant to WarpX users - mark_as_advanced(DIM) - mark_as_advanced(USE_XSDK_DEFAULTS) - mark_as_advanced(PXRMP_QED_TABLEGEN) - mark_as_advanced(PXRMP_QED_OMP) - mark_as_advanced(PXRMP_QED_TEST) - mark_as_advanced(PXRMP_BOOST_TEST_DYN_LINK) - mark_as_advanced(PXRMP_DPCPP_FIX) - - - # PICSAR_VERSION: not yet defined - #message(STATUS "PICSAR: Using version '${PICSAR_VERSION}'") - else() - # not supported by PICSAR (yet) - #find_package(PICSAR 23.04 CONFIG REQUIRED QED) - #message(STATUS "PICSAR: Found version '${PICSAR_VERSION}'") - message(FATAL_ERROR "PICSAR: Cannot be used as externally installed " - "library yet. " - "Note that you can point to an external source tree with " - "-DWarpX_picsar_src=" - ) - endif() -endfunction() - -if(WarpX_QED) - # local source-tree - set(WarpX_picsar_src "" - CACHE PATH - "Local path to PICSAR source directory (preferred if set)") - - # Git fetcher - option(WarpX_picsar_internal "Download & build PICSAR" ON) - set(WarpX_picsar_repo "https://github.com/ECP-WarpX/picsar.git" - CACHE STRING - "Repository URI to pull and build PICSAR from if(WarpX_picsar_internal)") - # Parse PICSAR version and commit information - file(READ "${WarpX_SOURCE_DIR}/dependencies.json" dependencies_data) - string(JSON picsar_version GET "${dependencies_data}" version_picsar) - string(JSON picsar_commit GET "${dependencies_data}" commit_picsar) - - set(WarpX_picsar_branch ${picsar_commit} - CACHE STRING - "Repository branch for WarpX_picsar_repo if(WarpX_picsar_internal)") - - cmake_dependent_option(WarpX_QED_TABLE_GEN "generate QED lookup tables (requires boost)" - ON "WarpX_QED" OFF) - - find_picsar() -endif() diff --git a/dependencies.json b/dependencies.json index acc104a56..ee0da7ee0 100644 --- a/dependencies.json +++ b/dependencies.json @@ -1,9 +1,3 @@ { - "version_warpx": "25.07", - "version_amrex": "25.07", - "version_pyamrex": "25.07", - "version_picsar": "25.04", - "commit_amrex": "9d2b74990c60c22a63f410e0302a3503dc9aa41e", - "commit_pyamrex": "2a2587b9333d3beb6bf6d92c3470935d032f853d", - "commit_picsar": "0c329e66010267662a82219f7de7abbd231463f4" + "commit_amrex": "9d2b74990c60c22a63f410e0302a3503dc9aa41e" } diff --git a/pyproject.toml b/pyproject.toml deleted file mode 100644 index d7096f82d..000000000 --- a/pyproject.toml +++ /dev/null @@ -1,7 +0,0 @@ -[build-system] -requires = [ - "setuptools>=42", - "wheel", - "cmake>=3.20.0,<4.0.0" -] -build-backend = "setuptools.build_meta" diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 41c9df239..000000000 --- a/requirements.txt +++ /dev/null @@ -1,16 +0,0 @@ -# basic dependencies -numpy~=1.15 -periodictable~=1.5 - -# PICMI -# note: don't forget to update the version in Docs/requirements.txt, too -picmistandard==0.23.2 -# for development against an unreleased PICMI version, use: -#picmistandard @ git+https://github.com/picmi-standard/picmi.git#subdirectory=PICMI_Python - -# optional, some used for testing: -# yt -# openpmd-api -# openpmd-viewer -# matplotlib -# pandas diff --git a/requirements_mpi.txt b/requirements_mpi.txt deleted file mode 100644 index c444bff9b..000000000 --- a/requirements_mpi.txt +++ /dev/null @@ -1,2 +0,0 @@ --r requirements.txt -mpi4py>=2.1.0 diff --git a/run_test.sh b/run_test.sh deleted file mode 100755 index bc32a3233..000000000 --- a/run_test.sh +++ /dev/null @@ -1,109 +0,0 @@ -#!/bin/bash - -# Copyright 2018-2020 Axel Huebl, David Grote, Edoardo Zoni -# Luca Fedeli, Maxence Thevenet, Remi Lehe -# -# -# This file is part of WarpX. -# -# License: BSD-3-Clause-LBNL - -# This script runs some of WarpX's standard regression tests, but -# without comparing the output to previously run simulations. -# This checks that: -# - The code compiles and runs without error -# - For some of the tests, a Python script checks that the results are -# physically correct. - -# The tests can be influenced by environment variables: -# Use `export WARPX_CI_DIM=3` or `export WARPX_CI_DIM=2` in order to -# select only the tests that correspond to this dimension -# Use `export WARPX_TEST_ARCH=CPU` or `export WARPX_TEST_ARCH=GPU` in order -# to run the tests on CPU or GPU respectively. - -set -eu -o pipefail - -# Parse command line arguments: if test names are given as command line arguments, -# store them in variable tests_arg and define new command line argument to call -# regtest.py with option --tests (works also for single test) -tests_arg=$* -tests_run=${tests_arg:+--tests=${tests_arg}} - -# environment options -WARPX_CI_TMP=${WARPX_CI_TMP:-""} - -# Remove contents and link to a previous test directory (intentionally two arguments) -rm -rf test_dir/* test_dir -# Create a temporary test directory -if [ -z "${WARPX_CI_TMP}" ]; then - tmp_dir=$(mktemp --help >/dev/null 2>&1 && mktemp -d -t ci-XXXXXXXXXX || mktemp -d "${TMPDIR:-/tmp}"/ci-XXXXXXXXXX) - if [ $? -ne 0 ]; then - echo "Cannot create temporary directory" - exit 1 - fi -else - tmp_dir=${WARPX_CI_TMP} -fi - -# Copy WarpX into current test directory -rm -rf ${tmp_dir}/warpx -mkdir -p ${tmp_dir}/warpx -cp -r ./* ${tmp_dir}/warpx - -# Link the test directory -ln -s ${tmp_dir} test_dir - -# Switch to the test directory -cd test_dir -echo "cd $PWD" - -# Prepare a virtual environment -rm -rf py-venv -python3 -m venv py-venv -source py-venv/bin/activate -python3 -m pip install --upgrade pip setuptools wheel -python3 -m pip install --upgrade cmake -# setuptools/mp4py work-around, see -# https://github.com/mpi4py/mpi4py/pull/159 -# https://github.com/mpi4py/mpi4py/issues/157#issuecomment-1001022274 -export SETUPTOOLS_USE_DISTUTILS="stdlib" -python3 -m pip install --upgrade -r warpx/Regression/requirements.txt - -# Clone AMReX and warpx-data -git clone https://github.com/AMReX-Codes/amrex.git -cd amrex && git checkout --detach 9d2f762f4897b5f585544baf87a19edd0f0c9560 && cd - -# warpx-data contains various required data sets -git clone --depth 1 https://github.com/ECP-WarpX/warpx-data.git -# openPMD-example-datasets contains various required data sets -mkdir -p openPMD-example-datasets -cd openPMD-example-datasets -curl -sOL https://github.com/openPMD/openPMD-example-datasets/raw/4ba1d257c5b4897c0a3cd57742bb0987343a902e/example-femm-thetaMode.h5 -curl -sOL https://github.com/openPMD/openPMD-example-datasets/raw/4ba1d257c5b4897c0a3cd57742bb0987343a902e/example-femm-3d.h5 -cd - - -# Clone the AMReX regression test utility -git clone https://github.com/AMReX-Codes/regression_testing.git - -# Prepare regression tests -mkdir -p rt-WarpX/WarpX-benchmarks -cd warpx/Regression -echo "cd $PWD" -python3 prepare_file_ci.py -cp ci-tests.ini ../../rt-WarpX -cp -r Checksum ../../regression_testing/ - -# Run tests -cd ../../regression_testing/ -echo "cd $PWD" -# run only tests specified in variable tests_arg (single test or multiple tests) -if [[ ! -z "${tests_arg}" ]]; then - python3 regtest.py ../rt-WarpX/ci-tests.ini --no_update all "${tests_run}" -# run all tests (variables tests_arg and tests_run are empty) -else - python3 regtest.py ../rt-WarpX/ci-tests.ini --no_update all -fi - -# clean up python virtual environment -cd ../ -echo "cd $PWD" -deactivate diff --git a/setup.py b/setup.py deleted file mode 100644 index bdac34c85..000000000 --- a/setup.py +++ /dev/null @@ -1,334 +0,0 @@ -from distutils.command.build import build -from distutils.command.clean import clean -from distutils.version import LooseVersion -import os -import platform -import re -import shutil -import subprocess -import sys - -from setuptools import Extension, setup -from setuptools.command.build_ext import build_ext - - -class CopyPreBuild(build): - def initialize_options(self): - build.initialize_options(self) - # We just overwrite this because the default "build" (and "build/lib") - # clashes with directories many developers have in their source trees; - # this can create confusing results with "pip install .", which clones - # the whole source tree by default - self.build_base = '_tmppythonbuild' - - def run(self): - # remove existing build directory - # by default, this stays around. we want to make sure generated - # files like libwarpx.(2d|3d|rz).(so|pyd) are always only the - # ones we want to package and not ones from an earlier wheel's stage - c = clean(self.distribution) - c.all = True - c.finalize_options() - c.run() - - # call superclass - build.run(self) - - # matches: libwarpx.(2d|3d|rz).(so|pyd) - re_libprefix = re.compile(r"libwarpx\...\.(?:so|dll)") - libs_found = [] - for lib_name in os.listdir(PYWARPX_LIB_DIR): - if re_libprefix.match(lib_name): - lib_path = os.path.join(PYWARPX_LIB_DIR, lib_name) - libs_found.append(lib_path) - if len(libs_found) == 0: - raise RuntimeError("Error: no pre-build WarpX libraries found in " - "PYWARPX_LIB_DIR='{}'".format(PYWARPX_LIB_DIR)) - - # copy external libs into collection of files in a temporary build dir - dst_path = os.path.join(self.build_lib, "pywarpx") - for lib_path in libs_found: - shutil.copy(lib_path, dst_path) - - -class CMakeExtension(Extension): - def __init__(self, name, sourcedir=''): - Extension.__init__(self, name, sources=[]) - self.sourcedir = os.path.abspath(sourcedir) - - -class CMakeBuild(build_ext): - def run(self): - try: - out = subprocess.check_output(['cmake', '--version']) - except OSError: - raise RuntimeError( - "CMake 3.20.0+ must be installed to build the following " + - "extensions: " + - ", ".join(e.name for e in self.extensions)) - - cmake_version = LooseVersion(re.search( - r'version\s*([\d.]+)', - out.decode() - ).group(1)) - if cmake_version < '3.20.0': - raise RuntimeError("CMake >= 3.20.0 is required") - - for ext in self.extensions: - self.build_extension(ext) - - def build_extension(self, ext): - extdir = os.path.abspath(os.path.dirname( - self.get_ext_fullpath(ext.name) - )) - # required for auto-detection of auxiliary "native" libs - if not extdir.endswith(os.path.sep): - extdir += os.path.sep - - r_dim = re.search(r'warpx_(1|2|3|rz)(?:d*)', ext.name) - dims = r_dim.group(1).upper() - - cmake_args = [ - '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=' + - os.path.join(extdir, "pywarpx"), - '-DCMAKE_RUNTIME_OUTPUT_DIRECTORY=' + extdir, - '-DWarpX_DIMS=' + dims, - '-DWarpX_APP:BOOL=OFF', - '-DWarpX_LIB:BOOL=ON', - ## variants - '-DWarpX_COMPUTE=' + WARPX_COMPUTE, - '-DWarpX_MPI:BOOL=' + WARPX_MPI, - '-DWarpX_EB:BOOL=' + WARPX_EB, - '-DWarpX_OPENPMD:BOOL=' + WARPX_OPENPMD, - '-DWarpX_PRECISION=' + WARPX_PRECISION, - '-DWarpX_PARTICLE_PRECISION=' + WARPX_PARTICLE_PRECISION, - '-DWarpX_PSATD:BOOL=' + WARPX_PSATD, - '-DWarpX_QED:BOOL=' + WARPX_QED, - '-DWarpX_QED_TABLE_GEN:BOOL=' + WARPX_QED_TABLE_GEN, - ## dependency control (developers & package managers) - '-DWarpX_amrex_internal=' + WARPX_AMREX_INTERNAL, - # see PICSAR and openPMD below - ## static/shared libs - '-DBUILD_SHARED_LIBS:BOOL=' + BUILD_SHARED_LIBS, - ## Unix: rpath to current dir when packaged - ## needed for shared (here non-default) builds and ADIOS1 - ## wrapper libraries - '-DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON', - '-DCMAKE_INSTALL_RPATH_USE_LINK_PATH:BOOL=OFF', - # Windows: has no RPath concept, all `.dll`s must be in %PATH% - # or same dir as calling executable - ] - if WARPX_QED.upper() in ['1', 'ON', 'TRUE', 'YES']: - cmake_args.append('-DWarpX_picsar_internal=' + WARPX_PICSAR_INTERNAL) - if WARPX_OPENPMD.upper() in ['1', 'ON', 'TRUE', 'YES']: - cmake_args += [ - '-DHDF5_USE_STATIC_LIBRARIES:BOOL=' + HDF5_USE_STATIC_LIBRARIES, - '-DADIOS_USE_STATIC_LIBS:BOOL=' + ADIOS_USE_STATIC_LIBS, - '-DWarpX_openpmd_internal=' + WARPX_OPENPMD_INTERNAL, - ] - # further dependency control (developers & package managers) - if WARPX_AMREX_SRC: - cmake_args.append('-DWarpX_amrex_src=' + WARPX_AMREX_SRC) - if WARPX_AMREX_REPO: - cmake_args.append('-DWarpX_amrex_repo=' + WARPX_AMREX_REPO) - if WARPX_AMREX_BRANCH: - cmake_args.append('-DWarpX_amrex_branch=' + WARPX_AMREX_BRANCH) - if WARPX_OPENPMD_SRC: - cmake_args.append('-DWarpX_openpmd_src=' + WARPX_OPENPMD_SRC) - if WARPX_PICSAR_SRC: - cmake_args.append('-DWarpX_picsar_src=' + WARPX_PICSAR_SRC) - if WARPX_CCACHE_PROGRAM is not None: - cmake_args.append('-DCCACHE_PROGRAM=' + WARPX_CCACHE_PROGRAM) - - if sys.platform == "darwin": - cmake_args.append('-DCMAKE_INSTALL_RPATH=@loader_path') - else: - # values: linux*, aix, freebsd, ... - # just as well win32 & cygwin (although Windows has no RPaths) - cmake_args.append('-DCMAKE_INSTALL_RPATH=$ORIGIN') - - cfg = 'Debug' if self.debug else 'Release' - build_args = ['--config', cfg] - - if platform.system() == "Windows": - cmake_args += [ - '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_{}={}'.format( - cfg.upper(), - os.path.join(extdir, "pywarpx") - ) - ] - if sys.maxsize > 2**32: - cmake_args += ['-A', 'x64'] - else: - cmake_args += ['-DCMAKE_BUILD_TYPE=' + cfg] - - build_args += ['--parallel', BUILD_PARALLEL] - - env = os.environ.copy() - env['CXXFLAGS'] = '{} -DVERSION_INFO=\\"{}\\"'.format( - env.get('CXXFLAGS', ''), - self.distribution.get_version() - ) - build_dir = os.path.join(self.build_temp, dims) - os.makedirs(build_dir, exist_ok=True) - subprocess.check_call( - ['cmake', ext.sourcedir] + cmake_args, - cwd=build_dir, - env=env - ) - subprocess.check_call( - ['cmake', '--build', '.'] + build_args, - cwd=build_dir - ) - # note that this does not call install; - # we pick up artifacts directly from the build output dirs - - -with open('./README.md', encoding='utf-8') as f: - long_description = f.read() - -# Allow to control options via environment vars. -# Work-around for https://github.com/pypa/setuptools/issues/1712 -# Pick up existing WarpX libraries or... -PYWARPX_LIB_DIR = os.environ.get('PYWARPX_LIB_DIR') - -env = os.environ.copy() -# ... build WarpX libraries with CMake -# note: changed default for SHARED, MPI, TESTING and EXAMPLES -# note: we use all-uppercase variable names for environment control to be -# consistent across platforms (especially Windows) -WARPX_COMPUTE = env.pop('WARPX_COMPUTE', 'OMP') -WARPX_MPI = env.pop('WARPX_MPI', 'OFF') -WARPX_EB = env.pop('WARPX_EB', 'OFF') -WARPX_OPENPMD = env.pop('WARPX_OPENPMD', 'ON') -WARPX_PRECISION = env.pop('WARPX_PRECISION', 'DOUBLE') -WARPX_PARTICLE_PRECISION = env.pop('WARPX_PARTICLE_PRECISION', WARPX_PRECISION) -WARPX_PSATD = env.pop('WARPX_PSATD', 'OFF') -WARPX_QED = env.pop('WARPX_QED', 'ON') -WARPX_QED_TABLE_GEN = env.pop('WARPX_QED_TABLE_GEN', 'OFF') -WARPX_DIMS = env.pop('WARPX_DIMS', '1;2;3;RZ') -BUILD_PARALLEL = env.pop('BUILD_PARALLEL', '2') -BUILD_SHARED_LIBS = env.pop('WARPX_BUILD_SHARED_LIBS', - 'OFF') -#BUILD_TESTING = env.pop('WARPX_BUILD_TESTING', -# 'OFF') -#BUILD_EXAMPLES = env.pop('WARPX_BUILD_EXAMPLES', -# 'OFF') -# openPMD-api sub-control -HDF5_USE_STATIC_LIBRARIES = env.pop('HDF5_USE_STATIC_LIBRARIES', 'OFF') -ADIOS_USE_STATIC_LIBS = env.pop('ADIOS_USE_STATIC_LIBS', 'OFF') -# CMake dependency control (developers & package managers) -WARPX_AMREX_SRC = env.pop('WARPX_AMREX_SRC', '') -WARPX_AMREX_REPO = env.pop('WARPX_AMREX_REPO', '') -WARPX_AMREX_BRANCH = env.pop('WARPX_AMREX_BRANCH', '') -WARPX_AMREX_INTERNAL = env.pop('WARPX_AMREX_INTERNAL', 'ON') -WARPX_OPENPMD_SRC = env.pop('WARPX_OPENPMD_SRC', '') -WARPX_OPENPMD_INTERNAL = env.pop('WARPX_OPENPMD_INTERNAL', 'ON') -WARPX_PICSAR_SRC = env.pop('WARPX_PICSAR_SRC', '') -WARPX_PICSAR_INTERNAL = env.pop('WARPX_PICSAR_INTERNAL', 'ON') -WARPX_CCACHE_PROGRAM = env.pop('WARPX_CCACHE_PROGRAM', None) - -for key in env.keys(): - if key.lower().startswith('warpx'): - print(f"\nWARNING: Found environment variable '{key}', which is not a recognized WarpX option\n") - - -# https://cmake.org/cmake/help/v3.0/command/if.html -if WARPX_MPI.upper() in ['1', 'ON', 'TRUE', 'YES']: - WARPX_MPI = "ON" -else: - WARPX_MPI = "OFF" - -# Include embedded boundary functionality -if WARPX_EB.upper() in ['1', 'ON', 'TRUE', 'YES']: - WARPX_EB = "ON" -else: - WARPX_EB = "OFF" - - -# for CMake -cxx_modules = [] # values: warpx_1d, warpx_2d, warpx_3d, warpx_rz -cmdclass = {} # build extensions - -# externally pre-built: pick up pre-built WarpX libraries -if PYWARPX_LIB_DIR: - cmdclass=dict(build=CopyPreBuild) -# CMake: build WarpX libraries ourselves -else: - cmdclass = dict(build_ext=CMakeBuild) - for dim in [x.lower() for x in WARPX_DIMS.split(';')]: - name = dim if dim == "rz" else dim + "d" - cxx_modules.append(CMakeExtension("warpx_" + name)) - -# Get the package requirements from the requirements.txt file -install_requires = [] -with open('./requirements.txt') as f: - install_requires = [line.strip('\n') for line in f.readlines()] - if WARPX_MPI == "ON": - install_requires.append('mpi4py>=2.1.0') - -# keyword reference: -# https://packaging.python.org/guides/distributing-packages-using-setuptools -setup( - name='pywarpx', - # note PEP-440 syntax: x.y.zaN but x.y.z.devN - version = '23.04', - packages = ['pywarpx'], - package_dir = {'pywarpx': 'Python/pywarpx'}, - author='Jean-Luc Vay, David P. Grote, Maxence Thévenet, Rémi Lehe, Andrew Myers, Weiqun Zhang, Axel Huebl, et al.', - author_email='jlvay@lbl.gov, grote1@llnl.gov, maxence.thevenet@desy.de, rlehe@lbl.gov, atmyers@lbl.gov, WeiqunZhang@lbl.gov, axelhuebl@lbl.gov', - maintainer='Axel Huebl, David P. Grote, Rémi Lehe', # wheel/pypi packages - maintainer_email='axelhuebl@lbl.gov, grote1@llnl.gov, rlehe@lbl.gov', - description='WarpX is an advanced electromagnetic Particle-In-Cell code.', - long_description=long_description, - long_description_content_type='text/markdown', - keywords=('WarpX openscience mpi hpc research pic particle-in-cell ' - 'plasma laser-plasma accelerator modeling simulation'), - url='https://ecp-warpx.github.io', - project_urls={ - 'Documentation': 'https://warpx.readthedocs.io', - 'Doxygen': 'https://warpx.readthedocs.io/en/latest/_static/doxyhtml/index.html', - #'Reference': 'https://doi.org/...', (Paper and/or Zenodo) - 'Source': 'https://github.com/ECP-WarpX/WarpX', - 'Tracker': 'https://github.com/ECP-WarpX/WarpX/issues', - }, - # CMake: self-built as extension module - ext_modules=cxx_modules, - cmdclass=cmdclass, - # scripts=['warpx_1d', 'warpx_2d', 'warpx_3d', 'warpx_rz'], - zip_safe=False, - python_requires='>=3.7', - # tests_require=['pytest'], - install_requires=install_requires, - # see: src/bindings/python/cli - #entry_points={ - # 'console_scripts': [ - # 'warpx_3d = warpx.3d.__main__:main' - # ] - #}, - extras_require={ - 'all': ['openPMD-api~=0.15.1', 'openPMD-viewer~=1.1', 'yt>=4.1.0', 'matplotlib'], - }, - # cmdclass={'test': PyTest}, - # platforms='any', - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Natural Language :: English', - 'Environment :: Console', - 'Intended Audience :: Science/Research', - 'Operating System :: OS Independent', - 'Topic :: Scientific/Engineering', - 'Topic :: Scientific/Engineering :: Physics', - 'Programming Language :: C++', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Programming Language :: Python :: 3.9', - 'Programming Language :: Python :: 3.10', - ('License :: OSI Approved :: ' - 'BSD License'), # TODO: use real SPDX: BSD-3-Clause-LBNL - ], - # new PEP 639 format - license='BSD-3-Clause-LBNL', - license_files = ['LICENSE.txt', 'LEGAL.txt'], -)